diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..1dbc687de --- /dev/null +++ b/.gitignore @@ -0,0 +1,62 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..13115f8ae --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +## License +Copyright (c) 2016 EMC Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 6b08ce24c..bdab0285d 100644 --- a/README.md +++ b/README.md @@ -5,38 +5,57 @@ This repository is part of the Isilon SDK, which is an evolving package of docum * For OneFS API reference documents, discussions, and blog posts, refer to the [OneFS SDK Info Hub](https://community.emc.com/docs/DOC-48273). * To browse the Isilon InsiqhtIQ statistics API, refer to the [Stat Key Browser](https://github.com/isilon/isilon_stat_browser.git) Github repository. -## Requirements -Python 2.7 and later. +# isi_sdk +Isilon SDK - Swagger Open API Specification for OneFS API -##Install the Python language bindings +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -You can install the isi_sdk_python library from Github using the pip command. +- API version: 1.0.0 +- Package version: 1.0.0 +- Build date: 2016-05-13T11:54:50.823-07:00 +- Build package: class io.swagger.codegen.languages.PythonClientCodegen +For more information, please visit [http://www.emc.com](http://www.emc.com) + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +You can install the isi_sdk Python library from Github using the pip command. ```sh pip install git+https://github.com/isilon/isilon_sdk_python_8_0.git ``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/isilon/isilon_sdk_python_8_0.git`) + +Then import the package: +```python +import isi_sdk +``` -**Note:** If you do not have pip installed, you can find instructions here: http://docs.python-requests.org/en/master/user/install/ +### Setuptools -Alternatively, you can clone this Github repository and run the following command to install the isi_sdk_python library from this repository: +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). ```sh -python setup.py install +python setup.py install --user ``` +(or `sudo python setup.py install` to install the package for all users) You may need to install the Python [Setuptools](http://pypi.python.org/pypi/setuptools) on your system, if they are not already installed. For instructions, see http://pypi.python.org/pypi/setuptools. -To import the package and use the bindings, add the following line to the top of the Python scripts that you write: - +Then import the package: ```python -import isi_sdk +import isi_sdk ``` -## Write code with the Python language bindings +## Getting Started -After implementing the steps above, you can write code like the following to interact with the OneFS API. This example gets all NFS exports. +Please follow the [installation procedure](#installation--usage) and then run the following: -``` +```python import isi_sdk import urllib3 urllib3.disable_warnings() @@ -48,15 +67,1378 @@ isi_sdk.configuration.verify_ssl = False # configure host host = "https://:8080" -apiClient = isi_sdk.ApiClient(host) -protocolsApi = isi_sdk.ProtocolsApi(apiClient) +api_client = isi_sdk_python.ApiClient(host) +protocols_api = isi_sdk_python.ProtocolsApi(api_client) # get all exports -nfsExports = protocolsApi.list_nfs_exports() -print "NFS Exports:\n" + str(nfsExports) +try: + nfs_exports = protocols_api.list_nfs_exports() + print "NFS Exports:\n" + str(nfs_exports) +except isi_sdk.rest.ApiException as e: + print "Exception when calling ProtocolsApi->list_nfs_exports: %s\n" % e ``` +After implementing the steps above, you can write code like the above to interact with the OneFS API. The example above gets all NFS exports. + +## Documentation for API Endpoints + +All URIs are relative to *https://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AntivirusApi* | [**create_antivirus_policy**](docs/AntivirusApi.md#create_antivirus_policy) | **POST** /platform/3/antivirus/policies | +*AntivirusApi* | [**create_antivirus_scan_item**](docs/AntivirusApi.md#create_antivirus_scan_item) | **POST** /platform/3/antivirus/scan | +*AntivirusApi* | [**create_antivirus_server**](docs/AntivirusApi.md#create_antivirus_server) | **POST** /platform/3/antivirus/servers | +*AntivirusApi* | [**delete_antivirus_policies**](docs/AntivirusApi.md#delete_antivirus_policies) | **DELETE** /platform/3/antivirus/policies | +*AntivirusApi* | [**delete_antivirus_policy**](docs/AntivirusApi.md#delete_antivirus_policy) | **DELETE** /platform/3/antivirus/policies/{AntivirusPolicyId} | +*AntivirusApi* | [**delete_antivirus_server**](docs/AntivirusApi.md#delete_antivirus_server) | **DELETE** /platform/3/antivirus/servers/{AntivirusServerId} | +*AntivirusApi* | [**delete_antivirus_servers**](docs/AntivirusApi.md#delete_antivirus_servers) | **DELETE** /platform/3/antivirus/servers | +*AntivirusApi* | [**delete_reports_scan**](docs/AntivirusApi.md#delete_reports_scan) | **DELETE** /platform/3/antivirus/reports/scans/{ReportsScanId} | +*AntivirusApi* | [**delete_reports_scans**](docs/AntivirusApi.md#delete_reports_scans) | **DELETE** /platform/3/antivirus/reports/scans | +*AntivirusApi* | [**get_antivirus_policy**](docs/AntivirusApi.md#get_antivirus_policy) | **GET** /platform/3/antivirus/policies/{AntivirusPolicyId} | +*AntivirusApi* | [**get_antivirus_quarantine_path**](docs/AntivirusApi.md#get_antivirus_quarantine_path) | **GET** /platform/3/antivirus/quarantine/{AntivirusQuarantinePath} | +*AntivirusApi* | [**get_antivirus_server**](docs/AntivirusApi.md#get_antivirus_server) | **GET** /platform/3/antivirus/servers/{AntivirusServerId} | +*AntivirusApi* | [**get_antivirus_settings**](docs/AntivirusApi.md#get_antivirus_settings) | **GET** /platform/3/antivirus/settings | +*AntivirusApi* | [**get_reports_scan**](docs/AntivirusApi.md#get_reports_scan) | **GET** /platform/3/antivirus/reports/scans/{ReportsScanId} | +*AntivirusApi* | [**get_reports_scans**](docs/AntivirusApi.md#get_reports_scans) | **GET** /platform/3/antivirus/reports/scans | +*AntivirusApi* | [**get_reports_threat**](docs/AntivirusApi.md#get_reports_threat) | **GET** /platform/3/antivirus/reports/threats/{ReportsThreatId} | +*AntivirusApi* | [**get_reports_threats**](docs/AntivirusApi.md#get_reports_threats) | **GET** /platform/3/antivirus/reports/threats | +*AntivirusApi* | [**list_antivirus_policies**](docs/AntivirusApi.md#list_antivirus_policies) | **GET** /platform/3/antivirus/policies | +*AntivirusApi* | [**list_antivirus_servers**](docs/AntivirusApi.md#list_antivirus_servers) | **GET** /platform/3/antivirus/servers | +*AntivirusApi* | [**update_antivirus_policy**](docs/AntivirusApi.md#update_antivirus_policy) | **PUT** /platform/3/antivirus/policies/{AntivirusPolicyId} | +*AntivirusApi* | [**update_antivirus_quarantine_path**](docs/AntivirusApi.md#update_antivirus_quarantine_path) | **PUT** /platform/3/antivirus/quarantine/{AntivirusQuarantinePath} | +*AntivirusApi* | [**update_antivirus_server**](docs/AntivirusApi.md#update_antivirus_server) | **PUT** /platform/3/antivirus/servers/{AntivirusServerId} | +*AntivirusApi* | [**update_antivirus_settings**](docs/AntivirusApi.md#update_antivirus_settings) | **PUT** /platform/3/antivirus/settings | +*AuditApi* | [**create_audit_topic**](docs/AuditApi.md#create_audit_topic) | **POST** /platform/1/audit/topics | +*AuditApi* | [**delete_audit_topic**](docs/AuditApi.md#delete_audit_topic) | **DELETE** /platform/1/audit/topics/{AuditTopicId} | +*AuditApi* | [**get_audit_settings**](docs/AuditApi.md#get_audit_settings) | **GET** /platform/3/audit/settings | +*AuditApi* | [**get_audit_topic**](docs/AuditApi.md#get_audit_topic) | **GET** /platform/1/audit/topics/{AuditTopicId} | +*AuditApi* | [**get_settings_global**](docs/AuditApi.md#get_settings_global) | **GET** /platform/3/audit/settings/global | +*AuditApi* | [**list_audit_topics**](docs/AuditApi.md#list_audit_topics) | **GET** /platform/1/audit/topics | +*AuditApi* | [**update_audit_settings**](docs/AuditApi.md#update_audit_settings) | **PUT** /platform/3/audit/settings | +*AuditApi* | [**update_audit_topic**](docs/AuditApi.md#update_audit_topic) | **PUT** /platform/1/audit/topics/{AuditTopicId} | +*AuditApi* | [**update_settings_global**](docs/AuditApi.md#update_settings_global) | **PUT** /platform/3/audit/settings/global | +*AuthApi* | [**create_auth_group**](docs/AuthApi.md#create_auth_group) | **POST** /platform/1/auth/groups | +*AuthApi* | [**create_auth_refresh_item**](docs/AuthApi.md#create_auth_refresh_item) | **POST** /platform/3/auth/refresh | +*AuthApi* | [**create_auth_role**](docs/AuthApi.md#create_auth_role) | **POST** /platform/1/auth/roles | +*AuthApi* | [**create_auth_user**](docs/AuthApi.md#create_auth_user) | **POST** /platform/1/auth/users | +*AuthApi* | [**create_mapping_identity**](docs/AuthApi.md#create_mapping_identity) | **POST** /platform/1/auth/mapping/identities | +*AuthApi* | [**create_mapping_identity_0**](docs/AuthApi.md#create_mapping_identity_0) | **POST** /platform/1/auth/mapping/identities/{MappingIdentityId} | +*AuthApi* | [**create_providers_ads_item**](docs/AuthApi.md#create_providers_ads_item) | **POST** /platform/3/auth/providers/ads | +*AuthApi* | [**create_providers_file_item**](docs/AuthApi.md#create_providers_file_item) | **POST** /platform/1/auth/providers/file | +*AuthApi* | [**create_providers_krb5_item**](docs/AuthApi.md#create_providers_krb5_item) | **POST** /platform/3/auth/providers/krb5 | +*AuthApi* | [**create_providers_ldap_item**](docs/AuthApi.md#create_providers_ldap_item) | **POST** /platform/3/auth/providers/ldap | +*AuthApi* | [**create_providers_nis_item**](docs/AuthApi.md#create_providers_nis_item) | **POST** /platform/3/auth/providers/nis | +*AuthApi* | [**create_settings_krb5_domain**](docs/AuthApi.md#create_settings_krb5_domain) | **POST** /platform/1/auth/settings/krb5/domains | +*AuthApi* | [**create_settings_krb5_realm**](docs/AuthApi.md#create_settings_krb5_realm) | **POST** /platform/1/auth/settings/krb5/realms | +*AuthApi* | [**delete_auth_group**](docs/AuthApi.md#delete_auth_group) | **DELETE** /platform/1/auth/groups/{AuthGroupId} | +*AuthApi* | [**delete_auth_groups**](docs/AuthApi.md#delete_auth_groups) | **DELETE** /platform/1/auth/groups | +*AuthApi* | [**delete_auth_role**](docs/AuthApi.md#delete_auth_role) | **DELETE** /platform/1/auth/roles/{AuthRoleId} | +*AuthApi* | [**delete_auth_user**](docs/AuthApi.md#delete_auth_user) | **DELETE** /platform/1/auth/users/{AuthUserId} | +*AuthApi* | [**delete_auth_users**](docs/AuthApi.md#delete_auth_users) | **DELETE** /platform/1/auth/users | +*AuthApi* | [**delete_mapping_identities**](docs/AuthApi.md#delete_mapping_identities) | **DELETE** /platform/1/auth/mapping/identities | +*AuthApi* | [**delete_mapping_identity**](docs/AuthApi.md#delete_mapping_identity) | **DELETE** /platform/1/auth/mapping/identities/{MappingIdentityId} | +*AuthApi* | [**delete_providers_ads_by_id**](docs/AuthApi.md#delete_providers_ads_by_id) | **DELETE** /platform/3/auth/providers/ads/{ProvidersAdsId} | +*AuthApi* | [**delete_providers_file_by_id**](docs/AuthApi.md#delete_providers_file_by_id) | **DELETE** /platform/1/auth/providers/file/{ProvidersFileId} | +*AuthApi* | [**delete_providers_krb5_by_id**](docs/AuthApi.md#delete_providers_krb5_by_id) | **DELETE** /platform/3/auth/providers/krb5/{ProvidersKrb5Id} | +*AuthApi* | [**delete_providers_ldap_by_id**](docs/AuthApi.md#delete_providers_ldap_by_id) | **DELETE** /platform/3/auth/providers/ldap/{ProvidersLdapId} | +*AuthApi* | [**delete_providers_local_by_id**](docs/AuthApi.md#delete_providers_local_by_id) | **DELETE** /platform/1/auth/providers/local/{ProvidersLocalId} | +*AuthApi* | [**delete_providers_nis_by_id**](docs/AuthApi.md#delete_providers_nis_by_id) | **DELETE** /platform/3/auth/providers/nis/{ProvidersNisId} | +*AuthApi* | [**delete_settings_krb5_domain**](docs/AuthApi.md#delete_settings_krb5_domain) | **DELETE** /platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId} | +*AuthApi* | [**delete_settings_krb5_realm**](docs/AuthApi.md#delete_settings_krb5_realm) | **DELETE** /platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId} | +*AuthApi* | [**get_auth_access_user**](docs/AuthApi.md#get_auth_access_user) | **GET** /platform/1/auth/access/{AuthAccessUser} | +*AuthApi* | [**get_auth_group**](docs/AuthApi.md#get_auth_group) | **GET** /platform/1/auth/groups/{AuthGroupId} | +*AuthApi* | [**get_auth_id**](docs/AuthApi.md#get_auth_id) | **GET** /platform/1/auth/id | +*AuthApi* | [**get_auth_log_level**](docs/AuthApi.md#get_auth_log_level) | **GET** /platform/3/auth/log-level | +*AuthApi* | [**get_auth_netgroup**](docs/AuthApi.md#get_auth_netgroup) | **GET** /platform/1/auth/netgroups/{AuthNetgroupId} | +*AuthApi* | [**get_auth_privileges**](docs/AuthApi.md#get_auth_privileges) | **GET** /platform/1/auth/privileges | +*AuthApi* | [**get_auth_role**](docs/AuthApi.md#get_auth_role) | **GET** /platform/1/auth/roles/{AuthRoleId} | +*AuthApi* | [**get_auth_shells**](docs/AuthApi.md#get_auth_shells) | **GET** /platform/1/auth/shells | +*AuthApi* | [**get_auth_user**](docs/AuthApi.md#get_auth_user) | **GET** /platform/1/auth/users/{AuthUserId} | +*AuthApi* | [**get_auth_wellknown**](docs/AuthApi.md#get_auth_wellknown) | **GET** /platform/1/auth/wellknowns/{AuthWellknownId} | +*AuthApi* | [**get_auth_wellknowns**](docs/AuthApi.md#get_auth_wellknowns) | **GET** /platform/1/auth/wellknowns | +*AuthApi* | [**get_mapping_dump**](docs/AuthApi.md#get_mapping_dump) | **GET** /platform/3/auth/mapping/dump | +*AuthApi* | [**get_mapping_identity**](docs/AuthApi.md#get_mapping_identity) | **GET** /platform/1/auth/mapping/identities/{MappingIdentityId} | +*AuthApi* | [**get_mapping_users_lookup**](docs/AuthApi.md#get_mapping_users_lookup) | **GET** /platform/1/auth/mapping/users/lookup | +*AuthApi* | [**get_mapping_users_rules**](docs/AuthApi.md#get_mapping_users_rules) | **GET** /platform/1/auth/mapping/users/rules | +*AuthApi* | [**get_providers_ads_by_id**](docs/AuthApi.md#get_providers_ads_by_id) | **GET** /platform/3/auth/providers/ads/{ProvidersAdsId} | +*AuthApi* | [**get_providers_file_by_id**](docs/AuthApi.md#get_providers_file_by_id) | **GET** /platform/1/auth/providers/file/{ProvidersFileId} | +*AuthApi* | [**get_providers_krb5_by_id**](docs/AuthApi.md#get_providers_krb5_by_id) | **GET** /platform/3/auth/providers/krb5/{ProvidersKrb5Id} | +*AuthApi* | [**get_providers_ldap_by_id**](docs/AuthApi.md#get_providers_ldap_by_id) | **GET** /platform/3/auth/providers/ldap/{ProvidersLdapId} | +*AuthApi* | [**get_providers_local**](docs/AuthApi.md#get_providers_local) | **GET** /platform/1/auth/providers/local | +*AuthApi* | [**get_providers_local_by_id**](docs/AuthApi.md#get_providers_local_by_id) | **GET** /platform/1/auth/providers/local/{ProvidersLocalId} | +*AuthApi* | [**get_providers_nis_by_id**](docs/AuthApi.md#get_providers_nis_by_id) | **GET** /platform/3/auth/providers/nis/{ProvidersNisId} | +*AuthApi* | [**get_providers_summary**](docs/AuthApi.md#get_providers_summary) | **GET** /platform/3/auth/providers/summary | +*AuthApi* | [**get_settings_acls**](docs/AuthApi.md#get_settings_acls) | **GET** /platform/3/auth/settings/acls | +*AuthApi* | [**get_settings_global**](docs/AuthApi.md#get_settings_global) | **GET** /platform/1/auth/settings/global | +*AuthApi* | [**get_settings_krb5_defaults**](docs/AuthApi.md#get_settings_krb5_defaults) | **GET** /platform/1/auth/settings/krb5/defaults | +*AuthApi* | [**get_settings_krb5_domain**](docs/AuthApi.md#get_settings_krb5_domain) | **GET** /platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId} | +*AuthApi* | [**get_settings_krb5_realm**](docs/AuthApi.md#get_settings_krb5_realm) | **GET** /platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId} | +*AuthApi* | [**get_settings_mapping**](docs/AuthApi.md#get_settings_mapping) | **GET** /platform/1/auth/settings/mapping | +*AuthApi* | [**list_auth_groups**](docs/AuthApi.md#list_auth_groups) | **GET** /platform/1/auth/groups | +*AuthApi* | [**list_auth_roles**](docs/AuthApi.md#list_auth_roles) | **GET** /platform/1/auth/roles | +*AuthApi* | [**list_auth_users**](docs/AuthApi.md#list_auth_users) | **GET** /platform/1/auth/users | +*AuthApi* | [**list_providers_ads**](docs/AuthApi.md#list_providers_ads) | **GET** /platform/3/auth/providers/ads | +*AuthApi* | [**list_providers_file**](docs/AuthApi.md#list_providers_file) | **GET** /platform/1/auth/providers/file | +*AuthApi* | [**list_providers_krb5**](docs/AuthApi.md#list_providers_krb5) | **GET** /platform/3/auth/providers/krb5 | +*AuthApi* | [**list_providers_ldap**](docs/AuthApi.md#list_providers_ldap) | **GET** /platform/3/auth/providers/ldap | +*AuthApi* | [**list_providers_nis**](docs/AuthApi.md#list_providers_nis) | **GET** /platform/3/auth/providers/nis | +*AuthApi* | [**list_settings_krb5_domains**](docs/AuthApi.md#list_settings_krb5_domains) | **GET** /platform/1/auth/settings/krb5/domains | +*AuthApi* | [**list_settings_krb5_realms**](docs/AuthApi.md#list_settings_krb5_realms) | **GET** /platform/1/auth/settings/krb5/realms | +*AuthApi* | [**update_auth_group**](docs/AuthApi.md#update_auth_group) | **PUT** /platform/1/auth/groups/{AuthGroupId} | +*AuthApi* | [**update_auth_log_level**](docs/AuthApi.md#update_auth_log_level) | **PUT** /platform/3/auth/log-level | +*AuthApi* | [**update_auth_role**](docs/AuthApi.md#update_auth_role) | **PUT** /platform/1/auth/roles/{AuthRoleId} | +*AuthApi* | [**update_auth_user**](docs/AuthApi.md#update_auth_user) | **PUT** /platform/1/auth/users/{AuthUserId} | +*AuthApi* | [**update_mapping_import**](docs/AuthApi.md#update_mapping_import) | **PUT** /platform/3/auth/mapping/import | +*AuthApi* | [**update_mapping_users_rules**](docs/AuthApi.md#update_mapping_users_rules) | **PUT** /platform/1/auth/mapping/users/rules | +*AuthApi* | [**update_providers_ads_by_id**](docs/AuthApi.md#update_providers_ads_by_id) | **PUT** /platform/3/auth/providers/ads/{ProvidersAdsId} | +*AuthApi* | [**update_providers_file_by_id**](docs/AuthApi.md#update_providers_file_by_id) | **PUT** /platform/1/auth/providers/file/{ProvidersFileId} | +*AuthApi* | [**update_providers_krb5_by_id**](docs/AuthApi.md#update_providers_krb5_by_id) | **PUT** /platform/3/auth/providers/krb5/{ProvidersKrb5Id} | +*AuthApi* | [**update_providers_ldap_by_id**](docs/AuthApi.md#update_providers_ldap_by_id) | **PUT** /platform/3/auth/providers/ldap/{ProvidersLdapId} | +*AuthApi* | [**update_providers_local_by_id**](docs/AuthApi.md#update_providers_local_by_id) | **PUT** /platform/1/auth/providers/local/{ProvidersLocalId} | +*AuthApi* | [**update_providers_nis_by_id**](docs/AuthApi.md#update_providers_nis_by_id) | **PUT** /platform/3/auth/providers/nis/{ProvidersNisId} | +*AuthApi* | [**update_settings_acls**](docs/AuthApi.md#update_settings_acls) | **PUT** /platform/3/auth/settings/acls | +*AuthApi* | [**update_settings_global**](docs/AuthApi.md#update_settings_global) | **PUT** /platform/1/auth/settings/global | +*AuthApi* | [**update_settings_krb5_defaults**](docs/AuthApi.md#update_settings_krb5_defaults) | **PUT** /platform/1/auth/settings/krb5/defaults | +*AuthApi* | [**update_settings_krb5_domain**](docs/AuthApi.md#update_settings_krb5_domain) | **PUT** /platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId} | +*AuthApi* | [**update_settings_krb5_realm**](docs/AuthApi.md#update_settings_krb5_realm) | **PUT** /platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId} | +*AuthApi* | [**update_settings_mapping**](docs/AuthApi.md#update_settings_mapping) | **PUT** /platform/1/auth/settings/mapping | +*AuthGroupsApi* | [**create_group_member**](docs/AuthGroupsApi.md#create_group_member) | **POST** /platform/1/auth/groups/{Group}/members | +*AuthGroupsApi* | [**delete_group_member**](docs/AuthGroupsApi.md#delete_group_member) | **DELETE** /platform/1/auth/groups/{Group}/members/{GroupMemberId} | +*AuthGroupsApi* | [**list_group_members**](docs/AuthGroupsApi.md#list_group_members) | **GET** /platform/1/auth/groups/{Group}/members | +*AuthProvidersApi* | [**get_ads_provider_controllers**](docs/AuthProvidersApi.md#get_ads_provider_controllers) | **GET** /platform/1/auth/providers/ads/{Id}/controllers | +*AuthProvidersApi* | [**get_ads_provider_domain**](docs/AuthProvidersApi.md#get_ads_provider_domain) | **GET** /platform/3/auth/providers/ads/{Id}/domains/{AdsProviderDomainId} | +*AuthProvidersApi* | [**get_ads_provider_domains**](docs/AuthProvidersApi.md#get_ads_provider_domains) | **GET** /platform/3/auth/providers/ads/{Id}/domains | +*AuthProvidersApi* | [**get_ads_provider_search**](docs/AuthProvidersApi.md#get_ads_provider_search) | **GET** /platform/1/auth/providers/ads/{Id}/search | +*AuthRolesApi* | [**create_role_member**](docs/AuthRolesApi.md#create_role_member) | **POST** /platform/1/auth/roles/{Role}/members | +*AuthRolesApi* | [**create_role_privilege**](docs/AuthRolesApi.md#create_role_privilege) | **POST** /platform/1/auth/roles/{Role}/privileges | +*AuthRolesApi* | [**delete_role_member**](docs/AuthRolesApi.md#delete_role_member) | **DELETE** /platform/1/auth/roles/{Role}/members/{RoleMemberId} | +*AuthRolesApi* | [**delete_role_privilege**](docs/AuthRolesApi.md#delete_role_privilege) | **DELETE** /platform/1/auth/roles/{Role}/privileges/{RolePrivilegeId} | +*AuthRolesApi* | [**list_role_members**](docs/AuthRolesApi.md#list_role_members) | **GET** /platform/1/auth/roles/{Role}/members | +*AuthRolesApi* | [**list_role_privileges**](docs/AuthRolesApi.md#list_role_privileges) | **GET** /platform/1/auth/roles/{Role}/privileges | +*AuthUsersApi* | [**create_user_member_of_item**](docs/AuthUsersApi.md#create_user_member_of_item) | **POST** /platform/3/auth/users/{User}/member-of | +*AuthUsersApi* | [**delete_user_member_of_member_of**](docs/AuthUsersApi.md#delete_user_member_of_member_of) | **DELETE** /platform/3/auth/users/{User}/member-of/{UserMemberOfMemberOf} | +*AuthUsersApi* | [**list_user_member_of**](docs/AuthUsersApi.md#list_user_member_of) | **GET** /platform/3/auth/users/{User}/member-of | +*AuthUsersApi* | [**update_user_change_password**](docs/AuthUsersApi.md#update_user_change_password) | **PUT** /platform/3/auth/users/{User}/change-password | +*CloudApi* | [**create_cloud_access_item**](docs/CloudApi.md#create_cloud_access_item) | **POST** /platform/3/cloud/access | +*CloudApi* | [**create_cloud_account**](docs/CloudApi.md#create_cloud_account) | **POST** /platform/3/cloud/accounts | +*CloudApi* | [**create_cloud_job**](docs/CloudApi.md#create_cloud_job) | **POST** /platform/3/cloud/jobs | +*CloudApi* | [**create_cloud_pool**](docs/CloudApi.md#create_cloud_pool) | **POST** /platform/3/cloud/pools | +*CloudApi* | [**create_settings_encryption_key_item**](docs/CloudApi.md#create_settings_encryption_key_item) | **POST** /platform/3/cloud/settings/encryption-key | +*CloudApi* | [**create_settings_reporting_eula_item**](docs/CloudApi.md#create_settings_reporting_eula_item) | **POST** /platform/3/cloud/settings/reporting-eula | +*CloudApi* | [**delete_cloud_access_guid**](docs/CloudApi.md#delete_cloud_access_guid) | **DELETE** /platform/3/cloud/access/{CloudAccessGuid} | +*CloudApi* | [**delete_cloud_account**](docs/CloudApi.md#delete_cloud_account) | **DELETE** /platform/3/cloud/accounts/{CloudAccountId} | +*CloudApi* | [**delete_cloud_pool**](docs/CloudApi.md#delete_cloud_pool) | **DELETE** /platform/3/cloud/pools/{CloudPoolId} | +*CloudApi* | [**delete_settings_reporting_eula**](docs/CloudApi.md#delete_settings_reporting_eula) | **DELETE** /platform/3/cloud/settings/reporting-eula | +*CloudApi* | [**get_cloud_access_guid**](docs/CloudApi.md#get_cloud_access_guid) | **GET** /platform/3/cloud/access/{CloudAccessGuid} | +*CloudApi* | [**get_cloud_account**](docs/CloudApi.md#get_cloud_account) | **GET** /platform/3/cloud/accounts/{CloudAccountId} | +*CloudApi* | [**get_cloud_job**](docs/CloudApi.md#get_cloud_job) | **GET** /platform/3/cloud/jobs/{CloudJobId} | +*CloudApi* | [**get_cloud_jobs_file**](docs/CloudApi.md#get_cloud_jobs_file) | **GET** /platform/3/cloud/jobs-files/{CloudJobsFileId} | +*CloudApi* | [**get_cloud_pool**](docs/CloudApi.md#get_cloud_pool) | **GET** /platform/3/cloud/pools/{CloudPoolId} | +*CloudApi* | [**get_cloud_settings**](docs/CloudApi.md#get_cloud_settings) | **GET** /platform/3/cloud/settings | +*CloudApi* | [**list_cloud_access**](docs/CloudApi.md#list_cloud_access) | **GET** /platform/3/cloud/access | +*CloudApi* | [**list_cloud_accounts**](docs/CloudApi.md#list_cloud_accounts) | **GET** /platform/3/cloud/accounts | +*CloudApi* | [**list_cloud_jobs**](docs/CloudApi.md#list_cloud_jobs) | **GET** /platform/3/cloud/jobs | +*CloudApi* | [**list_cloud_pools**](docs/CloudApi.md#list_cloud_pools) | **GET** /platform/3/cloud/pools | +*CloudApi* | [**list_settings_reporting_eula**](docs/CloudApi.md#list_settings_reporting_eula) | **GET** /platform/3/cloud/settings/reporting-eula | +*CloudApi* | [**update_cloud_account**](docs/CloudApi.md#update_cloud_account) | **PUT** /platform/3/cloud/accounts/{CloudAccountId} | +*CloudApi* | [**update_cloud_job**](docs/CloudApi.md#update_cloud_job) | **PUT** /platform/3/cloud/jobs/{CloudJobId} | +*CloudApi* | [**update_cloud_pool**](docs/CloudApi.md#update_cloud_pool) | **PUT** /platform/3/cloud/pools/{CloudPoolId} | +*CloudApi* | [**update_cloud_settings**](docs/CloudApi.md#update_cloud_settings) | **PUT** /platform/3/cloud/settings | +*ClusterApi* | [**create_cluster_add_node_item**](docs/ClusterApi.md#create_cluster_add_node_item) | **POST** /platform/3/cluster/add-node | +*ClusterApi* | [**get_cluster_config**](docs/ClusterApi.md#get_cluster_config) | **GET** /platform/3/cluster/config | +*ClusterApi* | [**get_cluster_email**](docs/ClusterApi.md#get_cluster_email) | **GET** /platform/1/cluster/email | +*ClusterApi* | [**get_cluster_identity**](docs/ClusterApi.md#get_cluster_identity) | **GET** /platform/3/cluster/identity | +*ClusterApi* | [**get_cluster_node**](docs/ClusterApi.md#get_cluster_node) | **GET** /platform/3/cluster/nodes/{ClusterNodeId} | +*ClusterApi* | [**get_cluster_nodes**](docs/ClusterApi.md#get_cluster_nodes) | **GET** /platform/3/cluster/nodes | +*ClusterApi* | [**get_cluster_nodes_available**](docs/ClusterApi.md#get_cluster_nodes_available) | **GET** /platform/3/cluster/nodes-available | +*ClusterApi* | [**get_cluster_owner**](docs/ClusterApi.md#get_cluster_owner) | **GET** /platform/1/cluster/owner | +*ClusterApi* | [**get_cluster_statfs**](docs/ClusterApi.md#get_cluster_statfs) | **GET** /platform/1/cluster/statfs | +*ClusterApi* | [**get_cluster_time**](docs/ClusterApi.md#get_cluster_time) | **GET** /platform/3/cluster/time | +*ClusterApi* | [**get_cluster_timezone**](docs/ClusterApi.md#get_cluster_timezone) | **GET** /platform/3/cluster/timezone | +*ClusterApi* | [**get_cluster_version**](docs/ClusterApi.md#get_cluster_version) | **GET** /platform/3/cluster/version | +*ClusterApi* | [**get_timezone_region**](docs/ClusterApi.md#get_timezone_region) | **GET** /platform/3/cluster/timezone/regions/{TimezoneRegionId} | +*ClusterApi* | [**get_timezone_settings**](docs/ClusterApi.md#get_timezone_settings) | **GET** /platform/3/cluster/timezone/settings | +*ClusterApi* | [**update_cluster_email**](docs/ClusterApi.md#update_cluster_email) | **PUT** /platform/1/cluster/email | +*ClusterApi* | [**update_cluster_identity**](docs/ClusterApi.md#update_cluster_identity) | **PUT** /platform/3/cluster/identity | +*ClusterApi* | [**update_cluster_node**](docs/ClusterApi.md#update_cluster_node) | **PUT** /platform/3/cluster/nodes/{ClusterNodeId} | +*ClusterApi* | [**update_cluster_owner**](docs/ClusterApi.md#update_cluster_owner) | **PUT** /platform/1/cluster/owner | +*ClusterApi* | [**update_cluster_time**](docs/ClusterApi.md#update_cluster_time) | **PUT** /platform/3/cluster/time | +*ClusterApi* | [**update_cluster_timezone**](docs/ClusterApi.md#update_cluster_timezone) | **PUT** /platform/3/cluster/timezone | +*ClusterApi* | [**update_timezone_settings**](docs/ClusterApi.md#update_timezone_settings) | **PUT** /platform/3/cluster/timezone/settings | +*ClusterNodesApi* | [**create_drives_drive_add_item**](docs/ClusterNodesApi.md#create_drives_drive_add_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/add | +*ClusterNodesApi* | [**create_drives_drive_firmware_update_item**](docs/ClusterNodesApi.md#create_drives_drive_firmware_update_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware/update | +*ClusterNodesApi* | [**create_drives_drive_format_item**](docs/ClusterNodesApi.md#create_drives_drive_format_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/format | +*ClusterNodesApi* | [**create_drives_drive_purpose_item**](docs/ClusterNodesApi.md#create_drives_drive_purpose_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/purpose | +*ClusterNodesApi* | [**create_drives_drive_smartfail_item**](docs/ClusterNodesApi.md#create_drives_drive_smartfail_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/smartfail | +*ClusterNodesApi* | [**create_drives_drive_stopfail_item**](docs/ClusterNodesApi.md#create_drives_drive_stopfail_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/stopfail | +*ClusterNodesApi* | [**create_drives_drive_suspend_item**](docs/ClusterNodesApi.md#create_drives_drive_suspend_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/suspend | +*ClusterNodesApi* | [**create_node_reboot_item**](docs/ClusterNodesApi.md#create_node_reboot_item) | **POST** /platform/3/cluster/nodes/{Lnn}/reboot | +*ClusterNodesApi* | [**create_node_shutdown_item**](docs/ClusterNodesApi.md#create_node_shutdown_item) | **POST** /platform/3/cluster/nodes/{Lnn}/shutdown | +*ClusterNodesApi* | [**get_drives_drive_firmware**](docs/ClusterNodesApi.md#get_drives_drive_firmware) | **GET** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware | +*ClusterNodesApi* | [**get_node_drive**](docs/ClusterNodesApi.md#get_node_drive) | **GET** /platform/3/cluster/nodes/{Lnn}/drives/{NodeDriveId} | +*ClusterNodesApi* | [**get_node_drives**](docs/ClusterNodesApi.md#get_node_drives) | **GET** /platform/3/cluster/nodes/{Lnn}/drives | +*ClusterNodesApi* | [**get_node_drives_purposelist**](docs/ClusterNodesApi.md#get_node_drives_purposelist) | **GET** /platform/3/cluster/nodes/{Lnn}/drives-purposelist | +*ClusterNodesApi* | [**get_node_hardware**](docs/ClusterNodesApi.md#get_node_hardware) | **GET** /platform/3/cluster/nodes/{Lnn}/hardware | +*ClusterNodesApi* | [**get_node_partitions**](docs/ClusterNodesApi.md#get_node_partitions) | **GET** /platform/3/cluster/nodes/{Lnn}/partitions | +*ClusterNodesApi* | [**get_node_sensors**](docs/ClusterNodesApi.md#get_node_sensors) | **GET** /platform/3/cluster/nodes/{Lnn}/sensors | +*ClusterNodesApi* | [**get_node_state**](docs/ClusterNodesApi.md#get_node_state) | **GET** /platform/3/cluster/nodes/{Lnn}/state | +*ClusterNodesApi* | [**get_node_state_readonly**](docs/ClusterNodesApi.md#get_node_state_readonly) | **GET** /platform/3/cluster/nodes/{Lnn}/state/readonly | +*ClusterNodesApi* | [**get_node_state_servicelight**](docs/ClusterNodesApi.md#get_node_state_servicelight) | **GET** /platform/3/cluster/nodes/{Lnn}/state/servicelight | +*ClusterNodesApi* | [**get_node_state_smartfail**](docs/ClusterNodesApi.md#get_node_state_smartfail) | **GET** /platform/3/cluster/nodes/{Lnn}/state/smartfail | +*ClusterNodesApi* | [**get_node_status**](docs/ClusterNodesApi.md#get_node_status) | **GET** /platform/3/cluster/nodes/{Lnn}/status | +*ClusterNodesApi* | [**get_node_status_batterystatus**](docs/ClusterNodesApi.md#get_node_status_batterystatus) | **GET** /platform/3/cluster/nodes/{Lnn}/status/batterystatus | +*ClusterNodesApi* | [**list_drives_drive_firmware_update**](docs/ClusterNodesApi.md#list_drives_drive_firmware_update) | **GET** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware/update | +*ClusterNodesApi* | [**update_node_state_readonly**](docs/ClusterNodesApi.md#update_node_state_readonly) | **PUT** /platform/3/cluster/nodes/{Lnn}/state/readonly | +*ClusterNodesApi* | [**update_node_state_servicelight**](docs/ClusterNodesApi.md#update_node_state_servicelight) | **PUT** /platform/3/cluster/nodes/{Lnn}/state/servicelight | +*ClusterNodesApi* | [**update_node_state_smartfail**](docs/ClusterNodesApi.md#update_node_state_smartfail) | **PUT** /platform/3/cluster/nodes/{Lnn}/state/smartfail | +*DebugApi* | [**delete_debug_stats**](docs/DebugApi.md#delete_debug_stats) | **DELETE** /platform/1/debug/stats | +*DebugApi* | [**get_debug_stats**](docs/DebugApi.md#get_debug_stats) | **GET** /platform/1/debug/stats | +*DedupeApi* | [**get_dedupe_dedupe_summary**](docs/DedupeApi.md#get_dedupe_dedupe_summary) | **GET** /platform/1/dedupe/dedupe-summary | +*DedupeApi* | [**get_dedupe_report**](docs/DedupeApi.md#get_dedupe_report) | **GET** /platform/1/dedupe/reports/{DedupeReportId} | +*DedupeApi* | [**get_dedupe_reports**](docs/DedupeApi.md#get_dedupe_reports) | **GET** /platform/1/dedupe/reports | +*DedupeApi* | [**get_dedupe_settings**](docs/DedupeApi.md#get_dedupe_settings) | **GET** /platform/1/dedupe/settings | +*DedupeApi* | [**update_dedupe_settings**](docs/DedupeApi.md#update_dedupe_settings) | **PUT** /platform/1/dedupe/settings | +*EventApi* | [**create_event_alert_condition**](docs/EventApi.md#create_event_alert_condition) | **POST** /platform/3/event/alert-conditions | +*EventApi* | [**create_event_channel**](docs/EventApi.md#create_event_channel) | **POST** /platform/3/event/channels | +*EventApi* | [**create_event_event**](docs/EventApi.md#create_event_event) | **POST** /platform/3/event/events | +*EventApi* | [**delete_event_alert_condition**](docs/EventApi.md#delete_event_alert_condition) | **DELETE** /platform/3/event/alert-conditions/{EventAlertConditionId} | +*EventApi* | [**delete_event_alert_conditions**](docs/EventApi.md#delete_event_alert_conditions) | **DELETE** /platform/3/event/alert-conditions | +*EventApi* | [**delete_event_channel**](docs/EventApi.md#delete_event_channel) | **DELETE** /platform/3/event/channels/{EventChannelId} | +*EventApi* | [**get_event_alert_condition**](docs/EventApi.md#get_event_alert_condition) | **GET** /platform/3/event/alert-conditions/{EventAlertConditionId} | +*EventApi* | [**get_event_categories**](docs/EventApi.md#get_event_categories) | **GET** /platform/3/event/categories | +*EventApi* | [**get_event_category**](docs/EventApi.md#get_event_category) | **GET** /platform/3/event/categories/{EventCategoryId} | +*EventApi* | [**get_event_channel**](docs/EventApi.md#get_event_channel) | **GET** /platform/3/event/channels/{EventChannelId} | +*EventApi* | [**get_event_eventgroup_definition**](docs/EventApi.md#get_event_eventgroup_definition) | **GET** /platform/3/event/eventgroup-definitions/{EventEventgroupDefinitionId} | +*EventApi* | [**get_event_eventgroup_definitions**](docs/EventApi.md#get_event_eventgroup_definitions) | **GET** /platform/3/event/eventgroup-definitions | +*EventApi* | [**get_event_eventgroup_occurrence**](docs/EventApi.md#get_event_eventgroup_occurrence) | **GET** /platform/3/event/eventgroup-occurrences/{EventEventgroupOccurrenceId} | +*EventApi* | [**get_event_eventgroup_occurrences**](docs/EventApi.md#get_event_eventgroup_occurrences) | **GET** /platform/3/event/eventgroup-occurrences | +*EventApi* | [**get_event_eventlist**](docs/EventApi.md#get_event_eventlist) | **GET** /platform/3/event/eventlists/{EventEventlistId} | +*EventApi* | [**get_event_eventlists**](docs/EventApi.md#get_event_eventlists) | **GET** /platform/3/event/eventlists | +*EventApi* | [**get_event_settings**](docs/EventApi.md#get_event_settings) | **GET** /platform/3/event/settings | +*EventApi* | [**list_event_alert_conditions**](docs/EventApi.md#list_event_alert_conditions) | **GET** /platform/3/event/alert-conditions | +*EventApi* | [**list_event_channels**](docs/EventApi.md#list_event_channels) | **GET** /platform/3/event/channels | +*EventApi* | [**update_event_alert_condition**](docs/EventApi.md#update_event_alert_condition) | **PUT** /platform/3/event/alert-conditions/{EventAlertConditionId} | +*EventApi* | [**update_event_channel**](docs/EventApi.md#update_event_channel) | **PUT** /platform/3/event/channels/{EventChannelId} | +*EventApi* | [**update_event_eventgroup_occurrence**](docs/EventApi.md#update_event_eventgroup_occurrence) | **PUT** /platform/3/event/eventgroup-occurrences/{EventEventgroupOccurrenceId} | +*EventApi* | [**update_event_eventgroup_occurrences**](docs/EventApi.md#update_event_eventgroup_occurrences) | **PUT** /platform/3/event/eventgroup-occurrences | +*EventApi* | [**update_event_settings**](docs/EventApi.md#update_event_settings) | **PUT** /platform/3/event/settings | +*FileFilterApi* | [**get_file_filter_settings**](docs/FileFilterApi.md#get_file_filter_settings) | **GET** /platform/3/file-filter/settings | +*FileFilterApi* | [**update_file_filter_settings**](docs/FileFilterApi.md#update_file_filter_settings) | **PUT** /platform/3/file-filter/settings | +*FilepoolApi* | [**create_filepool_policy**](docs/FilepoolApi.md#create_filepool_policy) | **POST** /platform/1/filepool/policies | +*FilepoolApi* | [**delete_filepool_policy**](docs/FilepoolApi.md#delete_filepool_policy) | **DELETE** /platform/1/filepool/policies/{FilepoolPolicyId} | +*FilepoolApi* | [**get_filepool_default_policy**](docs/FilepoolApi.md#get_filepool_default_policy) | **GET** /platform/1/filepool/default-policy | +*FilepoolApi* | [**get_filepool_policy**](docs/FilepoolApi.md#get_filepool_policy) | **GET** /platform/1/filepool/policies/{FilepoolPolicyId} | +*FilepoolApi* | [**get_filepool_template**](docs/FilepoolApi.md#get_filepool_template) | **GET** /platform/1/filepool/templates/{FilepoolTemplateId} | +*FilepoolApi* | [**get_filepool_templates**](docs/FilepoolApi.md#get_filepool_templates) | **GET** /platform/1/filepool/templates | +*FilepoolApi* | [**list_filepool_policies**](docs/FilepoolApi.md#list_filepool_policies) | **GET** /platform/1/filepool/policies | +*FilepoolApi* | [**update_filepool_default_policy**](docs/FilepoolApi.md#update_filepool_default_policy) | **PUT** /platform/1/filepool/default-policy | +*FilepoolApi* | [**update_filepool_policy**](docs/FilepoolApi.md#update_filepool_policy) | **PUT** /platform/1/filepool/policies/{FilepoolPolicyId} | +*FilesystemApi* | [**get_settings_access_time**](docs/FilesystemApi.md#get_settings_access_time) | **GET** /platform/1/filesystem/settings/access-time | +*FilesystemApi* | [**update_settings_access_time**](docs/FilesystemApi.md#update_settings_access_time) | **PUT** /platform/1/filesystem/settings/access-time | +*FsaApi* | [**delete_fsa_result**](docs/FsaApi.md#delete_fsa_result) | **DELETE** /platform/3/fsa/results/{FsaResultId} | +*FsaApi* | [**delete_fsa_settings**](docs/FsaApi.md#delete_fsa_settings) | **DELETE** /platform/1/fsa/settings | +*FsaApi* | [**get_fsa_result**](docs/FsaApi.md#get_fsa_result) | **GET** /platform/3/fsa/results/{FsaResultId} | +*FsaApi* | [**get_fsa_results**](docs/FsaApi.md#get_fsa_results) | **GET** /platform/3/fsa/results | +*FsaApi* | [**get_fsa_settings**](docs/FsaApi.md#get_fsa_settings) | **GET** /platform/1/fsa/settings | +*FsaApi* | [**update_fsa_result**](docs/FsaApi.md#update_fsa_result) | **PUT** /platform/3/fsa/results/{FsaResultId} | +*FsaApi* | [**update_fsa_settings**](docs/FsaApi.md#update_fsa_settings) | **PUT** /platform/1/fsa/settings | +*FsaResultsApi* | [**get_result_histogram**](docs/FsaResultsApi.md#get_result_histogram) | **GET** /platform/3/fsa/results/{Id}/histogram | +*FsaResultsApi* | [**get_result_histogram_stat**](docs/FsaResultsApi.md#get_result_histogram_stat) | **GET** /platform/3/fsa/results/{Id}/histogram/{ResultHistogramStat} | +*FsaResultsApi* | [**get_result_top_dir**](docs/FsaResultsApi.md#get_result_top_dir) | **GET** /platform/3/fsa/results/{Id}/top-dirs/{ResultTopDirId} | +*FsaResultsApi* | [**get_result_top_dirs**](docs/FsaResultsApi.md#get_result_top_dirs) | **GET** /platform/3/fsa/results/{Id}/top-dirs | +*FsaResultsApi* | [**get_result_top_file**](docs/FsaResultsApi.md#get_result_top_file) | **GET** /platform/3/fsa/results/{Id}/top-files/{ResultTopFileId} | +*FsaResultsApi* | [**get_result_top_files**](docs/FsaResultsApi.md#get_result_top_files) | **GET** /platform/3/fsa/results/{Id}/top-files | +*HardeningApi* | [**create_hardening_apply_item**](docs/HardeningApi.md#create_hardening_apply_item) | **POST** /platform/3/hardening/apply | +*HardeningApi* | [**create_hardening_resolve_item**](docs/HardeningApi.md#create_hardening_resolve_item) | **POST** /platform/3/hardening/resolve | +*HardeningApi* | [**create_hardening_revert_item**](docs/HardeningApi.md#create_hardening_revert_item) | **POST** /platform/3/hardening/revert | +*HardeningApi* | [**get_hardening_state**](docs/HardeningApi.md#get_hardening_state) | **GET** /platform/3/hardening/state | +*HardeningApi* | [**get_hardening_status**](docs/HardeningApi.md#get_hardening_status) | **GET** /platform/3/hardening/status | +*HardwareApi* | [**create_hardware_tape_name**](docs/HardwareApi.md#create_hardware_tape_name) | **POST** /platform/3/hardware/tape/{HardwareTapeName} | +*HardwareApi* | [**delete_hardware_tape_name**](docs/HardwareApi.md#delete_hardware_tape_name) | **DELETE** /platform/3/hardware/tape/{HardwareTapeName} | +*HardwareApi* | [**get_hardware_fcport**](docs/HardwareApi.md#get_hardware_fcport) | **GET** /platform/3/hardware/fcports/{HardwareFcportId} | +*HardwareApi* | [**get_hardware_tapes**](docs/HardwareApi.md#get_hardware_tapes) | **GET** /platform/3/hardware/tapes | +*HardwareApi* | [**update_hardware_fcport**](docs/HardwareApi.md#update_hardware_fcport) | **PUT** /platform/3/hardware/fcports/{HardwareFcportId} | +*HardwareApi* | [**update_hardware_tape_name**](docs/HardwareApi.md#update_hardware_tape_name) | **PUT** /platform/3/hardware/tape/{HardwareTapeName} | +*JobApi* | [**create_job_job**](docs/JobApi.md#create_job_job) | **POST** /platform/3/job/jobs | +*JobApi* | [**create_job_policy**](docs/JobApi.md#create_job_policy) | **POST** /platform/1/job/policies | +*JobApi* | [**delete_job_policy**](docs/JobApi.md#delete_job_policy) | **DELETE** /platform/1/job/policies/{JobPolicyId} | +*JobApi* | [**get_job_events**](docs/JobApi.md#get_job_events) | **GET** /platform/3/job/events | +*JobApi* | [**get_job_job**](docs/JobApi.md#get_job_job) | **GET** /platform/3/job/jobs/{JobJobId} | +*JobApi* | [**get_job_job_summary**](docs/JobApi.md#get_job_job_summary) | **GET** /platform/1/job/job-summary | +*JobApi* | [**get_job_policy**](docs/JobApi.md#get_job_policy) | **GET** /platform/1/job/policies/{JobPolicyId} | +*JobApi* | [**get_job_recent**](docs/JobApi.md#get_job_recent) | **GET** /platform/3/job/recent | +*JobApi* | [**get_job_reports**](docs/JobApi.md#get_job_reports) | **GET** /platform/3/job/reports | +*JobApi* | [**get_job_statistics**](docs/JobApi.md#get_job_statistics) | **GET** /platform/1/job/statistics | +*JobApi* | [**get_job_type**](docs/JobApi.md#get_job_type) | **GET** /platform/1/job/types/{JobTypeId} | +*JobApi* | [**get_job_types**](docs/JobApi.md#get_job_types) | **GET** /platform/1/job/types | +*JobApi* | [**list_job_jobs**](docs/JobApi.md#list_job_jobs) | **GET** /platform/3/job/jobs | +*JobApi* | [**list_job_policies**](docs/JobApi.md#list_job_policies) | **GET** /platform/1/job/policies | +*JobApi* | [**update_job_job**](docs/JobApi.md#update_job_job) | **PUT** /platform/3/job/jobs/{JobJobId} | +*JobApi* | [**update_job_policy**](docs/JobApi.md#update_job_policy) | **PUT** /platform/1/job/policies/{JobPolicyId} | +*JobApi* | [**update_job_type**](docs/JobApi.md#update_job_type) | **PUT** /platform/1/job/types/{JobTypeId} | +*LicenseApi* | [**create_license_license**](docs/LicenseApi.md#create_license_license) | **POST** /platform/1/license/licenses | +*LicenseApi* | [**get_license_license**](docs/LicenseApi.md#get_license_license) | **GET** /platform/1/license/licenses/{LicenseLicenseId} | +*LicenseApi* | [**list_license_licenses**](docs/LicenseApi.md#list_license_licenses) | **GET** /platform/1/license/licenses | +*LocalApi* | [**get_cluster_time**](docs/LocalApi.md#get_cluster_time) | **GET** /platform/3/local/cluster/time | +*NetworkApi* | [**create_dnscache_flush_item**](docs/NetworkApi.md#create_dnscache_flush_item) | **POST** /platform/3/network/dnscache/flush | +*NetworkApi* | [**create_network_groupnet**](docs/NetworkApi.md#create_network_groupnet) | **POST** /platform/3/network/groupnets | +*NetworkApi* | [**create_network_sc_rebalance_all_item**](docs/NetworkApi.md#create_network_sc_rebalance_all_item) | **POST** /platform/3/network/sc-rebalance-all | +*NetworkApi* | [**delete_network_groupnet**](docs/NetworkApi.md#delete_network_groupnet) | **DELETE** /platform/3/network/groupnets/{NetworkGroupnetId} | +*NetworkApi* | [**get_network_dnscache**](docs/NetworkApi.md#get_network_dnscache) | **GET** /platform/3/network/dnscache | +*NetworkApi* | [**get_network_external**](docs/NetworkApi.md#get_network_external) | **GET** /platform/3/network/external | +*NetworkApi* | [**get_network_groupnet**](docs/NetworkApi.md#get_network_groupnet) | **GET** /platform/3/network/groupnets/{NetworkGroupnetId} | +*NetworkApi* | [**get_network_interfaces**](docs/NetworkApi.md#get_network_interfaces) | **GET** /platform/3/network/interfaces | +*NetworkApi* | [**get_network_pools**](docs/NetworkApi.md#get_network_pools) | **GET** /platform/3/network/pools | +*NetworkApi* | [**get_network_rules**](docs/NetworkApi.md#get_network_rules) | **GET** /platform/3/network/rules | +*NetworkApi* | [**get_network_subnets**](docs/NetworkApi.md#get_network_subnets) | **GET** /platform/3/network/subnets | +*NetworkApi* | [**list_network_groupnets**](docs/NetworkApi.md#list_network_groupnets) | **GET** /platform/3/network/groupnets | +*NetworkApi* | [**update_network_dnscache**](docs/NetworkApi.md#update_network_dnscache) | **PUT** /platform/3/network/dnscache | +*NetworkApi* | [**update_network_external**](docs/NetworkApi.md#update_network_external) | **PUT** /platform/3/network/external | +*NetworkApi* | [**update_network_groupnet**](docs/NetworkApi.md#update_network_groupnet) | **PUT** /platform/3/network/groupnets/{NetworkGroupnetId} | +*NetworkGroupnetsApi* | [**create_groupnet_subnet**](docs/NetworkGroupnetsApi.md#create_groupnet_subnet) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets | +*NetworkGroupnetsApi* | [**create_subnets_subnet_pool**](docs/NetworkGroupnetsApi.md#create_subnets_subnet_pool) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools | +*NetworkGroupnetsApi* | [**delete_groupnet_subnet**](docs/NetworkGroupnetsApi.md#delete_groupnet_subnet) | **DELETE** /platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId} | +*NetworkGroupnetsApi* | [**delete_subnets_subnet_pool**](docs/NetworkGroupnetsApi.md#delete_subnets_subnet_pool) | **DELETE** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId} | +*NetworkGroupnetsApi* | [**get_groupnet_subnet**](docs/NetworkGroupnetsApi.md#get_groupnet_subnet) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId} | +*NetworkGroupnetsApi* | [**get_subnets_subnet_pool**](docs/NetworkGroupnetsApi.md#get_subnets_subnet_pool) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId} | +*NetworkGroupnetsApi* | [**list_groupnet_subnets**](docs/NetworkGroupnetsApi.md#list_groupnet_subnets) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets | +*NetworkGroupnetsApi* | [**list_subnets_subnet_pools**](docs/NetworkGroupnetsApi.md#list_subnets_subnet_pools) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools | +*NetworkGroupnetsApi* | [**update_groupnet_subnet**](docs/NetworkGroupnetsApi.md#update_groupnet_subnet) | **PUT** /platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId} | +*NetworkGroupnetsApi* | [**update_subnets_subnet_pool**](docs/NetworkGroupnetsApi.md#update_subnets_subnet_pool) | **PUT** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId} | +*NetworkGroupnetsSubnetsApi* | [**create_pools_pool_rebalance_ip**](docs/NetworkGroupnetsSubnetsApi.md#create_pools_pool_rebalance_ip) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rebalance-ips | +*NetworkGroupnetsSubnetsApi* | [**create_pools_pool_rule**](docs/NetworkGroupnetsSubnetsApi.md#create_pools_pool_rule) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules | +*NetworkGroupnetsSubnetsApi* | [**create_pools_pool_sc_resume_node**](docs/NetworkGroupnetsSubnetsApi.md#create_pools_pool_sc_resume_node) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/sc-resume-nodes | +*NetworkGroupnetsSubnetsApi* | [**create_pools_pool_sc_suspend_node**](docs/NetworkGroupnetsSubnetsApi.md#create_pools_pool_sc_suspend_node) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/sc-suspend-nodes | +*NetworkGroupnetsSubnetsApi* | [**delete_pools_pool_rule**](docs/NetworkGroupnetsSubnetsApi.md#delete_pools_pool_rule) | **DELETE** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId} | +*NetworkGroupnetsSubnetsApi* | [**get_pools_pool_interfaces**](docs/NetworkGroupnetsSubnetsApi.md#get_pools_pool_interfaces) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/interfaces | +*NetworkGroupnetsSubnetsApi* | [**get_pools_pool_rule**](docs/NetworkGroupnetsSubnetsApi.md#get_pools_pool_rule) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId} | +*NetworkGroupnetsSubnetsApi* | [**list_pools_pool_rules**](docs/NetworkGroupnetsSubnetsApi.md#list_pools_pool_rules) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules | +*NetworkGroupnetsSubnetsApi* | [**update_pools_pool_rule**](docs/NetworkGroupnetsSubnetsApi.md#update_pools_pool_rule) | **PUT** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId} | +*ProtocolsApi* | [**create_hdfs_proxyuser**](docs/ProtocolsApi.md#create_hdfs_proxyuser) | **POST** /platform/1/protocols/hdfs/proxyusers | +*ProtocolsApi* | [**create_hdfs_rack**](docs/ProtocolsApi.md#create_hdfs_rack) | **POST** /platform/1/protocols/hdfs/racks | +*ProtocolsApi* | [**create_ndmp_user**](docs/ProtocolsApi.md#create_ndmp_user) | **POST** /platform/3/protocols/ndmp/users | +*ProtocolsApi* | [**create_nfs_aliase**](docs/ProtocolsApi.md#create_nfs_aliase) | **POST** /platform/2/protocols/nfs/aliases | +*ProtocolsApi* | [**create_nfs_export**](docs/ProtocolsApi.md#create_nfs_export) | **POST** /platform/2/protocols/nfs/exports | +*ProtocolsApi* | [**create_nfs_netgroup_check_item**](docs/ProtocolsApi.md#create_nfs_netgroup_check_item) | **POST** /platform/3/protocols/nfs/netgroup/check | +*ProtocolsApi* | [**create_nfs_netgroup_flush_item**](docs/ProtocolsApi.md#create_nfs_netgroup_flush_item) | **POST** /platform/3/protocols/nfs/netgroup/flush | +*ProtocolsApi* | [**create_nfs_nlm_sessions_check_item**](docs/ProtocolsApi.md#create_nfs_nlm_sessions_check_item) | **POST** /platform/3/protocols/nfs/nlm/sessions-check | +*ProtocolsApi* | [**create_nfs_reload_item**](docs/ProtocolsApi.md#create_nfs_reload_item) | **POST** /platform/3/protocols/nfs/reload | +*ProtocolsApi* | [**create_ntp_server**](docs/ProtocolsApi.md#create_ntp_server) | **POST** /platform/3/protocols/ntp/servers | +*ProtocolsApi* | [**create_smb_log_level_filter**](docs/ProtocolsApi.md#create_smb_log_level_filter) | **POST** /platform/3/protocols/smb/log-level/filters | +*ProtocolsApi* | [**create_smb_share**](docs/ProtocolsApi.md#create_smb_share) | **POST** /platform/3/protocols/smb/shares | +*ProtocolsApi* | [**create_swift_account**](docs/ProtocolsApi.md#create_swift_account) | **POST** /platform/3/protocols/swift/accounts | +*ProtocolsApi* | [**delete_hdfs_proxyuser**](docs/ProtocolsApi.md#delete_hdfs_proxyuser) | **DELETE** /platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId} | +*ProtocolsApi* | [**delete_hdfs_rack**](docs/ProtocolsApi.md#delete_hdfs_rack) | **DELETE** /platform/1/protocols/hdfs/racks/{HdfsRackId} | +*ProtocolsApi* | [**delete_ndmp_user**](docs/ProtocolsApi.md#delete_ndmp_user) | **DELETE** /platform/3/protocols/ndmp/users/{NdmpUserId} | +*ProtocolsApi* | [**delete_nfs_aliase**](docs/ProtocolsApi.md#delete_nfs_aliase) | **DELETE** /platform/2/protocols/nfs/aliases/{NfsAliaseId} | +*ProtocolsApi* | [**delete_nfs_export**](docs/ProtocolsApi.md#delete_nfs_export) | **DELETE** /platform/2/protocols/nfs/exports/{NfsExportId} | +*ProtocolsApi* | [**delete_nfs_nlm_session**](docs/ProtocolsApi.md#delete_nfs_nlm_session) | **DELETE** /platform/3/protocols/nfs/nlm/sessions/{NfsNlmSessionId} | +*ProtocolsApi* | [**delete_ntp_server**](docs/ProtocolsApi.md#delete_ntp_server) | **DELETE** /platform/3/protocols/ntp/servers/{NtpServerId} | +*ProtocolsApi* | [**delete_ntp_servers**](docs/ProtocolsApi.md#delete_ntp_servers) | **DELETE** /platform/3/protocols/ntp/servers | +*ProtocolsApi* | [**delete_smb_log_level_filter**](docs/ProtocolsApi.md#delete_smb_log_level_filter) | **DELETE** /platform/3/protocols/smb/log-level/filters/{SmbLogLevelFilterId} | +*ProtocolsApi* | [**delete_smb_log_level_filters**](docs/ProtocolsApi.md#delete_smb_log_level_filters) | **DELETE** /platform/3/protocols/smb/log-level/filters | +*ProtocolsApi* | [**delete_smb_openfile**](docs/ProtocolsApi.md#delete_smb_openfile) | **DELETE** /platform/1/protocols/smb/openfiles/{SmbOpenfileId} | +*ProtocolsApi* | [**delete_smb_session**](docs/ProtocolsApi.md#delete_smb_session) | **DELETE** /platform/1/protocols/smb/sessions/{SmbSessionId} | +*ProtocolsApi* | [**delete_smb_sessions_computer_user**](docs/ProtocolsApi.md#delete_smb_sessions_computer_user) | **DELETE** /platform/1/protocols/smb/sessions/{Computer}/{SmbSessionsComputerUser} | +*ProtocolsApi* | [**delete_smb_share**](docs/ProtocolsApi.md#delete_smb_share) | **DELETE** /platform/3/protocols/smb/shares/{SmbShareId} | +*ProtocolsApi* | [**delete_smb_shares**](docs/ProtocolsApi.md#delete_smb_shares) | **DELETE** /platform/3/protocols/smb/shares | +*ProtocolsApi* | [**delete_swift_account**](docs/ProtocolsApi.md#delete_swift_account) | **DELETE** /platform/3/protocols/swift/accounts/{SwiftAccountId} | +*ProtocolsApi* | [**get_ftp_settings**](docs/ProtocolsApi.md#get_ftp_settings) | **GET** /platform/3/protocols/ftp/settings | +*ProtocolsApi* | [**get_hdfs_log_level**](docs/ProtocolsApi.md#get_hdfs_log_level) | **GET** /platform/3/protocols/hdfs/log-level | +*ProtocolsApi* | [**get_hdfs_proxyuser**](docs/ProtocolsApi.md#get_hdfs_proxyuser) | **GET** /platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId} | +*ProtocolsApi* | [**get_hdfs_rack**](docs/ProtocolsApi.md#get_hdfs_rack) | **GET** /platform/1/protocols/hdfs/racks/{HdfsRackId} | +*ProtocolsApi* | [**get_hdfs_settings**](docs/ProtocolsApi.md#get_hdfs_settings) | **GET** /platform/3/protocols/hdfs/settings | +*ProtocolsApi* | [**get_http_settings**](docs/ProtocolsApi.md#get_http_settings) | **GET** /platform/3/protocols/http/settings | +*ProtocolsApi* | [**get_ndmp_contexts_bre**](docs/ProtocolsApi.md#get_ndmp_contexts_bre) | **GET** /platform/3/protocols/ndmp/contexts/bre | +*ProtocolsApi* | [**get_ndmp_diagnostics**](docs/ProtocolsApi.md#get_ndmp_diagnostics) | **GET** /platform/3/protocols/ndmp/diagnostics | +*ProtocolsApi* | [**get_ndmp_logs**](docs/ProtocolsApi.md#get_ndmp_logs) | **GET** /platform/3/protocols/ndmp/logs | +*ProtocolsApi* | [**get_ndmp_sessions**](docs/ProtocolsApi.md#get_ndmp_sessions) | **GET** /platform/3/protocols/ndmp/sessions | +*ProtocolsApi* | [**get_ndmp_settings_global**](docs/ProtocolsApi.md#get_ndmp_settings_global) | **GET** /platform/3/protocols/ndmp/settings/global | +*ProtocolsApi* | [**get_ndmp_user**](docs/ProtocolsApi.md#get_ndmp_user) | **GET** /platform/3/protocols/ndmp/users/{NdmpUserId} | +*ProtocolsApi* | [**get_nfs_aliase**](docs/ProtocolsApi.md#get_nfs_aliase) | **GET** /platform/2/protocols/nfs/aliases/{NfsAliaseId} | +*ProtocolsApi* | [**get_nfs_check**](docs/ProtocolsApi.md#get_nfs_check) | **GET** /platform/2/protocols/nfs/check | +*ProtocolsApi* | [**get_nfs_export**](docs/ProtocolsApi.md#get_nfs_export) | **GET** /platform/2/protocols/nfs/exports/{NfsExportId} | +*ProtocolsApi* | [**get_nfs_exports_summary**](docs/ProtocolsApi.md#get_nfs_exports_summary) | **GET** /platform/2/protocols/nfs/exports-summary | +*ProtocolsApi* | [**get_nfs_log_level**](docs/ProtocolsApi.md#get_nfs_log_level) | **GET** /platform/3/protocols/nfs/log-level | +*ProtocolsApi* | [**get_nfs_netgroup**](docs/ProtocolsApi.md#get_nfs_netgroup) | **GET** /platform/3/protocols/nfs/netgroup | +*ProtocolsApi* | [**get_nfs_nlm_locks**](docs/ProtocolsApi.md#get_nfs_nlm_locks) | **GET** /platform/2/protocols/nfs/nlm/locks | +*ProtocolsApi* | [**get_nfs_nlm_session**](docs/ProtocolsApi.md#get_nfs_nlm_session) | **GET** /platform/3/protocols/nfs/nlm/sessions/{NfsNlmSessionId} | +*ProtocolsApi* | [**get_nfs_nlm_sessions**](docs/ProtocolsApi.md#get_nfs_nlm_sessions) | **GET** /platform/3/protocols/nfs/nlm/sessions | +*ProtocolsApi* | [**get_nfs_nlm_waiters**](docs/ProtocolsApi.md#get_nfs_nlm_waiters) | **GET** /platform/2/protocols/nfs/nlm/waiters | +*ProtocolsApi* | [**get_nfs_settings_export**](docs/ProtocolsApi.md#get_nfs_settings_export) | **GET** /platform/2/protocols/nfs/settings/export | +*ProtocolsApi* | [**get_nfs_settings_global**](docs/ProtocolsApi.md#get_nfs_settings_global) | **GET** /platform/3/protocols/nfs/settings/global | +*ProtocolsApi* | [**get_nfs_settings_zone**](docs/ProtocolsApi.md#get_nfs_settings_zone) | **GET** /platform/2/protocols/nfs/settings/zone | +*ProtocolsApi* | [**get_ntp_server**](docs/ProtocolsApi.md#get_ntp_server) | **GET** /platform/3/protocols/ntp/servers/{NtpServerId} | +*ProtocolsApi* | [**get_ntp_settings**](docs/ProtocolsApi.md#get_ntp_settings) | **GET** /platform/3/protocols/ntp/settings | +*ProtocolsApi* | [**get_smb_log_level**](docs/ProtocolsApi.md#get_smb_log_level) | **GET** /platform/3/protocols/smb/log-level | +*ProtocolsApi* | [**get_smb_log_level_filter**](docs/ProtocolsApi.md#get_smb_log_level_filter) | **GET** /platform/3/protocols/smb/log-level/filters/{SmbLogLevelFilterId} | +*ProtocolsApi* | [**get_smb_openfiles**](docs/ProtocolsApi.md#get_smb_openfiles) | **GET** /platform/1/protocols/smb/openfiles | +*ProtocolsApi* | [**get_smb_sessions**](docs/ProtocolsApi.md#get_smb_sessions) | **GET** /platform/1/protocols/smb/sessions | +*ProtocolsApi* | [**get_smb_settings_global**](docs/ProtocolsApi.md#get_smb_settings_global) | **GET** /platform/3/protocols/smb/settings/global | +*ProtocolsApi* | [**get_smb_settings_share**](docs/ProtocolsApi.md#get_smb_settings_share) | **GET** /platform/3/protocols/smb/settings/share | +*ProtocolsApi* | [**get_smb_share**](docs/ProtocolsApi.md#get_smb_share) | **GET** /platform/3/protocols/smb/shares/{SmbShareId} | +*ProtocolsApi* | [**get_smb_shares_summary**](docs/ProtocolsApi.md#get_smb_shares_summary) | **GET** /platform/1/protocols/smb/shares-summary | +*ProtocolsApi* | [**get_snmp_settings**](docs/ProtocolsApi.md#get_snmp_settings) | **GET** /platform/3/protocols/snmp/settings | +*ProtocolsApi* | [**get_swift_account**](docs/ProtocolsApi.md#get_swift_account) | **GET** /platform/3/protocols/swift/accounts/{SwiftAccountId} | +*ProtocolsApi* | [**list_hdfs_proxyusers**](docs/ProtocolsApi.md#list_hdfs_proxyusers) | **GET** /platform/1/protocols/hdfs/proxyusers | +*ProtocolsApi* | [**list_hdfs_racks**](docs/ProtocolsApi.md#list_hdfs_racks) | **GET** /platform/1/protocols/hdfs/racks | +*ProtocolsApi* | [**list_ndmp_users**](docs/ProtocolsApi.md#list_ndmp_users) | **GET** /platform/3/protocols/ndmp/users | +*ProtocolsApi* | [**list_nfs_aliases**](docs/ProtocolsApi.md#list_nfs_aliases) | **GET** /platform/2/protocols/nfs/aliases | +*ProtocolsApi* | [**list_nfs_exports**](docs/ProtocolsApi.md#list_nfs_exports) | **GET** /platform/2/protocols/nfs/exports | +*ProtocolsApi* | [**list_ntp_servers**](docs/ProtocolsApi.md#list_ntp_servers) | **GET** /platform/3/protocols/ntp/servers | +*ProtocolsApi* | [**list_smb_log_level_filters**](docs/ProtocolsApi.md#list_smb_log_level_filters) | **GET** /platform/3/protocols/smb/log-level/filters | +*ProtocolsApi* | [**list_smb_shares**](docs/ProtocolsApi.md#list_smb_shares) | **GET** /platform/3/protocols/smb/shares | +*ProtocolsApi* | [**list_swift_accounts**](docs/ProtocolsApi.md#list_swift_accounts) | **GET** /platform/3/protocols/swift/accounts | +*ProtocolsApi* | [**update_ftp_settings**](docs/ProtocolsApi.md#update_ftp_settings) | **PUT** /platform/3/protocols/ftp/settings | +*ProtocolsApi* | [**update_hdfs_log_level**](docs/ProtocolsApi.md#update_hdfs_log_level) | **PUT** /platform/3/protocols/hdfs/log-level | +*ProtocolsApi* | [**update_hdfs_proxyuser**](docs/ProtocolsApi.md#update_hdfs_proxyuser) | **PUT** /platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId} | +*ProtocolsApi* | [**update_hdfs_rack**](docs/ProtocolsApi.md#update_hdfs_rack) | **PUT** /platform/1/protocols/hdfs/racks/{HdfsRackId} | +*ProtocolsApi* | [**update_hdfs_settings**](docs/ProtocolsApi.md#update_hdfs_settings) | **PUT** /platform/3/protocols/hdfs/settings | +*ProtocolsApi* | [**update_http_settings**](docs/ProtocolsApi.md#update_http_settings) | **PUT** /platform/3/protocols/http/settings | +*ProtocolsApi* | [**update_ndmp_diagnostics**](docs/ProtocolsApi.md#update_ndmp_diagnostics) | **PUT** /platform/3/protocols/ndmp/diagnostics | +*ProtocolsApi* | [**update_ndmp_settings_global**](docs/ProtocolsApi.md#update_ndmp_settings_global) | **PUT** /platform/3/protocols/ndmp/settings/global | +*ProtocolsApi* | [**update_ndmp_user**](docs/ProtocolsApi.md#update_ndmp_user) | **PUT** /platform/3/protocols/ndmp/users/{NdmpUserId} | +*ProtocolsApi* | [**update_nfs_aliase**](docs/ProtocolsApi.md#update_nfs_aliase) | **PUT** /platform/2/protocols/nfs/aliases/{NfsAliaseId} | +*ProtocolsApi* | [**update_nfs_export**](docs/ProtocolsApi.md#update_nfs_export) | **PUT** /platform/2/protocols/nfs/exports/{NfsExportId} | +*ProtocolsApi* | [**update_nfs_log_level**](docs/ProtocolsApi.md#update_nfs_log_level) | **PUT** /platform/3/protocols/nfs/log-level | +*ProtocolsApi* | [**update_nfs_netgroup**](docs/ProtocolsApi.md#update_nfs_netgroup) | **PUT** /platform/3/protocols/nfs/netgroup | +*ProtocolsApi* | [**update_nfs_settings_export**](docs/ProtocolsApi.md#update_nfs_settings_export) | **PUT** /platform/2/protocols/nfs/settings/export | +*ProtocolsApi* | [**update_nfs_settings_global**](docs/ProtocolsApi.md#update_nfs_settings_global) | **PUT** /platform/3/protocols/nfs/settings/global | +*ProtocolsApi* | [**update_nfs_settings_zone**](docs/ProtocolsApi.md#update_nfs_settings_zone) | **PUT** /platform/2/protocols/nfs/settings/zone | +*ProtocolsApi* | [**update_ntp_server**](docs/ProtocolsApi.md#update_ntp_server) | **PUT** /platform/3/protocols/ntp/servers/{NtpServerId} | +*ProtocolsApi* | [**update_ntp_settings**](docs/ProtocolsApi.md#update_ntp_settings) | **PUT** /platform/3/protocols/ntp/settings | +*ProtocolsApi* | [**update_smb_log_level**](docs/ProtocolsApi.md#update_smb_log_level) | **PUT** /platform/3/protocols/smb/log-level | +*ProtocolsApi* | [**update_smb_settings_global**](docs/ProtocolsApi.md#update_smb_settings_global) | **PUT** /platform/3/protocols/smb/settings/global | +*ProtocolsApi* | [**update_smb_settings_share**](docs/ProtocolsApi.md#update_smb_settings_share) | **PUT** /platform/3/protocols/smb/settings/share | +*ProtocolsApi* | [**update_smb_share**](docs/ProtocolsApi.md#update_smb_share) | **PUT** /platform/3/protocols/smb/shares/{SmbShareId} | +*ProtocolsApi* | [**update_snmp_settings**](docs/ProtocolsApi.md#update_snmp_settings) | **PUT** /platform/3/protocols/snmp/settings | +*ProtocolsApi* | [**update_swift_account**](docs/ProtocolsApi.md#update_swift_account) | **PUT** /platform/3/protocols/swift/accounts/{SwiftAccountId} | +*ProtocolsHdfsApi* | [**create_proxyusers_name_member**](docs/ProtocolsHdfsApi.md#create_proxyusers_name_member) | **POST** /platform/1/protocols/hdfs/proxyusers/{Name}/members | +*ProtocolsHdfsApi* | [**delete_proxyusers_name_member**](docs/ProtocolsHdfsApi.md#delete_proxyusers_name_member) | **DELETE** /platform/1/protocols/hdfs/proxyusers/{Name}/members/{ProxyusersNameMemberId} | +*ProtocolsHdfsApi* | [**list_proxyusers_name_members**](docs/ProtocolsHdfsApi.md#list_proxyusers_name_members) | **GET** /platform/1/protocols/hdfs/proxyusers/{Name}/members | +*ProtocolsHdfsApi* | [**update_proxyusers_name_member**](docs/ProtocolsHdfsApi.md#update_proxyusers_name_member) | **PUT** /platform/1/protocols/hdfs/proxyusers/{Name}/members/{ProxyusersNameMemberId} | +*QuotaApi* | [**create_quota_quota**](docs/QuotaApi.md#create_quota_quota) | **POST** /platform/1/quota/quotas | +*QuotaApi* | [**create_quota_report**](docs/QuotaApi.md#create_quota_report) | **POST** /platform/1/quota/reports | +*QuotaApi* | [**create_settings_mapping**](docs/QuotaApi.md#create_settings_mapping) | **POST** /platform/1/quota/settings/mappings | +*QuotaApi* | [**create_settings_notification**](docs/QuotaApi.md#create_settings_notification) | **POST** /platform/1/quota/settings/notifications | +*QuotaApi* | [**delete_quota_quota**](docs/QuotaApi.md#delete_quota_quota) | **DELETE** /platform/1/quota/quotas/{QuotaQuotaId} | +*QuotaApi* | [**delete_quota_quotas**](docs/QuotaApi.md#delete_quota_quotas) | **DELETE** /platform/1/quota/quotas | +*QuotaApi* | [**delete_quota_report**](docs/QuotaApi.md#delete_quota_report) | **DELETE** /platform/1/quota/reports/{QuotaReportId} | +*QuotaApi* | [**delete_settings_mapping**](docs/QuotaApi.md#delete_settings_mapping) | **DELETE** /platform/1/quota/settings/mappings/{SettingsMappingId} | +*QuotaApi* | [**delete_settings_mappings**](docs/QuotaApi.md#delete_settings_mappings) | **DELETE** /platform/1/quota/settings/mappings | +*QuotaApi* | [**delete_settings_notification**](docs/QuotaApi.md#delete_settings_notification) | **DELETE** /platform/1/quota/settings/notifications/{SettingsNotificationId} | +*QuotaApi* | [**delete_settings_notifications**](docs/QuotaApi.md#delete_settings_notifications) | **DELETE** /platform/1/quota/settings/notifications | +*QuotaApi* | [**get_quota_license**](docs/QuotaApi.md#get_quota_license) | **GET** /platform/1/quota/license | +*QuotaApi* | [**get_quota_quota**](docs/QuotaApi.md#get_quota_quota) | **GET** /platform/1/quota/quotas/{QuotaQuotaId} | +*QuotaApi* | [**get_quota_quotas_summary**](docs/QuotaApi.md#get_quota_quotas_summary) | **GET** /platform/1/quota/quotas-summary | +*QuotaApi* | [**get_quota_report**](docs/QuotaApi.md#get_quota_report) | **GET** /platform/1/quota/reports/{QuotaReportId} | +*QuotaApi* | [**get_settings_mapping**](docs/QuotaApi.md#get_settings_mapping) | **GET** /platform/1/quota/settings/mappings/{SettingsMappingId} | +*QuotaApi* | [**get_settings_notification**](docs/QuotaApi.md#get_settings_notification) | **GET** /platform/1/quota/settings/notifications/{SettingsNotificationId} | +*QuotaApi* | [**get_settings_reports**](docs/QuotaApi.md#get_settings_reports) | **GET** /platform/1/quota/settings/reports | +*QuotaApi* | [**list_quota_quotas**](docs/QuotaApi.md#list_quota_quotas) | **GET** /platform/1/quota/quotas | +*QuotaApi* | [**list_quota_reports**](docs/QuotaApi.md#list_quota_reports) | **GET** /platform/1/quota/reports | +*QuotaApi* | [**list_settings_mappings**](docs/QuotaApi.md#list_settings_mappings) | **GET** /platform/1/quota/settings/mappings | +*QuotaApi* | [**list_settings_notifications**](docs/QuotaApi.md#list_settings_notifications) | **GET** /platform/1/quota/settings/notifications | +*QuotaApi* | [**update_quota_quota**](docs/QuotaApi.md#update_quota_quota) | **PUT** /platform/1/quota/quotas/{QuotaQuotaId} | +*QuotaApi* | [**update_settings_mapping**](docs/QuotaApi.md#update_settings_mapping) | **PUT** /platform/1/quota/settings/mappings/{SettingsMappingId} | +*QuotaApi* | [**update_settings_notification**](docs/QuotaApi.md#update_settings_notification) | **PUT** /platform/1/quota/settings/notifications/{SettingsNotificationId} | +*QuotaApi* | [**update_settings_reports**](docs/QuotaApi.md#update_settings_reports) | **PUT** /platform/1/quota/settings/reports | +*QuotaQuotasApi* | [**create_quota_notification**](docs/QuotaQuotasApi.md#create_quota_notification) | **POST** /platform/1/quota/quotas/{Qid}/notifications | +*QuotaQuotasApi* | [**delete_quota_notification**](docs/QuotaQuotasApi.md#delete_quota_notification) | **DELETE** /platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId} | +*QuotaQuotasApi* | [**delete_quota_notifications**](docs/QuotaQuotasApi.md#delete_quota_notifications) | **DELETE** /platform/1/quota/quotas/{Qid}/notifications | +*QuotaQuotasApi* | [**get_quota_notification**](docs/QuotaQuotasApi.md#get_quota_notification) | **GET** /platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId} | +*QuotaQuotasApi* | [**list_quota_notifications**](docs/QuotaQuotasApi.md#list_quota_notifications) | **GET** /platform/1/quota/quotas/{Qid}/notifications | +*QuotaQuotasApi* | [**update_quota_notification**](docs/QuotaQuotasApi.md#update_quota_notification) | **PUT** /platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId} | +*QuotaQuotasApi* | [**update_quota_notifications**](docs/QuotaQuotasApi.md#update_quota_notifications) | **PUT** /platform/1/quota/quotas/{Qid}/notifications | +*QuotaReportsApi* | [**get_report_about**](docs/QuotaReportsApi.md#get_report_about) | **GET** /platform/1/quota/reports/{Rid}/about | +*RemotesupportApi* | [**get_remotesupport_connectemc**](docs/RemotesupportApi.md#get_remotesupport_connectemc) | **GET** /platform/1/remotesupport/connectemc | +*RemotesupportApi* | [**update_remotesupport_connectemc**](docs/RemotesupportApi.md#update_remotesupport_connectemc) | **PUT** /platform/1/remotesupport/connectemc | +*SnapshotApi* | [**create_snapshot_aliase**](docs/SnapshotApi.md#create_snapshot_aliase) | **POST** /platform/1/snapshot/aliases | +*SnapshotApi* | [**create_snapshot_changelist**](docs/SnapshotApi.md#create_snapshot_changelist) | **POST** /platform/1/snapshot/changelists | +*SnapshotApi* | [**create_snapshot_repstate**](docs/SnapshotApi.md#create_snapshot_repstate) | **POST** /platform/1/snapshot/repstates | +*SnapshotApi* | [**create_snapshot_schedule**](docs/SnapshotApi.md#create_snapshot_schedule) | **POST** /platform/3/snapshot/schedules | +*SnapshotApi* | [**create_snapshot_snapshot**](docs/SnapshotApi.md#create_snapshot_snapshot) | **POST** /platform/1/snapshot/snapshots | +*SnapshotApi* | [**delete_snapshot_aliase**](docs/SnapshotApi.md#delete_snapshot_aliase) | **DELETE** /platform/1/snapshot/aliases/{SnapshotAliaseId} | +*SnapshotApi* | [**delete_snapshot_aliases**](docs/SnapshotApi.md#delete_snapshot_aliases) | **DELETE** /platform/1/snapshot/aliases | +*SnapshotApi* | [**delete_snapshot_changelist**](docs/SnapshotApi.md#delete_snapshot_changelist) | **DELETE** /platform/1/snapshot/changelists/{SnapshotChangelistId} | +*SnapshotApi* | [**delete_snapshot_repstate**](docs/SnapshotApi.md#delete_snapshot_repstate) | **DELETE** /platform/1/snapshot/repstates/{SnapshotRepstateId} | +*SnapshotApi* | [**delete_snapshot_schedule**](docs/SnapshotApi.md#delete_snapshot_schedule) | **DELETE** /platform/3/snapshot/schedules/{SnapshotScheduleId} | +*SnapshotApi* | [**delete_snapshot_schedules**](docs/SnapshotApi.md#delete_snapshot_schedules) | **DELETE** /platform/3/snapshot/schedules | +*SnapshotApi* | [**delete_snapshot_snapshot**](docs/SnapshotApi.md#delete_snapshot_snapshot) | **DELETE** /platform/1/snapshot/snapshots/{SnapshotSnapshotId} | +*SnapshotApi* | [**delete_snapshot_snapshots**](docs/SnapshotApi.md#delete_snapshot_snapshots) | **DELETE** /platform/1/snapshot/snapshots | +*SnapshotApi* | [**get_snapshot_aliase**](docs/SnapshotApi.md#get_snapshot_aliase) | **GET** /platform/1/snapshot/aliases/{SnapshotAliaseId} | +*SnapshotApi* | [**get_snapshot_changelist**](docs/SnapshotApi.md#get_snapshot_changelist) | **GET** /platform/1/snapshot/changelists/{SnapshotChangelistId} | +*SnapshotApi* | [**get_snapshot_license**](docs/SnapshotApi.md#get_snapshot_license) | **GET** /platform/1/snapshot/license | +*SnapshotApi* | [**get_snapshot_pending**](docs/SnapshotApi.md#get_snapshot_pending) | **GET** /platform/1/snapshot/pending | +*SnapshotApi* | [**get_snapshot_repstate**](docs/SnapshotApi.md#get_snapshot_repstate) | **GET** /platform/1/snapshot/repstates/{SnapshotRepstateId} | +*SnapshotApi* | [**get_snapshot_schedule**](docs/SnapshotApi.md#get_snapshot_schedule) | **GET** /platform/3/snapshot/schedules/{SnapshotScheduleId} | +*SnapshotApi* | [**get_snapshot_settings**](docs/SnapshotApi.md#get_snapshot_settings) | **GET** /platform/1/snapshot/settings | +*SnapshotApi* | [**get_snapshot_snapshot**](docs/SnapshotApi.md#get_snapshot_snapshot) | **GET** /platform/1/snapshot/snapshots/{SnapshotSnapshotId} | +*SnapshotApi* | [**get_snapshot_snapshots_summary**](docs/SnapshotApi.md#get_snapshot_snapshots_summary) | **GET** /platform/1/snapshot/snapshots-summary | +*SnapshotApi* | [**list_snapshot_aliases**](docs/SnapshotApi.md#list_snapshot_aliases) | **GET** /platform/1/snapshot/aliases | +*SnapshotApi* | [**list_snapshot_changelists**](docs/SnapshotApi.md#list_snapshot_changelists) | **GET** /platform/1/snapshot/changelists | +*SnapshotApi* | [**list_snapshot_repstates**](docs/SnapshotApi.md#list_snapshot_repstates) | **GET** /platform/1/snapshot/repstates | +*SnapshotApi* | [**list_snapshot_schedules**](docs/SnapshotApi.md#list_snapshot_schedules) | **GET** /platform/3/snapshot/schedules | +*SnapshotApi* | [**list_snapshot_snapshots**](docs/SnapshotApi.md#list_snapshot_snapshots) | **GET** /platform/1/snapshot/snapshots | +*SnapshotApi* | [**update_snapshot_aliase**](docs/SnapshotApi.md#update_snapshot_aliase) | **PUT** /platform/1/snapshot/aliases/{SnapshotAliaseId} | +*SnapshotApi* | [**update_snapshot_schedule**](docs/SnapshotApi.md#update_snapshot_schedule) | **PUT** /platform/3/snapshot/schedules/{SnapshotScheduleId} | +*SnapshotApi* | [**update_snapshot_settings**](docs/SnapshotApi.md#update_snapshot_settings) | **PUT** /platform/1/snapshot/settings | +*SnapshotApi* | [**update_snapshot_snapshot**](docs/SnapshotApi.md#update_snapshot_snapshot) | **PUT** /platform/1/snapshot/snapshots/{SnapshotSnapshotId} | +*SnapshotChangelistsApi* | [**get_changelist_lin**](docs/SnapshotChangelistsApi.md#get_changelist_lin) | **GET** /platform/1/snapshot/changelists/{Changelist}/lins/{ChangelistLinId} | +*SnapshotChangelistsApi* | [**get_changelist_lins**](docs/SnapshotChangelistsApi.md#get_changelist_lins) | **GET** /platform/1/snapshot/changelists/{Changelist}/lins | +*SnapshotSnapshotsApi* | [**create_snapshot_lock**](docs/SnapshotSnapshotsApi.md#create_snapshot_lock) | **POST** /platform/1/snapshot/snapshots/{Sid}/locks | +*SnapshotSnapshotsApi* | [**delete_snapshot_lock**](docs/SnapshotSnapshotsApi.md#delete_snapshot_lock) | **DELETE** /platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId} | +*SnapshotSnapshotsApi* | [**delete_snapshot_locks**](docs/SnapshotSnapshotsApi.md#delete_snapshot_locks) | **DELETE** /platform/1/snapshot/snapshots/{Sid}/locks | +*SnapshotSnapshotsApi* | [**get_snapshot_lock**](docs/SnapshotSnapshotsApi.md#get_snapshot_lock) | **GET** /platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId} | +*SnapshotSnapshotsApi* | [**list_snapshot_locks**](docs/SnapshotSnapshotsApi.md#list_snapshot_locks) | **GET** /platform/1/snapshot/snapshots/{Sid}/locks | +*SnapshotSnapshotsApi* | [**update_snapshot_lock**](docs/SnapshotSnapshotsApi.md#update_snapshot_lock) | **PUT** /platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId} | +*StatisticsApi* | [**get_statistics_current**](docs/StatisticsApi.md#get_statistics_current) | **GET** /platform/1/statistics/current | +*StatisticsApi* | [**get_statistics_history**](docs/StatisticsApi.md#get_statistics_history) | **GET** /platform/1/statistics/history | +*StatisticsApi* | [**get_statistics_key**](docs/StatisticsApi.md#get_statistics_key) | **GET** /platform/1/statistics/keys/{StatisticsKeyId} | +*StatisticsApi* | [**get_statistics_keys**](docs/StatisticsApi.md#get_statistics_keys) | **GET** /platform/1/statistics/keys | +*StatisticsApi* | [**get_statistics_operations**](docs/StatisticsApi.md#get_statistics_operations) | **GET** /platform/3/statistics/operations | +*StatisticsApi* | [**get_statistics_protocols**](docs/StatisticsApi.md#get_statistics_protocols) | **GET** /platform/1/statistics/protocols | +*StatisticsApi* | [**get_summary_client**](docs/StatisticsApi.md#get_summary_client) | **GET** /platform/3/statistics/summary/client | +*StatisticsApi* | [**get_summary_drive**](docs/StatisticsApi.md#get_summary_drive) | **GET** /platform/3/statistics/summary/drive | +*StatisticsApi* | [**get_summary_heat**](docs/StatisticsApi.md#get_summary_heat) | **GET** /platform/3/statistics/summary/heat | +*StatisticsApi* | [**get_summary_protocol**](docs/StatisticsApi.md#get_summary_protocol) | **GET** /platform/3/statistics/summary/protocol | +*StatisticsApi* | [**get_summary_system**](docs/StatisticsApi.md#get_summary_system) | **GET** /platform/3/statistics/summary/system | +*StoragepoolApi* | [**create_compatibilities_class_active_item**](docs/StoragepoolApi.md#create_compatibilities_class_active_item) | **POST** /platform/1/storagepool/compatibilities/class/active | +*StoragepoolApi* | [**create_compatibilities_ssd_active_item**](docs/StoragepoolApi.md#create_compatibilities_ssd_active_item) | **POST** /platform/3/storagepool/compatibilities/ssd/active | +*StoragepoolApi* | [**create_storagepool_nodepool**](docs/StoragepoolApi.md#create_storagepool_nodepool) | **POST** /platform/3/storagepool/nodepools | +*StoragepoolApi* | [**create_storagepool_tier**](docs/StoragepoolApi.md#create_storagepool_tier) | **POST** /platform/1/storagepool/tiers | +*StoragepoolApi* | [**delete_compatibilities_class_active_by_id**](docs/StoragepoolApi.md#delete_compatibilities_class_active_by_id) | **DELETE** /platform/1/storagepool/compatibilities/class/active/{CompatibilitiesClassActiveId} | +*StoragepoolApi* | [**delete_compatibilities_ssd_active_by_id**](docs/StoragepoolApi.md#delete_compatibilities_ssd_active_by_id) | **DELETE** /platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId} | +*StoragepoolApi* | [**delete_storagepool_nodepool**](docs/StoragepoolApi.md#delete_storagepool_nodepool) | **DELETE** /platform/3/storagepool/nodepools/{StoragepoolNodepoolId} | +*StoragepoolApi* | [**delete_storagepool_tier**](docs/StoragepoolApi.md#delete_storagepool_tier) | **DELETE** /platform/1/storagepool/tiers/{StoragepoolTierId} | +*StoragepoolApi* | [**delete_storagepool_tiers**](docs/StoragepoolApi.md#delete_storagepool_tiers) | **DELETE** /platform/1/storagepool/tiers | +*StoragepoolApi* | [**get_compatibilities_class_active_by_id**](docs/StoragepoolApi.md#get_compatibilities_class_active_by_id) | **GET** /platform/1/storagepool/compatibilities/class/active/{CompatibilitiesClassActiveId} | +*StoragepoolApi* | [**get_compatibilities_class_available**](docs/StoragepoolApi.md#get_compatibilities_class_available) | **GET** /platform/1/storagepool/compatibilities/class/available | +*StoragepoolApi* | [**get_compatibilities_ssd_active_by_id**](docs/StoragepoolApi.md#get_compatibilities_ssd_active_by_id) | **GET** /platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId} | +*StoragepoolApi* | [**get_compatibilities_ssd_available**](docs/StoragepoolApi.md#get_compatibilities_ssd_available) | **GET** /platform/1/storagepool/compatibilities/ssd/available | +*StoragepoolApi* | [**get_storagepool_nodepool**](docs/StoragepoolApi.md#get_storagepool_nodepool) | **GET** /platform/3/storagepool/nodepools/{StoragepoolNodepoolId} | +*StoragepoolApi* | [**get_storagepool_settings**](docs/StoragepoolApi.md#get_storagepool_settings) | **GET** /platform/1/storagepool/settings | +*StoragepoolApi* | [**get_storagepool_status**](docs/StoragepoolApi.md#get_storagepool_status) | **GET** /platform/1/storagepool/status | +*StoragepoolApi* | [**get_storagepool_storagepools**](docs/StoragepoolApi.md#get_storagepool_storagepools) | **GET** /platform/3/storagepool/storagepools | +*StoragepoolApi* | [**get_storagepool_suggested_protection_nid**](docs/StoragepoolApi.md#get_storagepool_suggested_protection_nid) | **GET** /platform/3/storagepool/suggested-protection/{StoragepoolSuggestedProtectionNid} | +*StoragepoolApi* | [**get_storagepool_tier**](docs/StoragepoolApi.md#get_storagepool_tier) | **GET** /platform/1/storagepool/tiers/{StoragepoolTierId} | +*StoragepoolApi* | [**get_storagepool_unprovisioned**](docs/StoragepoolApi.md#get_storagepool_unprovisioned) | **GET** /platform/1/storagepool/unprovisioned | +*StoragepoolApi* | [**list_compatibilities_class_active**](docs/StoragepoolApi.md#list_compatibilities_class_active) | **GET** /platform/1/storagepool/compatibilities/class/active | +*StoragepoolApi* | [**list_compatibilities_ssd_active**](docs/StoragepoolApi.md#list_compatibilities_ssd_active) | **GET** /platform/3/storagepool/compatibilities/ssd/active | +*StoragepoolApi* | [**list_storagepool_nodepools**](docs/StoragepoolApi.md#list_storagepool_nodepools) | **GET** /platform/3/storagepool/nodepools | +*StoragepoolApi* | [**list_storagepool_tiers**](docs/StoragepoolApi.md#list_storagepool_tiers) | **GET** /platform/1/storagepool/tiers | +*StoragepoolApi* | [**update_compatibilities_ssd_active_by_id**](docs/StoragepoolApi.md#update_compatibilities_ssd_active_by_id) | **PUT** /platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId} | +*StoragepoolApi* | [**update_storagepool_nodepool**](docs/StoragepoolApi.md#update_storagepool_nodepool) | **PUT** /platform/3/storagepool/nodepools/{StoragepoolNodepoolId} | +*StoragepoolApi* | [**update_storagepool_settings**](docs/StoragepoolApi.md#update_storagepool_settings) | **PUT** /platform/1/storagepool/settings | +*StoragepoolApi* | [**update_storagepool_tier**](docs/StoragepoolApi.md#update_storagepool_tier) | **PUT** /platform/1/storagepool/tiers/{StoragepoolTierId} | +*SyncApi* | [**create_sync_job**](docs/SyncApi.md#create_sync_job) | **POST** /platform/3/sync/jobs | +*SyncApi* | [**create_sync_policy**](docs/SyncApi.md#create_sync_policy) | **POST** /platform/3/sync/policies | +*SyncApi* | [**create_sync_reports_rotate_item**](docs/SyncApi.md#create_sync_reports_rotate_item) | **POST** /platform/1/sync/reports-rotate | +*SyncApi* | [**create_sync_rule**](docs/SyncApi.md#create_sync_rule) | **POST** /platform/3/sync/rules | +*SyncApi* | [**delete_sync_policies**](docs/SyncApi.md#delete_sync_policies) | **DELETE** /platform/3/sync/policies | +*SyncApi* | [**delete_sync_policy**](docs/SyncApi.md#delete_sync_policy) | **DELETE** /platform/3/sync/policies/{SyncPolicyId} | +*SyncApi* | [**delete_sync_rule**](docs/SyncApi.md#delete_sync_rule) | **DELETE** /platform/3/sync/rules/{SyncRuleId} | +*SyncApi* | [**delete_sync_rules**](docs/SyncApi.md#delete_sync_rules) | **DELETE** /platform/3/sync/rules | +*SyncApi* | [**delete_target_policy**](docs/SyncApi.md#delete_target_policy) | **DELETE** /platform/1/sync/target/policies/{TargetPolicyId} | +*SyncApi* | [**get_history_cpu**](docs/SyncApi.md#get_history_cpu) | **GET** /platform/3/sync/history/cpu | +*SyncApi* | [**get_history_file**](docs/SyncApi.md#get_history_file) | **GET** /platform/1/sync/history/file | +*SyncApi* | [**get_history_network**](docs/SyncApi.md#get_history_network) | **GET** /platform/1/sync/history/network | +*SyncApi* | [**get_history_worker**](docs/SyncApi.md#get_history_worker) | **GET** /platform/3/sync/history/worker | +*SyncApi* | [**get_sync_job**](docs/SyncApi.md#get_sync_job) | **GET** /platform/3/sync/jobs/{SyncJobId} | +*SyncApi* | [**get_sync_license**](docs/SyncApi.md#get_sync_license) | **GET** /platform/1/sync/license | +*SyncApi* | [**get_sync_policy**](docs/SyncApi.md#get_sync_policy) | **GET** /platform/3/sync/policies/{SyncPolicyId} | +*SyncApi* | [**get_sync_report**](docs/SyncApi.md#get_sync_report) | **GET** /platform/1/sync/reports/{SyncReportId} | +*SyncApi* | [**get_sync_reports**](docs/SyncApi.md#get_sync_reports) | **GET** /platform/1/sync/reports | +*SyncApi* | [**get_sync_rule**](docs/SyncApi.md#get_sync_rule) | **GET** /platform/3/sync/rules/{SyncRuleId} | +*SyncApi* | [**get_sync_settings**](docs/SyncApi.md#get_sync_settings) | **GET** /platform/3/sync/settings | +*SyncApi* | [**get_target_policies**](docs/SyncApi.md#get_target_policies) | **GET** /platform/1/sync/target/policies | +*SyncApi* | [**get_target_policy**](docs/SyncApi.md#get_target_policy) | **GET** /platform/1/sync/target/policies/{TargetPolicyId} | +*SyncApi* | [**get_target_report**](docs/SyncApi.md#get_target_report) | **GET** /platform/1/sync/target/reports/{TargetReportId} | +*SyncApi* | [**get_target_reports**](docs/SyncApi.md#get_target_reports) | **GET** /platform/1/sync/target/reports | +*SyncApi* | [**list_sync_jobs**](docs/SyncApi.md#list_sync_jobs) | **GET** /platform/3/sync/jobs | +*SyncApi* | [**list_sync_policies**](docs/SyncApi.md#list_sync_policies) | **GET** /platform/3/sync/policies | +*SyncApi* | [**list_sync_reports_rotate**](docs/SyncApi.md#list_sync_reports_rotate) | **GET** /platform/1/sync/reports-rotate | +*SyncApi* | [**list_sync_rules**](docs/SyncApi.md#list_sync_rules) | **GET** /platform/3/sync/rules | +*SyncApi* | [**update_sync_job**](docs/SyncApi.md#update_sync_job) | **PUT** /platform/3/sync/jobs/{SyncJobId} | +*SyncApi* | [**update_sync_policy**](docs/SyncApi.md#update_sync_policy) | **PUT** /platform/3/sync/policies/{SyncPolicyId} | +*SyncApi* | [**update_sync_rule**](docs/SyncApi.md#update_sync_rule) | **PUT** /platform/3/sync/rules/{SyncRuleId} | +*SyncApi* | [**update_sync_settings**](docs/SyncApi.md#update_sync_settings) | **PUT** /platform/3/sync/settings | +*SyncPoliciesApi* | [**create_policy_reset_item**](docs/SyncPoliciesApi.md#create_policy_reset_item) | **POST** /platform/1/sync/policies/{Policy}/reset | +*SyncReportsApi* | [**get_report_subreport**](docs/SyncReportsApi.md#get_report_subreport) | **GET** /platform/1/sync/reports/{Rid}/subreports/{ReportSubreportId} | +*SyncReportsApi* | [**get_report_subreports**](docs/SyncReportsApi.md#get_report_subreports) | **GET** /platform/1/sync/reports/{Rid}/subreports | +*SyncTargetApi* | [**create_policies_policy_cancel_item**](docs/SyncTargetApi.md#create_policies_policy_cancel_item) | **POST** /platform/1/sync/target/policies/{Policy}/cancel | +*SyncTargetApi* | [**get_reports_report_subreport**](docs/SyncTargetApi.md#get_reports_report_subreport) | **GET** /platform/1/sync/target/reports/{Rid}/subreports/{ReportsReportSubreportId} | +*SyncTargetApi* | [**get_reports_report_subreports**](docs/SyncTargetApi.md#get_reports_report_subreports) | **GET** /platform/1/sync/target/reports/{Rid}/subreports | +*UpgradeApi* | [**create_cluster_add_remaining_node**](docs/UpgradeApi.md#create_cluster_add_remaining_node) | **POST** /platform/3/upgrade/cluster/add_remaining_nodes | +*UpgradeApi* | [**create_cluster_archive_item**](docs/UpgradeApi.md#create_cluster_archive_item) | **POST** /platform/3/upgrade/cluster/archive | +*UpgradeApi* | [**create_cluster_assess_item**](docs/UpgradeApi.md#create_cluster_assess_item) | **POST** /platform/3/upgrade/cluster/assess | +*UpgradeApi* | [**create_cluster_commit_item**](docs/UpgradeApi.md#create_cluster_commit_item) | **POST** /platform/3/upgrade/cluster/commit | +*UpgradeApi* | [**create_cluster_firmware_assess_item**](docs/UpgradeApi.md#create_cluster_firmware_assess_item) | **POST** /platform/3/upgrade/cluster/firmware/assess | +*UpgradeApi* | [**create_cluster_firmware_upgrade_item**](docs/UpgradeApi.md#create_cluster_firmware_upgrade_item) | **POST** /platform/3/upgrade/cluster/firmware/upgrade | +*UpgradeApi* | [**create_cluster_patch_abort_item**](docs/UpgradeApi.md#create_cluster_patch_abort_item) | **POST** /platform/3/upgrade/cluster/patch/abort | +*UpgradeApi* | [**create_cluster_retry_last_action_item**](docs/UpgradeApi.md#create_cluster_retry_last_action_item) | **POST** /platform/3/upgrade/cluster/retry_last_action | +*UpgradeApi* | [**create_cluster_rollback_item**](docs/UpgradeApi.md#create_cluster_rollback_item) | **POST** /platform/3/upgrade/cluster/rollback | +*UpgradeApi* | [**create_cluster_upgrade_item**](docs/UpgradeApi.md#create_cluster_upgrade_item) | **POST** /platform/3/upgrade/cluster/upgrade | +*UpgradeApi* | [**get_cluster_firmware_progress**](docs/UpgradeApi.md#get_cluster_firmware_progress) | **GET** /platform/3/upgrade/cluster/firmware/progress | +*UpgradeApi* | [**get_cluster_firmware_status**](docs/UpgradeApi.md#get_cluster_firmware_status) | **GET** /platform/3/upgrade/cluster/firmware/status | +*UpgradeApi* | [**get_cluster_node**](docs/UpgradeApi.md#get_cluster_node) | **GET** /platform/3/upgrade/cluster/nodes/{ClusterNodeId} | +*UpgradeApi* | [**get_cluster_nodes**](docs/UpgradeApi.md#get_cluster_nodes) | **GET** /platform/3/upgrade/cluster/nodes | +*UpgradeApi* | [**get_upgrade_cluster**](docs/UpgradeApi.md#get_upgrade_cluster) | **GET** /platform/3/upgrade/cluster | +*UpgradeApi* | [**update_cluster_upgrade**](docs/UpgradeApi.md#update_cluster_upgrade) | **PUT** /platform/3/upgrade/cluster/upgrade | +*UpgradeClusterApi* | [**get_nodes_node_firmware_status**](docs/UpgradeClusterApi.md#get_nodes_node_firmware_status) | **GET** /platform/3/upgrade/cluster/nodes/{Lnn}/firmware/status | +*WormApi* | [**create_worm_domain**](docs/WormApi.md#create_worm_domain) | **POST** /platform/1/worm/domains | +*WormApi* | [**get_worm_domain**](docs/WormApi.md#get_worm_domain) | **GET** /platform/1/worm/domains/{WormDomainId} | +*WormApi* | [**get_worm_settings**](docs/WormApi.md#get_worm_settings) | **GET** /platform/1/worm/settings | +*WormApi* | [**list_worm_domains**](docs/WormApi.md#list_worm_domains) | **GET** /platform/1/worm/domains | +*WormApi* | [**update_worm_domain**](docs/WormApi.md#update_worm_domain) | **PUT** /platform/1/worm/domains/{WormDomainId} | +*WormApi* | [**update_worm_settings**](docs/WormApi.md#update_worm_settings) | **PUT** /platform/1/worm/settings | +*ZonesApi* | [**create_zone**](docs/ZonesApi.md#create_zone) | **POST** /platform/3/zones | +*ZonesApi* | [**delete_zone**](docs/ZonesApi.md#delete_zone) | **DELETE** /platform/3/zones/{ZoneId} | +*ZonesApi* | [**get_zone**](docs/ZonesApi.md#get_zone) | **GET** /platform/3/zones/{ZoneId} | +*ZonesApi* | [**list_zones**](docs/ZonesApi.md#list_zones) | **GET** /platform/3/zones | +*ZonesApi* | [**update_zone**](docs/ZonesApi.md#update_zone) | **PUT** /platform/3/zones/{ZoneId} | +*ZonesSummaryApi* | [**get_zones_summary**](docs/ZonesSummaryApi.md#get_zones_summary) | **GET** /platform/1/zones-summary | +*ZonesSummaryApi* | [**get_zones_summary_zone**](docs/ZonesSummaryApi.md#get_zones_summary_zone) | **GET** /platform/1/zones-summary/{ZonesSummaryZone} | + + +## Documentation For Models + + - [AdsProviderControllers](docs/AdsProviderControllers.md) + - [AdsProviderControllersController](docs/AdsProviderControllersController.md) + - [AdsProviderDomains](docs/AdsProviderDomains.md) + - [AdsProviderDomainsDomain](docs/AdsProviderDomainsDomain.md) + - [AdsProviderSearch](docs/AdsProviderSearch.md) + - [AdsProviderSearchObject](docs/AdsProviderSearchObject.md) + - [AntivirusPolicies](docs/AntivirusPolicies.md) + - [AntivirusPoliciesExtended](docs/AntivirusPoliciesExtended.md) + - [AntivirusPolicy](docs/AntivirusPolicy.md) + - [AntivirusPolicyExtended](docs/AntivirusPolicyExtended.md) + - [AntivirusQuarantine](docs/AntivirusQuarantine.md) + - [AntivirusQuarantinePathParams](docs/AntivirusQuarantinePathParams.md) + - [AntivirusScanItem](docs/AntivirusScanItem.md) + - [AntivirusServer](docs/AntivirusServer.md) + - [AntivirusServerExtended](docs/AntivirusServerExtended.md) + - [AntivirusServers](docs/AntivirusServers.md) + - [AntivirusServersExtended](docs/AntivirusServersExtended.md) + - [AntivirusSettings](docs/AntivirusSettings.md) + - [AntivirusSettingsSettings](docs/AntivirusSettingsSettings.md) + - [AuditSettings](docs/AuditSettings.md) + - [AuditSettingsSettings](docs/AuditSettingsSettings.md) + - [AuditTopic](docs/AuditTopic.md) + - [AuditTopicCreateParams](docs/AuditTopicCreateParams.md) + - [AuditTopicExtended](docs/AuditTopicExtended.md) + - [AuditTopics](docs/AuditTopics.md) + - [AuditTopicsExtended](docs/AuditTopicsExtended.md) + - [AuthAccess](docs/AuthAccess.md) + - [AuthAccessAccessItem](docs/AuthAccessAccessItem.md) + - [AuthAccessAccessItemFile](docs/AuthAccessAccessItemFile.md) + - [AuthAccessAccessItemPermissions](docs/AuthAccessAccessItemPermissions.md) + - [AuthAccessAccessItemRelevantAce](docs/AuthAccessAccessItemRelevantAce.md) + - [AuthAccessAccessItemUser](docs/AuthAccessAccessItemUser.md) + - [AuthGroup](docs/AuthGroup.md) + - [AuthGroupCreateParams](docs/AuthGroupCreateParams.md) + - [AuthGroupExtended](docs/AuthGroupExtended.md) + - [AuthGroups](docs/AuthGroups.md) + - [AuthGroupsExtended](docs/AuthGroupsExtended.md) + - [AuthId](docs/AuthId.md) + - [AuthIdNtoken](docs/AuthIdNtoken.md) + - [AuthIdNtokenPrivilegeItem](docs/AuthIdNtokenPrivilegeItem.md) + - [AuthLogLevel](docs/AuthLogLevel.md) + - [AuthLogLevelExtended](docs/AuthLogLevelExtended.md) + - [AuthLogLevelLevel](docs/AuthLogLevelLevel.md) + - [AuthNetgroup](docs/AuthNetgroup.md) + - [AuthNetgroups](docs/AuthNetgroups.md) + - [AuthPrivilege](docs/AuthPrivilege.md) + - [AuthPrivileges](docs/AuthPrivileges.md) + - [AuthRole](docs/AuthRole.md) + - [AuthRoleExtended](docs/AuthRoleExtended.md) + - [AuthRoles](docs/AuthRoles.md) + - [AuthRolesExtended](docs/AuthRolesExtended.md) + - [AuthShells](docs/AuthShells.md) + - [AuthUser](docs/AuthUser.md) + - [AuthUserCreateParams](docs/AuthUserCreateParams.md) + - [AuthUsers](docs/AuthUsers.md) + - [AuthUsersExtended](docs/AuthUsersExtended.md) + - [AuthWellknowns](docs/AuthWellknowns.md) + - [ChangelistLins](docs/ChangelistLins.md) + - [ChangelistLinsCtime](docs/ChangelistLinsCtime.md) + - [ChangelistLinsExtended](docs/ChangelistLinsExtended.md) + - [CloudAccess](docs/CloudAccess.md) + - [CloudAccessCluster](docs/CloudAccessCluster.md) + - [CloudAccessExtended](docs/CloudAccessExtended.md) + - [CloudAccessItem](docs/CloudAccessItem.md) + - [CloudAccount](docs/CloudAccount.md) + - [CloudAccountCreateParams](docs/CloudAccountCreateParams.md) + - [CloudAccountExtended](docs/CloudAccountExtended.md) + - [CloudAccounts](docs/CloudAccounts.md) + - [CloudAccountsExtended](docs/CloudAccountsExtended.md) + - [CloudJob](docs/CloudJob.md) + - [CloudJobCreateParams](docs/CloudJobCreateParams.md) + - [CloudJobExtended](docs/CloudJobExtended.md) + - [CloudJobFiles](docs/CloudJobFiles.md) + - [CloudJobFilesName](docs/CloudJobFilesName.md) + - [CloudJobJobEngineJob](docs/CloudJobJobEngineJob.md) + - [CloudJobs](docs/CloudJobs.md) + - [CloudJobsExtended](docs/CloudJobsExtended.md) + - [CloudJobsFiles](docs/CloudJobsFiles.md) + - [CloudPool](docs/CloudPool.md) + - [CloudPoolCreateParams](docs/CloudPoolCreateParams.md) + - [CloudPoolExtended](docs/CloudPoolExtended.md) + - [CloudPools](docs/CloudPools.md) + - [CloudPoolsExtended](docs/CloudPoolsExtended.md) + - [CloudSettings](docs/CloudSettings.md) + - [CloudSettingsSettings](docs/CloudSettingsSettings.md) + - [CloudSettingsSettingsSleepTimeoutCloudGarbageCollection](docs/CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md) + - [ClusterAddNodeItem](docs/ClusterAddNodeItem.md) + - [ClusterArchiveItem](docs/ClusterArchiveItem.md) + - [ClusterAssessItem](docs/ClusterAssessItem.md) + - [ClusterConfig](docs/ClusterConfig.md) + - [ClusterConfigDevice](docs/ClusterConfigDevice.md) + - [ClusterConfigOnefsVersion](docs/ClusterConfigOnefsVersion.md) + - [ClusterConfigTimezone](docs/ClusterConfigTimezone.md) + - [ClusterEmail](docs/ClusterEmail.md) + - [ClusterEmailExtended](docs/ClusterEmailExtended.md) + - [ClusterEmailSettings](docs/ClusterEmailSettings.md) + - [ClusterFirmwareProgress](docs/ClusterFirmwareProgress.md) + - [ClusterFirmwareStatus](docs/ClusterFirmwareStatus.md) + - [ClusterFirmwareStatusNode](docs/ClusterFirmwareStatusNode.md) + - [ClusterFirmwareStatusNodeDevice](docs/ClusterFirmwareStatusNodeDevice.md) + - [ClusterFirmwareStatusNodePackageItem](docs/ClusterFirmwareStatusNodePackageItem.md) + - [ClusterFirmwareUpgradeItem](docs/ClusterFirmwareUpgradeItem.md) + - [ClusterIdentity](docs/ClusterIdentity.md) + - [ClusterIdentityLogon](docs/ClusterIdentityLogon.md) + - [ClusterNode](docs/ClusterNode.md) + - [ClusterNodeExtended](docs/ClusterNodeExtended.md) + - [ClusterNodeHardware](docs/ClusterNodeHardware.md) + - [ClusterNodePartitions](docs/ClusterNodePartitions.md) + - [ClusterNodeSensors](docs/ClusterNodeSensors.md) + - [ClusterNodeState](docs/ClusterNodeState.md) + - [ClusterNodeStateExtended](docs/ClusterNodeStateExtended.md) + - [ClusterNodeStateServicelight](docs/ClusterNodeStateServicelight.md) + - [ClusterNodeStateSmartfail](docs/ClusterNodeStateSmartfail.md) + - [ClusterNodeStatus](docs/ClusterNodeStatus.md) + - [ClusterNodes](docs/ClusterNodes.md) + - [ClusterNodesAvailable](docs/ClusterNodesAvailable.md) + - [ClusterNodesAvailableNode](docs/ClusterNodesAvailableNode.md) + - [ClusterNodesError](docs/ClusterNodesError.md) + - [ClusterNodesExtended](docs/ClusterNodesExtended.md) + - [ClusterNodesOnefsVersion](docs/ClusterNodesOnefsVersion.md) + - [ClusterOwner](docs/ClusterOwner.md) + - [ClusterPatchPatche](docs/ClusterPatchPatche.md) + - [ClusterRetryLastActionItem](docs/ClusterRetryLastActionItem.md) + - [ClusterStatfs](docs/ClusterStatfs.md) + - [ClusterTime](docs/ClusterTime.md) + - [ClusterTimeError](docs/ClusterTimeError.md) + - [ClusterTimeExtended](docs/ClusterTimeExtended.md) + - [ClusterTimeNode](docs/ClusterTimeNode.md) + - [ClusterTimezone](docs/ClusterTimezone.md) + - [ClusterTimezoneExtended](docs/ClusterTimezoneExtended.md) + - [ClusterUpgrade](docs/ClusterUpgrade.md) + - [ClusterUpgradeItem](docs/ClusterUpgradeItem.md) + - [ClusterVersion](docs/ClusterVersion.md) + - [ClusterVersionNode](docs/ClusterVersionNode.md) + - [CompatibilitiesClassActive](docs/CompatibilitiesClassActive.md) + - [CompatibilitiesClassActiveActiveItem](docs/CompatibilitiesClassActiveActiveItem.md) + - [CompatibilitiesClassActiveExtended](docs/CompatibilitiesClassActiveExtended.md) + - [CompatibilitiesClassActiveItem](docs/CompatibilitiesClassActiveItem.md) + - [CompatibilitiesClassAvailable](docs/CompatibilitiesClassAvailable.md) + - [CompatibilitiesClassAvailableAvailableItem](docs/CompatibilitiesClassAvailableAvailableItem.md) + - [CompatibilitiesSsdActive](docs/CompatibilitiesSsdActive.md) + - [CompatibilitiesSsdActiveActiveItem](docs/CompatibilitiesSsdActiveActiveItem.md) + - [CompatibilitiesSsdActiveExtended](docs/CompatibilitiesSsdActiveExtended.md) + - [CompatibilitiesSsdActiveIdParams](docs/CompatibilitiesSsdActiveIdParams.md) + - [CompatibilitiesSsdActiveItem](docs/CompatibilitiesSsdActiveItem.md) + - [CompatibilitiesSsdAvailable](docs/CompatibilitiesSsdAvailable.md) + - [CompatibilitiesSsdAvailableAvailableItem](docs/CompatibilitiesSsdAvailableAvailableItem.md) + - [CreateAntivirusScanItemResponse](docs/CreateAntivirusScanItemResponse.md) + - [CreateAuthRefreshItemResponse](docs/CreateAuthRefreshItemResponse.md) + - [CreateCloudAccountResponse](docs/CreateCloudAccountResponse.md) + - [CreateCloudJobResponse](docs/CreateCloudJobResponse.md) + - [CreateCloudPoolResponse](docs/CreateCloudPoolResponse.md) + - [CreateCompatibilitiesClassActiveItemResponse](docs/CreateCompatibilitiesClassActiveItemResponse.md) + - [CreateCompatibilitiesClassActiveItemResponseMerge](docs/CreateCompatibilitiesClassActiveItemResponseMerge.md) + - [CreateCompatibilitiesClassActiveItemResponseSplit](docs/CreateCompatibilitiesClassActiveItemResponseSplit.md) + - [CreateFilepoolPolicyResponse](docs/CreateFilepoolPolicyResponse.md) + - [CreateHardeningApplyItemResponse](docs/CreateHardeningApplyItemResponse.md) + - [CreateHardeningResolveItemResponse](docs/CreateHardeningResolveItemResponse.md) + - [CreateHardeningRevertItemResponse](docs/CreateHardeningRevertItemResponse.md) + - [CreateJobJobResponse](docs/CreateJobJobResponse.md) + - [CreateNfsAliaseResponse](docs/CreateNfsAliaseResponse.md) + - [CreateNfsNlmSessionsCheckItemResponse](docs/CreateNfsNlmSessionsCheckItemResponse.md) + - [CreateQuotaReportResponse](docs/CreateQuotaReportResponse.md) + - [CreateResponse](docs/CreateResponse.md) + - [CreateSnapshotAliaseResponse](docs/CreateSnapshotAliaseResponse.md) + - [CreateSnapshotChangelistResponse](docs/CreateSnapshotChangelistResponse.md) + - [CreateSnapshotLockResponse](docs/CreateSnapshotLockResponse.md) + - [CreateSnapshotRepstateResponse](docs/CreateSnapshotRepstateResponse.md) + - [CreateSnapshotScheduleResponse](docs/CreateSnapshotScheduleResponse.md) + - [CreateSnapshotSnapshotResponse](docs/CreateSnapshotSnapshotResponse.md) + - [CreateStoragepoolTierResponse](docs/CreateStoragepoolTierResponse.md) + - [CreateSyncReportsRotateItemResponse](docs/CreateSyncReportsRotateItemResponse.md) + - [CreateWormDomainResponse](docs/CreateWormDomainResponse.md) + - [DebugStats](docs/DebugStats.md) + - [DebugStatsHandler](docs/DebugStatsHandler.md) + - [DebugStatsUnknown](docs/DebugStatsUnknown.md) + - [DedupeDedupeSummary](docs/DedupeDedupeSummary.md) + - [DedupeDedupeSummarySummary](docs/DedupeDedupeSummarySummary.md) + - [DedupeReport](docs/DedupeReport.md) + - [DedupeReportExtended](docs/DedupeReportExtended.md) + - [DedupeReports](docs/DedupeReports.md) + - [DedupeReportsExtended](docs/DedupeReportsExtended.md) + - [DedupeSettings](docs/DedupeSettings.md) + - [DedupeSettingsExtended](docs/DedupeSettingsExtended.md) + - [DedupeSettingsSettings](docs/DedupeSettingsSettings.md) + - [DrivesDriveFirmware](docs/DrivesDriveFirmware.md) + - [DrivesDriveFirmwareNode](docs/DrivesDriveFirmwareNode.md) + - [DrivesDriveFirmwareNodeDrive](docs/DrivesDriveFirmwareNodeDrive.md) + - [DrivesDriveFirmwareUpdate](docs/DrivesDriveFirmwareUpdate.md) + - [DrivesDriveFirmwareUpdateItem](docs/DrivesDriveFirmwareUpdateItem.md) + - [DrivesDriveFirmwareUpdateNode](docs/DrivesDriveFirmwareUpdateNode.md) + - [DrivesDriveFirmwareUpdateNodeStatus](docs/DrivesDriveFirmwareUpdateNodeStatus.md) + - [DrivesDriveFormatItem](docs/DrivesDriveFormatItem.md) + - [DrivesDrivePurposeItem](docs/DrivesDrivePurposeItem.md) + - [Empty](docs/Empty.md) + - [Error](docs/Error.md) + - [EventAlertCondition](docs/EventAlertCondition.md) + - [EventAlertConditions](docs/EventAlertConditions.md) + - [EventAlertConditionsAlertCondition](docs/EventAlertConditionsAlertCondition.md) + - [EventAlertConditionsExtended](docs/EventAlertConditionsExtended.md) + - [EventCategories](docs/EventCategories.md) + - [EventCategoriesExtended](docs/EventCategoriesExtended.md) + - [EventCategory](docs/EventCategory.md) + - [EventChannel](docs/EventChannel.md) + - [EventChannelParameters](docs/EventChannelParameters.md) + - [EventChannels](docs/EventChannels.md) + - [EventChannelsAlertCondition](docs/EventChannelsAlertCondition.md) + - [EventChannelsExtended](docs/EventChannelsExtended.md) + - [EventEvent](docs/EventEvent.md) + - [EventEventgroupDefinitions](docs/EventEventgroupDefinitions.md) + - [EventEventgroupDefinitionsEventgroupDefinition](docs/EventEventgroupDefinitionsEventgroupDefinition.md) + - [EventEventgroupDefinitionsExtended](docs/EventEventgroupDefinitionsExtended.md) + - [EventEventgroupOccurrence](docs/EventEventgroupOccurrence.md) + - [EventEventgroupOccurrences](docs/EventEventgroupOccurrences.md) + - [EventEventgroupOccurrencesEventgroupOccurrence](docs/EventEventgroupOccurrencesEventgroupOccurrence.md) + - [EventEventgroupOccurrencesExtended](docs/EventEventgroupOccurrencesExtended.md) + - [EventEventlists](docs/EventEventlists.md) + - [EventEventlistsEventlistItem](docs/EventEventlistsEventlistItem.md) + - [EventEventlistsEventlistItemEvent](docs/EventEventlistsEventlistItemEvent.md) + - [EventEventlistsExtended](docs/EventEventlistsExtended.md) + - [EventSettings](docs/EventSettings.md) + - [EventSettingsMaintenance](docs/EventSettingsMaintenance.md) + - [FileFilterSettings](docs/FileFilterSettings.md) + - [FilepoolDefaultPolicy](docs/FilepoolDefaultPolicy.md) + - [FilepoolDefaultPolicyDefaultPolicy](docs/FilepoolDefaultPolicyDefaultPolicy.md) + - [FilepoolDefaultPolicyDefaultPolicyAction](docs/FilepoolDefaultPolicyDefaultPolicyAction.md) + - [FilepoolDefaultPolicyExtended](docs/FilepoolDefaultPolicyExtended.md) + - [FilepoolPolicies](docs/FilepoolPolicies.md) + - [FilepoolPolicy](docs/FilepoolPolicy.md) + - [FilepoolPolicyExtended](docs/FilepoolPolicyExtended.md) + - [FilepoolPolicyFileMatchingPattern](docs/FilepoolPolicyFileMatchingPattern.md) + - [FilepoolPolicyFileMatchingPatternOrCriteriaItem](docs/FilepoolPolicyFileMatchingPatternOrCriteriaItem.md) + - [FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem](docs/FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md) + - [FilepoolTemplate](docs/FilepoolTemplate.md) + - [FilepoolTemplates](docs/FilepoolTemplates.md) + - [FsaResult](docs/FsaResult.md) + - [FsaResultExtended](docs/FsaResultExtended.md) + - [FsaResults](docs/FsaResults.md) + - [FsaResultsExtended](docs/FsaResultsExtended.md) + - [FsaSettings](docs/FsaSettings.md) + - [FsaSettingsSettings](docs/FsaSettingsSettings.md) + - [FtpSettings](docs/FtpSettings.md) + - [FtpSettingsSettings](docs/FtpSettingsSettings.md) + - [GroupMember](docs/GroupMember.md) + - [GroupMembers](docs/GroupMembers.md) + - [GroupnetSubnet](docs/GroupnetSubnet.md) + - [GroupnetSubnetCreateParams](docs/GroupnetSubnetCreateParams.md) + - [GroupnetSubnetExtended](docs/GroupnetSubnetExtended.md) + - [GroupnetSubnets](docs/GroupnetSubnets.md) + - [GroupnetSubnetsExtended](docs/GroupnetSubnetsExtended.md) + - [HardeningApplyItem](docs/HardeningApplyItem.md) + - [HardeningResolveItem](docs/HardeningResolveItem.md) + - [HardeningState](docs/HardeningState.md) + - [HardeningStateState](docs/HardeningStateState.md) + - [HardeningStatus](docs/HardeningStatus.md) + - [HardeningStatusStatus](docs/HardeningStatusStatus.md) + - [HardwareFcport](docs/HardwareFcport.md) + - [HardwareFcports](docs/HardwareFcports.md) + - [HardwareTapeNameParams](docs/HardwareTapeNameParams.md) + - [HardwareTapes](docs/HardwareTapes.md) + - [HdfsLogLevel](docs/HdfsLogLevel.md) + - [HdfsProxyuser](docs/HdfsProxyuser.md) + - [HdfsProxyusers](docs/HdfsProxyusers.md) + - [HdfsRack](docs/HdfsRack.md) + - [HdfsRackExtended](docs/HdfsRackExtended.md) + - [HdfsRacks](docs/HdfsRacks.md) + - [HdfsRacksExtended](docs/HdfsRacksExtended.md) + - [HdfsSettings](docs/HdfsSettings.md) + - [HdfsSettingsSettings](docs/HdfsSettingsSettings.md) + - [HistoryFile](docs/HistoryFile.md) + - [HistoryFileStatistic](docs/HistoryFileStatistic.md) + - [HttpSettings](docs/HttpSettings.md) + - [HttpSettingsSettings](docs/HttpSettingsSettings.md) + - [JobEvent](docs/JobEvent.md) + - [JobEvents](docs/JobEvents.md) + - [JobJob](docs/JobJob.md) + - [JobJobAvscanParams](docs/JobJobAvscanParams.md) + - [JobJobChangelistcreateParams](docs/JobJobChangelistcreateParams.md) + - [JobJobCreateParams](docs/JobJobCreateParams.md) + - [JobJobDomainmarkParams](docs/JobJobDomainmarkParams.md) + - [JobJobExtended](docs/JobJobExtended.md) + - [JobJobPrepairParams](docs/JobJobPrepairParams.md) + - [JobJobSmartpoolstreeParams](docs/JobJobSmartpoolstreeParams.md) + - [JobJobSnaprevertParams](docs/JobJobSnaprevertParams.md) + - [JobJobSummary](docs/JobJobSummary.md) + - [JobJobSummarySummary](docs/JobJobSummarySummary.md) + - [JobJobs](docs/JobJobs.md) + - [JobJobsExtended](docs/JobJobsExtended.md) + - [JobPolicies](docs/JobPolicies.md) + - [JobPoliciesExtended](docs/JobPoliciesExtended.md) + - [JobPoliciesType](docs/JobPoliciesType.md) + - [JobPolicy](docs/JobPolicy.md) + - [JobPolicyCreateParams](docs/JobPolicyCreateParams.md) + - [JobPolicyInterval](docs/JobPolicyInterval.md) + - [JobRecent](docs/JobRecent.md) + - [JobRecentRecentItem](docs/JobRecentRecentItem.md) + - [JobReports](docs/JobReports.md) + - [JobStatistics](docs/JobStatistics.md) + - [JobStatisticsJob](docs/JobStatisticsJob.md) + - [JobStatisticsJobNode](docs/JobStatisticsJobNode.md) + - [JobStatisticsJobNodeCpu](docs/JobStatisticsJobNodeCpu.md) + - [JobStatisticsJobNodeIo](docs/JobStatisticsJobNodeIo.md) + - [JobStatisticsJobNodeIoRead](docs/JobStatisticsJobNodeIoRead.md) + - [JobStatisticsJobNodeIoWrite](docs/JobStatisticsJobNodeIoWrite.md) + - [JobStatisticsJobNodeMemory](docs/JobStatisticsJobNodeMemory.md) + - [JobStatisticsJobNodeMemoryPhysical](docs/JobStatisticsJobNodeMemoryPhysical.md) + - [JobStatisticsJobNodeMemoryVirtual](docs/JobStatisticsJobNodeMemoryVirtual.md) + - [JobStatisticsJobNodeWorker](docs/JobStatisticsJobNodeWorker.md) + - [JobType](docs/JobType.md) + - [JobTypeExtended](docs/JobTypeExtended.md) + - [JobTypes](docs/JobTypes.md) + - [JobTypesExtended](docs/JobTypesExtended.md) + - [LicenseLicense](docs/LicenseLicense.md) + - [LicenseLicenseCreateParams](docs/LicenseLicenseCreateParams.md) + - [LicenseLicenses](docs/LicenseLicenses.md) + - [MappingDump](docs/MappingDump.md) + - [MappingIdentities](docs/MappingIdentities.md) + - [MappingIdentity](docs/MappingIdentity.md) + - [MappingIdentityCreateParams](docs/MappingIdentityCreateParams.md) + - [MappingIdentityTarget](docs/MappingIdentityTarget.md) + - [MappingIdentityTargetCreateParams](docs/MappingIdentityTargetCreateParams.md) + - [MappingImport](docs/MappingImport.md) + - [MappingUsersLookup](docs/MappingUsersLookup.md) + - [MappingUsersLookupMappingItem](docs/MappingUsersLookupMappingItem.md) + - [MappingUsersLookupMappingItemGroup](docs/MappingUsersLookupMappingItemGroup.md) + - [MappingUsersLookupMappingItemUser](docs/MappingUsersLookupMappingItemUser.md) + - [MappingUsersRules](docs/MappingUsersRules.md) + - [MappingUsersRulesRule](docs/MappingUsersRulesRule.md) + - [MappingUsersRulesRuleOptions](docs/MappingUsersRulesRuleOptions.md) + - [MappingUsersRulesRuleUser2](docs/MappingUsersRulesRuleUser2.md) + - [MappingUsersRulesRules](docs/MappingUsersRulesRules.md) + - [MappingUsersRulesRulesParameters](docs/MappingUsersRulesRulesParameters.md) + - [NdmpContextsBre](docs/NdmpContextsBre.md) + - [NdmpContextsBreContext](docs/NdmpContextsBreContext.md) + - [NdmpDiagnostics](docs/NdmpDiagnostics.md) + - [NdmpDiagnosticsDiagnostics](docs/NdmpDiagnosticsDiagnostics.md) + - [NdmpLogs](docs/NdmpLogs.md) + - [NdmpSession](docs/NdmpSession.md) + - [NdmpSessions](docs/NdmpSessions.md) + - [NdmpSettingsGlobal](docs/NdmpSettingsGlobal.md) + - [NdmpSettingsGlobalGlobal](docs/NdmpSettingsGlobalGlobal.md) + - [NdmpSettingsVariable](docs/NdmpSettingsVariable.md) + - [NdmpUser](docs/NdmpUser.md) + - [NdmpUserCreateParams](docs/NdmpUserCreateParams.md) + - [NdmpUsers](docs/NdmpUsers.md) + - [NdmpUsersExtended](docs/NdmpUsersExtended.md) + - [NetworkDnscache](docs/NetworkDnscache.md) + - [NetworkDnscacheSetting](docs/NetworkDnscacheSetting.md) + - [NetworkExternal](docs/NetworkExternal.md) + - [NetworkExternalExtended](docs/NetworkExternalExtended.md) + - [NetworkExternalSetting](docs/NetworkExternalSetting.md) + - [NetworkGroupnet](docs/NetworkGroupnet.md) + - [NetworkGroupnetExtended](docs/NetworkGroupnetExtended.md) + - [NetworkGroupnets](docs/NetworkGroupnets.md) + - [NetworkGroupnetsExtended](docs/NetworkGroupnetsExtended.md) + - [NetworkPools](docs/NetworkPools.md) + - [NetworkRules](docs/NetworkRules.md) + - [NetworkSubnet](docs/NetworkSubnet.md) + - [NetworkSubnets](docs/NetworkSubnets.md) + - [NfsAliase](docs/NfsAliase.md) + - [NfsAliaseExtended](docs/NfsAliaseExtended.md) + - [NfsAliases](docs/NfsAliases.md) + - [NfsAliasesExtended](docs/NfsAliasesExtended.md) + - [NfsCheck](docs/NfsCheck.md) + - [NfsCheckExtended](docs/NfsCheckExtended.md) + - [NfsExport](docs/NfsExport.md) + - [NfsExportExtended](docs/NfsExportExtended.md) + - [NfsExportMapAll](docs/NfsExportMapAll.md) + - [NfsExportMapAllSecondaryGroups](docs/NfsExportMapAllSecondaryGroups.md) + - [NfsExports](docs/NfsExports.md) + - [NfsExportsExtended](docs/NfsExportsExtended.md) + - [NfsExportsSummary](docs/NfsExportsSummary.md) + - [NfsExportsSummarySummary](docs/NfsExportsSummarySummary.md) + - [NfsLogLevel](docs/NfsLogLevel.md) + - [NfsNetgroup](docs/NfsNetgroup.md) + - [NfsNlmLocks](docs/NfsNlmLocks.md) + - [NfsNlmLocksLock](docs/NfsNlmLocksLock.md) + - [NfsNlmSessions](docs/NfsNlmSessions.md) + - [NfsNlmSessionsExtended](docs/NfsNlmSessionsExtended.md) + - [NfsNlmSessionsSession](docs/NfsNlmSessionsSession.md) + - [NfsNlmWaiters](docs/NfsNlmWaiters.md) + - [NfsSettingsExport](docs/NfsSettingsExport.md) + - [NfsSettingsExportSettings](docs/NfsSettingsExportSettings.md) + - [NfsSettingsGlobal](docs/NfsSettingsGlobal.md) + - [NfsSettingsGlobalSettings](docs/NfsSettingsGlobalSettings.md) + - [NfsSettingsZone](docs/NfsSettingsZone.md) + - [NfsSettingsZoneSettings](docs/NfsSettingsZoneSettings.md) + - [NodeDrives](docs/NodeDrives.md) + - [NodeDrivesNode](docs/NodeDrivesNode.md) + - [NodeDrivesNodeDrive](docs/NodeDrivesNodeDrive.md) + - [NodeDrivesNodeDriveFirmware](docs/NodeDrivesNodeDriveFirmware.md) + - [NodeDrivesPurposelist](docs/NodeDrivesPurposelist.md) + - [NodeDrivesPurposelistNode](docs/NodeDrivesPurposelistNode.md) + - [NodeDrivesPurposelistNodePurpose](docs/NodeDrivesPurposelistNodePurpose.md) + - [NodeHardware](docs/NodeHardware.md) + - [NodeHardwareNode](docs/NodeHardwareNode.md) + - [NodePartitions](docs/NodePartitions.md) + - [NodePartitionsNode](docs/NodePartitionsNode.md) + - [NodePartitionsNodePartition](docs/NodePartitionsNodePartition.md) + - [NodePartitionsNodePartitionStatfs](docs/NodePartitionsNodePartitionStatfs.md) + - [NodeSensors](docs/NodeSensors.md) + - [NodeSensorsNode](docs/NodeSensorsNode.md) + - [NodeSensorsNodeSensor](docs/NodeSensorsNodeSensor.md) + - [NodeSensorsNodeSensorValue](docs/NodeSensorsNodeSensorValue.md) + - [NodeState](docs/NodeState.md) + - [NodeStateNode](docs/NodeStateNode.md) + - [NodeStateReadonly](docs/NodeStateReadonly.md) + - [NodeStateReadonlyExtended](docs/NodeStateReadonlyExtended.md) + - [NodeStateReadonlyNode](docs/NodeStateReadonlyNode.md) + - [NodeStateServicelight](docs/NodeStateServicelight.md) + - [NodeStateServicelightExtended](docs/NodeStateServicelightExtended.md) + - [NodeStateServicelightNode](docs/NodeStateServicelightNode.md) + - [NodeStateSmartfail](docs/NodeStateSmartfail.md) + - [NodeStateSmartfailExtended](docs/NodeStateSmartfailExtended.md) + - [NodeStateSmartfailNode](docs/NodeStateSmartfailNode.md) + - [NodeStatus](docs/NodeStatus.md) + - [NodeStatusBatterystatus](docs/NodeStatusBatterystatus.md) + - [NodeStatusBatterystatusNode](docs/NodeStatusBatterystatusNode.md) + - [NodeStatusNode](docs/NodeStatusNode.md) + - [NodeStatusNodeBatterystatus](docs/NodeStatusNodeBatterystatus.md) + - [NodeStatusNodeCapacityItem](docs/NodeStatusNodeCapacityItem.md) + - [NodeStatusNodeCpu](docs/NodeStatusNodeCpu.md) + - [NodeStatusNodeNvram](docs/NodeStatusNodeNvram.md) + - [NodeStatusNodeNvramBattery](docs/NodeStatusNodeNvramBattery.md) + - [NodeStatusNodePowersupplies](docs/NodeStatusNodePowersupplies.md) + - [NodeStatusNodePowersuppliesSupply](docs/NodeStatusNodePowersuppliesSupply.md) + - [NodesNodeFirmwareStatus](docs/NodesNodeFirmwareStatus.md) + - [NtpServer](docs/NtpServer.md) + - [NtpServerCreateParams](docs/NtpServerCreateParams.md) + - [NtpServerExtended](docs/NtpServerExtended.md) + - [NtpServers](docs/NtpServers.md) + - [NtpServersExtended](docs/NtpServersExtended.md) + - [NtpSettings](docs/NtpSettings.md) + - [NtpSettingsSettings](docs/NtpSettingsSettings.md) + - [PoolsPoolInterfaces](docs/PoolsPoolInterfaces.md) + - [PoolsPoolInterfacesInterfaceItem](docs/PoolsPoolInterfacesInterfaceItem.md) + - [PoolsPoolInterfacesInterfaceItemOwner](docs/PoolsPoolInterfacesInterfaceItemOwner.md) + - [PoolsPoolRule](docs/PoolsPoolRule.md) + - [PoolsPoolRules](docs/PoolsPoolRules.md) + - [PoolsPoolRulesExtended](docs/PoolsPoolRulesExtended.md) + - [PoolsPoolRulesRule](docs/PoolsPoolRulesRule.md) + - [PoolsPoolScResumeNode](docs/PoolsPoolScResumeNode.md) + - [ProvidersAds](docs/ProvidersAds.md) + - [ProvidersAdsAdsItem](docs/ProvidersAdsAdsItem.md) + - [ProvidersAdsAdsItemExtended](docs/ProvidersAdsAdsItemExtended.md) + - [ProvidersAdsExtended](docs/ProvidersAdsExtended.md) + - [ProvidersAdsIdParams](docs/ProvidersAdsIdParams.md) + - [ProvidersAdsItem](docs/ProvidersAdsItem.md) + - [ProvidersFile](docs/ProvidersFile.md) + - [ProvidersFileFileItem](docs/ProvidersFileFileItem.md) + - [ProvidersFileIdParams](docs/ProvidersFileIdParams.md) + - [ProvidersKrb5](docs/ProvidersKrb5.md) + - [ProvidersKrb5Extended](docs/ProvidersKrb5Extended.md) + - [ProvidersKrb5IdParams](docs/ProvidersKrb5IdParams.md) + - [ProvidersKrb5IdParamsKeytabEntry](docs/ProvidersKrb5IdParamsKeytabEntry.md) + - [ProvidersKrb5Item](docs/ProvidersKrb5Item.md) + - [ProvidersKrb5Krb5Item](docs/ProvidersKrb5Krb5Item.md) + - [ProvidersKrb5Krb5ItemExtended](docs/ProvidersKrb5Krb5ItemExtended.md) + - [ProvidersLdap](docs/ProvidersLdap.md) + - [ProvidersLdapIdParams](docs/ProvidersLdapIdParams.md) + - [ProvidersLdapItem](docs/ProvidersLdapItem.md) + - [ProvidersLdapLdapItem](docs/ProvidersLdapLdapItem.md) + - [ProvidersLocal](docs/ProvidersLocal.md) + - [ProvidersLocalIdParams](docs/ProvidersLocalIdParams.md) + - [ProvidersLocalLocalItem](docs/ProvidersLocalLocalItem.md) + - [ProvidersNis](docs/ProvidersNis.md) + - [ProvidersNisExtended](docs/ProvidersNisExtended.md) + - [ProvidersNisIdParams](docs/ProvidersNisIdParams.md) + - [ProvidersNisItem](docs/ProvidersNisItem.md) + - [ProvidersNisNisItem](docs/ProvidersNisNisItem.md) + - [ProvidersNisNisItemExtended](docs/ProvidersNisNisItemExtended.md) + - [ProvidersSummary](docs/ProvidersSummary.md) + - [ProvidersSummaryProviderInstance](docs/ProvidersSummaryProviderInstance.md) + - [ProvidersSummaryProviderInstanceConnection](docs/ProvidersSummaryProviderInstanceConnection.md) + - [QuotaNotification](docs/QuotaNotification.md) + - [QuotaNotificationCreateParams](docs/QuotaNotificationCreateParams.md) + - [QuotaNotificationExtended](docs/QuotaNotificationExtended.md) + - [QuotaNotifications](docs/QuotaNotifications.md) + - [QuotaNotificationsExtended](docs/QuotaNotificationsExtended.md) + - [QuotaQuota](docs/QuotaQuota.md) + - [QuotaQuotaCreateParams](docs/QuotaQuotaCreateParams.md) + - [QuotaQuotaExtended](docs/QuotaQuotaExtended.md) + - [QuotaQuotaThresholds](docs/QuotaQuotaThresholds.md) + - [QuotaQuotaThresholdsExtended](docs/QuotaQuotaThresholdsExtended.md) + - [QuotaQuotaUsage](docs/QuotaQuotaUsage.md) + - [QuotaQuotas](docs/QuotaQuotas.md) + - [QuotaQuotasExtended](docs/QuotaQuotasExtended.md) + - [QuotaQuotasSummary](docs/QuotaQuotasSummary.md) + - [QuotaQuotasSummarySummary](docs/QuotaQuotasSummarySummary.md) + - [QuotaReports](docs/QuotaReports.md) + - [RemotesupportConnectemc](docs/RemotesupportConnectemc.md) + - [RemotesupportConnectemcConnectemc](docs/RemotesupportConnectemcConnectemc.md) + - [ReportAbout](docs/ReportAbout.md) + - [ReportAboutReport](docs/ReportAboutReport.md) + - [ReportSubreport](docs/ReportSubreport.md) + - [ReportSubreportPhase](docs/ReportSubreportPhase.md) + - [ReportSubreportPolicy](docs/ReportSubreportPolicy.md) + - [ReportSubreportPolicyFileMatchingPattern](docs/ReportSubreportPolicyFileMatchingPattern.md) + - [ReportSubreportPolicyFileMatchingPatternOrCriteriaItem](docs/ReportSubreportPolicyFileMatchingPatternOrCriteriaItem.md) + - [ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem](docs/ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md) + - [ReportSubreports](docs/ReportSubreports.md) + - [ReportSubreportsExtended](docs/ReportSubreportsExtended.md) + - [ReportsReportSubreports](docs/ReportsReportSubreports.md) + - [ReportsReportSubreportsExtended](docs/ReportsReportSubreportsExtended.md) + - [ReportsReportSubreportsSubreport](docs/ReportsReportSubreportsSubreport.md) + - [ReportsScans](docs/ReportsScans.md) + - [ReportsScansExtended](docs/ReportsScansExtended.md) + - [ReportsScansReport](docs/ReportsScansReport.md) + - [ReportsThreats](docs/ReportsThreats.md) + - [ReportsThreatsExtended](docs/ReportsThreatsExtended.md) + - [ReportsThreatsReport](docs/ReportsThreatsReport.md) + - [ResultDirectoriesTotalUsage](docs/ResultDirectoriesTotalUsage.md) + - [ResultHistogram](docs/ResultHistogram.md) + - [ResultHistogramHistogramItem](docs/ResultHistogramHistogramItem.md) + - [ResultTopDirs](docs/ResultTopDirs.md) + - [ResultTopDirsDir](docs/ResultTopDirsDir.md) + - [ResultTopFiles](docs/ResultTopFiles.md) + - [ResultTopFilesFile](docs/ResultTopFilesFile.md) + - [RolePrivileges](docs/RolePrivileges.md) + - [SettingsAccessTime](docs/SettingsAccessTime.md) + - [SettingsAccessTimeExtended](docs/SettingsAccessTimeExtended.md) + - [SettingsAccessTimeSettings](docs/SettingsAccessTimeSettings.md) + - [SettingsAcls](docs/SettingsAcls.md) + - [SettingsAclsAclPolicySettings](docs/SettingsAclsAclPolicySettings.md) + - [SettingsGlobal](docs/SettingsGlobal.md) + - [SettingsGlobalExtended](docs/SettingsGlobalExtended.md) + - [SettingsGlobalGlobalSettings](docs/SettingsGlobalGlobalSettings.md) + - [SettingsGlobalSettings](docs/SettingsGlobalSettings.md) + - [SettingsKrb5Defaults](docs/SettingsKrb5Defaults.md) + - [SettingsKrb5DefaultsKrb5Settings](docs/SettingsKrb5DefaultsKrb5Settings.md) + - [SettingsKrb5Domain](docs/SettingsKrb5Domain.md) + - [SettingsKrb5DomainCreateParams](docs/SettingsKrb5DomainCreateParams.md) + - [SettingsKrb5Domains](docs/SettingsKrb5Domains.md) + - [SettingsKrb5DomainsDomainItem](docs/SettingsKrb5DomainsDomainItem.md) + - [SettingsKrb5Realm](docs/SettingsKrb5Realm.md) + - [SettingsKrb5RealmCreateParams](docs/SettingsKrb5RealmCreateParams.md) + - [SettingsKrb5Realms](docs/SettingsKrb5Realms.md) + - [SettingsKrb5RealmsRealmItem](docs/SettingsKrb5RealmsRealmItem.md) + - [SettingsMapping](docs/SettingsMapping.md) + - [SettingsMappingExtended](docs/SettingsMappingExtended.md) + - [SettingsMappingMappingSettings](docs/SettingsMappingMappingSettings.md) + - [SettingsMappings](docs/SettingsMappings.md) + - [SettingsNotification](docs/SettingsNotification.md) + - [SettingsNotificationCreateParams](docs/SettingsNotificationCreateParams.md) + - [SettingsNotifications](docs/SettingsNotifications.md) + - [SettingsNotificationsExtended](docs/SettingsNotificationsExtended.md) + - [SettingsReportingEulaItem](docs/SettingsReportingEulaItem.md) + - [SettingsReports](docs/SettingsReports.md) + - [SettingsReportsSettings](docs/SettingsReportsSettings.md) + - [SmbLogLevel](docs/SmbLogLevel.md) + - [SmbLogLevelFilter](docs/SmbLogLevelFilter.md) + - [SmbLogLevelFilters](docs/SmbLogLevelFilters.md) + - [SmbLogLevelFiltersExtended](docs/SmbLogLevelFiltersExtended.md) + - [SmbLogLevelFiltersFilter](docs/SmbLogLevelFiltersFilter.md) + - [SmbOpenfile](docs/SmbOpenfile.md) + - [SmbOpenfiles](docs/SmbOpenfiles.md) + - [SmbSession](docs/SmbSession.md) + - [SmbSessions](docs/SmbSessions.md) + - [SmbSettingsGlobal](docs/SmbSettingsGlobal.md) + - [SmbSettingsGlobalSettings](docs/SmbSettingsGlobalSettings.md) + - [SmbSettingsGlobalSettingsAuditGlobalSaclItem](docs/SmbSettingsGlobalSettingsAuditGlobalSaclItem.md) + - [SmbSettingsShare](docs/SmbSettingsShare.md) + - [SmbSettingsShareSettings](docs/SmbSettingsShareSettings.md) + - [SmbShare](docs/SmbShare.md) + - [SmbShareCreateParams](docs/SmbShareCreateParams.md) + - [SmbShareExtended](docs/SmbShareExtended.md) + - [SmbSharePermission](docs/SmbSharePermission.md) + - [SmbShares](docs/SmbShares.md) + - [SmbSharesExtended](docs/SmbSharesExtended.md) + - [SmbSharesSummary](docs/SmbSharesSummary.md) + - [SmbSharesSummarySummary](docs/SmbSharesSummarySummary.md) + - [SnapshotAliase](docs/SnapshotAliase.md) + - [SnapshotAliaseCreateParams](docs/SnapshotAliaseCreateParams.md) + - [SnapshotAliaseExtended](docs/SnapshotAliaseExtended.md) + - [SnapshotAliases](docs/SnapshotAliases.md) + - [SnapshotAliasesExtended](docs/SnapshotAliasesExtended.md) + - [SnapshotChangelists](docs/SnapshotChangelists.md) + - [SnapshotChangelistsExtended](docs/SnapshotChangelistsExtended.md) + - [SnapshotLock](docs/SnapshotLock.md) + - [SnapshotLockCreateParams](docs/SnapshotLockCreateParams.md) + - [SnapshotLockExtended](docs/SnapshotLockExtended.md) + - [SnapshotLocks](docs/SnapshotLocks.md) + - [SnapshotLocksExtended](docs/SnapshotLocksExtended.md) + - [SnapshotPending](docs/SnapshotPending.md) + - [SnapshotPendingPendingItem](docs/SnapshotPendingPendingItem.md) + - [SnapshotRepstates](docs/SnapshotRepstates.md) + - [SnapshotRepstatesExtended](docs/SnapshotRepstatesExtended.md) + - [SnapshotSchedule](docs/SnapshotSchedule.md) + - [SnapshotScheduleExtended](docs/SnapshotScheduleExtended.md) + - [SnapshotSchedules](docs/SnapshotSchedules.md) + - [SnapshotSchedulesExtended](docs/SnapshotSchedulesExtended.md) + - [SnapshotSettings](docs/SnapshotSettings.md) + - [SnapshotSettingsSettings](docs/SnapshotSettingsSettings.md) + - [SnapshotSnapshot](docs/SnapshotSnapshot.md) + - [SnapshotSnapshotCreateParams](docs/SnapshotSnapshotCreateParams.md) + - [SnapshotSnapshotExtended](docs/SnapshotSnapshotExtended.md) + - [SnapshotSnapshots](docs/SnapshotSnapshots.md) + - [SnapshotSnapshotsExtended](docs/SnapshotSnapshotsExtended.md) + - [SnapshotSnapshotsSummary](docs/SnapshotSnapshotsSummary.md) + - [SnapshotSnapshotsSummarySummary](docs/SnapshotSnapshotsSummarySummary.md) + - [SnmpSettings](docs/SnmpSettings.md) + - [SnmpSettingsExtended](docs/SnmpSettingsExtended.md) + - [SnmpSettingsSettings](docs/SnmpSettingsSettings.md) + - [StatisticsCurrent](docs/StatisticsCurrent.md) + - [StatisticsCurrentStat](docs/StatisticsCurrentStat.md) + - [StatisticsHistory](docs/StatisticsHistory.md) + - [StatisticsHistoryStat](docs/StatisticsHistoryStat.md) + - [StatisticsHistoryStatValue](docs/StatisticsHistoryStatValue.md) + - [StatisticsKey](docs/StatisticsKey.md) + - [StatisticsKeyPolicy](docs/StatisticsKeyPolicy.md) + - [StatisticsKeys](docs/StatisticsKeys.md) + - [StatisticsKeysExtended](docs/StatisticsKeysExtended.md) + - [StatisticsOperation](docs/StatisticsOperation.md) + - [StatisticsOperations](docs/StatisticsOperations.md) + - [StatisticsProtocol](docs/StatisticsProtocol.md) + - [StatisticsProtocols](docs/StatisticsProtocols.md) + - [StoragepoolNodepool](docs/StoragepoolNodepool.md) + - [StoragepoolNodepoolExtended](docs/StoragepoolNodepoolExtended.md) + - [StoragepoolNodepools](docs/StoragepoolNodepools.md) + - [StoragepoolNodepoolsExtended](docs/StoragepoolNodepoolsExtended.md) + - [StoragepoolSettings](docs/StoragepoolSettings.md) + - [StoragepoolSettingsExtended](docs/StoragepoolSettingsExtended.md) + - [StoragepoolSettingsSettings](docs/StoragepoolSettingsSettings.md) + - [StoragepoolSettingsSettingsSpilloverTarget](docs/StoragepoolSettingsSettingsSpilloverTarget.md) + - [StoragepoolSettingsSpilloverTarget](docs/StoragepoolSettingsSpilloverTarget.md) + - [StoragepoolStatus](docs/StoragepoolStatus.md) + - [StoragepoolStatusUnhealthyItem](docs/StoragepoolStatusUnhealthyItem.md) + - [StoragepoolStatusUnhealthyItemAffectedItem](docs/StoragepoolStatusUnhealthyItemAffectedItem.md) + - [StoragepoolStatusUnhealthyItemDiskpool](docs/StoragepoolStatusUnhealthyItemDiskpool.md) + - [StoragepoolStatusUnprovisionedItem](docs/StoragepoolStatusUnprovisionedItem.md) + - [StoragepoolStoragepool](docs/StoragepoolStoragepool.md) + - [StoragepoolStoragepools](docs/StoragepoolStoragepools.md) + - [StoragepoolSuggestedProtection](docs/StoragepoolSuggestedProtection.md) + - [StoragepoolSuggestedProtectionSuggestedProtectionItem](docs/StoragepoolSuggestedProtectionSuggestedProtectionItem.md) + - [StoragepoolTier](docs/StoragepoolTier.md) + - [StoragepoolTierExtended](docs/StoragepoolTierExtended.md) + - [StoragepoolTierUsage](docs/StoragepoolTierUsage.md) + - [StoragepoolTiers](docs/StoragepoolTiers.md) + - [StoragepoolTiersExtended](docs/StoragepoolTiersExtended.md) + - [StoragepoolUnprovisioned](docs/StoragepoolUnprovisioned.md) + - [StoragepoolUnprovisionedUnprovisionedItem](docs/StoragepoolUnprovisionedUnprovisionedItem.md) + - [SubnetsSubnetPool](docs/SubnetsSubnetPool.md) + - [SubnetsSubnetPoolIface](docs/SubnetsSubnetPoolIface.md) + - [SubnetsSubnetPoolRange](docs/SubnetsSubnetPoolRange.md) + - [SubnetsSubnetPoolStaticRoute](docs/SubnetsSubnetPoolStaticRoute.md) + - [SubnetsSubnetPools](docs/SubnetsSubnetPools.md) + - [SubnetsSubnetPoolsExtended](docs/SubnetsSubnetPoolsExtended.md) + - [SubnetsSubnetPoolsPool](docs/SubnetsSubnetPoolsPool.md) + - [SummaryClient](docs/SummaryClient.md) + - [SummaryClientClientItem](docs/SummaryClientClientItem.md) + - [SummaryDrive](docs/SummaryDrive.md) + - [SummaryDriveDriveItem](docs/SummaryDriveDriveItem.md) + - [SummaryHeat](docs/SummaryHeat.md) + - [SummaryHeatHeatItem](docs/SummaryHeatHeatItem.md) + - [SummaryProtocol](docs/SummaryProtocol.md) + - [SummaryProtocolProtocolItem](docs/SummaryProtocolProtocolItem.md) + - [SummarySystem](docs/SummarySystem.md) + - [SummarySystemSystemItem](docs/SummarySystemSystemItem.md) + - [SwiftAccount](docs/SwiftAccount.md) + - [SwiftAccountExtended](docs/SwiftAccountExtended.md) + - [SwiftAccounts](docs/SwiftAccounts.md) + - [SyncJob](docs/SyncJob.md) + - [SyncJobCreateParams](docs/SyncJobCreateParams.md) + - [SyncJobExtended](docs/SyncJobExtended.md) + - [SyncJobWorker](docs/SyncJobWorker.md) + - [SyncJobs](docs/SyncJobs.md) + - [SyncJobsExtended](docs/SyncJobsExtended.md) + - [SyncPolicies](docs/SyncPolicies.md) + - [SyncPoliciesExtended](docs/SyncPoliciesExtended.md) + - [SyncPolicy](docs/SyncPolicy.md) + - [SyncPolicyCreateParams](docs/SyncPolicyCreateParams.md) + - [SyncPolicyExtended](docs/SyncPolicyExtended.md) + - [SyncPolicySourceNetwork](docs/SyncPolicySourceNetwork.md) + - [SyncReport](docs/SyncReport.md) + - [SyncReportPolicy](docs/SyncReportPolicy.md) + - [SyncReports](docs/SyncReports.md) + - [SyncReportsExtended](docs/SyncReportsExtended.md) + - [SyncReportsRotate](docs/SyncReportsRotate.md) + - [SyncRule](docs/SyncRule.md) + - [SyncRuleCreateParams](docs/SyncRuleCreateParams.md) + - [SyncRuleExtended](docs/SyncRuleExtended.md) + - [SyncRuleSchedule](docs/SyncRuleSchedule.md) + - [SyncRules](docs/SyncRules.md) + - [SyncRulesExtended](docs/SyncRulesExtended.md) + - [SyncSettings](docs/SyncSettings.md) + - [SyncSettingsExtended](docs/SyncSettingsExtended.md) + - [SyncSettingsSettings](docs/SyncSettingsSettings.md) + - [TargetPolicies](docs/TargetPolicies.md) + - [TargetPoliciesExtended](docs/TargetPoliciesExtended.md) + - [TargetPolicy](docs/TargetPolicy.md) + - [TargetReport](docs/TargetReport.md) + - [TargetReports](docs/TargetReports.md) + - [TargetReportsExtended](docs/TargetReportsExtended.md) + - [TimezoneRegion](docs/TimezoneRegion.md) + - [TimezoneRegionTimezone](docs/TimezoneRegionTimezone.md) + - [TimezoneRegions](docs/TimezoneRegions.md) + - [TimezoneSettings](docs/TimezoneSettings.md) + - [UpgradeCluster](docs/UpgradeCluster.md) + - [UpgradeClusterClusterOverview](docs/UpgradeClusterClusterOverview.md) + - [UpgradeClusterUpgradeSettings](docs/UpgradeClusterUpgradeSettings.md) + - [UserChangePassword](docs/UserChangePassword.md) + - [UserMemberOf](docs/UserMemberOf.md) + - [WormDomain](docs/WormDomain.md) + - [WormDomainCreateParams](docs/WormDomainCreateParams.md) + - [WormDomainExtended](docs/WormDomainExtended.md) + - [WormDomains](docs/WormDomains.md) + - [WormDomainsExtended](docs/WormDomainsExtended.md) + - [WormSettings](docs/WormSettings.md) + - [WormSettingsExtended](docs/WormSettingsExtended.md) + - [WormSettingsSettings](docs/WormSettingsSettings.md) + - [Zone](docs/Zone.md) + - [ZoneCreateParams](docs/ZoneCreateParams.md) + - [ZoneExtended](docs/ZoneExtended.md) + - [Zones](docs/Zones.md) + - [ZonesSummary](docs/ZonesSummary.md) + - [ZonesSummaryExtended](docs/ZonesSummaryExtended.md) + - [ZonesSummarySummary](docs/ZonesSummarySummary.md) + - [ZonesSummarySummaryExtended](docs/ZonesSummarySummaryExtended.md) + + +## Documentation For Authorization + + +## basic_auth + +- **Type**: HTTP basic authentication + + +## Author + +sdk@isilon.com + + +## License Copyright (c) 2016 EMC Corporation Permission is hereby granted, free of charge, to any person obtaining a copy @@ -76,4 +1458,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/docs/AdsProviderControllers.md b/docs/AdsProviderControllers.md new file mode 100644 index 000000000..4cc73075c --- /dev/null +++ b/docs/AdsProviderControllers.md @@ -0,0 +1,10 @@ +# AdsProviderControllers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**list[AdsProviderControllersController]**](AdsProviderControllersController.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdsProviderControllersController.md b/docs/AdsProviderControllersController.md new file mode 100644 index 000000000..326a93ec5 --- /dev/null +++ b/docs/AdsProviderControllersController.md @@ -0,0 +1,12 @@ +# AdsProviderControllersController + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dc_address** | **str** | Specifies the address for the domain controller. | [optional] +**dc_name** | **str** | Specifies the name of the domain controller. | [optional] +**id** | **str** | Specifies the address for the domain controller. This value is the same as the 'dc_address' value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdsProviderDomains.md b/docs/AdsProviderDomains.md new file mode 100644 index 000000000..28869f8a0 --- /dev/null +++ b/docs/AdsProviderDomains.md @@ -0,0 +1,10 @@ +# AdsProviderDomains + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domains** | [**list[AdsProviderDomainsDomain]**](AdsProviderDomainsDomain.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdsProviderDomainsDomain.md b/docs/AdsProviderDomainsDomain.md new file mode 100644 index 000000000..fbbb890c3 --- /dev/null +++ b/docs/AdsProviderDomainsDomain.md @@ -0,0 +1,20 @@ +# AdsProviderDomainsDomain + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_site** | **str** | The Nodes Site. | [optional] +**dc_address** | **str** | Specifies the address for the domain controller. | [optional] +**dc_name** | **str** | Specifies the name for the domain controller. | [optional] +**dc_site** | **str** | Specifies the site for the domain controller. | [optional] +**domain** | **str** | Specifies the name of the domain. | [optional] +**guid** | **str** | Specifies the globally unique ID for the domain. | [optional] +**id** | **str** | Specifies a unique identifier for every domain returned. | [optional] +**netbios_name** | **str** | Specifies the NetBIOS name for the domain. | [optional] +**sid** | **str** | Specifies the security ID for the domain. | [optional] +**status** | **str** | Specifies the status of the domain. | [optional] +**trust_type** | **str** | Specifies the type of trust for this domain. Options include 'primary', 'unknown', 'external', and 'forest'. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdsProviderSearch.md b/docs/AdsProviderSearch.md new file mode 100644 index 000000000..10b9a7a0e --- /dev/null +++ b/docs/AdsProviderSearch.md @@ -0,0 +1,11 @@ +# AdsProviderSearch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**objects** | [**list[AdsProviderSearchObject]**](AdsProviderSearchObject.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdsProviderSearchObject.md b/docs/AdsProviderSearchObject.md new file mode 100644 index 000000000..1d670475f --- /dev/null +++ b/docs/AdsProviderSearchObject.md @@ -0,0 +1,12 @@ +# AdsProviderSearchObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**display_name** | **str** | | [optional] +**id** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusApi.md b/docs/AntivirusApi.md new file mode 100644 index 000000000..5fc43f86f --- /dev/null +++ b/docs/AntivirusApi.md @@ -0,0 +1,1199 @@ +# isi_sdk.AntivirusApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_antivirus_policy**](AntivirusApi.md#create_antivirus_policy) | **POST** /platform/3/antivirus/policies | +[**create_antivirus_scan_item**](AntivirusApi.md#create_antivirus_scan_item) | **POST** /platform/3/antivirus/scan | +[**create_antivirus_server**](AntivirusApi.md#create_antivirus_server) | **POST** /platform/3/antivirus/servers | +[**delete_antivirus_policies**](AntivirusApi.md#delete_antivirus_policies) | **DELETE** /platform/3/antivirus/policies | +[**delete_antivirus_policy**](AntivirusApi.md#delete_antivirus_policy) | **DELETE** /platform/3/antivirus/policies/{AntivirusPolicyId} | +[**delete_antivirus_server**](AntivirusApi.md#delete_antivirus_server) | **DELETE** /platform/3/antivirus/servers/{AntivirusServerId} | +[**delete_antivirus_servers**](AntivirusApi.md#delete_antivirus_servers) | **DELETE** /platform/3/antivirus/servers | +[**delete_reports_scan**](AntivirusApi.md#delete_reports_scan) | **DELETE** /platform/3/antivirus/reports/scans/{ReportsScanId} | +[**delete_reports_scans**](AntivirusApi.md#delete_reports_scans) | **DELETE** /platform/3/antivirus/reports/scans | +[**get_antivirus_policy**](AntivirusApi.md#get_antivirus_policy) | **GET** /platform/3/antivirus/policies/{AntivirusPolicyId} | +[**get_antivirus_quarantine_path**](AntivirusApi.md#get_antivirus_quarantine_path) | **GET** /platform/3/antivirus/quarantine/{AntivirusQuarantinePath} | +[**get_antivirus_server**](AntivirusApi.md#get_antivirus_server) | **GET** /platform/3/antivirus/servers/{AntivirusServerId} | +[**get_antivirus_settings**](AntivirusApi.md#get_antivirus_settings) | **GET** /platform/3/antivirus/settings | +[**get_reports_scan**](AntivirusApi.md#get_reports_scan) | **GET** /platform/3/antivirus/reports/scans/{ReportsScanId} | +[**get_reports_scans**](AntivirusApi.md#get_reports_scans) | **GET** /platform/3/antivirus/reports/scans | +[**get_reports_threat**](AntivirusApi.md#get_reports_threat) | **GET** /platform/3/antivirus/reports/threats/{ReportsThreatId} | +[**get_reports_threats**](AntivirusApi.md#get_reports_threats) | **GET** /platform/3/antivirus/reports/threats | +[**list_antivirus_policies**](AntivirusApi.md#list_antivirus_policies) | **GET** /platform/3/antivirus/policies | +[**list_antivirus_servers**](AntivirusApi.md#list_antivirus_servers) | **GET** /platform/3/antivirus/servers | +[**update_antivirus_policy**](AntivirusApi.md#update_antivirus_policy) | **PUT** /platform/3/antivirus/policies/{AntivirusPolicyId} | +[**update_antivirus_quarantine_path**](AntivirusApi.md#update_antivirus_quarantine_path) | **PUT** /platform/3/antivirus/quarantine/{AntivirusQuarantinePath} | +[**update_antivirus_server**](AntivirusApi.md#update_antivirus_server) | **PUT** /platform/3/antivirus/servers/{AntivirusServerId} | +[**update_antivirus_settings**](AntivirusApi.md#update_antivirus_settings) | **PUT** /platform/3/antivirus/settings | + + +# **create_antivirus_policy** +> CreateResponse create_antivirus_policy(antivirus_policy) + + + +Create new antivirus scan policies. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_policy = isi_sdk.AntivirusPolicy() # AntivirusPolicy | + +try: + api_response = api_instance.create_antivirus_policy(antivirus_policy) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->create_antivirus_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_policy** | [**AntivirusPolicy**](AntivirusPolicy.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_antivirus_scan_item** +> CreateAntivirusScanItemResponse create_antivirus_scan_item(antivirus_scan_item) + + + +Manually scan a file. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_scan_item = isi_sdk.AntivirusScanItem() # AntivirusScanItem | + +try: + api_response = api_instance.create_antivirus_scan_item(antivirus_scan_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->create_antivirus_scan_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_scan_item** | [**AntivirusScanItem**](AntivirusScanItem.md)| | + +### Return type + +[**CreateAntivirusScanItemResponse**](CreateAntivirusScanItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_antivirus_server** +> CreateResponse create_antivirus_server(antivirus_server) + + + +Create new antivirus servers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_server = isi_sdk.AntivirusServer() # AntivirusServer | + +try: + api_response = api_instance.create_antivirus_server(antivirus_server) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->create_antivirus_server: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_server** | [**AntivirusServer**](AntivirusServer.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_antivirus_policies** +> delete_antivirus_policies() + + + +Delete all antivirus scan policies. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() + +try: + api_instance.delete_antivirus_policies() +except ApiException as e: + print "Exception when calling AntivirusApi->delete_antivirus_policies: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_antivirus_policy** +> delete_antivirus_policy(antivirus_policy_id) + + + +Delete an antivirus scan policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_policy_id = 'antivirus_policy_id_example' # str | Delete an antivirus scan policy. + +try: + api_instance.delete_antivirus_policy(antivirus_policy_id) +except ApiException as e: + print "Exception when calling AntivirusApi->delete_antivirus_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_policy_id** | **str**| Delete an antivirus scan policy. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_antivirus_server** +> delete_antivirus_server(antivirus_server_id) + + + +Delete an antivirus server entry. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_server_id = 'antivirus_server_id_example' # str | Delete an antivirus server entry. + +try: + api_instance.delete_antivirus_server(antivirus_server_id) +except ApiException as e: + print "Exception when calling AntivirusApi->delete_antivirus_server: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_server_id** | **str**| Delete an antivirus server entry. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_antivirus_servers** +> delete_antivirus_servers() + + + +Delete all antivirus servers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() + +try: + api_instance.delete_antivirus_servers() +except ApiException as e: + print "Exception when calling AntivirusApi->delete_antivirus_servers: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_reports_scan** +> delete_reports_scan(reports_scan_id) + + + +Delete one antivirus scan report, and all of its associated threat reports. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +reports_scan_id = 'reports_scan_id_example' # str | Delete one antivirus scan report, and all of its associated threat reports. + +try: + api_instance.delete_reports_scan(reports_scan_id) +except ApiException as e: + print "Exception when calling AntivirusApi->delete_reports_scan: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reports_scan_id** | **str**| Delete one antivirus scan report, and all of its associated threat reports. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_reports_scans** +> delete_reports_scans(age=age) + + + +Delete antivirus scan reports, and any threat reports associated with those scans. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +age = 56 # int | An amount of time in seconds. If present, only reports older than this age are deleted. (optional) + +try: + api_instance.delete_reports_scans(age=age) +except ApiException as e: + print "Exception when calling AntivirusApi->delete_reports_scans: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **age** | **int**| An amount of time in seconds. If present, only reports older than this age are deleted. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_antivirus_policy** +> AntivirusPolicies get_antivirus_policy(antivirus_policy_id) + + + +Retrieve one antivirus scan policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_policy_id = 'antivirus_policy_id_example' # str | Retrieve one antivirus scan policy. + +try: + api_response = api_instance.get_antivirus_policy(antivirus_policy_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->get_antivirus_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_policy_id** | **str**| Retrieve one antivirus scan policy. | + +### Return type + +[**AntivirusPolicies**](AntivirusPolicies.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_antivirus_quarantine_path** +> AntivirusQuarantine get_antivirus_quarantine_path(antivirus_quarantine_path) + + + +Retrieve the quarantine status of the file at the specified path. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_quarantine_path = 'antivirus_quarantine_path_example' # str | Retrieve the quarantine status of the file at the specified path. + +try: + api_response = api_instance.get_antivirus_quarantine_path(antivirus_quarantine_path) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->get_antivirus_quarantine_path: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_quarantine_path** | **str**| Retrieve the quarantine status of the file at the specified path. | + +### Return type + +[**AntivirusQuarantine**](AntivirusQuarantine.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_antivirus_server** +> AntivirusServers get_antivirus_server(antivirus_server_id) + + + +Retrieve one antivirus server entry. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_server_id = 'antivirus_server_id_example' # str | Retrieve one antivirus server entry. + +try: + api_response = api_instance.get_antivirus_server(antivirus_server_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->get_antivirus_server: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_server_id** | **str**| Retrieve one antivirus server entry. | + +### Return type + +[**AntivirusServers**](AntivirusServers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_antivirus_settings** +> AntivirusSettings get_antivirus_settings() + + + +Retrieve the Antivirus settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() + +try: + api_response = api_instance.get_antivirus_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->get_antivirus_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AntivirusSettings**](AntivirusSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reports_scan** +> ReportsScans get_reports_scan(reports_scan_id) + + + +Retrieve one antivirus scan report. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +reports_scan_id = 'reports_scan_id_example' # str | Retrieve one antivirus scan report. + +try: + api_response = api_instance.get_reports_scan(reports_scan_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->get_reports_scan: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reports_scan_id** | **str**| Retrieve one antivirus scan report. | + +### Return type + +[**ReportsScans**](ReportsScans.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reports_scans** +> ReportsScansExtended get_reports_scans(sort=sort, status=status, resume=resume, limit=limit, dir=dir, policy_id=policy_id) + + + +List antivirus scan reports. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +status = 'status_example' # str | If present, only scan reports with this status will be returned. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +policy_id = 'policy_id_example' # str | If present, only reports for scans associated with this policy will be returned. (optional) + +try: + api_response = api_instance.get_reports_scans(sort=sort, status=status, resume=resume, limit=limit, dir=dir, policy_id=policy_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->get_reports_scans: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **status** | **str**| If present, only scan reports with this status will be returned. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **policy_id** | **str**| If present, only reports for scans associated with this policy will be returned. | [optional] + +### Return type + +[**ReportsScansExtended**](ReportsScansExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reports_threat** +> ReportsThreats get_reports_threat(reports_threat_id) + + + +Retrieve one antivirus threat report. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +reports_threat_id = 'reports_threat_id_example' # str | Retrieve one antivirus threat report. + +try: + api_response = api_instance.get_reports_threat(reports_threat_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->get_reports_threat: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reports_threat_id** | **str**| Retrieve one antivirus threat report. | + +### Return type + +[**ReportsThreats**](ReportsThreats.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reports_threats** +> ReportsThreatsExtended get_reports_threats(sort=sort, scan_id=scan_id, resume=resume, limit=limit, file=file, remediation=remediation, dir=dir) + + + +List antivirus threat reports. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +scan_id = 'scan_id_example' # str | If present, only returns threat reports associated with the given scan report. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +file = 'file_example' # str | If present, only returns threat reports for the given file. (optional) +remediation = 'remediation_example' # str | If present, only returns threat reports with the given remediation. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_reports_threats(sort=sort, scan_id=scan_id, resume=resume, limit=limit, file=file, remediation=remediation, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->get_reports_threats: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **scan_id** | **str**| If present, only returns threat reports associated with the given scan report. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **file** | **str**| If present, only returns threat reports for the given file. | [optional] + **remediation** | **str**| If present, only returns threat reports with the given remediation. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**ReportsThreatsExtended**](ReportsThreatsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_antivirus_policies** +> AntivirusPoliciesExtended list_antivirus_policies(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List antivirus scan policies. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_antivirus_policies(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->list_antivirus_policies: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**AntivirusPoliciesExtended**](AntivirusPoliciesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_antivirus_servers** +> AntivirusServersExtended list_antivirus_servers(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List antivirus servers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_antivirus_servers(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling AntivirusApi->list_antivirus_servers: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**AntivirusServersExtended**](AntivirusServersExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_antivirus_policy** +> update_antivirus_policy(antivirus_policy, antivirus_policy_id) + + + +Modify an antivirus scan policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_policy = isi_sdk.AntivirusPolicy() # AntivirusPolicy | +antivirus_policy_id = 'antivirus_policy_id_example' # str | Modify an antivirus scan policy. + +try: + api_instance.update_antivirus_policy(antivirus_policy, antivirus_policy_id) +except ApiException as e: + print "Exception when calling AntivirusApi->update_antivirus_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_policy** | [**AntivirusPolicy**](AntivirusPolicy.md)| | + **antivirus_policy_id** | **str**| Modify an antivirus scan policy. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_antivirus_quarantine_path** +> update_antivirus_quarantine_path(antivirus_quarantine_path_params, antivirus_quarantine_path) + + + +Set the quarantine status of the file at the specified path. Use either an empty object {} in the request body or {\"quarantined\":true} to quarantine the file, and {\"quarantined\":false} to unquarantine the file. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_quarantine_path_params = isi_sdk.AntivirusQuarantinePathParams() # AntivirusQuarantinePathParams | +antivirus_quarantine_path = 'antivirus_quarantine_path_example' # str | Set the quarantine status of the file at the specified path. Use either an empty object {} in the request body or {\"quarantined\":true} to quarantine the file, and {\"quarantined\":false} to unquarantine the file. + +try: + api_instance.update_antivirus_quarantine_path(antivirus_quarantine_path_params, antivirus_quarantine_path) +except ApiException as e: + print "Exception when calling AntivirusApi->update_antivirus_quarantine_path: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_quarantine_path_params** | [**AntivirusQuarantinePathParams**](AntivirusQuarantinePathParams.md)| | + **antivirus_quarantine_path** | **str**| Set the quarantine status of the file at the specified path. Use either an empty object {} in the request body or {\"quarantined\":true} to quarantine the file, and {\"quarantined\":false} to unquarantine the file. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_antivirus_server** +> update_antivirus_server(antivirus_server, antivirus_server_id) + + + +Modify an antivirus server entry. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_server = isi_sdk.AntivirusServer() # AntivirusServer | +antivirus_server_id = 'antivirus_server_id_example' # str | Modify an antivirus server entry. + +try: + api_instance.update_antivirus_server(antivirus_server, antivirus_server_id) +except ApiException as e: + print "Exception when calling AntivirusApi->update_antivirus_server: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_server** | [**AntivirusServer**](AntivirusServer.md)| | + **antivirus_server_id** | **str**| Modify an antivirus server entry. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_antivirus_settings** +> update_antivirus_settings(antivirus_settings) + + + +Modify the Antivirus settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AntivirusApi() +antivirus_settings = isi_sdk.AntivirusSettingsSettings() # AntivirusSettingsSettings | + +try: + api_instance.update_antivirus_settings(antivirus_settings) +except ApiException as e: + print "Exception when calling AntivirusApi->update_antivirus_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **antivirus_settings** | [**AntivirusSettingsSettings**](AntivirusSettingsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AntivirusPolicies.md b/docs/AntivirusPolicies.md new file mode 100644 index 000000000..3096db6c8 --- /dev/null +++ b/docs/AntivirusPolicies.md @@ -0,0 +1,10 @@ +# AntivirusPolicies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**list[AntivirusPolicyExtended]**](AntivirusPolicyExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusPoliciesExtended.md b/docs/AntivirusPoliciesExtended.md new file mode 100644 index 000000000..062b6c3bd --- /dev/null +++ b/docs/AntivirusPoliciesExtended.md @@ -0,0 +1,12 @@ +# AntivirusPoliciesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**list[AntivirusPolicyExtended]**](AntivirusPolicyExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusPolicy.md b/docs/AntivirusPolicy.md new file mode 100644 index 000000000..f69863a5e --- /dev/null +++ b/docs/AntivirusPolicy.md @@ -0,0 +1,17 @@ +# AntivirusPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description for the policy. | [optional] +**enabled** | **bool** | Whether the policy is enabled. | [optional] +**force_run** | **bool** | Forces the scan to run regardless of whether the files were recently scanned. | [optional] +**impact** | **str** | The priority of the antivirus scan job. Must be a valid job engine impact policy, or null to use the default impact. | [optional] +**name** | **str** | The name of the policy. | [optional] +**paths** | **list[str]** | Paths to include in the scan. | [optional] +**recursion_depth** | **int** | The depth to recurse in directories. The default of -1 gives unlimited recursion. | [optional] +**schedule** | **str** | The schedule for running scans in isi date format. Examples include: 'every Friday' or 'every day at 4:00'. A null value means the policy is manually scheduled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusPolicyExtended.md b/docs/AntivirusPolicyExtended.md new file mode 100644 index 000000000..acc91b17c --- /dev/null +++ b/docs/AntivirusPolicyExtended.md @@ -0,0 +1,19 @@ +# AntivirusPolicyExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description for the policy. | [optional] +**enabled** | **bool** | Whether the policy is enabled. | [optional] +**force_run** | **bool** | Forces the scan to run regardless of whether the files were recently scanned. | [optional] +**impact** | **str** | The priority of the antivirus scan job. Must be a valid job engine impact policy, or null to use the default impact. | [optional] +**name** | **str** | The name of the policy. | [optional] +**paths** | **list[str]** | Paths to include in the scan. | [optional] +**recursion_depth** | **int** | The depth to recurse in directories. The default of -1 gives unlimited recursion. | [optional] +**schedule** | **str** | The schedule for running scans in isi date format. Examples include: 'every Friday' or 'every day at 4:00'. A null value means the policy is manually scheduled. | [optional] +**id** | **str** | A unique identifier for the policy. | [optional] +**last_run** | **int** | The epoch time of the last run of this policy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusQuarantine.md b/docs/AntivirusQuarantine.md new file mode 100644 index 000000000..82a2044a3 --- /dev/null +++ b/docs/AntivirusQuarantine.md @@ -0,0 +1,15 @@ +# AntivirusQuarantine + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file** | **str** | Path of this file, starting with /ifs. | +**last_istag** | **str** | The ICAP Service Tag (ISTag) recorded for this file during the last scan, or null if no tag was recorded. For more information about ISTags, see https://tools.ietf.org/html/rfc3507. | +**last_scan** | **int** | The date and time this file was last scanned for viruses, as a UNIX timestamp. If null, the file has never been scanned. | +**quarantined** | **bool** | If true, this file is quarantined. If false, the file is not quarantined. | +**scan_result** | **str** | The result of the last scan on this file. This string is usually one of: never_scanned, clean, quarantined, repaired, truncated, infected_no_action_taken, skipped_per_settings. However, a longer string starting with 'unknown_status' and describing the details can also appear in uncommon edge cases. | +**scan_status** | **str** | The scanning status of this file. If 'current', the file was scanned with the most up-to-date virus defintions. If 'not_current', it has either not been scanned, been modified since the last scan, or the virus definitions are not current. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusQuarantinePathParams.md b/docs/AntivirusQuarantinePathParams.md new file mode 100644 index 000000000..134f978f8 --- /dev/null +++ b/docs/AntivirusQuarantinePathParams.md @@ -0,0 +1,10 @@ +# AntivirusQuarantinePathParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**quarantined** | **bool** | If true, this file is quarantined. If false, the file is not quarantined. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusScanItem.md b/docs/AntivirusScanItem.md new file mode 100644 index 000000000..a34846976 --- /dev/null +++ b/docs/AntivirusScanItem.md @@ -0,0 +1,13 @@ +# AntivirusScanItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file** | **str** | The full path of the file to scan. | +**force_run** | **bool** | Forces the scan to run regardless of whether the files were recently scanned. The default value is true. | [optional] +**policy** | **str** | The ID of the policy to use for the scan. By default, the scan will use the MANUAL policy. | [optional] +**report_id** | **str** | The ID for the report for this scan. A report ID will be generated if one is not provided. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusServer.md b/docs/AntivirusServer.md new file mode 100644 index 000000000..7ff309487 --- /dev/null +++ b/docs/AntivirusServer.md @@ -0,0 +1,12 @@ +# AntivirusServer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description for the server. | [optional] +**enabled** | **bool** | Whether the server is enabled. | [optional] +**url** | **str** | The icap url for the server. This should have a format of: icap://host.domain:port/path | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusServerExtended.md b/docs/AntivirusServerExtended.md new file mode 100644 index 000000000..d055e3adb --- /dev/null +++ b/docs/AntivirusServerExtended.md @@ -0,0 +1,15 @@ +# AntivirusServerExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description for the server. | [optional] +**enabled** | **bool** | Whether the server is enabled. | [optional] +**url** | **str** | The icap url for the server. This should have a format of: icap://host.domain:port/path | [optional] +**definitions** | **str** | Virus definitions on the server. | [optional] +**id** | **str** | A unique identifier for the server. | [optional] +**status** | **str** | The status of the server. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusServers.md b/docs/AntivirusServers.md new file mode 100644 index 000000000..7505a4af3 --- /dev/null +++ b/docs/AntivirusServers.md @@ -0,0 +1,10 @@ +# AntivirusServers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**servers** | [**list[AntivirusServerExtended]**](AntivirusServerExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusServersExtended.md b/docs/AntivirusServersExtended.md new file mode 100644 index 000000000..7ffad9ccc --- /dev/null +++ b/docs/AntivirusServersExtended.md @@ -0,0 +1,12 @@ +# AntivirusServersExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**servers** | [**list[AntivirusServerExtended]**](AntivirusServerExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusSettings.md b/docs/AntivirusSettings.md new file mode 100644 index 000000000..8740f4eab --- /dev/null +++ b/docs/AntivirusSettings.md @@ -0,0 +1,10 @@ +# AntivirusSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**AntivirusSettingsSettings**](AntivirusSettingsSettings.md) | Antivirus settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AntivirusSettingsSettings.md b/docs/AntivirusSettingsSettings.md new file mode 100644 index 000000000..6a62cb1a6 --- /dev/null +++ b/docs/AntivirusSettingsSettings.md @@ -0,0 +1,22 @@ +# AntivirusSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fail_open** | **bool** | Allow access when scanning fails. | [optional] +**glob_filters** | **list[str]** | Glob patterns for leaf filenames. | [optional] +**glob_filters_enabled** | **bool** | Enable glob filters. | [optional] +**glob_filters_include** | **bool** | If true, only scan files matching a glob filter. If false, only scan files that don't match a glob filter. | [optional] +**path_prefixes** | **list[str]** | Paths to include in realtime scans. | [optional] +**quarantine** | **bool** | Try to quarantine files when threats are found. | [optional] +**repair** | **bool** | Try to repair files when threats are found. | [optional] +**report_expiry** | **int** | Amount of time in seconds until old reporting data is purged. | [optional] +**scan_on_close** | **bool** | Scan files when apps close them. | [optional] +**scan_on_open** | **bool** | Scan files on access. | [optional] +**scan_size_maximum** | **int** | Skip scanning files larger than this. | [optional] +**service** | **bool** | Whether the antivirus service is enabled. | [optional] +**truncate** | **bool** | Try to truncate files when threats are found. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditApi.md b/docs/AuditApi.md new file mode 100644 index 000000000..81216bf4e --- /dev/null +++ b/docs/AuditApi.md @@ -0,0 +1,459 @@ +# isi_sdk.AuditApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_audit_topic**](AuditApi.md#create_audit_topic) | **POST** /platform/1/audit/topics | +[**delete_audit_topic**](AuditApi.md#delete_audit_topic) | **DELETE** /platform/1/audit/topics/{AuditTopicId} | +[**get_audit_settings**](AuditApi.md#get_audit_settings) | **GET** /platform/3/audit/settings | +[**get_audit_topic**](AuditApi.md#get_audit_topic) | **GET** /platform/1/audit/topics/{AuditTopicId} | +[**get_settings_global**](AuditApi.md#get_settings_global) | **GET** /platform/3/audit/settings/global | +[**list_audit_topics**](AuditApi.md#list_audit_topics) | **GET** /platform/1/audit/topics | +[**update_audit_settings**](AuditApi.md#update_audit_settings) | **PUT** /platform/3/audit/settings | +[**update_audit_topic**](AuditApi.md#update_audit_topic) | **PUT** /platform/1/audit/topics/{AuditTopicId} | +[**update_settings_global**](AuditApi.md#update_settings_global) | **PUT** /platform/3/audit/settings/global | + + +# **create_audit_topic** +> CreateResponse create_audit_topic(audit_topic) + + + +Create a new audit topic. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() +audit_topic = isi_sdk.AuditTopicCreateParams() # AuditTopicCreateParams | + +try: + api_response = api_instance.create_audit_topic(audit_topic) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuditApi->create_audit_topic: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audit_topic** | [**AuditTopicCreateParams**](AuditTopicCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_audit_topic** +> delete_audit_topic(audit_topic_id) + + + +Delete the audit topic. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() +audit_topic_id = 'audit_topic_id_example' # str | Delete the audit topic. + +try: + api_instance.delete_audit_topic(audit_topic_id) +except ApiException as e: + print "Exception when calling AuditApi->delete_audit_topic: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audit_topic_id** | **str**| Delete the audit topic. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_audit_settings** +> AuditSettings get_audit_settings(zone=zone) + + + +View per-Access Zone Audit settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() +zone = 'zone_example' # str | Access zone which contains audit settings. (optional) + +try: + api_response = api_instance.get_audit_settings(zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuditApi->get_audit_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zone** | **str**| Access zone which contains audit settings. | [optional] + +### Return type + +[**AuditSettings**](AuditSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_audit_topic** +> AuditTopics get_audit_topic(audit_topic_id) + + + +Retrieve the audit topic information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() +audit_topic_id = 'audit_topic_id_example' # str | Retrieve the audit topic information. + +try: + api_response = api_instance.get_audit_topic(audit_topic_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuditApi->get_audit_topic: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audit_topic_id** | **str**| Retrieve the audit topic information. | + +### Return type + +[**AuditTopics**](AuditTopics.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_global** +> SettingsGlobalExtended get_settings_global() + + + +View Global Audit settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() + +try: + api_response = api_instance.get_settings_global() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuditApi->get_settings_global: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsGlobalExtended**](SettingsGlobalExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_audit_topics** +> AuditTopicsExtended list_audit_topics() + + + +Retrieve a list of audit topics. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() + +try: + api_response = api_instance.list_audit_topics() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuditApi->list_audit_topics: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AuditTopicsExtended**](AuditTopicsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_audit_settings** +> update_audit_settings(audit_settings, zone=zone) + + + +Modify per-Access Zone Audit settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() +audit_settings = isi_sdk.AuditSettingsSettings() # AuditSettingsSettings | +zone = 'zone_example' # str | Access zone which contains audit settings. (optional) + +try: + api_instance.update_audit_settings(audit_settings, zone=zone) +except ApiException as e: + print "Exception when calling AuditApi->update_audit_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audit_settings** | [**AuditSettingsSettings**](AuditSettingsSettings.md)| | + **zone** | **str**| Access zone which contains audit settings. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_audit_topic** +> update_audit_topic(audit_topic, audit_topic_id) + + + +Modify the audit topic. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() +audit_topic = isi_sdk.AuditTopic() # AuditTopic | +audit_topic_id = 'audit_topic_id_example' # str | Modify the audit topic. + +try: + api_instance.update_audit_topic(audit_topic, audit_topic_id) +except ApiException as e: + print "Exception when calling AuditApi->update_audit_topic: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audit_topic** | [**AuditTopic**](AuditTopic.md)| | + **audit_topic_id** | **str**| Modify the audit topic. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_global** +> update_settings_global(settings_global) + + + +Modify Global Audit settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuditApi() +settings_global = isi_sdk.SettingsGlobalSettings() # SettingsGlobalSettings | + +try: + api_instance.update_settings_global(settings_global) +except ApiException as e: + print "Exception when calling AuditApi->update_settings_global: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_global** | [**SettingsGlobalSettings**](SettingsGlobalSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuditSettings.md b/docs/AuditSettings.md new file mode 100644 index 000000000..fbfa4b060 --- /dev/null +++ b/docs/AuditSettings.md @@ -0,0 +1,10 @@ +# AuditSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**AuditSettingsSettings**](AuditSettingsSettings.md) | Per-Access Zone Audit settings | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditSettingsSettings.md b/docs/AuditSettingsSettings.md new file mode 100644 index 000000000..6e60a46d6 --- /dev/null +++ b/docs/AuditSettingsSettings.md @@ -0,0 +1,13 @@ +# AuditSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**audit_failure** | **list[str]** | Filter of protocol operations to Audit when they fail. | [optional] +**audit_success** | **list[str]** | Filter of protocol operations to Audit when they succeed. | [optional] +**syslog_audit_events** | **list[str]** | Filter of Audit operations to forward to syslog. | [optional] +**syslog_forwarding_enabled** | **bool** | Enables forwarding of events to syslog. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditTopic.md b/docs/AuditTopic.md new file mode 100644 index 000000000..b373da26a --- /dev/null +++ b/docs/AuditTopic.md @@ -0,0 +1,11 @@ +# AuditTopic + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Specifies the system-provided ID for the audit topic. | [optional] +**max_cached_messages** | **int** | Specifies the maximum number of messages that can be sent and received at the same time. Messages that are sent and received at the same time can be lost if a system crash occurs. You can prevent message loss by setting this property to 0, which sets audit logs to synchronous. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditTopicCreateParams.md b/docs/AuditTopicCreateParams.md new file mode 100644 index 000000000..b3807188e --- /dev/null +++ b/docs/AuditTopicCreateParams.md @@ -0,0 +1,11 @@ +# AuditTopicCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_cached_messages** | **int** | Specifies the maximum number of messages that can be sent and received at the same time. Messages that are sent and received at the same time can be lost if a system crash occurs. You can prevent message loss by setting this property to 0, which sets audit logs to synchronous. | [optional] +**name** | **str** | Specifies the name of the audit topic. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditTopicExtended.md b/docs/AuditTopicExtended.md new file mode 100644 index 000000000..3d68cdbfd --- /dev/null +++ b/docs/AuditTopicExtended.md @@ -0,0 +1,12 @@ +# AuditTopicExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Specifies the system-provided ID for the audit topic. | [optional] +**max_cached_messages** | **int** | Specifies the maximum number of messages that can be sent and received at the same time. Messages that are sent and received at the same time can be lost if a system crash occurs. You can prevent message loss by setting this property to 0, which sets audit logs to synchronous. | [optional] +**name** | **str** | Specifies the name of the audit topic. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditTopics.md b/docs/AuditTopics.md new file mode 100644 index 000000000..1b8e98297 --- /dev/null +++ b/docs/AuditTopics.md @@ -0,0 +1,10 @@ +# AuditTopics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topics** | [**list[AuditTopicExtended]**](AuditTopicExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditTopicsExtended.md b/docs/AuditTopicsExtended.md new file mode 100644 index 000000000..3b10df9d7 --- /dev/null +++ b/docs/AuditTopicsExtended.md @@ -0,0 +1,11 @@ +# AuditTopicsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**topics** | [**list[AuditTopicExtended]**](AuditTopicExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthAccess.md b/docs/AuthAccess.md new file mode 100644 index 000000000..eb21cf02e --- /dev/null +++ b/docs/AuthAccess.md @@ -0,0 +1,10 @@ +# AuthAccess + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access** | [**list[AuthAccessAccessItem]**](AuthAccessAccessItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthAccessAccessItem.md b/docs/AuthAccessAccessItem.md new file mode 100644 index 000000000..1e33db70d --- /dev/null +++ b/docs/AuthAccessAccessItem.md @@ -0,0 +1,14 @@ +# AuthAccessAccessItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file** | [**AuthAccessAccessItemFile**](AuthAccessAccessItemFile.md) | Specifies properties for access rights. | [optional] +**id** | **str** | Specifies the ID of the user. | [optional] +**permissions** | [**AuthAccessAccessItemPermissions**](AuthAccessAccessItemPermissions.md) | Specifies the permissions that the user has on the file. | [optional] +**relevant_aces** | [**list[AuthAccessAccessItemRelevantAce]**](AuthAccessAccessItemRelevantAce.md) | Specifies a list of the relevant Access Control Entries for the user. | [optional] +**user** | [**AuthAccessAccessItemUser**](AuthAccessAccessItemUser.md) | Specifies the persona for the user. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthAccessAccessItemFile.md b/docs/AuthAccessAccessItemFile.md new file mode 100644 index 000000000..211447020 --- /dev/null +++ b/docs/AuthAccessAccessItemFile.md @@ -0,0 +1,13 @@ +# AuthAccessAccessItemFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | **str** | Specifies the group name or ID for the file. | [optional] +**mode** | **str** | Specifies the mode bits on the file. | [optional] +**owner** | **str** | Specifies the name or ID of the file owner. | [optional] +**relevant_mode** | **str** | Specifies the mode bits that are related to the user. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthAccessAccessItemPermissions.md b/docs/AuthAccessAccessItemPermissions.md new file mode 100644 index 000000000..b007d54cb --- /dev/null +++ b/docs/AuthAccessAccessItemPermissions.md @@ -0,0 +1,14 @@ +# AuthAccessAccessItemPermissions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dacl** | **str** | Returns a status message if the Null ACL is set. | [optional] +**delete_child** | **str** | Returns a status message if the parent directory has the delete_child property set for the user. If the delete_child property is set for a user, that user is able to delete the file.the delete_child for the user. | [optional] +**expected** | **str** | Specifies the Access Control Entity (ACE) for the user. | [optional] +**ownership** | **str** | Returns a status message if the user owns the file. | [optional] +**sticky** | **str** | Returns a status message if the user owns the file. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthAccessAccessItemRelevantAce.md b/docs/AuthAccessAccessItemRelevantAce.md new file mode 100644 index 000000000..6212016ac --- /dev/null +++ b/docs/AuthAccessAccessItemRelevantAce.md @@ -0,0 +1,10 @@ +# AuthAccessAccessItemRelevantAce + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ace** | **str** | Specifies properties for an Access Control Entry | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthAccessAccessItemUser.md b/docs/AuthAccessAccessItemUser.md new file mode 100644 index 000000000..4362c691d --- /dev/null +++ b/docs/AuthAccessAccessItemUser.md @@ -0,0 +1,13 @@ +# AuthAccessAccessItemUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Specifies the serialized form of the persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'. | [optional] +**name** | **str** | Specifies the persona name, which must be combined with a type. | [optional] +**type** | **str** | Specifies the type, which must be combined with a name. | [optional] +**uid** | **int** | Specifies the uid of the user. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthApi.md b/docs/AuthApi.md new file mode 100644 index 000000000..e755525d5 --- /dev/null +++ b/docs/AuthApi.md @@ -0,0 +1,4464 @@ +# isi_sdk.AuthApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_auth_group**](AuthApi.md#create_auth_group) | **POST** /platform/1/auth/groups | +[**create_auth_refresh_item**](AuthApi.md#create_auth_refresh_item) | **POST** /platform/3/auth/refresh | +[**create_auth_role**](AuthApi.md#create_auth_role) | **POST** /platform/1/auth/roles | +[**create_auth_user**](AuthApi.md#create_auth_user) | **POST** /platform/1/auth/users | +[**create_mapping_identity**](AuthApi.md#create_mapping_identity) | **POST** /platform/1/auth/mapping/identities | +[**create_mapping_identity_0**](AuthApi.md#create_mapping_identity_0) | **POST** /platform/1/auth/mapping/identities/{MappingIdentityId} | +[**create_providers_ads_item**](AuthApi.md#create_providers_ads_item) | **POST** /platform/3/auth/providers/ads | +[**create_providers_file_item**](AuthApi.md#create_providers_file_item) | **POST** /platform/1/auth/providers/file | +[**create_providers_krb5_item**](AuthApi.md#create_providers_krb5_item) | **POST** /platform/3/auth/providers/krb5 | +[**create_providers_ldap_item**](AuthApi.md#create_providers_ldap_item) | **POST** /platform/3/auth/providers/ldap | +[**create_providers_nis_item**](AuthApi.md#create_providers_nis_item) | **POST** /platform/3/auth/providers/nis | +[**create_settings_krb5_domain**](AuthApi.md#create_settings_krb5_domain) | **POST** /platform/1/auth/settings/krb5/domains | +[**create_settings_krb5_realm**](AuthApi.md#create_settings_krb5_realm) | **POST** /platform/1/auth/settings/krb5/realms | +[**delete_auth_group**](AuthApi.md#delete_auth_group) | **DELETE** /platform/1/auth/groups/{AuthGroupId} | +[**delete_auth_groups**](AuthApi.md#delete_auth_groups) | **DELETE** /platform/1/auth/groups | +[**delete_auth_role**](AuthApi.md#delete_auth_role) | **DELETE** /platform/1/auth/roles/{AuthRoleId} | +[**delete_auth_user**](AuthApi.md#delete_auth_user) | **DELETE** /platform/1/auth/users/{AuthUserId} | +[**delete_auth_users**](AuthApi.md#delete_auth_users) | **DELETE** /platform/1/auth/users | +[**delete_mapping_identities**](AuthApi.md#delete_mapping_identities) | **DELETE** /platform/1/auth/mapping/identities | +[**delete_mapping_identity**](AuthApi.md#delete_mapping_identity) | **DELETE** /platform/1/auth/mapping/identities/{MappingIdentityId} | +[**delete_providers_ads_by_id**](AuthApi.md#delete_providers_ads_by_id) | **DELETE** /platform/3/auth/providers/ads/{ProvidersAdsId} | +[**delete_providers_file_by_id**](AuthApi.md#delete_providers_file_by_id) | **DELETE** /platform/1/auth/providers/file/{ProvidersFileId} | +[**delete_providers_krb5_by_id**](AuthApi.md#delete_providers_krb5_by_id) | **DELETE** /platform/3/auth/providers/krb5/{ProvidersKrb5Id} | +[**delete_providers_ldap_by_id**](AuthApi.md#delete_providers_ldap_by_id) | **DELETE** /platform/3/auth/providers/ldap/{ProvidersLdapId} | +[**delete_providers_local_by_id**](AuthApi.md#delete_providers_local_by_id) | **DELETE** /platform/1/auth/providers/local/{ProvidersLocalId} | +[**delete_providers_nis_by_id**](AuthApi.md#delete_providers_nis_by_id) | **DELETE** /platform/3/auth/providers/nis/{ProvidersNisId} | +[**delete_settings_krb5_domain**](AuthApi.md#delete_settings_krb5_domain) | **DELETE** /platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId} | +[**delete_settings_krb5_realm**](AuthApi.md#delete_settings_krb5_realm) | **DELETE** /platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId} | +[**get_auth_access_user**](AuthApi.md#get_auth_access_user) | **GET** /platform/1/auth/access/{AuthAccessUser} | +[**get_auth_group**](AuthApi.md#get_auth_group) | **GET** /platform/1/auth/groups/{AuthGroupId} | +[**get_auth_id**](AuthApi.md#get_auth_id) | **GET** /platform/1/auth/id | +[**get_auth_log_level**](AuthApi.md#get_auth_log_level) | **GET** /platform/3/auth/log-level | +[**get_auth_netgroup**](AuthApi.md#get_auth_netgroup) | **GET** /platform/1/auth/netgroups/{AuthNetgroupId} | +[**get_auth_privileges**](AuthApi.md#get_auth_privileges) | **GET** /platform/1/auth/privileges | +[**get_auth_role**](AuthApi.md#get_auth_role) | **GET** /platform/1/auth/roles/{AuthRoleId} | +[**get_auth_shells**](AuthApi.md#get_auth_shells) | **GET** /platform/1/auth/shells | +[**get_auth_user**](AuthApi.md#get_auth_user) | **GET** /platform/1/auth/users/{AuthUserId} | +[**get_auth_wellknown**](AuthApi.md#get_auth_wellknown) | **GET** /platform/1/auth/wellknowns/{AuthWellknownId} | +[**get_auth_wellknowns**](AuthApi.md#get_auth_wellknowns) | **GET** /platform/1/auth/wellknowns | +[**get_mapping_dump**](AuthApi.md#get_mapping_dump) | **GET** /platform/3/auth/mapping/dump | +[**get_mapping_identity**](AuthApi.md#get_mapping_identity) | **GET** /platform/1/auth/mapping/identities/{MappingIdentityId} | +[**get_mapping_users_lookup**](AuthApi.md#get_mapping_users_lookup) | **GET** /platform/1/auth/mapping/users/lookup | +[**get_mapping_users_rules**](AuthApi.md#get_mapping_users_rules) | **GET** /platform/1/auth/mapping/users/rules | +[**get_providers_ads_by_id**](AuthApi.md#get_providers_ads_by_id) | **GET** /platform/3/auth/providers/ads/{ProvidersAdsId} | +[**get_providers_file_by_id**](AuthApi.md#get_providers_file_by_id) | **GET** /platform/1/auth/providers/file/{ProvidersFileId} | +[**get_providers_krb5_by_id**](AuthApi.md#get_providers_krb5_by_id) | **GET** /platform/3/auth/providers/krb5/{ProvidersKrb5Id} | +[**get_providers_ldap_by_id**](AuthApi.md#get_providers_ldap_by_id) | **GET** /platform/3/auth/providers/ldap/{ProvidersLdapId} | +[**get_providers_local**](AuthApi.md#get_providers_local) | **GET** /platform/1/auth/providers/local | +[**get_providers_local_by_id**](AuthApi.md#get_providers_local_by_id) | **GET** /platform/1/auth/providers/local/{ProvidersLocalId} | +[**get_providers_nis_by_id**](AuthApi.md#get_providers_nis_by_id) | **GET** /platform/3/auth/providers/nis/{ProvidersNisId} | +[**get_providers_summary**](AuthApi.md#get_providers_summary) | **GET** /platform/3/auth/providers/summary | +[**get_settings_acls**](AuthApi.md#get_settings_acls) | **GET** /platform/3/auth/settings/acls | +[**get_settings_global**](AuthApi.md#get_settings_global) | **GET** /platform/1/auth/settings/global | +[**get_settings_krb5_defaults**](AuthApi.md#get_settings_krb5_defaults) | **GET** /platform/1/auth/settings/krb5/defaults | +[**get_settings_krb5_domain**](AuthApi.md#get_settings_krb5_domain) | **GET** /platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId} | +[**get_settings_krb5_realm**](AuthApi.md#get_settings_krb5_realm) | **GET** /platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId} | +[**get_settings_mapping**](AuthApi.md#get_settings_mapping) | **GET** /platform/1/auth/settings/mapping | +[**list_auth_groups**](AuthApi.md#list_auth_groups) | **GET** /platform/1/auth/groups | +[**list_auth_roles**](AuthApi.md#list_auth_roles) | **GET** /platform/1/auth/roles | +[**list_auth_users**](AuthApi.md#list_auth_users) | **GET** /platform/1/auth/users | +[**list_providers_ads**](AuthApi.md#list_providers_ads) | **GET** /platform/3/auth/providers/ads | +[**list_providers_file**](AuthApi.md#list_providers_file) | **GET** /platform/1/auth/providers/file | +[**list_providers_krb5**](AuthApi.md#list_providers_krb5) | **GET** /platform/3/auth/providers/krb5 | +[**list_providers_ldap**](AuthApi.md#list_providers_ldap) | **GET** /platform/3/auth/providers/ldap | +[**list_providers_nis**](AuthApi.md#list_providers_nis) | **GET** /platform/3/auth/providers/nis | +[**list_settings_krb5_domains**](AuthApi.md#list_settings_krb5_domains) | **GET** /platform/1/auth/settings/krb5/domains | +[**list_settings_krb5_realms**](AuthApi.md#list_settings_krb5_realms) | **GET** /platform/1/auth/settings/krb5/realms | +[**update_auth_group**](AuthApi.md#update_auth_group) | **PUT** /platform/1/auth/groups/{AuthGroupId} | +[**update_auth_log_level**](AuthApi.md#update_auth_log_level) | **PUT** /platform/3/auth/log-level | +[**update_auth_role**](AuthApi.md#update_auth_role) | **PUT** /platform/1/auth/roles/{AuthRoleId} | +[**update_auth_user**](AuthApi.md#update_auth_user) | **PUT** /platform/1/auth/users/{AuthUserId} | +[**update_mapping_import**](AuthApi.md#update_mapping_import) | **PUT** /platform/3/auth/mapping/import | +[**update_mapping_users_rules**](AuthApi.md#update_mapping_users_rules) | **PUT** /platform/1/auth/mapping/users/rules | +[**update_providers_ads_by_id**](AuthApi.md#update_providers_ads_by_id) | **PUT** /platform/3/auth/providers/ads/{ProvidersAdsId} | +[**update_providers_file_by_id**](AuthApi.md#update_providers_file_by_id) | **PUT** /platform/1/auth/providers/file/{ProvidersFileId} | +[**update_providers_krb5_by_id**](AuthApi.md#update_providers_krb5_by_id) | **PUT** /platform/3/auth/providers/krb5/{ProvidersKrb5Id} | +[**update_providers_ldap_by_id**](AuthApi.md#update_providers_ldap_by_id) | **PUT** /platform/3/auth/providers/ldap/{ProvidersLdapId} | +[**update_providers_local_by_id**](AuthApi.md#update_providers_local_by_id) | **PUT** /platform/1/auth/providers/local/{ProvidersLocalId} | +[**update_providers_nis_by_id**](AuthApi.md#update_providers_nis_by_id) | **PUT** /platform/3/auth/providers/nis/{ProvidersNisId} | +[**update_settings_acls**](AuthApi.md#update_settings_acls) | **PUT** /platform/3/auth/settings/acls | +[**update_settings_global**](AuthApi.md#update_settings_global) | **PUT** /platform/1/auth/settings/global | +[**update_settings_krb5_defaults**](AuthApi.md#update_settings_krb5_defaults) | **PUT** /platform/1/auth/settings/krb5/defaults | +[**update_settings_krb5_domain**](AuthApi.md#update_settings_krb5_domain) | **PUT** /platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId} | +[**update_settings_krb5_realm**](AuthApi.md#update_settings_krb5_realm) | **PUT** /platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId} | +[**update_settings_mapping**](AuthApi.md#update_settings_mapping) | **PUT** /platform/1/auth/settings/mapping | + + +# **create_auth_group** +> CreateResponse create_auth_group(auth_group, zone=zone, provider=provider) + + + +Create a new group. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_group = isi_sdk.AuthGroupCreateParams() # AuthGroupCreateParams | +zone = 'zone_example' # str | Optional zone. (optional) +provider = 'provider_example' # str | Optional provider type. (optional) + +try: + api_response = api_instance.create_auth_group(auth_group, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_auth_group: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_group** | [**AuthGroupCreateParams**](AuthGroupCreateParams.md)| | + **zone** | **str**| Optional zone. | [optional] + **provider** | **str**| Optional provider type. | [optional] + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_auth_refresh_item** +> CreateAuthRefreshItemResponse create_auth_refresh_item(auth_refresh_item) + + + +Refresh the authentication service configuration. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_refresh_item = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_auth_refresh_item(auth_refresh_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_auth_refresh_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_refresh_item** | [**Empty**](Empty.md)| | + +### Return type + +[**CreateAuthRefreshItemResponse**](CreateAuthRefreshItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_auth_role** +> CreateResponse create_auth_role(auth_role) + + + +Create a new role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_role = isi_sdk.AuthRole() # AuthRole | + +try: + api_response = api_instance.create_auth_role(auth_role) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_auth_role: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_role** | [**AuthRole**](AuthRole.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_auth_user** +> CreateResponse create_auth_user(auth_user, zone=zone, provider=provider) + + + +Create a new user. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_user = isi_sdk.AuthUserCreateParams() # AuthUserCreateParams | +zone = 'zone_example' # str | Optional zone. (optional) +provider = 'provider_example' # str | Optional provider type. (optional) + +try: + api_response = api_instance.create_auth_user(auth_user, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_auth_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_user** | [**AuthUserCreateParams**](AuthUserCreateParams.md)| | + **zone** | **str**| Optional zone. | [optional] + **provider** | **str**| Optional provider type. | [optional] + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_mapping_identity** +> Empty create_mapping_identity(mapping_identity, _2way=_2way, zone=zone, replace=replace) + + + +Manually set or modify a mapping between two personae. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +mapping_identity = isi_sdk.MappingIdentityCreateParams() # MappingIdentityCreateParams | +_2way = true # bool | Create a bi-directional mapping from source to target and target to source. (optional) +zone = 'zone_example' # str | Optional zone. (optional) +replace = true # bool | Replace existing mappings. (optional) + +try: + api_response = api_instance.create_mapping_identity(mapping_identity, _2way=_2way, zone=zone, replace=replace) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_mapping_identity: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mapping_identity** | [**MappingIdentityCreateParams**](MappingIdentityCreateParams.md)| | + **_2way** | **bool**| Create a bi-directional mapping from source to target and target to source. | [optional] + **zone** | **str**| Optional zone. | [optional] + **replace** | **bool**| Replace existing mappings. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_mapping_identity_0** +> MappingIdentities create_mapping_identity_0(mapping_identity, type=type, zone=zone) + + + +Manually set or modify a mapping between two personae. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +mapping_identity = isi_sdk.Empty() # Empty | +type = 'type_example' # str | Desired mapping target to fetch/generate. (optional) +zone = 'zone_example' # str | Optional zone. (optional) + +try: + api_response = api_instance.create_mapping_identity_0(mapping_identity, type=type, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_mapping_identity_0: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mapping_identity** | [**Empty**](Empty.md)| | + **type** | **str**| Desired mapping target to fetch/generate. | [optional] + **zone** | **str**| Optional zone. | [optional] + +### Return type + +[**MappingIdentities**](MappingIdentities.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_providers_ads_item** +> CreateResponse create_providers_ads_item(providers_ads_item) + + + +Create a new ADS provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_ads_item = isi_sdk.ProvidersAdsItem() # ProvidersAdsItem | + +try: + api_response = api_instance.create_providers_ads_item(providers_ads_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_providers_ads_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_ads_item** | [**ProvidersAdsItem**](ProvidersAdsItem.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_providers_file_item** +> CreateResponse create_providers_file_item(providers_file_item) + + + +Create a new file provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_file_item = isi_sdk.ProvidersFileIdParams() # ProvidersFileIdParams | + +try: + api_response = api_instance.create_providers_file_item(providers_file_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_providers_file_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_file_item** | [**ProvidersFileIdParams**](ProvidersFileIdParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_providers_krb5_item** +> CreateResponse create_providers_krb5_item(providers_krb5_item) + + + +Create a new KRB5 provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_krb5_item = isi_sdk.ProvidersKrb5Item() # ProvidersKrb5Item | + +try: + api_response = api_instance.create_providers_krb5_item(providers_krb5_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_providers_krb5_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_krb5_item** | [**ProvidersKrb5Item**](ProvidersKrb5Item.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_providers_ldap_item** +> CreateResponse create_providers_ldap_item(providers_ldap_item) + + + +Create a new LDAP provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_ldap_item = isi_sdk.ProvidersLdapItem() # ProvidersLdapItem | + +try: + api_response = api_instance.create_providers_ldap_item(providers_ldap_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_providers_ldap_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_ldap_item** | [**ProvidersLdapItem**](ProvidersLdapItem.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_providers_nis_item** +> CreateResponse create_providers_nis_item(providers_nis_item) + + + +Create a new NIS provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_nis_item = isi_sdk.ProvidersNisItem() # ProvidersNisItem | + +try: + api_response = api_instance.create_providers_nis_item(providers_nis_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_providers_nis_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_nis_item** | [**ProvidersNisItem**](ProvidersNisItem.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_settings_krb5_domain** +> CreateResponse create_settings_krb5_domain(settings_krb5_domain) + + + +Create a new krb5 domain. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_domain = isi_sdk.SettingsKrb5DomainCreateParams() # SettingsKrb5DomainCreateParams | + +try: + api_response = api_instance.create_settings_krb5_domain(settings_krb5_domain) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_settings_krb5_domain: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_domain** | [**SettingsKrb5DomainCreateParams**](SettingsKrb5DomainCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_settings_krb5_realm** +> CreateResponse create_settings_krb5_realm(settings_krb5_realm) + + + +Create a new krb5 realm. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_realm = isi_sdk.SettingsKrb5RealmCreateParams() # SettingsKrb5RealmCreateParams | + +try: + api_response = api_instance.create_settings_krb5_realm(settings_krb5_realm) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->create_settings_krb5_realm: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_realm** | [**SettingsKrb5RealmCreateParams**](SettingsKrb5RealmCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_auth_group** +> delete_auth_group(auth_group_id, cached=cached, zone=zone, provider=provider) + + + +Delete the group. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_group_id = 'auth_group_id_example' # str | Delete the group. +cached = true # bool | If true, flush the group from the cache. (optional) +zone = 'zone_example' # str | Filter groups by zone. (optional) +provider = 'provider_example' # str | Filter groups by provider. (optional) + +try: + api_instance.delete_auth_group(auth_group_id, cached=cached, zone=zone, provider=provider) +except ApiException as e: + print "Exception when calling AuthApi->delete_auth_group: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_group_id** | **str**| Delete the group. | + **cached** | **bool**| If true, flush the group from the cache. | [optional] + **zone** | **str**| Filter groups by zone. | [optional] + **provider** | **str**| Filter groups by provider. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_auth_groups** +> delete_auth_groups(cached=cached, zone=zone, provider=provider) + + + +Flush the groups cache. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +cached = true # bool | If true, only flush cached objects. (optional) +zone = 'zone_example' # str | Filter groups by zone. (optional) +provider = 'provider_example' # str | Filter groups by provider. (optional) + +try: + api_instance.delete_auth_groups(cached=cached, zone=zone, provider=provider) +except ApiException as e: + print "Exception when calling AuthApi->delete_auth_groups: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cached** | **bool**| If true, only flush cached objects. | [optional] + **zone** | **str**| Filter groups by zone. | [optional] + **provider** | **str**| Filter groups by provider. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_auth_role** +> delete_auth_role(auth_role_id) + + + +Delete the role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_role_id = 'auth_role_id_example' # str | Delete the role. + +try: + api_instance.delete_auth_role(auth_role_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_auth_role: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_role_id** | **str**| Delete the role. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_auth_user** +> delete_auth_user(auth_user_id, cached=cached, zone=zone, provider=provider) + + + +Delete the user. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_user_id = 'auth_user_id_example' # str | Delete the user. +cached = true # bool | If true, flush the user from the cache. (optional) +zone = 'zone_example' # str | Filter users by zone. (optional) +provider = 'provider_example' # str | Filter users by provider. (optional) + +try: + api_instance.delete_auth_user(auth_user_id, cached=cached, zone=zone, provider=provider) +except ApiException as e: + print "Exception when calling AuthApi->delete_auth_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_user_id** | **str**| Delete the user. | + **cached** | **bool**| If true, flush the user from the cache. | [optional] + **zone** | **str**| Filter users by zone. | [optional] + **provider** | **str**| Filter users by provider. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_auth_users** +> delete_auth_users(cached=cached, zone=zone, provider=provider) + + + +Flush the users cache. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +cached = true # bool | If true, only flush cached objects. (optional) +zone = 'zone_example' # str | Filter users by zone. (optional) +provider = 'provider_example' # str | Filter users by provider. (optional) + +try: + api_instance.delete_auth_users(cached=cached, zone=zone, provider=provider) +except ApiException as e: + print "Exception when calling AuthApi->delete_auth_users: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cached** | **bool**| If true, only flush cached objects. | [optional] + **zone** | **str**| Filter users by zone. | [optional] + **provider** | **str**| Filter users by provider. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_mapping_identities** +> delete_mapping_identities(filter=filter, zone=zone, remove=remove) + + + +Flush the entire idmap cache. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +filter = 'filter_example' # str | Filter to apply when deleting identity mappings. (optional) +zone = 'zone_example' # str | Optional zone. (optional) +remove = true # bool | Delete mapping instead of flush mapping cache. (optional) + +try: + api_instance.delete_mapping_identities(filter=filter, zone=zone, remove=remove) +except ApiException as e: + print "Exception when calling AuthApi->delete_mapping_identities: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| Filter to apply when deleting identity mappings. | [optional] + **zone** | **str**| Optional zone. | [optional] + **remove** | **bool**| Delete mapping instead of flush mapping cache. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_mapping_identity** +> delete_mapping_identity(mapping_identity_id, zone=zone, _2way=_2way, target=target, remove=remove) + + + +Flush the entire idmap cache. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +mapping_identity_id = 'mapping_identity_id_example' # str | Flush the entire idmap cache. +zone = 'zone_example' # str | Optional zone. (optional) +_2way = true # bool | Delete the bi-directional mapping from source to target and target to source. (optional) +target = 'target_example' # str | Target identity persona. (optional) +remove = true # bool | Delete mapping instead of flush mapping from cache. (optional) + +try: + api_instance.delete_mapping_identity(mapping_identity_id, zone=zone, _2way=_2way, target=target, remove=remove) +except ApiException as e: + print "Exception when calling AuthApi->delete_mapping_identity: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mapping_identity_id** | **str**| Flush the entire idmap cache. | + **zone** | **str**| Optional zone. | [optional] + **_2way** | **bool**| Delete the bi-directional mapping from source to target and target to source. | [optional] + **target** | **str**| Target identity persona. | [optional] + **remove** | **bool**| Delete mapping instead of flush mapping from cache. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_providers_ads_by_id** +> delete_providers_ads_by_id(providers_ads_id) + + + +Delete the ADS provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_ads_id = 'providers_ads_id_example' # str | Delete the ADS provider. + +try: + api_instance.delete_providers_ads_by_id(providers_ads_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_providers_ads_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_ads_id** | **str**| Delete the ADS provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_providers_file_by_id** +> delete_providers_file_by_id(providers_file_id) + + + +Delete the file provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_file_id = 'providers_file_id_example' # str | Delete the file provider. + +try: + api_instance.delete_providers_file_by_id(providers_file_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_providers_file_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_file_id** | **str**| Delete the file provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_providers_krb5_by_id** +> delete_providers_krb5_by_id(providers_krb5_id) + + + +Delete the KRB5 provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_krb5_id = 'providers_krb5_id_example' # str | Delete the KRB5 provider. + +try: + api_instance.delete_providers_krb5_by_id(providers_krb5_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_providers_krb5_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_krb5_id** | **str**| Delete the KRB5 provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_providers_ldap_by_id** +> delete_providers_ldap_by_id(providers_ldap_id) + + + +Delete the LDAP provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_ldap_id = 'providers_ldap_id_example' # str | Delete the LDAP provider. + +try: + api_instance.delete_providers_ldap_by_id(providers_ldap_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_providers_ldap_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_ldap_id** | **str**| Delete the LDAP provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_providers_local_by_id** +> delete_providers_local_by_id(providers_local_id) + + + +Delete the local provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_local_id = 'providers_local_id_example' # str | Delete the local provider. + +try: + api_instance.delete_providers_local_by_id(providers_local_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_providers_local_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_local_id** | **str**| Delete the local provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_providers_nis_by_id** +> delete_providers_nis_by_id(providers_nis_id) + + + +Delete the NIS provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_nis_id = 'providers_nis_id_example' # str | Delete the NIS provider. + +try: + api_instance.delete_providers_nis_by_id(providers_nis_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_providers_nis_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_nis_id** | **str**| Delete the NIS provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_settings_krb5_domain** +> delete_settings_krb5_domain(settings_krb5_domain_id) + + + +Remove a krb5 domain. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_domain_id = 'settings_krb5_domain_id_example' # str | Remove a krb5 domain. + +try: + api_instance.delete_settings_krb5_domain(settings_krb5_domain_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_settings_krb5_domain: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_domain_id** | **str**| Remove a krb5 domain. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_settings_krb5_realm** +> delete_settings_krb5_realm(settings_krb5_realm_id) + + + +Remove a realm. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_realm_id = 'settings_krb5_realm_id_example' # str | Remove a realm. + +try: + api_instance.delete_settings_krb5_realm(settings_krb5_realm_id) +except ApiException as e: + print "Exception when calling AuthApi->delete_settings_krb5_realm: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_realm_id** | **str**| Remove a realm. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_access_user** +> AuthAccess get_auth_access_user(auth_access_user, path=path, zone=zone, numeric=numeric) + + + +Determine user's access rights to a file + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_access_user = 'auth_access_user_example' # str | Determine user's access rights to a file +path = 'path_example' # str | Path to the file. Must be within /ifs. (optional) +zone = 'zone_example' # str | Access zone the user is in. (optional) +numeric = true # bool | Show the user's numeric identifier. (optional) + +try: + api_response = api_instance.get_auth_access_user(auth_access_user, path=path, zone=zone, numeric=numeric) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_access_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_access_user** | **str**| Determine user's access rights to a file | + **path** | **str**| Path to the file. Must be within /ifs. | [optional] + **zone** | **str**| Access zone the user is in. | [optional] + **numeric** | **bool**| Show the user's numeric identifier. | [optional] + +### Return type + +[**AuthAccess**](AuthAccess.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_group** +> AuthGroups get_auth_group(auth_group_id, cached=cached, resolve_names=resolve_names, zone=zone, provider=provider) + + + +Retrieve the group information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_group_id = 'auth_group_id_example' # str | Retrieve the group information. +cached = true # bool | If true, only return cached objects. (optional) +resolve_names = true # bool | Resolve names of personas. (optional) +zone = 'zone_example' # str | Filter groups by zone. (optional) +provider = 'provider_example' # str | Filter groups by provider. (optional) + +try: + api_response = api_instance.get_auth_group(auth_group_id, cached=cached, resolve_names=resolve_names, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_group: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_group_id** | **str**| Retrieve the group information. | + **cached** | **bool**| If true, only return cached objects. | [optional] + **resolve_names** | **bool**| Resolve names of personas. | [optional] + **zone** | **str**| Filter groups by zone. | [optional] + **provider** | **str**| Filter groups by provider. | [optional] + +### Return type + +[**AuthGroups**](AuthGroups.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_id** +> AuthId get_auth_id() + + + +Retrieve the current security token. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.get_auth_id() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_id: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AuthId**](AuthId.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_log_level** +> AuthLogLevel get_auth_log_level() + + + +Get the current authentications service and netlogon logging level. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.get_auth_log_level() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_log_level: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AuthLogLevel**](AuthLogLevel.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_netgroup** +> AuthNetgroups get_auth_netgroup(auth_netgroup_id, ignore_errors=ignore_errors, recursive=recursive, zone=zone, provider=provider) + + + +Retrieve the user information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_netgroup_id = 'auth_netgroup_id_example' # str | Retrieve the user information. +ignore_errors = true # bool | Ignore netgroup errors. (optional) +recursive = true # bool | Perform recursive search. (optional) +zone = 'zone_example' # str | Filter users by zone. (optional) +provider = 'provider_example' # str | Filter users by provider. (optional) + +try: + api_response = api_instance.get_auth_netgroup(auth_netgroup_id, ignore_errors=ignore_errors, recursive=recursive, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_netgroup: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_netgroup_id** | **str**| Retrieve the user information. | + **ignore_errors** | **bool**| Ignore netgroup errors. | [optional] + **recursive** | **bool**| Perform recursive search. | [optional] + **zone** | **str**| Filter users by zone. | [optional] + **provider** | **str**| Filter users by provider. | [optional] + +### Return type + +[**AuthNetgroups**](AuthNetgroups.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_privileges** +> AuthPrivileges get_auth_privileges() + + + +List all privileges. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.get_auth_privileges() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_privileges: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AuthPrivileges**](AuthPrivileges.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_role** +> AuthRoles get_auth_role(auth_role_id, resolve_names=resolve_names) + + + +Retrieve the role information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_role_id = 'auth_role_id_example' # str | Retrieve the role information. +resolve_names = true # bool | Resolve names of personas. (optional) + +try: + api_response = api_instance.get_auth_role(auth_role_id, resolve_names=resolve_names) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_role: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_role_id** | **str**| Retrieve the role information. | + **resolve_names** | **bool**| Resolve names of personas. | [optional] + +### Return type + +[**AuthRoles**](AuthRoles.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_shells** +> AuthShells get_auth_shells() + + + +List all shells. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.get_auth_shells() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_shells: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AuthShells**](AuthShells.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_user** +> AuthUsers get_auth_user(auth_user_id, cached=cached, resolve_names=resolve_names, zone=zone, provider=provider) + + + +Retrieve the user information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_user_id = 'auth_user_id_example' # str | Retrieve the user information. +cached = true # bool | If true, only return cached objects. (optional) +resolve_names = true # bool | Resolve names of personas. (optional) +zone = 'zone_example' # str | Filter users by zone. (optional) +provider = 'provider_example' # str | Filter users by provider. (optional) + +try: + api_response = api_instance.get_auth_user(auth_user_id, cached=cached, resolve_names=resolve_names, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_user_id** | **str**| Retrieve the user information. | + **cached** | **bool**| If true, only return cached objects. | [optional] + **resolve_names** | **bool**| Resolve names of personas. | [optional] + **zone** | **str**| Filter users by zone. | [optional] + **provider** | **str**| Filter users by provider. | [optional] + +### Return type + +[**AuthUsers**](AuthUsers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_wellknown** +> AuthWellknowns get_auth_wellknown(auth_wellknown_id, scope=scope) + + + +Retrieve the wellknown persona. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_wellknown_id = 'auth_wellknown_id_example' # str | Retrieve the wellknown persona. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_auth_wellknown(auth_wellknown_id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_wellknown: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_wellknown_id** | **str**| Retrieve the wellknown persona. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**AuthWellknowns**](AuthWellknowns.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_auth_wellknowns** +> AuthWellknowns get_auth_wellknowns() + + + +List all wellknown personas. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.get_auth_wellknowns() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_auth_wellknowns: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AuthWellknowns**](AuthWellknowns.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_mapping_dump** +> MappingDump get_mapping_dump(nocreate=nocreate, zone=zone) + + + +Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +nocreate = true # bool | Idmap should attempt to create missing identity mappings. (optional) +zone = 'zone_example' # str | Optional zone. (optional) + +try: + api_response = api_instance.get_mapping_dump(nocreate=nocreate, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_mapping_dump: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nocreate** | **bool**| Idmap should attempt to create missing identity mappings. | [optional] + **zone** | **str**| Optional zone. | [optional] + +### Return type + +[**MappingDump**](MappingDump.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_mapping_identity** +> MappingIdentities get_mapping_identity(mapping_identity_id, nocreate=nocreate, zone=zone) + + + +Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +mapping_identity_id = 'mapping_identity_id_example' # str | Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. +nocreate = true # bool | Idmap should attempt to create missing identity mappings. (optional) +zone = 'zone_example' # str | Optional zone. (optional) + +try: + api_response = api_instance.get_mapping_identity(mapping_identity_id, nocreate=nocreate, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_mapping_identity: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mapping_identity_id** | **str**| Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. | + **nocreate** | **bool**| Idmap should attempt to create missing identity mappings. | [optional] + **zone** | **str**| Optional zone. | [optional] + +### Return type + +[**MappingIdentities**](MappingIdentities.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_mapping_users_lookup** +> MappingUsersLookup get_mapping_users_lookup(primary_gid=primary_gid, uid=uid, zone=zone, gid=gid, user=user, kerberos_principal=kerberos_principal) + + + +Retrieve the user information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +primary_gid = 56 # int | The user's primary group ID. (optional) +uid = 56 # int | The user ID. (optional) +zone = 'zone_example' # str | The zone the user belongs to. (optional) +gid = [56] # list[int] | The IDs of the groups that the user belongs to. (optional) +user = 'user_example' # str | The user name. (optional) +kerberos_principal = 'kerberos_principal_example' # str | The Kerberos principal name, of the form user@realm. (optional) + +try: + api_response = api_instance.get_mapping_users_lookup(primary_gid=primary_gid, uid=uid, zone=zone, gid=gid, user=user, kerberos_principal=kerberos_principal) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_mapping_users_lookup: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **primary_gid** | **int**| The user's primary group ID. | [optional] + **uid** | **int**| The user ID. | [optional] + **zone** | **str**| The zone the user belongs to. | [optional] + **gid** | [**list[int]**](int.md)| The IDs of the groups that the user belongs to. | [optional] + **user** | **str**| The user name. | [optional] + **kerberos_principal** | **str**| The Kerberos principal name, of the form user@realm. | [optional] + +### Return type + +[**MappingUsersLookup**](MappingUsersLookup.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_mapping_users_rules** +> MappingUsersRules get_mapping_users_rules(zone=zone) + + + +Retrieve the user mapping rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +zone = 'zone_example' # str | The zone to which the user mapping applies. (optional) + +try: + api_response = api_instance.get_mapping_users_rules(zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_mapping_users_rules: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zone** | **str**| The zone to which the user mapping applies. | [optional] + +### Return type + +[**MappingUsersRules**](MappingUsersRules.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_providers_ads_by_id** +> ProvidersAds get_providers_ads_by_id(providers_ads_id, scope=scope) + + + +Retrieve the ADS provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_ads_id = 'providers_ads_id_example' # str | Retrieve the ADS provider. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_providers_ads_by_id(providers_ads_id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_providers_ads_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_ads_id** | **str**| Retrieve the ADS provider. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersAds**](ProvidersAds.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_providers_file_by_id** +> ProvidersFile get_providers_file_by_id(providers_file_id, scope=scope) + + + +Retrieve the file provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_file_id = 'providers_file_id_example' # str | Retrieve the file provider. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_providers_file_by_id(providers_file_id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_providers_file_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_file_id** | **str**| Retrieve the file provider. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersFile**](ProvidersFile.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_providers_krb5_by_id** +> ProvidersKrb5 get_providers_krb5_by_id(providers_krb5_id, scope=scope) + + + +Retrieve the KRB5 provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_krb5_id = 'providers_krb5_id_example' # str | Retrieve the KRB5 provider. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_providers_krb5_by_id(providers_krb5_id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_providers_krb5_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_krb5_id** | **str**| Retrieve the KRB5 provider. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersKrb5**](ProvidersKrb5.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_providers_ldap_by_id** +> ProvidersLdap get_providers_ldap_by_id(providers_ldap_id, scope=scope) + + + +Retrieve the LDAP provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_ldap_id = 'providers_ldap_id_example' # str | Retrieve the LDAP provider. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_providers_ldap_by_id(providers_ldap_id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_providers_ldap_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_ldap_id** | **str**| Retrieve the LDAP provider. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersLdap**](ProvidersLdap.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_providers_local** +> ProvidersLocal get_providers_local(scope=scope) + + + +List all local providers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_providers_local(scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_providers_local: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersLocal**](ProvidersLocal.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_providers_local_by_id** +> ProvidersLocal get_providers_local_by_id(providers_local_id, scope=scope) + + + +Retrieve the local provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_local_id = 'providers_local_id_example' # str | Retrieve the local provider. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_providers_local_by_id(providers_local_id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_providers_local_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_local_id** | **str**| Retrieve the local provider. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersLocal**](ProvidersLocal.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_providers_nis_by_id** +> ProvidersNis get_providers_nis_by_id(providers_nis_id, scope=scope) + + + +Retrieve the NIS provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_nis_id = 'providers_nis_id_example' # str | Retrieve the NIS provider. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_providers_nis_by_id(providers_nis_id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_providers_nis_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_nis_id** | **str**| Retrieve the NIS provider. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersNis**](ProvidersNis.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_providers_summary** +> ProvidersSummary get_providers_summary() + + + +Retrieve the summary information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.get_providers_summary() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_providers_summary: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ProvidersSummary**](ProvidersSummary.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_acls** +> SettingsAcls get_settings_acls(preset=preset) + + + +Retrieve the ACL policy settings and preset configurations. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +preset = 'preset_example' # str | If specified the preset configuration values for all applicable ACL policies are returned. (optional) + +try: + api_response = api_instance.get_settings_acls(preset=preset) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_settings_acls: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **preset** | **str**| If specified the preset configuration values for all applicable ACL policies are returned. | [optional] + +### Return type + +[**SettingsAcls**](SettingsAcls.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_global** +> SettingsGlobal get_settings_global(scope=scope, zone=zone) + + + +Retrieve the global settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) +zone = 'zone_example' # str | Zone which contains any per-zone settings. (optional) + +try: + api_response = api_instance.get_settings_global(scope=scope, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_settings_global: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + **zone** | **str**| Zone which contains any per-zone settings. | [optional] + +### Return type + +[**SettingsGlobal**](SettingsGlobal.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_krb5_defaults** +> SettingsKrb5Defaults get_settings_krb5_defaults() + + + +Retrieve the krb5 settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.get_settings_krb5_defaults() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_settings_krb5_defaults: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsKrb5Defaults**](SettingsKrb5Defaults.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_krb5_domain** +> SettingsKrb5Domains get_settings_krb5_domain(settings_krb5_domain_id) + + + +View the krb5 domain settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_domain_id = 'settings_krb5_domain_id_example' # str | View the krb5 domain settings. + +try: + api_response = api_instance.get_settings_krb5_domain(settings_krb5_domain_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_settings_krb5_domain: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_domain_id** | **str**| View the krb5 domain settings. | + +### Return type + +[**SettingsKrb5Domains**](SettingsKrb5Domains.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_krb5_realm** +> SettingsKrb5Realms get_settings_krb5_realm(settings_krb5_realm_id) + + + +Retrieve the krb5 settings for realms. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_realm_id = 'settings_krb5_realm_id_example' # str | Retrieve the krb5 settings for realms. + +try: + api_response = api_instance.get_settings_krb5_realm(settings_krb5_realm_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_settings_krb5_realm: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_realm_id** | **str**| Retrieve the krb5 settings for realms. | + +### Return type + +[**SettingsKrb5Realms**](SettingsKrb5Realms.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_mapping** +> SettingsMapping get_settings_mapping(scope=scope, zone=zone) + + + +Retrieve the mapping settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) +zone = 'zone_example' # str | Access zone which contains mapping settings. (optional) + +try: + api_response = api_instance.get_settings_mapping(scope=scope, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->get_settings_mapping: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + **zone** | **str**| Access zone which contains mapping settings. | [optional] + +### Return type + +[**SettingsMapping**](SettingsMapping.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_auth_groups** +> AuthGroupsExtended list_auth_groups(domain=domain, zone=zone, resume=resume, cached=cached, resolve_names=resolve_names, filter=filter, limit=limit, provider=provider, query_member_of=query_member_of) + + + +List all groups. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +domain = 'domain_example' # str | Filter groups by domain. (optional) +zone = 'zone_example' # str | Filter groups by zone. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +cached = true # bool | If true, only return cached objects. (optional) +resolve_names = true # bool | Resolve names of personas. (optional) +filter = 'filter_example' # str | Filter groups by name prefix. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +provider = 'provider_example' # str | Filter groups by provider. (optional) +query_member_of = true # bool | Enumerate all groups that a group is a member of. (optional) + +try: + api_response = api_instance.list_auth_groups(domain=domain, zone=zone, resume=resume, cached=cached, resolve_names=resolve_names, filter=filter, limit=limit, provider=provider, query_member_of=query_member_of) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_auth_groups: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **domain** | **str**| Filter groups by domain. | [optional] + **zone** | **str**| Filter groups by zone. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **cached** | **bool**| If true, only return cached objects. | [optional] + **resolve_names** | **bool**| Resolve names of personas. | [optional] + **filter** | **str**| Filter groups by name prefix. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **provider** | **str**| Filter groups by provider. | [optional] + **query_member_of** | **bool**| Enumerate all groups that a group is a member of. | [optional] + +### Return type + +[**AuthGroupsExtended**](AuthGroupsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_auth_roles** +> AuthRolesExtended list_auth_roles(sort=sort, resolve_names=resolve_names, dir=dir) + + + +List all roles. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resolve_names = true # bool | Filter users by zone. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_auth_roles(sort=sort, resolve_names=resolve_names, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_auth_roles: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **resolve_names** | **bool**| Filter users by zone. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**AuthRolesExtended**](AuthRolesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_auth_users** +> AuthUsersExtended list_auth_users(domain=domain, zone=zone, resume=resume, cached=cached, resolve_names=resolve_names, filter=filter, limit=limit, provider=provider, query_member_of=query_member_of) + + + +List all users. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +domain = 'domain_example' # str | Filter users by domain. (optional) +zone = 'zone_example' # str | Filter users by zone. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +cached = true # bool | If true, only return cached objects. (optional) +resolve_names = true # bool | Resolve names of personas. (optional) +filter = 'filter_example' # str | Filter users by name prefix. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +provider = 'provider_example' # str | Filter users by provider. (optional) +query_member_of = true # bool | Enumerate all users that a group is a member of. (optional) + +try: + api_response = api_instance.list_auth_users(domain=domain, zone=zone, resume=resume, cached=cached, resolve_names=resolve_names, filter=filter, limit=limit, provider=provider, query_member_of=query_member_of) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_auth_users: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **domain** | **str**| Filter users by domain. | [optional] + **zone** | **str**| Filter users by zone. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **cached** | **bool**| If true, only return cached objects. | [optional] + **resolve_names** | **bool**| Resolve names of personas. | [optional] + **filter** | **str**| Filter users by name prefix. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **provider** | **str**| Filter users by provider. | [optional] + **query_member_of** | **bool**| Enumerate all users that a group is a member of. | [optional] + +### Return type + +[**AuthUsersExtended**](AuthUsersExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_providers_ads** +> ProvidersAdsExtended list_providers_ads(scope=scope) + + + +List all ADS providers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.list_providers_ads(scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_providers_ads: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersAdsExtended**](ProvidersAdsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_providers_file** +> ProvidersFile list_providers_file(scope=scope) + + + +List all file providers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.list_providers_file(scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_providers_file: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersFile**](ProvidersFile.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_providers_krb5** +> ProvidersKrb5Extended list_providers_krb5(scope=scope) + + + +List all KRB5 providers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.list_providers_krb5(scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_providers_krb5: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersKrb5Extended**](ProvidersKrb5Extended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_providers_ldap** +> ProvidersLdap list_providers_ldap(scope=scope) + + + +List all LDAP providers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.list_providers_ldap(scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_providers_ldap: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersLdap**](ProvidersLdap.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_providers_nis** +> ProvidersNisExtended list_providers_nis(scope=scope) + + + +List all NIS providers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.list_providers_nis(scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_providers_nis: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**ProvidersNisExtended**](ProvidersNisExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_settings_krb5_domains** +> SettingsKrb5Domains list_settings_krb5_domains() + + + +Retrieve the krb5 settings for domains. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.list_settings_krb5_domains() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_settings_krb5_domains: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsKrb5Domains**](SettingsKrb5Domains.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_settings_krb5_realms** +> SettingsKrb5Realms list_settings_krb5_realms() + + + +Retrieve the krb5 settings for realms. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() + +try: + api_response = api_instance.list_settings_krb5_realms() + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthApi->list_settings_krb5_realms: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsKrb5Realms**](SettingsKrb5Realms.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_auth_group** +> update_auth_group(auth_group, auth_group_id, zone=zone, provider=provider) + + + +Modify the group. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_group = isi_sdk.AuthGroup() # AuthGroup | +auth_group_id = 'auth_group_id_example' # str | Modify the group. +zone = 'zone_example' # str | Optional zone. (optional) +provider = 'provider_example' # str | Optional provider type. (optional) + +try: + api_instance.update_auth_group(auth_group, auth_group_id, zone=zone, provider=provider) +except ApiException as e: + print "Exception when calling AuthApi->update_auth_group: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_group** | [**AuthGroup**](AuthGroup.md)| | + **auth_group_id** | **str**| Modify the group. | + **zone** | **str**| Optional zone. | [optional] + **provider** | **str**| Optional provider type. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_auth_log_level** +> update_auth_log_level(auth_log_level) + + + +Set the current authentication service and netlogon logging level. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_log_level = isi_sdk.AuthLogLevelExtended() # AuthLogLevelExtended | + +try: + api_instance.update_auth_log_level(auth_log_level) +except ApiException as e: + print "Exception when calling AuthApi->update_auth_log_level: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_log_level** | [**AuthLogLevelExtended**](AuthLogLevelExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_auth_role** +> update_auth_role(auth_role, auth_role_id) + + + +Modify the role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_role = isi_sdk.AuthRole() # AuthRole | +auth_role_id = 'auth_role_id_example' # str | Modify the role. + +try: + api_instance.update_auth_role(auth_role, auth_role_id) +except ApiException as e: + print "Exception when calling AuthApi->update_auth_role: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_role** | [**AuthRole**](AuthRole.md)| | + **auth_role_id** | **str**| Modify the role. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_auth_user** +> update_auth_user(auth_user, auth_user_id, zone=zone, provider=provider) + + + +Modify the user. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +auth_user = isi_sdk.AuthUser() # AuthUser | +auth_user_id = 'auth_user_id_example' # str | Modify the user. +zone = 'zone_example' # str | Optional zone. (optional) +provider = 'provider_example' # str | Optional provider type. (optional) + +try: + api_instance.update_auth_user(auth_user, auth_user_id, zone=zone, provider=provider) +except ApiException as e: + print "Exception when calling AuthApi->update_auth_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **auth_user** | [**AuthUser**](AuthUser.md)| | + **auth_user_id** | **str**| Modify the user. | + **zone** | **str**| Optional zone. | [optional] + **provider** | **str**| Optional provider type. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_mapping_import** +> update_mapping_import(mapping_import, zone=zone, replace=replace) + + + +Set or update a list of mappings between two personae. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +mapping_import = isi_sdk.MappingImport() # MappingImport | +zone = 'zone_example' # str | Optional zone. (optional) +replace = true # bool | Specify whether existing mappings should be replaced. The default behavior is to leave existing mappings intact and return an error. (optional) + +try: + api_instance.update_mapping_import(mapping_import, zone=zone, replace=replace) +except ApiException as e: + print "Exception when calling AuthApi->update_mapping_import: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mapping_import** | [**MappingImport**](MappingImport.md)| | + **zone** | **str**| Optional zone. | [optional] + **replace** | **bool**| Specify whether existing mappings should be replaced. The default behavior is to leave existing mappings intact and return an error. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_mapping_users_rules** +> update_mapping_users_rules(mapping_users_rules) + + + +Modify the user mapping rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +mapping_users_rules = isi_sdk.MappingUsersRulesRules() # MappingUsersRulesRules | + +try: + api_instance.update_mapping_users_rules(mapping_users_rules) +except ApiException as e: + print "Exception when calling AuthApi->update_mapping_users_rules: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mapping_users_rules** | [**MappingUsersRulesRules**](MappingUsersRulesRules.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_providers_ads_by_id** +> update_providers_ads_by_id(providers_ads_id_params, providers_ads_id) + + + +Modify the ADS provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_ads_id_params = isi_sdk.ProvidersAdsIdParams() # ProvidersAdsIdParams | +providers_ads_id = 'providers_ads_id_example' # str | Modify the ADS provider. + +try: + api_instance.update_providers_ads_by_id(providers_ads_id_params, providers_ads_id) +except ApiException as e: + print "Exception when calling AuthApi->update_providers_ads_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_ads_id_params** | [**ProvidersAdsIdParams**](ProvidersAdsIdParams.md)| | + **providers_ads_id** | **str**| Modify the ADS provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_providers_file_by_id** +> update_providers_file_by_id(providers_file_id_params, providers_file_id) + + + +Modify the file provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_file_id_params = isi_sdk.ProvidersFileIdParams() # ProvidersFileIdParams | +providers_file_id = 'providers_file_id_example' # str | Modify the file provider. + +try: + api_instance.update_providers_file_by_id(providers_file_id_params, providers_file_id) +except ApiException as e: + print "Exception when calling AuthApi->update_providers_file_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_file_id_params** | [**ProvidersFileIdParams**](ProvidersFileIdParams.md)| | + **providers_file_id** | **str**| Modify the file provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_providers_krb5_by_id** +> update_providers_krb5_by_id(providers_krb5_id_params, providers_krb5_id) + + + +Modify the KRB5 provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_krb5_id_params = isi_sdk.ProvidersKrb5IdParams() # ProvidersKrb5IdParams | +providers_krb5_id = 'providers_krb5_id_example' # str | Modify the KRB5 provider. + +try: + api_instance.update_providers_krb5_by_id(providers_krb5_id_params, providers_krb5_id) +except ApiException as e: + print "Exception when calling AuthApi->update_providers_krb5_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_krb5_id_params** | [**ProvidersKrb5IdParams**](ProvidersKrb5IdParams.md)| | + **providers_krb5_id** | **str**| Modify the KRB5 provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_providers_ldap_by_id** +> update_providers_ldap_by_id(providers_ldap_id_params, providers_ldap_id) + + + +Modify the LDAP provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_ldap_id_params = isi_sdk.ProvidersLdapIdParams() # ProvidersLdapIdParams | +providers_ldap_id = 'providers_ldap_id_example' # str | Modify the LDAP provider. + +try: + api_instance.update_providers_ldap_by_id(providers_ldap_id_params, providers_ldap_id) +except ApiException as e: + print "Exception when calling AuthApi->update_providers_ldap_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_ldap_id_params** | [**ProvidersLdapIdParams**](ProvidersLdapIdParams.md)| | + **providers_ldap_id** | **str**| Modify the LDAP provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_providers_local_by_id** +> update_providers_local_by_id(providers_local_id_params, providers_local_id) + + + +Modify the local provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_local_id_params = isi_sdk.ProvidersLocalIdParams() # ProvidersLocalIdParams | +providers_local_id = 'providers_local_id_example' # str | Modify the local provider. + +try: + api_instance.update_providers_local_by_id(providers_local_id_params, providers_local_id) +except ApiException as e: + print "Exception when calling AuthApi->update_providers_local_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_local_id_params** | [**ProvidersLocalIdParams**](ProvidersLocalIdParams.md)| | + **providers_local_id** | **str**| Modify the local provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_providers_nis_by_id** +> update_providers_nis_by_id(providers_nis_id_params, providers_nis_id) + + + +Modify the NIS provider. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +providers_nis_id_params = isi_sdk.ProvidersNisIdParams() # ProvidersNisIdParams | +providers_nis_id = 'providers_nis_id_example' # str | Modify the NIS provider. + +try: + api_instance.update_providers_nis_by_id(providers_nis_id_params, providers_nis_id) +except ApiException as e: + print "Exception when calling AuthApi->update_providers_nis_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providers_nis_id_params** | [**ProvidersNisIdParams**](ProvidersNisIdParams.md)| | + **providers_nis_id** | **str**| Modify the NIS provider. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_acls** +> update_settings_acls(settings_acls) + + + +Modify cluster ACL policy settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_acls = isi_sdk.SettingsAclsAclPolicySettings() # SettingsAclsAclPolicySettings | + +try: + api_instance.update_settings_acls(settings_acls) +except ApiException as e: + print "Exception when calling AuthApi->update_settings_acls: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_acls** | [**SettingsAclsAclPolicySettings**](SettingsAclsAclPolicySettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_global** +> update_settings_global(settings_global, zone=zone) + + + +Modify the global settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_global = isi_sdk.SettingsGlobalGlobalSettings() # SettingsGlobalGlobalSettings | +zone = 'zone_example' # str | Zone which contains any per-zone settings. (optional) + +try: + api_instance.update_settings_global(settings_global, zone=zone) +except ApiException as e: + print "Exception when calling AuthApi->update_settings_global: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_global** | [**SettingsGlobalGlobalSettings**](SettingsGlobalGlobalSettings.md)| | + **zone** | **str**| Zone which contains any per-zone settings. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_krb5_defaults** +> update_settings_krb5_defaults(settings_krb5_defaults) + + + +Modify the krb5 settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_defaults = isi_sdk.SettingsKrb5DefaultsKrb5Settings() # SettingsKrb5DefaultsKrb5Settings | + +try: + api_instance.update_settings_krb5_defaults(settings_krb5_defaults) +except ApiException as e: + print "Exception when calling AuthApi->update_settings_krb5_defaults: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_defaults** | [**SettingsKrb5DefaultsKrb5Settings**](SettingsKrb5DefaultsKrb5Settings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_krb5_domain** +> update_settings_krb5_domain(settings_krb5_domain, settings_krb5_domain_id) + + + +Modify the krb5 domain settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_domain = isi_sdk.SettingsKrb5Domain() # SettingsKrb5Domain | +settings_krb5_domain_id = 'settings_krb5_domain_id_example' # str | Modify the krb5 domain settings. + +try: + api_instance.update_settings_krb5_domain(settings_krb5_domain, settings_krb5_domain_id) +except ApiException as e: + print "Exception when calling AuthApi->update_settings_krb5_domain: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_domain** | [**SettingsKrb5Domain**](SettingsKrb5Domain.md)| | + **settings_krb5_domain_id** | **str**| Modify the krb5 domain settings. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_krb5_realm** +> update_settings_krb5_realm(settings_krb5_realm, settings_krb5_realm_id) + + + +Modify the krb5 realm settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_krb5_realm = isi_sdk.SettingsKrb5Realm() # SettingsKrb5Realm | +settings_krb5_realm_id = 'settings_krb5_realm_id_example' # str | Modify the krb5 realm settings. + +try: + api_instance.update_settings_krb5_realm(settings_krb5_realm, settings_krb5_realm_id) +except ApiException as e: + print "Exception when calling AuthApi->update_settings_krb5_realm: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_krb5_realm** | [**SettingsKrb5Realm**](SettingsKrb5Realm.md)| | + **settings_krb5_realm_id** | **str**| Modify the krb5 realm settings. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_mapping** +> update_settings_mapping(settings_mapping, zone=zone) + + + +Modify the mapping settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthApi() +settings_mapping = isi_sdk.SettingsMappingMappingSettings() # SettingsMappingMappingSettings | +zone = 'zone_example' # str | Access zone which contains mapping settings. (optional) + +try: + api_instance.update_settings_mapping(settings_mapping, zone=zone) +except ApiException as e: + print "Exception when calling AuthApi->update_settings_mapping: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_mapping** | [**SettingsMappingMappingSettings**](SettingsMappingMappingSettings.md)| | + **zone** | **str**| Access zone which contains mapping settings. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthGroup.md b/docs/AuthGroup.md new file mode 100644 index 000000000..08ea12c5c --- /dev/null +++ b/docs/AuthGroup.md @@ -0,0 +1,10 @@ +# AuthGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **int** | Specifies the numeric group identifier. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthGroupCreateParams.md b/docs/AuthGroupCreateParams.md new file mode 100644 index 000000000..ee70d52fb --- /dev/null +++ b/docs/AuthGroupCreateParams.md @@ -0,0 +1,13 @@ +# AuthGroupCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **int** | Specifies the numeric group identifier. | [optional] +**members** | [**list[GroupMember]**](GroupMember.md) | Specifies the members of the group. | [optional] +**name** | **str** | Specifies the group name. | +**sid** | **str** | Specifies the security identifier. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthGroupExtended.md b/docs/AuthGroupExtended.md new file mode 100644 index 000000000..b632b55f6 --- /dev/null +++ b/docs/AuthGroupExtended.md @@ -0,0 +1,21 @@ +# AuthGroupExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gid** | **int** | Specifies the numeric group identifier. | [optional] +**dn** | **str** | Specifies the distinguished name for the user. | +**dns_domain** | **str** | Specifies the DNS domain. | +**domain** | **str** | Specifies the domain that the object is part of. | +**generated_gid** | **bool** | If true, the GID was generated. | +**id** | **str** | Specifies the user or group ID. | +**member_of** | [**list[GroupMember]**](GroupMember.md) | | +**name** | **str** | Specifies a user or group name. | +**provider** | **str** | Specifies the authentication provider that the object belongs to. | +**sam_account_name** | **str** | Specifies a user or group name. | +**sid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**type** | **str** | Specifies the object type. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthGroups.md b/docs/AuthGroups.md new file mode 100644 index 000000000..e4422cc66 --- /dev/null +++ b/docs/AuthGroups.md @@ -0,0 +1,10 @@ +# AuthGroups + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**list[AuthGroupExtended]**](AuthGroupExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthGroupsApi.md b/docs/AuthGroupsApi.md new file mode 100644 index 000000000..afa63ca95 --- /dev/null +++ b/docs/AuthGroupsApi.md @@ -0,0 +1,180 @@ +# isi_sdk.AuthGroupsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_group_member**](AuthGroupsApi.md#create_group_member) | **POST** /platform/1/auth/groups/{Group}/members | +[**delete_group_member**](AuthGroupsApi.md#delete_group_member) | **DELETE** /platform/1/auth/groups/{Group}/members/{GroupMemberId} | +[**list_group_members**](AuthGroupsApi.md#list_group_members) | **GET** /platform/1/auth/groups/{Group}/members | + + +# **create_group_member** +> CreateResponse create_group_member(group_member, group, zone=zone, provider=provider) + + + +Add a member to the group. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthGroupsApi() +group_member = isi_sdk.GroupMember() # GroupMember | +group = 'group_example' # str | +zone = 'zone_example' # str | Filter group members by zone. (optional) +provider = 'provider_example' # str | Filter group members by provider. (optional) + +try: + api_response = api_instance.create_group_member(group_member, group, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthGroupsApi->create_group_member: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_member** | [**GroupMember**](GroupMember.md)| | + **group** | **str**| | + **zone** | **str**| Filter group members by zone. | [optional] + **provider** | **str**| Filter group members by provider. | [optional] + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_group_member** +> delete_group_member(group_member_id, group, zone=zone, provider=provider) + + + +Remove the member from the group. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthGroupsApi() +group_member_id = 'group_member_id_example' # str | Remove the member from the group. +group = 'group_example' # str | +zone = 'zone_example' # str | Filter group members by zone. (optional) +provider = 'provider_example' # str | Filter group members by provider. (optional) + +try: + api_instance.delete_group_member(group_member_id, group, zone=zone, provider=provider) +except ApiException as e: + print "Exception when calling AuthGroupsApi->delete_group_member: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_member_id** | **str**| Remove the member from the group. | + **group** | **str**| | + **zone** | **str**| Filter group members by zone. | [optional] + **provider** | **str**| Filter group members by provider. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_group_members** +> GroupMembers list_group_members(group, resolve_names=resolve_names, limit=limit, zone=zone, provider=provider) + + + +List all the members of the group. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthGroupsApi() +group = 'group_example' # str | +resolve_names = true # bool | Resolve names of personas. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +zone = 'zone_example' # str | Filter group members by zone. (optional) +provider = 'provider_example' # str | Filter group members by provider. (optional) + +try: + api_response = api_instance.list_group_members(group, resolve_names=resolve_names, limit=limit, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthGroupsApi->list_group_members: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group** | **str**| | + **resolve_names** | **bool**| Resolve names of personas. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **zone** | **str**| Filter group members by zone. | [optional] + **provider** | **str**| Filter group members by provider. | [optional] + +### Return type + +[**GroupMembers**](GroupMembers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthGroupsExtended.md b/docs/AuthGroupsExtended.md new file mode 100644 index 000000000..2fc0746c4 --- /dev/null +++ b/docs/AuthGroupsExtended.md @@ -0,0 +1,11 @@ +# AuthGroupsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**list[AuthGroupExtended]**](AuthGroupExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthId.md b/docs/AuthId.md new file mode 100644 index 000000000..17c020958 --- /dev/null +++ b/docs/AuthId.md @@ -0,0 +1,10 @@ +# AuthId + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ntoken** | [**AuthIdNtoken**](AuthIdNtoken.md) | Specifies properties for a security token for the currently authenticated user. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthIdNtoken.md b/docs/AuthIdNtoken.md new file mode 100644 index 000000000..f2f653411 --- /dev/null +++ b/docs/AuthIdNtoken.md @@ -0,0 +1,23 @@ +# AuthIdNtoken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**additional_id** | [**list[GroupMember]**](GroupMember.md) | Specifies additional UIDs, GIDs, and SIDs. | [optional] +**gid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**group_sid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**ifs_restricted** | **bool** | Indicates if this user has restricted access to the /ifs file system. | [optional] +**local_address** | **str** | Specifies the IP address of the node that is serving the request. | [optional] +**on_disk_group_id** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**on_disk_user_id** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**privilege** | [**list[AuthIdNtokenPrivilegeItem]**](AuthIdNtokenPrivilegeItem.md) | Specifies the privileges granted to the currently authenticated user. | [optional] +**protocol** | **int** | Specifies the protocol that is responsible for the creation of the token. The integer values for each protcol are as follows: NFS (1), SMB (2), NLM (3), FTP (4), HTTP (5), ISCSI (7), SMB2 (8), NFS4 (9), OneFS API (10), HDFS (15), console (16), and SSH (17). | [optional] +**remote_address** | **str** | Specifies the IP address of the client requesting information. | [optional] +**uid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**user_sid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**zid** | **int** | Specifies the zone ID of the access zone that is serving the request. | [optional] +**zone_id** | **str** | Specifies the name of the access zone that is serving the request. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthIdNtokenPrivilegeItem.md b/docs/AuthIdNtokenPrivilegeItem.md new file mode 100644 index 000000000..b1107a588 --- /dev/null +++ b/docs/AuthIdNtokenPrivilegeItem.md @@ -0,0 +1,12 @@ +# AuthIdNtokenPrivilegeItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Specifies the ID of the privilege. | +**name** | **str** | Specifies the name of the privilege. | [optional] +**read_only** | **bool** | True, if the privilege is read-only. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthLogLevel.md b/docs/AuthLogLevel.md new file mode 100644 index 000000000..a7921b0a0 --- /dev/null +++ b/docs/AuthLogLevel.md @@ -0,0 +1,10 @@ +# AuthLogLevel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | [**AuthLogLevelLevel**](AuthLogLevelLevel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthLogLevelExtended.md b/docs/AuthLogLevelExtended.md new file mode 100644 index 000000000..fe54cea72 --- /dev/null +++ b/docs/AuthLogLevelExtended.md @@ -0,0 +1,10 @@ +# AuthLogLevelExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | [**AuthLogLevelLevel**](AuthLogLevelLevel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthLogLevelLevel.md b/docs/AuthLogLevelLevel.md new file mode 100644 index 000000000..0ac6df59f --- /dev/null +++ b/docs/AuthLogLevelLevel.md @@ -0,0 +1,11 @@ +# AuthLogLevelLevel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lsass_level** | **str** | Valid auth logging levels | [optional] +**netlogon_level** | **str** | Valid auth logging levels | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthNetgroup.md b/docs/AuthNetgroup.md new file mode 100644 index 000000000..b7588f17c --- /dev/null +++ b/docs/AuthNetgroup.md @@ -0,0 +1,14 @@ +# AuthNetgroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domainname** | **str** | | [optional] +**hostname** | **str** | | [optional] +**id** | **int** | | [optional] +**netgroup** | **str** | | [optional] +**username** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthNetgroups.md b/docs/AuthNetgroups.md new file mode 100644 index 000000000..87bd45087 --- /dev/null +++ b/docs/AuthNetgroups.md @@ -0,0 +1,10 @@ +# AuthNetgroups + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**netgroups** | [**list[AuthNetgroup]**](AuthNetgroup.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthPrivilege.md b/docs/AuthPrivilege.md new file mode 100644 index 000000000..fcc5a4930 --- /dev/null +++ b/docs/AuthPrivilege.md @@ -0,0 +1,14 @@ +# AuthPrivilege + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | Specifies the general categorization of the privilege. | +**description** | **str** | Specifies a short description of the privilege. | +**id** | **str** | Specifies the ID of the privilege. | +**name** | **str** | Specifies the name of the privilege. | [optional] +**read_write** | **bool** | True, if the privilege is read-write. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthPrivileges.md b/docs/AuthPrivileges.md new file mode 100644 index 000000000..499a97c03 --- /dev/null +++ b/docs/AuthPrivileges.md @@ -0,0 +1,11 @@ +# AuthPrivileges + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**privileges** | [**list[AuthPrivilege]**](AuthPrivilege.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthProvidersApi.md b/docs/AuthProvidersApi.md new file mode 100644 index 000000000..e6da6961e --- /dev/null +++ b/docs/AuthProvidersApi.md @@ -0,0 +1,234 @@ +# isi_sdk.AuthProvidersApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_ads_provider_controllers**](AuthProvidersApi.md#get_ads_provider_controllers) | **GET** /platform/1/auth/providers/ads/{Id}/controllers | +[**get_ads_provider_domain**](AuthProvidersApi.md#get_ads_provider_domain) | **GET** /platform/3/auth/providers/ads/{Id}/domains/{AdsProviderDomainId} | +[**get_ads_provider_domains**](AuthProvidersApi.md#get_ads_provider_domains) | **GET** /platform/3/auth/providers/ads/{Id}/domains | +[**get_ads_provider_search**](AuthProvidersApi.md#get_ads_provider_search) | **GET** /platform/1/auth/providers/ads/{Id}/search | + + +# **get_ads_provider_controllers** +> AdsProviderControllers get_ads_provider_controllers(id) + + + +List all ADS controllers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthProvidersApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_ads_provider_controllers(id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthProvidersApi->get_ads_provider_controllers: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**AdsProviderControllers**](AdsProviderControllers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ads_provider_domain** +> AdsProviderDomains get_ads_provider_domain(ads_provider_domain_id, id) + + + +Retrieve the ADS domain information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthProvidersApi() +ads_provider_domain_id = 'ads_provider_domain_id_example' # str | Retrieve the ADS domain information. +id = 'id_example' # str | + +try: + api_response = api_instance.get_ads_provider_domain(ads_provider_domain_id, id) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthProvidersApi->get_ads_provider_domain: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ads_provider_domain_id** | **str**| Retrieve the ADS domain information. | + **id** | **str**| | + +### Return type + +[**AdsProviderDomains**](AdsProviderDomains.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ads_provider_domains** +> AdsProviderDomains get_ads_provider_domains(id, scope=scope) + + + +List all ADS domains. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthProvidersApi() +id = 'id_example' # str | +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_ads_provider_domains(id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthProvidersApi->get_ads_provider_domains: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**AdsProviderDomains**](AdsProviderDomains.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ads_provider_search** +> AdsProviderSearch get_ads_provider_search(id, domain=domain, description=description, resume=resume, search_users=search_users, filter=filter, limit=limit, user=user, password=password, search_groups=search_groups) + + + +Retrieve search results. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthProvidersApi() +id = 'id_example' # str | +domain = 'domain_example' # str | The domain to search in. (optional) +description = 'description_example' # str | The user or group description to search for. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +search_users = true # bool | If true, search for users. (optional) +filter = 'filter_example' # str | The LDAP filter to apply to the search. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +user = 'user_example' # str | The user name for the domain if untrusted. (optional) +password = 'password_example' # str | The password for the domain if untrusted. (optional) +search_groups = true # bool | If true, search for groups. (optional) + +try: + api_response = api_instance.get_ads_provider_search(id, domain=domain, description=description, resume=resume, search_users=search_users, filter=filter, limit=limit, user=user, password=password, search_groups=search_groups) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthProvidersApi->get_ads_provider_search: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **domain** | **str**| The domain to search in. | [optional] + **description** | **str**| The user or group description to search for. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **search_users** | **bool**| If true, search for users. | [optional] + **filter** | **str**| The LDAP filter to apply to the search. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **user** | **str**| The user name for the domain if untrusted. | [optional] + **password** | **str**| The password for the domain if untrusted. | [optional] + **search_groups** | **bool**| If true, search for groups. | [optional] + +### Return type + +[**AdsProviderSearch**](AdsProviderSearch.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthRole.md b/docs/AuthRole.md new file mode 100644 index 000000000..9f1e70e9c --- /dev/null +++ b/docs/AuthRole.md @@ -0,0 +1,13 @@ +# AuthRole + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Specifies the description of the role. | [optional] +**members** | [**list[GroupMember]**](GroupMember.md) | Specifies the users or groups that have this role. | [optional] +**name** | **str** | Specifies the name of the role. | [optional] +**privileges** | [**list[AuthIdNtokenPrivilegeItem]**](AuthIdNtokenPrivilegeItem.md) | Specifies the privileges granted by this role. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthRoleExtended.md b/docs/AuthRoleExtended.md new file mode 100644 index 000000000..bc019c365 --- /dev/null +++ b/docs/AuthRoleExtended.md @@ -0,0 +1,14 @@ +# AuthRoleExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Specifies the description of the role. | [optional] +**members** | [**list[GroupMember]**](GroupMember.md) | Specifies the users or groups that have this role. | [optional] +**name** | **str** | Specifies the name of the role. | [optional] +**privileges** | [**list[AuthIdNtokenPrivilegeItem]**](AuthIdNtokenPrivilegeItem.md) | Specifies the privileges granted by this role. | [optional] +**id** | **str** | Specifies the ID of the role. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthRoles.md b/docs/AuthRoles.md new file mode 100644 index 000000000..456ae095a --- /dev/null +++ b/docs/AuthRoles.md @@ -0,0 +1,10 @@ +# AuthRoles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**roles** | [**list[AuthRoleExtended]**](AuthRoleExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthRolesApi.md b/docs/AuthRolesApi.md new file mode 100644 index 000000000..f1ef2adb6 --- /dev/null +++ b/docs/AuthRolesApi.md @@ -0,0 +1,322 @@ +# isi_sdk.AuthRolesApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_role_member**](AuthRolesApi.md#create_role_member) | **POST** /platform/1/auth/roles/{Role}/members | +[**create_role_privilege**](AuthRolesApi.md#create_role_privilege) | **POST** /platform/1/auth/roles/{Role}/privileges | +[**delete_role_member**](AuthRolesApi.md#delete_role_member) | **DELETE** /platform/1/auth/roles/{Role}/members/{RoleMemberId} | +[**delete_role_privilege**](AuthRolesApi.md#delete_role_privilege) | **DELETE** /platform/1/auth/roles/{Role}/privileges/{RolePrivilegeId} | +[**list_role_members**](AuthRolesApi.md#list_role_members) | **GET** /platform/1/auth/roles/{Role}/members | +[**list_role_privileges**](AuthRolesApi.md#list_role_privileges) | **GET** /platform/1/auth/roles/{Role}/privileges | + + +# **create_role_member** +> CreateResponse create_role_member(role_member, role) + + + +Add a member to the role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthRolesApi() +role_member = isi_sdk.GroupMember() # GroupMember | +role = 'role_example' # str | + +try: + api_response = api_instance.create_role_member(role_member, role) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthRolesApi->create_role_member: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_member** | [**GroupMember**](GroupMember.md)| | + **role** | **str**| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_role_privilege** +> CreateResponse create_role_privilege(role_privilege, role) + + + +Add a privilege to the role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthRolesApi() +role_privilege = isi_sdk.AuthIdNtokenPrivilegeItem() # AuthIdNtokenPrivilegeItem | +role = 'role_example' # str | + +try: + api_response = api_instance.create_role_privilege(role_privilege, role) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthRolesApi->create_role_privilege: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_privilege** | [**AuthIdNtokenPrivilegeItem**](AuthIdNtokenPrivilegeItem.md)| | + **role** | **str**| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_role_member** +> delete_role_member(role_member_id, role) + + + +Remove a member from the role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthRolesApi() +role_member_id = 'role_member_id_example' # str | Remove a member from the role. +role = 'role_example' # str | + +try: + api_instance.delete_role_member(role_member_id, role) +except ApiException as e: + print "Exception when calling AuthRolesApi->delete_role_member: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_member_id** | **str**| Remove a member from the role. | + **role** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_role_privilege** +> delete_role_privilege(role_privilege_id, role) + + + +Remove a privilege from a role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthRolesApi() +role_privilege_id = 'role_privilege_id_example' # str | Remove a privilege from a role. +role = 'role_example' # str | + +try: + api_instance.delete_role_privilege(role_privilege_id, role) +except ApiException as e: + print "Exception when calling AuthRolesApi->delete_role_privilege: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role_privilege_id** | **str**| Remove a privilege from a role. | + **role** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_role_members** +> GroupMembers list_role_members(role, resolve_names=resolve_names) + + + +List all the members of the role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthRolesApi() +role = 'role_example' # str | +resolve_names = true # bool | Resolve names of personas. (optional) + +try: + api_response = api_instance.list_role_members(role, resolve_names=resolve_names) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthRolesApi->list_role_members: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role** | **str**| | + **resolve_names** | **bool**| Resolve names of personas. | [optional] + +### Return type + +[**GroupMembers**](GroupMembers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_role_privileges** +> RolePrivileges list_role_privileges(role) + + + +List all privileges in the role. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthRolesApi() +role = 'role_example' # str | + +try: + api_response = api_instance.list_role_privileges(role) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthRolesApi->list_role_privileges: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **role** | **str**| | + +### Return type + +[**RolePrivileges**](RolePrivileges.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthRolesExtended.md b/docs/AuthRolesExtended.md new file mode 100644 index 000000000..df27a510e --- /dev/null +++ b/docs/AuthRolesExtended.md @@ -0,0 +1,12 @@ +# AuthRolesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**roles** | [**list[AuthRoleExtended]**](AuthRoleExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthShells.md b/docs/AuthShells.md new file mode 100644 index 000000000..4627423e4 --- /dev/null +++ b/docs/AuthShells.md @@ -0,0 +1,10 @@ +# AuthShells + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shells** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthUser.md b/docs/AuthUser.md new file mode 100644 index 000000000..ab3491f89 --- /dev/null +++ b/docs/AuthUser.md @@ -0,0 +1,22 @@ +# AuthUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | Specifies an email address for the user. | [optional] +**enabled** | **bool** | If true, the authenticated user is enabled. | [optional] +**expiry** | **int** | Specifies the Unix Epoch time when the auth user will expire. | [optional] +**gecos** | **str** | Specifies the GECOS value, which is usually the full name. | [optional] +**home_directory** | **str** | Specifies a home directory for the user. | [optional] +**password** | **str** | Changes the password for the user. | [optional] +**password_expires** | **bool** | If true, the password should expire. | [optional] +**primary_group** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**prompt_password_change** | **bool** | If true, prompts the user to change their password at the next login. | [optional] +**shell** | **str** | Specifies the shell for the user. | [optional] +**sid** | **str** | Specifies a security identifier. | [optional] +**uid** | **int** | Specifies a numeric user identifier. | [optional] +**unlock** | **bool** | If true, the user account should be unlocked. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthUserCreateParams.md b/docs/AuthUserCreateParams.md new file mode 100644 index 000000000..eca084cfb --- /dev/null +++ b/docs/AuthUserCreateParams.md @@ -0,0 +1,23 @@ +# AuthUserCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | Specifies an email address for the user. | [optional] +**enabled** | **bool** | If true, the authenticated user is enabled. | [optional] +**expiry** | **int** | Specifies the Unix Epoch time when the auth user will expire. | [optional] +**gecos** | **str** | Specifies the GECOS value, which is usually the full name. | [optional] +**home_directory** | **str** | Specifies a home directory for the user. | [optional] +**password** | **str** | Changes the password for the user. | [optional] +**password_expires** | **bool** | If true, the password should expire. | [optional] +**primary_group** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**prompt_password_change** | **bool** | If true, prompts the user to change their password at the next login. | [optional] +**shell** | **str** | Specifies the shell for the user. | [optional] +**sid** | **str** | Specifies a security identifier. | [optional] +**uid** | **int** | Specifies a numeric user identifier. | [optional] +**unlock** | **bool** | If true, the user account should be unlocked. | [optional] +**name** | **str** | Specifies a user name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthUsers.md b/docs/AuthUsers.md new file mode 100644 index 000000000..03d180f80 --- /dev/null +++ b/docs/AuthUsers.md @@ -0,0 +1,10 @@ +# AuthUsers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**list[MappingUsersLookupMappingItemUser]**](MappingUsersLookupMappingItemUser.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthUsersApi.md b/docs/AuthUsersApi.md new file mode 100644 index 000000000..46001220b --- /dev/null +++ b/docs/AuthUsersApi.md @@ -0,0 +1,232 @@ +# isi_sdk.AuthUsersApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_user_member_of_item**](AuthUsersApi.md#create_user_member_of_item) | **POST** /platform/3/auth/users/{User}/member-of | +[**delete_user_member_of_member_of**](AuthUsersApi.md#delete_user_member_of_member_of) | **DELETE** /platform/3/auth/users/{User}/member-of/{UserMemberOfMemberOf} | +[**list_user_member_of**](AuthUsersApi.md#list_user_member_of) | **GET** /platform/3/auth/users/{User}/member-of | +[**update_user_change_password**](AuthUsersApi.md#update_user_change_password) | **PUT** /platform/3/auth/users/{User}/change-password | + + +# **create_user_member_of_item** +> CreateResponse create_user_member_of_item(user_member_of_item, user, zone=zone, provider=provider) + + + +Add the user to a group. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthUsersApi() +user_member_of_item = isi_sdk.GroupMember() # GroupMember | +user = 'user_example' # str | +zone = 'zone_example' # str | Filter groups by zone. (optional) +provider = 'provider_example' # str | Filter groups by provider. (optional) + +try: + api_response = api_instance.create_user_member_of_item(user_member_of_item, user, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthUsersApi->create_user_member_of_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_member_of_item** | [**GroupMember**](GroupMember.md)| | + **user** | **str**| | + **zone** | **str**| Filter groups by zone. | [optional] + **provider** | **str**| Filter groups by provider. | [optional] + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_user_member_of_member_of** +> delete_user_member_of_member_of(user_member_of_member_of, user, zone=zone, provider=provider) + + + +Remove the user from the group. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthUsersApi() +user_member_of_member_of = 'user_member_of_member_of_example' # str | Remove the user from the group. +user = 'user_example' # str | +zone = 'zone_example' # str | Filter groups by zone. (optional) +provider = 'provider_example' # str | Filter groups by provider. (optional) + +try: + api_instance.delete_user_member_of_member_of(user_member_of_member_of, user, zone=zone, provider=provider) +except ApiException as e: + print "Exception when calling AuthUsersApi->delete_user_member_of_member_of: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_member_of_member_of** | **str**| Remove the user from the group. | + **user** | **str**| | + **zone** | **str**| Filter groups by zone. | [optional] + **provider** | **str**| Filter groups by provider. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_user_member_of** +> UserMemberOf list_user_member_of(user, resolve_names=resolve_names, zone=zone, provider=provider) + + + +List all groups the user is a member of. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthUsersApi() +user = 'user_example' # str | +resolve_names = true # bool | Resolve names of personas. (optional) +zone = 'zone_example' # str | Filter groups by zone. (optional) +provider = 'provider_example' # str | Filter groups by provider. (optional) + +try: + api_response = api_instance.list_user_member_of(user, resolve_names=resolve_names, zone=zone, provider=provider) + pprint(api_response) +except ApiException as e: + print "Exception when calling AuthUsersApi->list_user_member_of: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user** | **str**| | + **resolve_names** | **bool**| Resolve names of personas. | [optional] + **zone** | **str**| Filter groups by zone. | [optional] + **provider** | **str**| Filter groups by provider. | [optional] + +### Return type + +[**UserMemberOf**](UserMemberOf.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_user_change_password** +> update_user_change_password(user_change_password, user, zone=zone) + + + +Change the user's password. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.AuthUsersApi() +user_change_password = isi_sdk.UserChangePassword() # UserChangePassword | +user = 'user_example' # str | +zone = 'zone_example' # str | Specifies access zone containing user. (optional) + +try: + api_instance.update_user_change_password(user_change_password, user, zone=zone) +except ApiException as e: + print "Exception when calling AuthUsersApi->update_user_change_password: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_change_password** | [**UserChangePassword**](UserChangePassword.md)| | + **user** | **str**| | + **zone** | **str**| Specifies access zone containing user. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthUsersExtended.md b/docs/AuthUsersExtended.md new file mode 100644 index 000000000..7d47861ff --- /dev/null +++ b/docs/AuthUsersExtended.md @@ -0,0 +1,11 @@ +# AuthUsersExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**list[MappingUsersLookupMappingItemUser]**](MappingUsersLookupMappingItemUser.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthWellknowns.md b/docs/AuthWellknowns.md new file mode 100644 index 000000000..a096b6f87 --- /dev/null +++ b/docs/AuthWellknowns.md @@ -0,0 +1,10 @@ +# AuthWellknowns + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wellknowns** | [**list[GroupMember]**](GroupMember.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChangelistLins.md b/docs/ChangelistLins.md new file mode 100644 index 000000000..725757119 --- /dev/null +++ b/docs/ChangelistLins.md @@ -0,0 +1,16 @@ +# ChangelistLins + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**atime** | [**ChangelistLinsCtime**](ChangelistLinsCtime.md) | | [optional] +**ctime** | [**ChangelistLinsCtime**](ChangelistLinsCtime.md) | | [optional] +**id** | **str** | The LIN number of the file associated with the entry. | +**mtime** | [**ChangelistLinsCtime**](ChangelistLinsCtime.md) | | [optional] +**path** | **str** | The path to the file associated with the entry. | +**size** | **int** | The size of the file associated with the entry. | +**type** | **str** | Type of file. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChangelistLinsCtime.md b/docs/ChangelistLinsCtime.md new file mode 100644 index 000000000..3f85e25aa --- /dev/null +++ b/docs/ChangelistLinsCtime.md @@ -0,0 +1,11 @@ +# ChangelistLinsCtime + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nsec** | **int** | Nanoseconds component of timespec. | [optional] +**sec** | **int** | Seconds component of timespec. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChangelistLinsExtended.md b/docs/ChangelistLinsExtended.md new file mode 100644 index 000000000..5882dcfad --- /dev/null +++ b/docs/ChangelistLinsExtended.md @@ -0,0 +1,12 @@ +# ChangelistLinsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lins** | [**list[ChangelistLins]**](ChangelistLins.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccess.md b/docs/CloudAccess.md new file mode 100644 index 000000000..28d62b3e8 --- /dev/null +++ b/docs/CloudAccess.md @@ -0,0 +1,11 @@ +# CloudAccess + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**list[CloudAccessCluster]**](CloudAccessCluster.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccessCluster.md b/docs/CloudAccessCluster.md new file mode 100644 index 000000000..6a4ad20e5 --- /dev/null +++ b/docs/CloudAccessCluster.md @@ -0,0 +1,17 @@ +# CloudAccessCluster + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **list[str]** | A list of accounts created on the cluster with this guid | [optional] +**current** | **bool** | Whether the guid is that of the current (local) cluster | [optional] +**guid** | **str** | A cluster guid indicating the birth place of one or more accounts or policies on this cluster | [optional] +**id** | **str** | A cluster guid indicating the birth place of one or more accounts or policies on this cluster | [optional] +**name** | **str** | The name of the cluster from which the above guid originated | [optional] +**policies** | **list[str]** | A list of policies created on the cluster with this guid | [optional] +**state** | **str** | Whether the guid has access to the cloud | [optional] +**synced_from** | **str** | The name of the cluster from which the above guid was synced | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccessExtended.md b/docs/CloudAccessExtended.md new file mode 100644 index 000000000..32d0596e4 --- /dev/null +++ b/docs/CloudAccessExtended.md @@ -0,0 +1,12 @@ +# CloudAccessExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clusters** | [**list[CloudAccessCluster]**](CloudAccessCluster.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccessItem.md b/docs/CloudAccessItem.md new file mode 100644 index 000000000..a1a67ad8c --- /dev/null +++ b/docs/CloudAccessItem.md @@ -0,0 +1,10 @@ +# CloudAccessItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guid** | **str** | A cluster guid indicating the birth place of one or more accounts or policies on this cluster | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccount.md b/docs/CloudAccount.md new file mode 100644 index 000000000..fac668ab1 --- /dev/null +++ b/docs/CloudAccount.md @@ -0,0 +1,19 @@ +# CloudAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | (S3 only) The user id of the S3 account | [optional] +**account_username** | **str** | The username required to authenticate against the cloud service | [optional] +**birth_cluster_id** | **str** | The guid of the cluster where this account was created | [optional] +**enabled** | **bool** | Whether this account is explicitly enabled or disabled by a user | [optional] +**key** | **str** | A valid authentication key for connecting to the cloud | [optional] +**name** | **str** | A unique name for this account | [optional] +**skip_ssl_validation** | **bool** | Indicates whether to skip SSL certificate validation when connecting to the cloud | [optional] +**storage_region** | **str** | (S3 only) An appropriate region for the S3 account. For example, faster access times may be gained by referencing a nearby region | [optional] +**telemetry_bucket** | **str** | (S3 only) The name of the bucket into which generated metrics reports are placed by the cloud service provider | [optional] +**uri** | **str** | A valid URI pointing to the location of the cloud storage | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccountCreateParams.md b/docs/CloudAccountCreateParams.md new file mode 100644 index 000000000..57c0b68e3 --- /dev/null +++ b/docs/CloudAccountCreateParams.md @@ -0,0 +1,20 @@ +# CloudAccountCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | (S3 only) The user id of the S3 account | [optional] +**account_username** | **str** | The username required to authenticate against the cloud service | [optional] +**birth_cluster_id** | **str** | The guid of the cluster where this account was created | [optional] +**enabled** | **bool** | Whether this account is explicitly enabled or disabled by a user | [optional] +**key** | **str** | A valid authentication key for connecting to the cloud | [optional] +**name** | **str** | A unique name for this account | [optional] +**skip_ssl_validation** | **bool** | Indicates whether to skip SSL certificate validation when connecting to the cloud | [optional] +**storage_region** | **str** | (S3 only) An appropriate region for the S3 account. For example, faster access times may be gained by referencing a nearby region | [optional] +**telemetry_bucket** | **str** | (S3 only) The name of the bucket into which generated metrics reports are placed by the cloud service provider | [optional] +**uri** | **str** | A valid URI pointing to the location of the cloud storage | [optional] +**type** | **str** | The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccountExtended.md b/docs/CloudAccountExtended.md new file mode 100644 index 000000000..806e17b18 --- /dev/null +++ b/docs/CloudAccountExtended.md @@ -0,0 +1,26 @@ +# CloudAccountExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | (S3 only) The user id of the S3 account | [optional] +**account_username** | **str** | The username required to authenticate against the cloud service | [optional] +**birth_cluster_id** | **str** | The guid of the cluster where this account was created | [optional] +**enabled** | **bool** | Whether this account is explicitly enabled or disabled by a user | [optional] +**key** | **str** | A valid authentication key for connecting to the cloud | [optional] +**name** | **str** | A unique name for this account | [optional] +**skip_ssl_validation** | **bool** | Indicates whether to skip SSL certificate validation when connecting to the cloud | [optional] +**storage_region** | **str** | (S3 only) An appropriate region for the S3 account. For example, faster access times may be gained by referencing a nearby region | [optional] +**telemetry_bucket** | **str** | (S3 only) The name of the bucket into which generated metrics reports are placed by the cloud service provider | [optional] +**uri** | **str** | A valid URI pointing to the location of the cloud storage | [optional] +**bucket** | **str** | The machine generated name of the account bucket to store data | [optional] +**id** | **str** | A globally unique name for this account | [optional] +**metadata_bucket** | **str** | The machine generated name of the account bucket to store metadata | [optional] +**pool** | **str** | Name of the pool referencing this account. Empty if none. | [optional] +**state** | **str** | Indicates whether this account is in a good state (\"OK\"), disabled (\"disabled\") or inaccessible via the network (\"unreachable\") | [optional] +**state_details** | **str** | Gives further information to describe the state of this account | [optional] +**type** | **str** | The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccounts.md b/docs/CloudAccounts.md new file mode 100644 index 000000000..aa50eab9a --- /dev/null +++ b/docs/CloudAccounts.md @@ -0,0 +1,11 @@ +# CloudAccounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | [**list[CloudAccountExtended]**](CloudAccountExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudAccountsExtended.md b/docs/CloudAccountsExtended.md new file mode 100644 index 000000000..1af160f7f --- /dev/null +++ b/docs/CloudAccountsExtended.md @@ -0,0 +1,12 @@ +# CloudAccountsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | [**list[CloudAccountExtended]**](CloudAccountExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudApi.md b/docs/CloudApi.md new file mode 100644 index 000000000..08f8c4a7f --- /dev/null +++ b/docs/CloudApi.md @@ -0,0 +1,1293 @@ +# isi_sdk.CloudApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_cloud_access_item**](CloudApi.md#create_cloud_access_item) | **POST** /platform/3/cloud/access | +[**create_cloud_account**](CloudApi.md#create_cloud_account) | **POST** /platform/3/cloud/accounts | +[**create_cloud_job**](CloudApi.md#create_cloud_job) | **POST** /platform/3/cloud/jobs | +[**create_cloud_pool**](CloudApi.md#create_cloud_pool) | **POST** /platform/3/cloud/pools | +[**create_settings_encryption_key_item**](CloudApi.md#create_settings_encryption_key_item) | **POST** /platform/3/cloud/settings/encryption-key | +[**create_settings_reporting_eula_item**](CloudApi.md#create_settings_reporting_eula_item) | **POST** /platform/3/cloud/settings/reporting-eula | +[**delete_cloud_access_guid**](CloudApi.md#delete_cloud_access_guid) | **DELETE** /platform/3/cloud/access/{CloudAccessGuid} | +[**delete_cloud_account**](CloudApi.md#delete_cloud_account) | **DELETE** /platform/3/cloud/accounts/{CloudAccountId} | +[**delete_cloud_pool**](CloudApi.md#delete_cloud_pool) | **DELETE** /platform/3/cloud/pools/{CloudPoolId} | +[**delete_settings_reporting_eula**](CloudApi.md#delete_settings_reporting_eula) | **DELETE** /platform/3/cloud/settings/reporting-eula | +[**get_cloud_access_guid**](CloudApi.md#get_cloud_access_guid) | **GET** /platform/3/cloud/access/{CloudAccessGuid} | +[**get_cloud_account**](CloudApi.md#get_cloud_account) | **GET** /platform/3/cloud/accounts/{CloudAccountId} | +[**get_cloud_job**](CloudApi.md#get_cloud_job) | **GET** /platform/3/cloud/jobs/{CloudJobId} | +[**get_cloud_jobs_file**](CloudApi.md#get_cloud_jobs_file) | **GET** /platform/3/cloud/jobs-files/{CloudJobsFileId} | +[**get_cloud_pool**](CloudApi.md#get_cloud_pool) | **GET** /platform/3/cloud/pools/{CloudPoolId} | +[**get_cloud_settings**](CloudApi.md#get_cloud_settings) | **GET** /platform/3/cloud/settings | +[**list_cloud_access**](CloudApi.md#list_cloud_access) | **GET** /platform/3/cloud/access | +[**list_cloud_accounts**](CloudApi.md#list_cloud_accounts) | **GET** /platform/3/cloud/accounts | +[**list_cloud_jobs**](CloudApi.md#list_cloud_jobs) | **GET** /platform/3/cloud/jobs | +[**list_cloud_pools**](CloudApi.md#list_cloud_pools) | **GET** /platform/3/cloud/pools | +[**list_settings_reporting_eula**](CloudApi.md#list_settings_reporting_eula) | **GET** /platform/3/cloud/settings/reporting-eula | +[**update_cloud_account**](CloudApi.md#update_cloud_account) | **PUT** /platform/3/cloud/accounts/{CloudAccountId} | +[**update_cloud_job**](CloudApi.md#update_cloud_job) | **PUT** /platform/3/cloud/jobs/{CloudJobId} | +[**update_cloud_pool**](CloudApi.md#update_cloud_pool) | **PUT** /platform/3/cloud/pools/{CloudPoolId} | +[**update_cloud_settings**](CloudApi.md#update_cloud_settings) | **PUT** /platform/3/cloud/settings | + + +# **create_cloud_access_item** +> Empty create_cloud_access_item(cloud_access_item) + + + +Add a cluster identifier to access list. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_access_item = isi_sdk.CloudAccessItem() # CloudAccessItem | + +try: + api_response = api_instance.create_cloud_access_item(cloud_access_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->create_cloud_access_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_access_item** | [**CloudAccessItem**](CloudAccessItem.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cloud_account** +> CreateCloudAccountResponse create_cloud_account(cloud_account) + + + +Create a new account. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_account = isi_sdk.CloudAccountCreateParams() # CloudAccountCreateParams | + +try: + api_response = api_instance.create_cloud_account(cloud_account) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->create_cloud_account: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_account** | [**CloudAccountCreateParams**](CloudAccountCreateParams.md)| | + +### Return type + +[**CreateCloudAccountResponse**](CreateCloudAccountResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cloud_job** +> CreateCloudJobResponse create_cloud_job(cloud_job) + + + +Create a new job. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_job = isi_sdk.CloudJobCreateParams() # CloudJobCreateParams | + +try: + api_response = api_instance.create_cloud_job(cloud_job) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->create_cloud_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_job** | [**CloudJobCreateParams**](CloudJobCreateParams.md)| | + +### Return type + +[**CreateCloudJobResponse**](CreateCloudJobResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cloud_pool** +> CreateCloudPoolResponse create_cloud_pool(cloud_pool) + + + +Create a new pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_pool = isi_sdk.CloudPoolCreateParams() # CloudPoolCreateParams | + +try: + api_response = api_instance.create_cloud_pool(cloud_pool) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->create_cloud_pool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_pool** | [**CloudPoolCreateParams**](CloudPoolCreateParams.md)| | + +### Return type + +[**CreateCloudPoolResponse**](CreateCloudPoolResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_settings_encryption_key_item** +> Empty create_settings_encryption_key_item() + + + +Regenerate master encryption key. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() + +try: + api_response = api_instance.create_settings_encryption_key_item() + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->create_settings_encryption_key_item: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_settings_reporting_eula_item** +> SettingsReportingEulaItem create_settings_reporting_eula_item(settings_reporting_eula_item) + + + +Accept telemetry collection EULA. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +settings_reporting_eula_item = isi_sdk.SettingsReportingEulaItem() # SettingsReportingEulaItem | + +try: + api_response = api_instance.create_settings_reporting_eula_item(settings_reporting_eula_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->create_settings_reporting_eula_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_reporting_eula_item** | [**SettingsReportingEulaItem**](SettingsReportingEulaItem.md)| | + +### Return type + +[**SettingsReportingEulaItem**](SettingsReportingEulaItem.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cloud_access_guid** +> delete_cloud_access_guid(cloud_access_guid) + + + +Delete cloud access. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_access_guid = 'cloud_access_guid_example' # str | Delete cloud access. + +try: + api_instance.delete_cloud_access_guid(cloud_access_guid) +except ApiException as e: + print "Exception when calling CloudApi->delete_cloud_access_guid: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_access_guid** | **str**| Delete cloud access. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cloud_account** +> delete_cloud_account(cloud_account_id) + + + +Delete cloud account. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_account_id = 'cloud_account_id_example' # str | Delete cloud account. + +try: + api_instance.delete_cloud_account(cloud_account_id) +except ApiException as e: + print "Exception when calling CloudApi->delete_cloud_account: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_account_id** | **str**| Delete cloud account. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_cloud_pool** +> delete_cloud_pool(cloud_pool_id) + + + +Delete a cloud pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_pool_id = 'cloud_pool_id_example' # str | Delete a cloud pool. + +try: + api_instance.delete_cloud_pool(cloud_pool_id) +except ApiException as e: + print "Exception when calling CloudApi->delete_cloud_pool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_pool_id** | **str**| Delete a cloud pool. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_settings_reporting_eula** +> delete_settings_reporting_eula() + + + +Revoke acceptance of telemetry collection EULA. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() + +try: + api_instance.delete_settings_reporting_eula() +except ApiException as e: + print "Exception when calling CloudApi->delete_settings_reporting_eula: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cloud_access_guid** +> CloudAccess get_cloud_access_guid(cloud_access_guid) + + + +Retrieve cloud access information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_access_guid = 'cloud_access_guid_example' # str | Retrieve cloud access information. + +try: + api_response = api_instance.get_cloud_access_guid(cloud_access_guid) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->get_cloud_access_guid: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_access_guid** | **str**| Retrieve cloud access information. | + +### Return type + +[**CloudAccess**](CloudAccess.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cloud_account** +> CloudAccounts get_cloud_account(cloud_account_id) + + + +Retrieve cloud account information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_account_id = 'cloud_account_id_example' # str | Retrieve cloud account information. + +try: + api_response = api_instance.get_cloud_account(cloud_account_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->get_cloud_account: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_account_id** | **str**| Retrieve cloud account information. | + +### Return type + +[**CloudAccounts**](CloudAccounts.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cloud_job** +> CloudJobs get_cloud_job(cloud_job_id) + + + +Retrieve cloudpool job information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_job_id = 'cloud_job_id_example' # str | Retrieve cloudpool job information. + +try: + api_response = api_instance.get_cloud_job(cloud_job_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->get_cloud_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_job_id** | **str**| Retrieve cloudpool job information. | + +### Return type + +[**CloudJobs**](CloudJobs.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cloud_jobs_file** +> CloudJobsFiles get_cloud_jobs_file(cloud_jobs_file_id, sort=sort, resume=resume, batch=batch, limit=limit, page=page, dir=dir) + + + +Retrieve files associated with a cloudpool job. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_jobs_file_id = 'cloud_jobs_file_id_example' # str | Retrieve files associated with a cloudpool job. +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +batch = true # bool | If true, only \"limit\" and \"page\" arguments are honored. Query will return all results, unsorted, as quickly as possible. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +page = 56 # int | Works only when \"batch\" parameter and \"limit\" parameters are specified. Indicates which the page index of results to be returned (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_cloud_jobs_file(cloud_jobs_file_id, sort=sort, resume=resume, batch=batch, limit=limit, page=page, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->get_cloud_jobs_file: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_jobs_file_id** | **str**| Retrieve files associated with a cloudpool job. | + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **batch** | **bool**| If true, only \"limit\" and \"page\" arguments are honored. Query will return all results, unsorted, as quickly as possible. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **page** | **int**| Works only when \"batch\" parameter and \"limit\" parameters are specified. Indicates which the page index of results to be returned | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**CloudJobsFiles**](CloudJobsFiles.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cloud_pool** +> CloudPools get_cloud_pool(cloud_pool_id) + + + +Retrieve cloud pool information + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_pool_id = 'cloud_pool_id_example' # str | Retrieve cloud pool information + +try: + api_response = api_instance.get_cloud_pool(cloud_pool_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->get_cloud_pool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_pool_id** | **str**| Retrieve cloud pool information | + +### Return type + +[**CloudPools**](CloudPools.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cloud_settings** +> CloudSettings get_cloud_settings() + + + +List all cloud settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() + +try: + api_response = api_instance.get_cloud_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->get_cloud_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CloudSettings**](CloudSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cloud_access** +> CloudAccessExtended list_cloud_access(sort=sort, limit=limit, dir=dir) + + + +List all accessible cluster identifiers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_cloud_access(sort=sort, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->list_cloud_access: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**CloudAccessExtended**](CloudAccessExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cloud_accounts** +> CloudAccountsExtended list_cloud_accounts(sort=sort, limit=limit, dir=dir) + + + +List all accounts. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_cloud_accounts(sort=sort, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->list_cloud_accounts: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**CloudAccountsExtended**](CloudAccountsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cloud_jobs** +> CloudJobsExtended list_cloud_jobs(sort=sort, limit=limit, dir=dir) + + + +List all cloudpools jobs. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_cloud_jobs(sort=sort, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->list_cloud_jobs: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**CloudJobsExtended**](CloudJobsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_cloud_pools** +> CloudPoolsExtended list_cloud_pools(sort=sort, limit=limit, dir=dir) + + + +List all pools. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_cloud_pools(sort=sort, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->list_cloud_pools: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**CloudPoolsExtended**](CloudPoolsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_settings_reporting_eula** +> SettingsReportingEulaItem list_settings_reporting_eula() + + + +View telemetry collection EULA acceptance and content URI. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() + +try: + api_response = api_instance.list_settings_reporting_eula() + pprint(api_response) +except ApiException as e: + print "Exception when calling CloudApi->list_settings_reporting_eula: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsReportingEulaItem**](SettingsReportingEulaItem.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cloud_account** +> update_cloud_account(cloud_account, cloud_account_id) + + + +Modify cloud account. All fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_account = isi_sdk.CloudAccount() # CloudAccount | +cloud_account_id = 'cloud_account_id_example' # str | Modify cloud account. All fields are optional, but one or more must be supplied. + +try: + api_instance.update_cloud_account(cloud_account, cloud_account_id) +except ApiException as e: + print "Exception when calling CloudApi->update_cloud_account: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_account** | [**CloudAccount**](CloudAccount.md)| | + **cloud_account_id** | **str**| Modify cloud account. All fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cloud_job** +> update_cloud_job(cloud_job, cloud_job_id) + + + +Modify a cloud job or operation. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_job = isi_sdk.CloudJob() # CloudJob | +cloud_job_id = 'cloud_job_id_example' # str | Modify a cloud job or operation. + +try: + api_instance.update_cloud_job(cloud_job, cloud_job_id) +except ApiException as e: + print "Exception when calling CloudApi->update_cloud_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_job** | [**CloudJob**](CloudJob.md)| | + **cloud_job_id** | **str**| Modify a cloud job or operation. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cloud_pool** +> update_cloud_pool(cloud_pool, cloud_pool_id) + + + +Modify a cloud pool. All fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_pool = isi_sdk.CloudPool() # CloudPool | +cloud_pool_id = 'cloud_pool_id_example' # str | Modify a cloud pool. All fields are optional, but one or more must be supplied. + +try: + api_instance.update_cloud_pool(cloud_pool, cloud_pool_id) +except ApiException as e: + print "Exception when calling CloudApi->update_cloud_pool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_pool** | [**CloudPool**](CloudPool.md)| | + **cloud_pool_id** | **str**| Modify a cloud pool. All fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cloud_settings** +> update_cloud_settings(cloud_settings) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.CloudApi() +cloud_settings = isi_sdk.CloudSettingsSettings() # CloudSettingsSettings | + +try: + api_instance.update_cloud_settings(cloud_settings) +except ApiException as e: + print "Exception when calling CloudApi->update_cloud_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloud_settings** | [**CloudSettingsSettings**](CloudSettingsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CloudJob.md b/docs/CloudJob.md new file mode 100644 index 000000000..2fe25b056 --- /dev/null +++ b/docs/CloudJob.md @@ -0,0 +1,11 @@ +# CloudJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all** | **bool** | Whether to apply to the given operation type or to all jobs of the given operation type | [optional] +**state** | **str** | The desired state of the job or operation | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudJobCreateParams.md b/docs/CloudJobCreateParams.md new file mode 100644 index 000000000..7921cd81d --- /dev/null +++ b/docs/CloudJobCreateParams.md @@ -0,0 +1,16 @@ +# CloudJobCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **list[str]** | The names of accounts for COI restore | [optional] +**directories** | **list[str]** | Directories addressed by this job | [optional] +**expiration_date** | **int** | The new expiration date in seconds | [optional] +**file_matching_pattern** | [**Empty**](Empty.md) | The file filtering logic to find files for this job. (Only applicable for 'recall' jobs) | [optional] +**files** | **list[str]** | Filenames addressed by this job | [optional] +**policy** | **str** | The name of an existing cloudpool policy to apply to this job. (Only applicable for 'archive' jobs) | [optional] +**type** | **str** | The type of cloud action to be performed by this job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudJobExtended.md b/docs/CloudJobExtended.md new file mode 100644 index 000000000..3df05181c --- /dev/null +++ b/docs/CloudJobExtended.md @@ -0,0 +1,20 @@ +# CloudJobExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**completion_time** | **int** | The time at which the job was completed (if applicable) | [optional] +**create_time** | **int** | The time at which the job was created | [optional] +**description** | **str** | A brief description of the job contents | [optional] +**effective_state** | **str** | The effective state of the job (e.g,. the combination of operation_state and job_state) | [optional] +**files** | [**CloudJobFiles**](CloudJobFiles.md) | The files and filters addressed by this job | [optional] +**id** | **int** | The job's ID | [optional] +**job_engine_job** | [**CloudJobJobEngineJob**](CloudJobJobEngineJob.md) | Information about the related job engine job if there is one | [optional] +**job_state** | **str** | The current state of the job | [optional] +**operation_state** | **str** | The current state of the operation associated with the job | [optional] +**state_change_time** | **int** | The last time at which the job state changed | [optional] +**type** | **str** | The type of cloud action to be performed by this job. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudJobFiles.md b/docs/CloudJobFiles.md new file mode 100644 index 000000000..5ed6a2de1 --- /dev/null +++ b/docs/CloudJobFiles.md @@ -0,0 +1,17 @@ +# CloudJobFiles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_matching_pattern** | [**Empty**](Empty.md) | The file filtering logic to find files for this job | [optional] +**names** | [**list[CloudJobFilesName]**](CloudJobFilesName.md) | A list of files to be addressed by this job. (Note* these are only reported when audit_level is 'high' | [optional] +**total** | **int** | The total number of files addressed by this job | [optional] +**total_canceled** | **int** | The number of canceled files | [optional] +**total_failed** | **int** | The number of files which failed | [optional] +**total_pending** | **int** | The number of files pending action | [optional] +**total_processing** | **int** | The number of files currently being processed | [optional] +**total_succeeded** | **int** | The total number of files successfully completed | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudJobFilesName.md b/docs/CloudJobFilesName.md new file mode 100644 index 000000000..045e1eec5 --- /dev/null +++ b/docs/CloudJobFilesName.md @@ -0,0 +1,11 @@ +# CloudJobFilesName + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The full path name of a file to be acted on by this job | [optional] +**state** | **str** | The current state of this file | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudJobJobEngineJob.md b/docs/CloudJobJobEngineJob.md new file mode 100644 index 000000000..7663fd951 --- /dev/null +++ b/docs/CloudJobJobEngineJob.md @@ -0,0 +1,11 @@ +# CloudJobJobEngineJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | ID of the related job engine job | [optional] +**state** | **str** | The state of the related job engine job | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudJobs.md b/docs/CloudJobs.md new file mode 100644 index 000000000..323ccb455 --- /dev/null +++ b/docs/CloudJobs.md @@ -0,0 +1,11 @@ +# CloudJobs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**list[CloudJobExtended]**](CloudJobExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudJobsExtended.md b/docs/CloudJobsExtended.md new file mode 100644 index 000000000..66e85d030 --- /dev/null +++ b/docs/CloudJobsExtended.md @@ -0,0 +1,12 @@ +# CloudJobsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**list[CloudJobExtended]**](CloudJobExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudJobsFiles.md b/docs/CloudJobsFiles.md new file mode 100644 index 000000000..76c93cd34 --- /dev/null +++ b/docs/CloudJobsFiles.md @@ -0,0 +1,11 @@ +# CloudJobsFiles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**files** | **list[str]** | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudPool.md b/docs/CloudPool.md new file mode 100644 index 000000000..539d9da15 --- /dev/null +++ b/docs/CloudPool.md @@ -0,0 +1,14 @@ +# CloudPool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **list[str]** | A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. | [optional] +**birth_cluster_id** | **str** | The guid of the cluster where this pool was created | [optional] +**description** | **str** | A brief description of this pool | [optional] +**name** | **str** | A unique name for this pool | [optional] +**vendor** | **str** | A string identifier of the cloud services vendor | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudPoolCreateParams.md b/docs/CloudPoolCreateParams.md new file mode 100644 index 000000000..f1a157d75 --- /dev/null +++ b/docs/CloudPoolCreateParams.md @@ -0,0 +1,15 @@ +# CloudPoolCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **list[str]** | A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. | [optional] +**birth_cluster_id** | **str** | The guid of the cluster where this pool was created | [optional] +**description** | **str** | A brief description of this pool | [optional] +**name** | **str** | A unique name for this pool | [optional] +**vendor** | **str** | A string identifier of the cloud services vendor | [optional] +**type** | **str** | The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudPoolExtended.md b/docs/CloudPoolExtended.md new file mode 100644 index 000000000..bcf2b112e --- /dev/null +++ b/docs/CloudPoolExtended.md @@ -0,0 +1,18 @@ +# CloudPoolExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | **list[str]** | A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. | [optional] +**birth_cluster_id** | **str** | The guid of the cluster where this pool was created | [optional] +**description** | **str** | A brief description of this pool | [optional] +**name** | **str** | A unique name for this pool | [optional] +**vendor** | **str** | A string identifier of the cloud services vendor | [optional] +**id** | **str** | A unique name for this pool | [optional] +**state** | **str** | Indicates whether this pool is in a good state (\"OK\") or disabled (\"disabled\") | [optional] +**state_details** | **str** | Gives further information to describe the state of this pool | [optional] +**type** | **str** | The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudPools.md b/docs/CloudPools.md new file mode 100644 index 000000000..05193a632 --- /dev/null +++ b/docs/CloudPools.md @@ -0,0 +1,11 @@ +# CloudPools + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pools** | [**list[CloudPoolExtended]**](CloudPoolExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudPoolsExtended.md b/docs/CloudPoolsExtended.md new file mode 100644 index 000000000..4d6267d9f --- /dev/null +++ b/docs/CloudPoolsExtended.md @@ -0,0 +1,12 @@ +# CloudPoolsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pools** | [**list[CloudPoolExtended]**](CloudPoolExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudSettings.md b/docs/CloudSettings.md new file mode 100644 index 000000000..87539aeac --- /dev/null +++ b/docs/CloudSettings.md @@ -0,0 +1,10 @@ +# CloudSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**CloudSettingsSettings**](CloudSettingsSettings.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudSettingsSettings.md b/docs/CloudSettingsSettings.md new file mode 100644 index 000000000..d0dd0eb6f --- /dev/null +++ b/docs/CloudSettingsSettings.md @@ -0,0 +1,24 @@ +# CloudSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cloud_policy_defaults** | [**Empty**](Empty.md) | The default filepool policy values for cloud pools. | [optional] +**retry_coefficient_archive** | **str** | Coefficients in the quadratic function for determining the rest period between successive archive attempts. | [optional] +**retry_coefficient_cache_invalidation** | **str** | Coefficients in the quadratic function for determining the rest period between successive cache invalidation attempts. | [optional] +**retry_coefficient_cloud_garbage_collection** | **str** | Coefficients in the quadratic function for determining the rest period between successive cloud garbage collection attempts. | [optional] +**retry_coefficient_local_garbage_collection** | **str** | Coefficients in the quadratic function for determining the rest period between successive local garbage collection attempts. | [optional] +**retry_coefficient_read_ahead** | **str** | Coefficients in the quadratic function for determining the rest period between successive read ahead attempts. | [optional] +**retry_coefficient_recall** | **str** | Coefficients in the quadratic function for determining the rest period between successive recall attempts. | [optional] +**retry_coefficient_writeback** | **str** | Coefficients in the quadratic function for determining the rest period between successive writeback attempts. | [optional] +**sleep_timeout_archive** | [**CloudSettingsSettingsSleepTimeoutCloudGarbageCollection**](CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md) | Amount of time to wait between successive file archive operations. | [optional] +**sleep_timeout_cache_invalidation** | [**CloudSettingsSettingsSleepTimeoutCloudGarbageCollection**](CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md) | Amount of time to wait between successive file cache_invalidation operations. | [optional] +**sleep_timeout_cloud_garbage_collection** | [**CloudSettingsSettingsSleepTimeoutCloudGarbageCollection**](CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md) | Amount of time to wait between successive file cloud garbage collection operations. | [optional] +**sleep_timeout_local_garbage_collection** | [**CloudSettingsSettingsSleepTimeoutCloudGarbageCollection**](CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md) | Amount of time to wait between successive file local garbage collection operations. | [optional] +**sleep_timeout_read_ahead** | [**CloudSettingsSettingsSleepTimeoutCloudGarbageCollection**](CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md) | Amount of time to wait between successive file read ahead operations. | [optional] +**sleep_timeout_recall** | [**CloudSettingsSettingsSleepTimeoutCloudGarbageCollection**](CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md) | Amount of time to wait between successive file recall operations. | [optional] +**sleep_timeout_writeback** | [**CloudSettingsSettingsSleepTimeoutCloudGarbageCollection**](CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md) | Amount of time to wait between successive file writeback operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md b/docs/CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md new file mode 100644 index 000000000..a5c8eaf49 --- /dev/null +++ b/docs/CloudSettingsSettingsSleepTimeoutCloudGarbageCollection.md @@ -0,0 +1,13 @@ +# CloudSettingsSettingsSleepTimeoutCloudGarbageCollection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recovery_with_tasks** | **int** | Sleep timeout for a recovery thread with pending tasks | [optional] +**recovery_without_tasks** | **int** | Sleep timeout for a recovery thread without pending tasks | [optional] +**with_tasks** | **int** | Sleep timeout for a non-recovery thread with pending tasks | [optional] +**without_tasks** | **int** | Sleep timeout for a non-recovery thread without pending tasks | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterAddNodeItem.md b/docs/ClusterAddNodeItem.md new file mode 100644 index 000000000..238488714 --- /dev/null +++ b/docs/ClusterAddNodeItem.md @@ -0,0 +1,12 @@ +# ClusterAddNodeItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_down** | **bool** | Allow down nodes (Default false). | [optional] +**serial_number** | **str** | Serial number of this node. | +**skip_hardware_version_check** | **bool** | Bypass hardware version checks (Default false). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterApi.md b/docs/ClusterApi.md new file mode 100644 index 000000000..94cb53701 --- /dev/null +++ b/docs/ClusterApi.md @@ -0,0 +1,1042 @@ +# isi_sdk.ClusterApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_cluster_add_node_item**](ClusterApi.md#create_cluster_add_node_item) | **POST** /platform/3/cluster/add-node | +[**get_cluster_config**](ClusterApi.md#get_cluster_config) | **GET** /platform/3/cluster/config | +[**get_cluster_email**](ClusterApi.md#get_cluster_email) | **GET** /platform/1/cluster/email | +[**get_cluster_identity**](ClusterApi.md#get_cluster_identity) | **GET** /platform/3/cluster/identity | +[**get_cluster_node**](ClusterApi.md#get_cluster_node) | **GET** /platform/3/cluster/nodes/{ClusterNodeId} | +[**get_cluster_nodes**](ClusterApi.md#get_cluster_nodes) | **GET** /platform/3/cluster/nodes | +[**get_cluster_nodes_available**](ClusterApi.md#get_cluster_nodes_available) | **GET** /platform/3/cluster/nodes-available | +[**get_cluster_owner**](ClusterApi.md#get_cluster_owner) | **GET** /platform/1/cluster/owner | +[**get_cluster_statfs**](ClusterApi.md#get_cluster_statfs) | **GET** /platform/1/cluster/statfs | +[**get_cluster_time**](ClusterApi.md#get_cluster_time) | **GET** /platform/3/cluster/time | +[**get_cluster_timezone**](ClusterApi.md#get_cluster_timezone) | **GET** /platform/3/cluster/timezone | +[**get_cluster_version**](ClusterApi.md#get_cluster_version) | **GET** /platform/3/cluster/version | +[**get_timezone_region**](ClusterApi.md#get_timezone_region) | **GET** /platform/3/cluster/timezone/regions/{TimezoneRegionId} | +[**get_timezone_settings**](ClusterApi.md#get_timezone_settings) | **GET** /platform/3/cluster/timezone/settings | +[**update_cluster_email**](ClusterApi.md#update_cluster_email) | **PUT** /platform/1/cluster/email | +[**update_cluster_identity**](ClusterApi.md#update_cluster_identity) | **PUT** /platform/3/cluster/identity | +[**update_cluster_node**](ClusterApi.md#update_cluster_node) | **PUT** /platform/3/cluster/nodes/{ClusterNodeId} | +[**update_cluster_owner**](ClusterApi.md#update_cluster_owner) | **PUT** /platform/1/cluster/owner | +[**update_cluster_time**](ClusterApi.md#update_cluster_time) | **PUT** /platform/3/cluster/time | +[**update_cluster_timezone**](ClusterApi.md#update_cluster_timezone) | **PUT** /platform/3/cluster/timezone | +[**update_timezone_settings**](ClusterApi.md#update_timezone_settings) | **PUT** /platform/3/cluster/timezone/settings | + + +# **create_cluster_add_node_item** +> Empty create_cluster_add_node_item(cluster_add_node_item) + + + +Serial number and arguments of node to add. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +cluster_add_node_item = isi_sdk.ClusterAddNodeItem() # ClusterAddNodeItem | + +try: + api_response = api_instance.create_cluster_add_node_item(cluster_add_node_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->create_cluster_add_node_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_add_node_item** | [**ClusterAddNodeItem**](ClusterAddNodeItem.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_config** +> ClusterConfig get_cluster_config() + + + +Retrieve the cluster information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_config() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_config: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterConfig**](ClusterConfig.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_email** +> ClusterEmail get_cluster_email() + + + +Get the cluster email notification settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_email() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_email: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterEmail**](ClusterEmail.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_identity** +> ClusterIdentity get_cluster_identity() + + + +Retrieve the login information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_identity() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_identity: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterIdentity**](ClusterIdentity.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_node** +> ClusterNodes get_cluster_node(cluster_node_id) + + + +Retrieve node information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +cluster_node_id = 56 # int | Retrieve node information. + +try: + api_response = api_instance.get_cluster_node(cluster_node_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_node: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_node_id** | **int**| Retrieve node information. | + +### Return type + +[**ClusterNodes**](ClusterNodes.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_nodes** +> ClusterNodes get_cluster_nodes() + + + +List the nodes on this cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_nodes() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_nodes: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterNodes**](ClusterNodes.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_nodes_available** +> ClusterNodesAvailable get_cluster_nodes_available() + + + +List all nodes that are available to add to this cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_nodes_available() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_nodes_available: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterNodesAvailable**](ClusterNodesAvailable.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_owner** +> ClusterOwner get_cluster_owner() + + + +Get the cluster contact info settings + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_owner() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_owner: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterOwner**](ClusterOwner.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_statfs** +> ClusterStatfs get_cluster_statfs() + + + +Retrieve the filesystem statistics. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_statfs() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_statfs: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterStatfs**](ClusterStatfs.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_time** +> ClusterTime get_cluster_time() + + + +Retrieve the current time as reported by each node. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_time() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_time: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterTime**](ClusterTime.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_timezone** +> ClusterTimezone get_cluster_timezone() + + + +Get the cluster timezone. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_timezone() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_timezone: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterTimezone**](ClusterTimezone.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_version** +> ClusterVersion get_cluster_version() + + + +Retrieve the OneFS version as reported by each node. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_cluster_version() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_cluster_version: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterVersion**](ClusterVersion.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_timezone_region** +> TimezoneRegions get_timezone_region(timezone_region_id, sort=sort, resume=resume, show_all=show_all, dst_reset=dst_reset, limit=limit, dir=dir) + + + +List timezone regions. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +timezone_region_id = 'timezone_region_id_example' # str | List timezone regions. +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +show_all = true # bool | Show all timezones within the region specified in the URI. (optional) +dst_reset = true # bool | This query arg is not needed in normal use cases. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_timezone_region(timezone_region_id, sort=sort, resume=resume, show_all=show_all, dst_reset=dst_reset, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_timezone_region: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **timezone_region_id** | **str**| List timezone regions. | + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **show_all** | **bool**| Show all timezones within the region specified in the URI. | [optional] + **dst_reset** | **bool**| This query arg is not needed in normal use cases. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**TimezoneRegions**](TimezoneRegions.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_timezone_settings** +> TimezoneSettings get_timezone_settings() + + + +Retrieve the cluster timezone. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() + +try: + api_response = api_instance.get_timezone_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterApi->get_timezone_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**TimezoneSettings**](TimezoneSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cluster_email** +> update_cluster_email(cluster_email) + + + +Modify the cluster email notification settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +cluster_email = isi_sdk.ClusterEmailExtended() # ClusterEmailExtended | + +try: + api_instance.update_cluster_email(cluster_email) +except ApiException as e: + print "Exception when calling ClusterApi->update_cluster_email: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_email** | [**ClusterEmailExtended**](ClusterEmailExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cluster_identity** +> update_cluster_identity(cluster_identity) + + + +Modify the login information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +cluster_identity = isi_sdk.ClusterIdentity() # ClusterIdentity | + +try: + api_instance.update_cluster_identity(cluster_identity) +except ApiException as e: + print "Exception when calling ClusterApi->update_cluster_identity: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_identity** | [**ClusterIdentity**](ClusterIdentity.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cluster_node** +> update_cluster_node(cluster_node, cluster_node_id) + + + +Modify one or more node settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +cluster_node = isi_sdk.ClusterNode() # ClusterNode | +cluster_node_id = 56 # int | Modify one or more node settings. + +try: + api_instance.update_cluster_node(cluster_node, cluster_node_id) +except ApiException as e: + print "Exception when calling ClusterApi->update_cluster_node: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_node** | [**ClusterNode**](ClusterNode.md)| | + **cluster_node_id** | **int**| Modify one or more node settings. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cluster_owner** +> update_cluster_owner(cluster_owner) + + + +Modify the cluster contact info settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +cluster_owner = isi_sdk.ClusterOwner() # ClusterOwner | + +try: + api_instance.update_cluster_owner(cluster_owner) +except ApiException as e: + print "Exception when calling ClusterApi->update_cluster_owner: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_owner** | [**ClusterOwner**](ClusterOwner.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cluster_time** +> update_cluster_time(cluster_time) + + + +Set cluster time. Time will mostly be synchronized across nodes, but there may be slight drift. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +cluster_time = isi_sdk.ClusterTimeExtended() # ClusterTimeExtended | + +try: + api_instance.update_cluster_time(cluster_time) +except ApiException as e: + print "Exception when calling ClusterApi->update_cluster_time: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_time** | [**ClusterTimeExtended**](ClusterTimeExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cluster_timezone** +> update_cluster_timezone(cluster_timezone) + + + +Set a new timezone for the cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +cluster_timezone = isi_sdk.ClusterTimezoneExtended() # ClusterTimezoneExtended | + +try: + api_instance.update_cluster_timezone(cluster_timezone) +except ApiException as e: + print "Exception when calling ClusterApi->update_cluster_timezone: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_timezone** | [**ClusterTimezoneExtended**](ClusterTimezoneExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_timezone_settings** +> update_timezone_settings(timezone_settings) + + + +Modify the cluster timezone. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterApi() +timezone_settings = isi_sdk.TimezoneRegionTimezone() # TimezoneRegionTimezone | + +try: + api_instance.update_timezone_settings(timezone_settings) +except ApiException as e: + print "Exception when calling ClusterApi->update_timezone_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **timezone_settings** | [**TimezoneRegionTimezone**](TimezoneRegionTimezone.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ClusterArchiveItem.md b/docs/ClusterArchiveItem.md new file mode 100644 index 000000000..3b04c2228 --- /dev/null +++ b/docs/ClusterArchiveItem.md @@ -0,0 +1,10 @@ +# ClusterArchiveItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clear** | **bool** | If set to true the currently running upgrade will be cleared | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterAssessItem.md b/docs/ClusterAssessItem.md new file mode 100644 index 000000000..1bae4a63b --- /dev/null +++ b/docs/ClusterAssessItem.md @@ -0,0 +1,10 @@ +# ClusterAssessItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**install_image_path** | **str** | The location (path) of the upgrade image which must be within /ifs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterConfig.md b/docs/ClusterConfig.md new file mode 100644 index 000000000..3399da77b --- /dev/null +++ b/docs/ClusterConfig.md @@ -0,0 +1,25 @@ +# ClusterConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Customer configurable description. | +**devices** | [**list[ClusterConfigDevice]**](ClusterConfigDevice.md) | | +**encoding** | **str** | Default encoding. | +**guid** | **str** | Cluster GUID. | +**has_quorum** | **bool** | If true, the local node is in a group with quorum: It is communicating, storing, and protecting data normally with other nodes in its group. Under normal circumstances, every node in the cluster is part of one group. | +**is_compliance** | **bool** | If true, the cluster is in compliance mode. Compliance mode clusters do not allow root access and have stricter WORM (Write Once Read Many) features for retaining data in compliance with U.S. Securities and Exchange Commission rule 17a-4. | +**is_virtual** | **bool** | true if the cluster is deployed on a desktop VMWorkstation | +**is_vonefs** | **bool** | true if this is a vOneFS cluster on an ESXi | +**join_mode** | **str** | Node join mode: 'manual' or 'secure'. | +**local_devid** | **int** | Device ID of the queried node. | +**local_lnn** | **int** | Device logical node number of the queried node. | +**local_serial** | **str** | Device serial number of the queried node. | +**name** | **str** | Cluster name. | +**onefs_version** | [**ClusterConfigOnefsVersion**](ClusterConfigOnefsVersion.md) | | [optional] +**timezone** | [**ClusterConfigTimezone**](ClusterConfigTimezone.md) | The cluster timezone settings. | [optional] +**upgrade_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterConfigDevice.md b/docs/ClusterConfigDevice.md new file mode 100644 index 000000000..42c8f2022 --- /dev/null +++ b/docs/ClusterConfigDevice.md @@ -0,0 +1,13 @@ +# ClusterConfigDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devid** | **int** | Device ID. | +**guid** | **str** | Device GUID. | +**is_up** | **bool** | If true, this node is online and communicating with the local node and every other node with the is_up property normally. If false, this node is not currently communicating with the local node or other nodes with the is_up property. It may be shut down, rebooting, disconnected from the backend network, or connected only to other nodes. | +**lnn** | **int** | Device logical node number. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterConfigOnefsVersion.md b/docs/ClusterConfigOnefsVersion.md new file mode 100644 index 000000000..248244edc --- /dev/null +++ b/docs/ClusterConfigOnefsVersion.md @@ -0,0 +1,16 @@ +# ClusterConfigOnefsVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build** | **str** | OneFS build string. | +**copyright** | **str** | Cluster copyright information. | +**reldate** | **int** | Timestamp of release date. | +**release** | **str** | Kernel release number. | +**revision** | **str** | OneFS build number. | +**type** | **str** | Kernel release type. | +**version** | **str** | Kernel full version information. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterConfigTimezone.md b/docs/ClusterConfigTimezone.md new file mode 100644 index 000000000..6c33a171d --- /dev/null +++ b/docs/ClusterConfigTimezone.md @@ -0,0 +1,13 @@ +# ClusterConfigTimezone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**abbreviation** | **str** | Timezone abbreviation. | [optional] +**custom** | **str** | Customer timezone information. | [optional] +**name** | **str** | Timezone full name. | [optional] +**path** | **str** | Timezone hierarchical name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterEmail.md b/docs/ClusterEmail.md new file mode 100644 index 000000000..b033b904c --- /dev/null +++ b/docs/ClusterEmail.md @@ -0,0 +1,10 @@ +# ClusterEmail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**ClusterEmailSettings**](ClusterEmailSettings.md) | Cluster email notification settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterEmailExtended.md b/docs/ClusterEmailExtended.md new file mode 100644 index 000000000..f231ae0f9 --- /dev/null +++ b/docs/ClusterEmailExtended.md @@ -0,0 +1,19 @@ +# ClusterEmailExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batch_mode** | **str** | This setting determines how notifications will be batched together to be sent by email. 'none' means each notification will be sent separately. 'severity' means notifications of the same severity will be sent together. 'category' means notifications of the same category will be sent together. 'all' means all notifications will be batched together and sent in a single email. | [optional] +**mail_relay** | **str** | The address of the SMTP server to be used for relaying the notification messages. An SMTP server is required in order to send notifications. If this string is empty, no emails will be sent. | [optional] +**mail_sender** | **str** | The full email address that will appear as the sender of notification messages. | [optional] +**mail_subject** | **str** | The subject line for notification messages from this cluster. | [optional] +**smtp_auth_passwd** | **str** | Password to authenticate with if SMTP authentication is being used. | [optional] +**smtp_auth_security** | **str** | The type of secure communication protocol to use if SMTP is being used. If 'none', plain text will be used, if 'starttls', the encrypted STARTTLS protocol will be used. | [optional] +**smtp_auth_username** | **str** | Username to authenticate with if SMTP authentication is being used. | [optional] +**smtp_port** | **int** | The port on the SMTP server to be used for relaying the notification messages. | [optional] +**use_smtp_auth** | **bool** | If true, this cluster will send SMTP authentication credentials to the SMTP relay server in order to send its notification emails. If false, the cluster will attempt to send its notification emails without authentication. | [optional] +**user_template** | **str** | Location of a custom template file that can be used to specify the layout of the notification emails. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterEmailSettings.md b/docs/ClusterEmailSettings.md new file mode 100644 index 000000000..7e0454efb --- /dev/null +++ b/docs/ClusterEmailSettings.md @@ -0,0 +1,19 @@ +# ClusterEmailSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batch_mode** | **str** | This setting determines how notifications will be batched together to be sent by email. 'none' means each notification will be sent separately. 'severity' means notifications of the same severity will be sent together. 'category' means notifications of the same category will be sent together. 'all' means all notifications will be batched together and sent in a single email. | +**mail_relay** | **str** | The address of the SMTP server to be used for relaying the notification messages. An SMTP server is required in order to send notifications. If this string is empty, no emails will be sent. | +**mail_sender** | **str** | The full email address that will appear as the sender of notification messages. | +**mail_subject** | **str** | The subject line for notification messages from this cluster. | +**smtp_auth_passwd_set** | **bool** | Indicates if an SMTP authentication password is set. | +**smtp_auth_security** | **str** | The type of secure communication protocol to use if SMTP is being used. If 'none', plain text will be used, if 'starttls', the encrypted STARTTLS protocol will be used. | +**smtp_auth_username** | **str** | Username to authenticate with if SMTP authentication is being used. | +**smtp_port** | **int** | The port on the SMTP server to be used for relaying the notification messages. | +**use_smtp_auth** | **bool** | If true, this cluster will send SMTP authentication credentials to the SMTP relay server in order to send its notification emails. If false, the cluster will attempt to send its notification emails without authentication. | +**user_template** | **str** | Location of a custom template file that can be used to specify the layout of the notification emails. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterFirmwareProgress.md b/docs/ClusterFirmwareProgress.md new file mode 100644 index 000000000..64a93a930 --- /dev/null +++ b/docs/ClusterFirmwareProgress.md @@ -0,0 +1,10 @@ +# ClusterFirmwareProgress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_state** | **str** | The different states of a firmware upgrade. One of the following values: 'committed', 'upgrading', 'error' | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterFirmwareStatus.md b/docs/ClusterFirmwareStatus.md new file mode 100644 index 000000000..7a9ff76c8 --- /dev/null +++ b/docs/ClusterFirmwareStatus.md @@ -0,0 +1,10 @@ +# ClusterFirmwareStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[ClusterFirmwareStatusNode]**](ClusterFirmwareStatusNode.md) | List of the firmware status information for all the nodes in the cluster. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterFirmwareStatusNode.md b/docs/ClusterFirmwareStatusNode.md new file mode 100644 index 000000000..f7e8b52d4 --- /dev/null +++ b/docs/ClusterFirmwareStatusNode.md @@ -0,0 +1,12 @@ +# ClusterFirmwareStatusNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**list[ClusterFirmwareStatusNodeDevice]**](ClusterFirmwareStatusNodeDevice.md) | List of the firmware status for hardware components on the node. | [optional] +**lnn** | **int** | The lnn of the node. | [optional] +**package** | [**list[ClusterFirmwareStatusNodePackageItem]**](ClusterFirmwareStatusNodePackageItem.md) | List of the firmware binary information for the installed firmware package. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterFirmwareStatusNodeDevice.md b/docs/ClusterFirmwareStatusNodeDevice.md new file mode 100644 index 000000000..559a117dd --- /dev/null +++ b/docs/ClusterFirmwareStatusNodeDevice.md @@ -0,0 +1,15 @@ +# ClusterFirmwareStatusNodeDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device** | **str** | The name of the device. | [optional] +**mismatch** | **bool** | Is the firmware up-to-date for this component. | [optional] +**target_version** | **str** | The target firmware version. | [optional] +**type** | **str** | The device type. | [optional] +**upgrade_status** | **str** | The current state of the firmware upgrade for this component. One of the following values: 'queued', 'upgrading', 'upgraded', 'error'. or 'null'.'null' indicates that the upgrade status is unknown. | [optional] +**version** | **str** | The current firmware version. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterFirmwareStatusNodePackageItem.md b/docs/ClusterFirmwareStatusNodePackageItem.md new file mode 100644 index 000000000..0a0804cdf --- /dev/null +++ b/docs/ClusterFirmwareStatusNodePackageItem.md @@ -0,0 +1,12 @@ +# ClusterFirmwareStatusNodePackageItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checksum** | **str** | Valid checksum string for binary. One of the following: 'ok', 'bad', 'file_missing', or 'na' | [optional] +**firmware** | **str** | The name of the firmware binary. | [optional] +**version** | **str** | The version string for the binary. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterFirmwareUpgradeItem.md b/docs/ClusterFirmwareUpgradeItem.md new file mode 100644 index 000000000..8712d9f88 --- /dev/null +++ b/docs/ClusterFirmwareUpgradeItem.md @@ -0,0 +1,17 @@ +# ClusterFirmwareUpgradeItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exclude_device** | **str** | Exclude the specified devices in the firmware upgrade. | [optional] +**exclude_type** | **str** | Include the specified device type in the firmware upgrade. | [optional] +**include_device** | **str** | Include the specified devices in the firmware upgrade. | [optional] +**include_type** | **str** | Include the specified device type in the firmware upgrade. | [optional] +**no_burn** | **bool** | Do not burn the firmware. | [optional] +**no_reboot** | **bool** | Do not reboot the node after an upgrade | [optional] +**no_verify** | **bool** | Do not verify the firmware upgrade after an upgrade. | [optional] +**nodes_to_upgrade** | **list[int]** | The nodes scheduled for upgrade. Order in array determines queue position number. 'All' and null option will upgrade all nodes in <lnn> order. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterIdentity.md b/docs/ClusterIdentity.md new file mode 100644 index 000000000..01555ecea --- /dev/null +++ b/docs/ClusterIdentity.md @@ -0,0 +1,12 @@ +# ClusterIdentity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description of the cluster. | +**logon** | [**ClusterIdentityLogon**](ClusterIdentityLogon.md) | The information displayed when a user logs in to the cluster. | +**name** | **str** | The name of the cluster. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterIdentityLogon.md b/docs/ClusterIdentityLogon.md new file mode 100644 index 000000000..dc8be365c --- /dev/null +++ b/docs/ClusterIdentityLogon.md @@ -0,0 +1,11 @@ +# ClusterIdentityLogon + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**motd** | **str** | The message of the day. | +**motd_header** | **str** | The header to the message of the day. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNode.md b/docs/ClusterNode.md new file mode 100644 index 000000000..b9852d8b8 --- /dev/null +++ b/docs/ClusterNode.md @@ -0,0 +1,11 @@ +# ClusterNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**drives** | [**list[NodeDrivesNodeDrive]**](NodeDrivesNodeDrive.md) | List of the drives in this node. | [optional] +**state** | [**ClusterNodeState**](ClusterNodeState.md) | Node state information (reported and modifiable). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodeExtended.md b/docs/ClusterNodeExtended.md new file mode 100644 index 000000000..97d27515d --- /dev/null +++ b/docs/ClusterNodeExtended.md @@ -0,0 +1,17 @@ +# ClusterNodeExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**drives** | [**list[NodeDrivesNodeDrive]**](NodeDrivesNodeDrive.md) | List of the drives in this node. | [optional] +**state** | [**ClusterNodeState**](ClusterNodeState.md) | Node state information (reported and modifiable). | [optional] +**hardware** | [**ClusterNodeHardware**](ClusterNodeHardware.md) | Node hardware identifying information (static). | [optional] +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**partitions** | [**ClusterNodePartitions**](ClusterNodePartitions.md) | Node partition information. | [optional] +**sensors** | [**ClusterNodeSensors**](ClusterNodeSensors.md) | Node sensor information (hardware reported). | [optional] +**status** | [**ClusterNodeStatus**](ClusterNodeStatus.md) | Node status information (hardware reported). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodeHardware.md b/docs/ClusterNodeHardware.md new file mode 100644 index 000000000..e6578e09e --- /dev/null +++ b/docs/ClusterNodeHardware.md @@ -0,0 +1,34 @@ +# ClusterNodeHardware + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**chassis** | **str** | Name of this node's chassis. | [optional] +**chassis_code** | **str** | Chassis code of this node (1U, 2U, etc.). | [optional] +**chassis_count** | **str** | Number of chassis making up this node. | [optional] +**_class** | **str** | Class of this node (storage, accelerator, etc.). | [optional] +**configuration_id** | **str** | Node configuration ID. | [optional] +**cpu** | **str** | Manufacturer and model of this node's CPU. | [optional] +**disk_controller** | **str** | Manufacturer and model of this node's disk controller. | [optional] +**disk_expander** | **str** | Manufacturer and model of this node's disk expander. | [optional] +**family_code** | **str** | Family code of this node (X, S, NL, etc.). | [optional] +**flash_drive** | **str** | Manufacturer, model, and device id of this node's flash drive. | [optional] +**generation_code** | **str** | Generation code of this node. | [optional] +**hwgen** | **str** | Isilon hardware generation name. | [optional] +**imb_version** | **str** | Version of this node's Isilon Management Board. | [optional] +**infiniband** | **str** | Infiniband card type. | [optional] +**lcd_version** | **str** | Version of the LCD panel. | [optional] +**motherboard** | **str** | Manufacturer and model of this node's motherboard. | [optional] +**net_interfaces** | **str** | Description of all this node's network interfaces. | [optional] +**nvram** | **str** | Manufacturer and model of this node's NVRAM board. | [optional] +**powersupplies** | **list[str]** | Description strings for each power supply on this node. | [optional] +**processor** | **str** | Number of processors and cores on this node. | [optional] +**product** | **str** | Isilon product name. | [optional] +**ram** | **int** | Size of RAM in bytes. | [optional] +**serial_number** | **str** | Serial number of this node. | [optional] +**series** | **str** | Series of this node (X, I, NL, etc.). | [optional] +**storage_class** | **str** | Storage class of this node (storage or diskless). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodePartitions.md b/docs/ClusterNodePartitions.md new file mode 100644 index 000000000..460182f8d --- /dev/null +++ b/docs/ClusterNodePartitions.md @@ -0,0 +1,11 @@ +# ClusterNodePartitions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Count of how many partitions are included. | [optional] +**partitions** | [**list[NodePartitionsNodePartition]**](NodePartitionsNodePartition.md) | Partition information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodeSensors.md b/docs/ClusterNodeSensors.md new file mode 100644 index 000000000..c41d68205 --- /dev/null +++ b/docs/ClusterNodeSensors.md @@ -0,0 +1,10 @@ +# ClusterNodeSensors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sensors** | [**list[NodeSensorsNodeSensor]**](NodeSensorsNodeSensor.md) | This node's sensor information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodeState.md b/docs/ClusterNodeState.md new file mode 100644 index 000000000..9f3295721 --- /dev/null +++ b/docs/ClusterNodeState.md @@ -0,0 +1,12 @@ +# ClusterNodeState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**readonly** | [**Empty**](Empty.md) | Node readonly state. | [optional] +**servicelight** | [**ClusterNodeStateServicelight**](ClusterNodeStateServicelight.md) | Node service light state. | [optional] +**smartfail** | [**ClusterNodeStateSmartfail**](ClusterNodeStateSmartfail.md) | Node smartfail state. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodeStateExtended.md b/docs/ClusterNodeStateExtended.md new file mode 100644 index 000000000..7b0623ee2 --- /dev/null +++ b/docs/ClusterNodeStateExtended.md @@ -0,0 +1,12 @@ +# ClusterNodeStateExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**readonly** | [**Empty**](Empty.md) | Node readonly state. | [optional] +**servicelight** | [**ClusterNodeStateServicelight**](ClusterNodeStateServicelight.md) | Node service light state. | [optional] +**smartfail** | [**ClusterNodeStateSmartfail**](ClusterNodeStateSmartfail.md) | Node smartfail state. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodeStateServicelight.md b/docs/ClusterNodeStateServicelight.md new file mode 100644 index 000000000..ce64e3f0a --- /dev/null +++ b/docs/ClusterNodeStateServicelight.md @@ -0,0 +1,10 @@ +# ClusterNodeStateServicelight + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | The node service light state (True = on). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodeStateSmartfail.md b/docs/ClusterNodeStateSmartfail.md new file mode 100644 index 000000000..3ddeeefc3 --- /dev/null +++ b/docs/ClusterNodeStateSmartfail.md @@ -0,0 +1,10 @@ +# ClusterNodeStateSmartfail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**smartfailed** | **bool** | This node is smartfailed (soft_devs). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodeStatus.md b/docs/ClusterNodeStatus.md new file mode 100644 index 000000000..311d43100 --- /dev/null +++ b/docs/ClusterNodeStatus.md @@ -0,0 +1,17 @@ +# ClusterNodeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batterystatus** | [**NodeStatusNodeBatterystatus**](NodeStatusNodeBatterystatus.md) | Battery status information. | [optional] +**capacity** | [**list[NodeStatusNodeCapacityItem]**](NodeStatusNodeCapacityItem.md) | Storage capacity of this node. | [optional] +**cpu** | [**NodeStatusNodeCpu**](NodeStatusNodeCpu.md) | CPU status information for this node. | [optional] +**nvram** | [**NodeStatusNodeNvram**](NodeStatusNodeNvram.md) | Node NVRAM information. | [optional] +**powersupplies** | [**NodeStatusNodePowersupplies**](NodeStatusNodePowersupplies.md) | Information about this node's power supplies. | [optional] +**release** | **str** | OneFS release. | [optional] +**uptime** | **int** | Seconds this node has been online. | [optional] +**version** | **str** | OneFS version. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodes.md b/docs/ClusterNodes.md new file mode 100644 index 000000000..9abf78655 --- /dev/null +++ b/docs/ClusterNodes.md @@ -0,0 +1,11 @@ +# ClusterNodes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[ClusterNodeExtended]**](ClusterNodeExtended.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodesApi.md b/docs/ClusterNodesApi.md new file mode 100644 index 000000000..d98657227 --- /dev/null +++ b/docs/ClusterNodesApi.md @@ -0,0 +1,1375 @@ +# isi_sdk.ClusterNodesApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_drives_drive_add_item**](ClusterNodesApi.md#create_drives_drive_add_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/add | +[**create_drives_drive_firmware_update_item**](ClusterNodesApi.md#create_drives_drive_firmware_update_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware/update | +[**create_drives_drive_format_item**](ClusterNodesApi.md#create_drives_drive_format_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/format | +[**create_drives_drive_purpose_item**](ClusterNodesApi.md#create_drives_drive_purpose_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/purpose | +[**create_drives_drive_smartfail_item**](ClusterNodesApi.md#create_drives_drive_smartfail_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/smartfail | +[**create_drives_drive_stopfail_item**](ClusterNodesApi.md#create_drives_drive_stopfail_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/stopfail | +[**create_drives_drive_suspend_item**](ClusterNodesApi.md#create_drives_drive_suspend_item) | **POST** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/suspend | +[**create_node_reboot_item**](ClusterNodesApi.md#create_node_reboot_item) | **POST** /platform/3/cluster/nodes/{Lnn}/reboot | +[**create_node_shutdown_item**](ClusterNodesApi.md#create_node_shutdown_item) | **POST** /platform/3/cluster/nodes/{Lnn}/shutdown | +[**get_drives_drive_firmware**](ClusterNodesApi.md#get_drives_drive_firmware) | **GET** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware | +[**get_node_drive**](ClusterNodesApi.md#get_node_drive) | **GET** /platform/3/cluster/nodes/{Lnn}/drives/{NodeDriveId} | +[**get_node_drives**](ClusterNodesApi.md#get_node_drives) | **GET** /platform/3/cluster/nodes/{Lnn}/drives | +[**get_node_drives_purposelist**](ClusterNodesApi.md#get_node_drives_purposelist) | **GET** /platform/3/cluster/nodes/{Lnn}/drives-purposelist | +[**get_node_hardware**](ClusterNodesApi.md#get_node_hardware) | **GET** /platform/3/cluster/nodes/{Lnn}/hardware | +[**get_node_partitions**](ClusterNodesApi.md#get_node_partitions) | **GET** /platform/3/cluster/nodes/{Lnn}/partitions | +[**get_node_sensors**](ClusterNodesApi.md#get_node_sensors) | **GET** /platform/3/cluster/nodes/{Lnn}/sensors | +[**get_node_state**](ClusterNodesApi.md#get_node_state) | **GET** /platform/3/cluster/nodes/{Lnn}/state | +[**get_node_state_readonly**](ClusterNodesApi.md#get_node_state_readonly) | **GET** /platform/3/cluster/nodes/{Lnn}/state/readonly | +[**get_node_state_servicelight**](ClusterNodesApi.md#get_node_state_servicelight) | **GET** /platform/3/cluster/nodes/{Lnn}/state/servicelight | +[**get_node_state_smartfail**](ClusterNodesApi.md#get_node_state_smartfail) | **GET** /platform/3/cluster/nodes/{Lnn}/state/smartfail | +[**get_node_status**](ClusterNodesApi.md#get_node_status) | **GET** /platform/3/cluster/nodes/{Lnn}/status | +[**get_node_status_batterystatus**](ClusterNodesApi.md#get_node_status_batterystatus) | **GET** /platform/3/cluster/nodes/{Lnn}/status/batterystatus | +[**list_drives_drive_firmware_update**](ClusterNodesApi.md#list_drives_drive_firmware_update) | **GET** /platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware/update | +[**update_node_state_readonly**](ClusterNodesApi.md#update_node_state_readonly) | **PUT** /platform/3/cluster/nodes/{Lnn}/state/readonly | +[**update_node_state_servicelight**](ClusterNodesApi.md#update_node_state_servicelight) | **PUT** /platform/3/cluster/nodes/{Lnn}/state/servicelight | +[**update_node_state_smartfail**](ClusterNodesApi.md#update_node_state_smartfail) | **PUT** /platform/3/cluster/nodes/{Lnn}/state/smartfail | + + +# **create_drives_drive_add_item** +> Empty create_drives_drive_add_item(drives_drive_add_item, lnn, driveid) + + + +Add a drive to a node. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +drives_drive_add_item = isi_sdk.Empty() # Empty | +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.create_drives_drive_add_item(drives_drive_add_item, lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_drives_drive_add_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drives_drive_add_item** | [**Empty**](Empty.md)| | + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_drives_drive_firmware_update_item** +> Empty create_drives_drive_firmware_update_item(drives_drive_firmware_update_item, lnn, driveid) + + + +Start a drive firmware update. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +drives_drive_firmware_update_item = isi_sdk.DrivesDriveFirmwareUpdateItem() # DrivesDriveFirmwareUpdateItem | +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.create_drives_drive_firmware_update_item(drives_drive_firmware_update_item, lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_drives_drive_firmware_update_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drives_drive_firmware_update_item** | [**DrivesDriveFirmwareUpdateItem**](DrivesDriveFirmwareUpdateItem.md)| | + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_drives_drive_format_item** +> Empty create_drives_drive_format_item(drives_drive_format_item, lnn, driveid) + + + +Format a drive for use by OneFS. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +drives_drive_format_item = isi_sdk.DrivesDriveFormatItem() # DrivesDriveFormatItem | +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.create_drives_drive_format_item(drives_drive_format_item, lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_drives_drive_format_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drives_drive_format_item** | [**DrivesDriveFormatItem**](DrivesDriveFormatItem.md)| | + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_drives_drive_purpose_item** +> Empty create_drives_drive_purpose_item(drives_drive_purpose_item, lnn, driveid) + + + +Assign a drive to a specific use case. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +drives_drive_purpose_item = isi_sdk.DrivesDrivePurposeItem() # DrivesDrivePurposeItem | +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.create_drives_drive_purpose_item(drives_drive_purpose_item, lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_drives_drive_purpose_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drives_drive_purpose_item** | [**DrivesDrivePurposeItem**](DrivesDrivePurposeItem.md)| | + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_drives_drive_smartfail_item** +> Empty create_drives_drive_smartfail_item(drives_drive_smartfail_item, lnn, driveid) + + + +Remove a drive from use by OneFS. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +drives_drive_smartfail_item = isi_sdk.Empty() # Empty | +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.create_drives_drive_smartfail_item(drives_drive_smartfail_item, lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_drives_drive_smartfail_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drives_drive_smartfail_item** | [**Empty**](Empty.md)| | + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_drives_drive_stopfail_item** +> Empty create_drives_drive_stopfail_item(drives_drive_stopfail_item, lnn, driveid) + + + +Stop restriping from a smartfailing drive. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +drives_drive_stopfail_item = isi_sdk.Empty() # Empty | +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.create_drives_drive_stopfail_item(drives_drive_stopfail_item, lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_drives_drive_stopfail_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drives_drive_stopfail_item** | [**Empty**](Empty.md)| | + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_drives_drive_suspend_item** +> Empty create_drives_drive_suspend_item(drives_drive_suspend_item, lnn, driveid) + + + +Temporarily remove a drive from use by OneFS. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +drives_drive_suspend_item = isi_sdk.Empty() # Empty | +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.create_drives_drive_suspend_item(drives_drive_suspend_item, lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_drives_drive_suspend_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drives_drive_suspend_item** | [**Empty**](Empty.md)| | + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_node_reboot_item** +> Empty create_node_reboot_item(node_reboot_item, lnn) + + + +Reboot the node specified by . + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +node_reboot_item = isi_sdk.Empty() # Empty | +lnn = 56 # int | + +try: + api_response = api_instance.create_node_reboot_item(node_reboot_item, lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_node_reboot_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_reboot_item** | [**Empty**](Empty.md)| | + **lnn** | **int**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_node_shutdown_item** +> Empty create_node_shutdown_item(node_shutdown_item, lnn) + + + +Shutdown the node specified by . + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +node_shutdown_item = isi_sdk.Empty() # Empty | +lnn = 56 # int | + +try: + api_response = api_instance.create_node_shutdown_item(node_shutdown_item, lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->create_node_shutdown_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_shutdown_item** | [**Empty**](Empty.md)| | + **lnn** | **int**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_drives_drive_firmware** +> DrivesDriveFirmware get_drives_drive_firmware(lnn, driveid) + + + +Retrieve drive firmware information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.get_drives_drive_firmware(lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_drives_drive_firmware: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**DrivesDriveFirmware**](DrivesDriveFirmware.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_drive** +> NodeDrives get_node_drive(node_drive_id, lnn) + + + +Retrieve drive information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +node_drive_id = 'node_drive_id_example' # str | Retrieve drive information. +lnn = 56 # int | + +try: + api_response = api_instance.get_node_drive(node_drive_id, lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_drive: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_drive_id** | **str**| Retrieve drive information. | + **lnn** | **int**| | + +### Return type + +[**NodeDrives**](NodeDrives.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_drives** +> NodeDrives get_node_drives(lnn) + + + +List the drives on this node. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_drives(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_drives: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeDrives**](NodeDrives.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_drives_purposelist** +> NodeDrivesPurposelist get_node_drives_purposelist(lnn) + + + +Lists the available purposes for drives in this node. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_drives_purposelist(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_drives_purposelist: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeDrivesPurposelist**](NodeDrivesPurposelist.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_hardware** +> NodeHardware get_node_hardware(lnn) + + + +Retrieve node hardware identity information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_hardware(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_hardware: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeHardware**](NodeHardware.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_partitions** +> NodePartitions get_node_partitions(lnn) + + + +Retrieve node partition information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_partitions(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_partitions: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodePartitions**](NodePartitions.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_sensors** +> NodeSensors get_node_sensors(lnn) + + + +Retrieve node sensor information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_sensors(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_sensors: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeSensors**](NodeSensors.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_state** +> NodeState get_node_state(lnn) + + + +Retrieve node state information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_state(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_state: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeState**](NodeState.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_state_readonly** +> NodeStateReadonly get_node_state_readonly(lnn) + + + +Retrieve node readonly state information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_state_readonly(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_state_readonly: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeStateReadonly**](NodeStateReadonly.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_state_servicelight** +> NodeStateServicelight get_node_state_servicelight(lnn) + + + +Retrieve node service light state information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_state_servicelight(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_state_servicelight: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeStateServicelight**](NodeStateServicelight.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_state_smartfail** +> NodeStateSmartfail get_node_state_smartfail(lnn) + + + +Retrieve node smartfail state information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_state_smartfail(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_state_smartfail: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeStateSmartfail**](NodeStateSmartfail.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_status** +> NodeStatus get_node_status(lnn) + + + +Retrieve node status information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_status(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_status: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeStatus**](NodeStatus.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_node_status_batterystatus** +> NodeStatusBatterystatus get_node_status_batterystatus(lnn) + + + +Retrieve node battery status information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | + +try: + api_response = api_instance.get_node_status_batterystatus(lnn) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->get_node_status_batterystatus: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + +### Return type + +[**NodeStatusBatterystatus**](NodeStatusBatterystatus.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_drives_drive_firmware_update** +> DrivesDriveFirmwareUpdate list_drives_drive_firmware_update(lnn, driveid) + + + +Retrieve firmware update information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +lnn = 56 # int | +driveid = 'driveid_example' # str | + +try: + api_response = api_instance.list_drives_drive_firmware_update(lnn, driveid) + pprint(api_response) +except ApiException as e: + print "Exception when calling ClusterNodesApi->list_drives_drive_firmware_update: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + **driveid** | **str**| | + +### Return type + +[**DrivesDriveFirmwareUpdate**](DrivesDriveFirmwareUpdate.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_node_state_readonly** +> update_node_state_readonly(node_state_readonly, lnn) + + + +Modify one or more node readonly state settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +node_state_readonly = isi_sdk.NodeStateReadonlyExtended() # NodeStateReadonlyExtended | +lnn = 56 # int | + +try: + api_instance.update_node_state_readonly(node_state_readonly, lnn) +except ApiException as e: + print "Exception when calling ClusterNodesApi->update_node_state_readonly: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_state_readonly** | [**NodeStateReadonlyExtended**](NodeStateReadonlyExtended.md)| | + **lnn** | **int**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_node_state_servicelight** +> update_node_state_servicelight(node_state_servicelight, lnn) + + + +Modify one or more node service light state settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +node_state_servicelight = isi_sdk.NodeStateServicelightExtended() # NodeStateServicelightExtended | +lnn = 56 # int | + +try: + api_instance.update_node_state_servicelight(node_state_servicelight, lnn) +except ApiException as e: + print "Exception when calling ClusterNodesApi->update_node_state_servicelight: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_state_servicelight** | [**NodeStateServicelightExtended**](NodeStateServicelightExtended.md)| | + **lnn** | **int**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_node_state_smartfail** +> update_node_state_smartfail(node_state_smartfail, lnn) + + + +Modify smartfail state of the node. Only the 'smartfailed' body member has any effect on node smartfail state. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ClusterNodesApi() +node_state_smartfail = isi_sdk.NodeStateSmartfailExtended() # NodeStateSmartfailExtended | +lnn = 56 # int | + +try: + api_instance.update_node_state_smartfail(node_state_smartfail, lnn) +except ApiException as e: + print "Exception when calling ClusterNodesApi->update_node_state_smartfail: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **node_state_smartfail** | [**NodeStateSmartfailExtended**](NodeStateSmartfailExtended.md)| | + **lnn** | **int**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ClusterNodesAvailable.md b/docs/ClusterNodesAvailable.md new file mode 100644 index 000000000..1fc99aeb6 --- /dev/null +++ b/docs/ClusterNodesAvailable.md @@ -0,0 +1,11 @@ +# ClusterNodesAvailable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[ClusterNodesAvailableNode]**](ClusterNodesAvailableNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodesAvailableNode.md b/docs/ClusterNodesAvailableNode.md new file mode 100644 index 000000000..0eaf97f6e --- /dev/null +++ b/docs/ClusterNodesAvailableNode.md @@ -0,0 +1,15 @@ +# ClusterNodesAvailableNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration_id** | **str** | Node configuration ID. | [optional] +**description** | **str** | Human-readable description giving further detail on status (may be empty) | [optional] +**product** | **str** | Isilon product name. | [optional] +**serial_number** | **str** | Serial number of this node. | [optional] +**status** | **str** | Availability of the node. | [optional] +**version** | **str** | OneFS build version running on the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodesError.md b/docs/ClusterNodesError.md new file mode 100644 index 000000000..756896e62 --- /dev/null +++ b/docs/ClusterNodesError.md @@ -0,0 +1,11 @@ +# ClusterNodesError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failed_upgrade_action** | **str** | Last upgrade step which failed on node. | [optional] +**log** | **str** | Upgrade error log. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodesExtended.md b/docs/ClusterNodesExtended.md new file mode 100644 index 000000000..205939e47 --- /dev/null +++ b/docs/ClusterNodesExtended.md @@ -0,0 +1,11 @@ +# ClusterNodesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[ClusterNodeExtended]**](ClusterNodeExtended.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterNodesOnefsVersion.md b/docs/ClusterNodesOnefsVersion.md new file mode 100644 index 000000000..5b27c7bf7 --- /dev/null +++ b/docs/ClusterNodesOnefsVersion.md @@ -0,0 +1,14 @@ +# ClusterNodesOnefsVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bugfix** | **int** | | [optional] +**maintenance** | **int** | | [optional] +**major** | **int** | | [optional] +**minor** | **int** | | [optional] +**version** | **str** | hex representation of the OneFS version integer. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterOwner.md b/docs/ClusterOwner.md new file mode 100644 index 000000000..63f060a55 --- /dev/null +++ b/docs/ClusterOwner.md @@ -0,0 +1,19 @@ +# ClusterOwner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**company** | **str** | Cluster owner company name. | [optional] +**location** | **str** | Cluster owner location. | [optional] +**primary_email** | **str** | Cluster owner primary email address. | [optional] +**primary_name** | **str** | Cluster owner primary contact name. | [optional] +**primary_phone1** | **str** | Cluster owner primary contact phone number 1. | [optional] +**primary_phone2** | **str** | Cluster owner primary contact phone number 2. | [optional] +**secondary_email** | **str** | Cluster owner secondary email address. | [optional] +**secondary_name** | **str** | Cluster owner secondary contact name. | [optional] +**secondary_phone1** | **str** | Cluster owner secondary contact phone number 1. | [optional] +**secondary_phone2** | **str** | Cluster owner secondary contact phone number 2. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterPatchPatche.md b/docs/ClusterPatchPatche.md new file mode 100644 index 000000000..643a97f58 --- /dev/null +++ b/docs/ClusterPatchPatche.md @@ -0,0 +1,11 @@ +# ClusterPatchPatche + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**location** | **str** | The path location of the patch file. | [optional] +**patch** | **str** | The name or path of the patch to install. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterRetryLastActionItem.md b/docs/ClusterRetryLastActionItem.md new file mode 100644 index 000000000..b9999efb6 --- /dev/null +++ b/docs/ClusterRetryLastActionItem.md @@ -0,0 +1,10 @@ +# ClusterRetryLastActionItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | **list[int]** | List of the nodes or \"all\" where the last upgrade action can be retried. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterStatfs.md b/docs/ClusterStatfs.md new file mode 100644 index 000000000..e9ffeb5fd --- /dev/null +++ b/docs/ClusterStatfs.md @@ -0,0 +1,24 @@ +# ClusterStatfs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**f_bavail** | **int** | The number of free blocks available to non-superuser. | +**f_bfree** | **int** | The number of free blocks in the filesystem. | +**f_blocks** | **int** | The total number of data blocks in the filesystem. | +**f_bsize** | **int** | The filesystem fragment size. | +**f_ffree** | **int** | The number of free nodes available to non-superuser. | +**f_files** | **int** | The total number of file nodes in the filesystem. | +**f_flags** | **int** | A copy of the mount exported flags. | +**f_fstypename** | **str** | The filesystem type name. | +**f_iosize** | **int** | The optimal transfer block size. | +**f_mntfromname** | **str** | The name of the mounted filesystem. | +**f_mntonname** | **str** | The directory that the filesystem is mounted on. | +**f_namemax** | **int** | The maximum length of a file name. | +**f_owner** | **int** | The ID of the user that mounted the filesystem. | +**f_type** | **int** | The type of the filesystem. | +**f_version** | **int** | The structure version number. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterTime.md b/docs/ClusterTime.md new file mode 100644 index 000000000..42ac4015e --- /dev/null +++ b/docs/ClusterTime.md @@ -0,0 +1,12 @@ +# ClusterTime + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**list[ClusterTimeError]**](ClusterTimeError.md) | A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors. | [optional] +**nodes** | [**list[ClusterTimeNode]**](ClusterTimeNode.md) | The responses from the individual nodes involved in this request. | [optional] +**total** | **int** | The total number of nodes responding. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterTimeError.md b/docs/ClusterTimeError.md new file mode 100644 index 000000000..1110f5149 --- /dev/null +++ b/docs/ClusterTimeError.md @@ -0,0 +1,13 @@ +# ClusterTimeError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | The general meaning of the status code. | [optional] +**lnn** | **int** | Logical node number of the node reporting this error. | [optional] +**message** | **str** | More detailed description of the error. | [optional] +**status** | **int** | HTTP Status code returned by this node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterTimeExtended.md b/docs/ClusterTimeExtended.md new file mode 100644 index 000000000..e19c75f38 --- /dev/null +++ b/docs/ClusterTimeExtended.md @@ -0,0 +1,10 @@ +# ClusterTimeExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **int** | The current time on the cluster as a UNIX epoch (seconds since 1/1/1970), as reported by this node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterTimeNode.md b/docs/ClusterTimeNode.md new file mode 100644 index 000000000..06ff6d3cd --- /dev/null +++ b/docs/ClusterTimeNode.md @@ -0,0 +1,14 @@ +# ClusterTimeNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | Error message, if the HTTP status returned from this node was not 200. | [optional] +**id** | **int** | Node ID of the node reporting this information. | [optional] +**lnn** | **int** | Logical node number of the node reporting this information. | [optional] +**status** | **int** | Status of the HTTP response from this node if not 200. If 200, this field does not appear. | [optional] +**time** | **int** | The current time on the cluster as a UNIX epoch (seconds since 1/1/1970), as reported by this node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterTimezone.md b/docs/ClusterTimezone.md new file mode 100644 index 000000000..604c008bd --- /dev/null +++ b/docs/ClusterTimezone.md @@ -0,0 +1,11 @@ +# ClusterTimezone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**abbreviation** | **str** | Timezone abbreviation. | [optional] +**path** | **str** | Timezone hierarchical name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterTimezoneExtended.md b/docs/ClusterTimezoneExtended.md new file mode 100644 index 000000000..2e287f067 --- /dev/null +++ b/docs/ClusterTimezoneExtended.md @@ -0,0 +1,10 @@ +# ClusterTimezoneExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **str** | Timezone hierarchical name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterUpgrade.md b/docs/ClusterUpgrade.md new file mode 100644 index 000000000..87417e603 --- /dev/null +++ b/docs/ClusterUpgrade.md @@ -0,0 +1,10 @@ +# ClusterUpgrade + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes_to_rolling_upgrade** | **list[int]** | The nodes (to be) scheduled for an existing upgrade ordered by queue position number. [<lnn-1>, <lnn-2>, ... ], 'All', null | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterUpgradeItem.md b/docs/ClusterUpgradeItem.md new file mode 100644 index 000000000..8516bf862 --- /dev/null +++ b/docs/ClusterUpgradeItem.md @@ -0,0 +1,13 @@ +# ClusterUpgradeItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**install_image_path** | **str** | The location (path) of the upgrade image which must be within /ifs. | [optional] +**nodes_to_rolling_upgrade** | **list[int]** | The nodes (to be) scheduled for upgrade ordered by queue position number. Null if the cluster_state is 'partially upgraded' or upgrade_type is 'simultaneous'. One of the following values: [<lnn-1>, <lnn-2>, ... ], 'All', null | [optional] +**skip_optional** | **bool** | Used to indicate that the pre-upgrade check should be skipped | [optional] +**upgrade_type** | **str** | The type of upgrade to perform. One of the following values: 'rolling', 'simultaneous' | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterVersion.md b/docs/ClusterVersion.md new file mode 100644 index 000000000..536f5bfe3 --- /dev/null +++ b/docs/ClusterVersion.md @@ -0,0 +1,12 @@ +# ClusterVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**list[ClusterTimeError]**](ClusterTimeError.md) | A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors. | [optional] +**nodes** | [**list[ClusterVersionNode]**](ClusterVersionNode.md) | The responses from the individual nodes involved in this request. | [optional] +**total** | **int** | The total number of nodes responding. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClusterVersionNode.md b/docs/ClusterVersionNode.md new file mode 100644 index 000000000..be3b6ac98 --- /dev/null +++ b/docs/ClusterVersionNode.md @@ -0,0 +1,18 @@ +# ClusterVersionNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**build** | **str** | OneFS build string. | +**error** | **str** | Error message, if the HTTP status returned from this node was not 200. | [optional] +**id** | **int** | Node ID of the node reporting this information. | [optional] +**lnn** | **int** | Logical node number of the node reporting this information. | [optional] +**release** | **str** | Kernel release number. | +**revision** | **str** | OneFS build number. | +**status** | **int** | Status of the HTTP response from this node if not 200. If 200, this field does not appear. | [optional] +**type** | **str** | Kernel release type. | +**version** | **str** | Kernel full version information. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesClassActive.md b/docs/CompatibilitiesClassActive.md new file mode 100644 index 000000000..e7b72eb8a --- /dev/null +++ b/docs/CompatibilitiesClassActive.md @@ -0,0 +1,10 @@ +# CompatibilitiesClassActive + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | [**list[CompatibilitiesClassActiveActiveItem]**](CompatibilitiesClassActiveActiveItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesClassActiveActiveItem.md b/docs/CompatibilitiesClassActiveActiveItem.md new file mode 100644 index 000000000..51faf63e2 --- /dev/null +++ b/docs/CompatibilitiesClassActiveActiveItem.md @@ -0,0 +1,12 @@ +# CompatibilitiesClassActiveActiveItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**class_1** | **str** | The first class in an active compatibility | +**class_2** | **str** | The second class in an active compatibility | +**id** | **int** | The id of this active compatibility | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesClassActiveExtended.md b/docs/CompatibilitiesClassActiveExtended.md new file mode 100644 index 000000000..a6fa47aab --- /dev/null +++ b/docs/CompatibilitiesClassActiveExtended.md @@ -0,0 +1,11 @@ +# CompatibilitiesClassActiveExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | [**list[CompatibilitiesClassActiveActiveItem]**](CompatibilitiesClassActiveActiveItem.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesClassActiveItem.md b/docs/CompatibilitiesClassActiveItem.md new file mode 100644 index 000000000..c02bad487 --- /dev/null +++ b/docs/CompatibilitiesClassActiveItem.md @@ -0,0 +1,12 @@ +# CompatibilitiesClassActiveItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assess** | **bool** | Do not create compatibility, only assess if creation is possible. | [optional] +**class_1** | **str** | The first class in the desired compatibility | +**class_2** | **str** | The second class in the desired compatibility | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesClassAvailable.md b/docs/CompatibilitiesClassAvailable.md new file mode 100644 index 000000000..40837dd28 --- /dev/null +++ b/docs/CompatibilitiesClassAvailable.md @@ -0,0 +1,11 @@ +# CompatibilitiesClassAvailable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available** | [**list[CompatibilitiesClassAvailableAvailableItem]**](CompatibilitiesClassAvailableAvailableItem.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesClassAvailableAvailableItem.md b/docs/CompatibilitiesClassAvailableAvailableItem.md new file mode 100644 index 000000000..31ce253be --- /dev/null +++ b/docs/CompatibilitiesClassAvailableAvailableItem.md @@ -0,0 +1,11 @@ +# CompatibilitiesClassAvailableAvailableItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**class_1** | **str** | The first class in an available compatibility | +**class_2** | **str** | The second class in an available compatibility | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesSsdActive.md b/docs/CompatibilitiesSsdActive.md new file mode 100644 index 000000000..153eeb1b4 --- /dev/null +++ b/docs/CompatibilitiesSsdActive.md @@ -0,0 +1,10 @@ +# CompatibilitiesSsdActive + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | [**list[CompatibilitiesSsdActiveActiveItem]**](CompatibilitiesSsdActiveActiveItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesSsdActiveActiveItem.md b/docs/CompatibilitiesSsdActiveActiveItem.md new file mode 100644 index 000000000..e6de92a4f --- /dev/null +++ b/docs/CompatibilitiesSsdActiveActiveItem.md @@ -0,0 +1,12 @@ +# CompatibilitiesSsdActiveActiveItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**class_1** | **str** | The node class of an ssd compatibility | +**count** | **bool** | Is this SSD Compatibility Count Compatible. | +**id** | **int** | The id of this ssd compatibility | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesSsdActiveExtended.md b/docs/CompatibilitiesSsdActiveExtended.md new file mode 100644 index 000000000..fcada9d51 --- /dev/null +++ b/docs/CompatibilitiesSsdActiveExtended.md @@ -0,0 +1,11 @@ +# CompatibilitiesSsdActiveExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | [**list[CompatibilitiesSsdActiveActiveItem]**](CompatibilitiesSsdActiveActiveItem.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesSsdActiveIdParams.md b/docs/CompatibilitiesSsdActiveIdParams.md new file mode 100644 index 000000000..90548afbe --- /dev/null +++ b/docs/CompatibilitiesSsdActiveIdParams.md @@ -0,0 +1,12 @@ +# CompatibilitiesSsdActiveIdParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assess** | **bool** | Do not delete ssd compatibility, only assess if deletion is possible. | [optional] +**count** | **bool** | Are we enabling or disabling count | +**id_2** | **int** | The optional id of the second ssd compatibility. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesSsdActiveItem.md b/docs/CompatibilitiesSsdActiveItem.md new file mode 100644 index 000000000..71848f2ce --- /dev/null +++ b/docs/CompatibilitiesSsdActiveItem.md @@ -0,0 +1,13 @@ +# CompatibilitiesSsdActiveItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assess** | **bool** | Do not create ssd compatibility, only assess if creation is possible. | [optional] +**class_1** | **str** | The node class of the desired ssd compatibility | +**class_2** | **str** | The optional second node class to turn on ssd compatibility | [optional] +**count** | **bool** | Is this SSD Compatibility Count Compatible. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesSsdAvailable.md b/docs/CompatibilitiesSsdAvailable.md new file mode 100644 index 000000000..6aaa7c41d --- /dev/null +++ b/docs/CompatibilitiesSsdAvailable.md @@ -0,0 +1,11 @@ +# CompatibilitiesSsdAvailable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available** | [**list[CompatibilitiesSsdAvailableAvailableItem]**](CompatibilitiesSsdAvailableAvailableItem.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompatibilitiesSsdAvailableAvailableItem.md b/docs/CompatibilitiesSsdAvailableAvailableItem.md new file mode 100644 index 000000000..47a653ef7 --- /dev/null +++ b/docs/CompatibilitiesSsdAvailableAvailableItem.md @@ -0,0 +1,10 @@ +# CompatibilitiesSsdAvailableAvailableItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_class** | **str** | The node class of an ssd compatibility | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateAntivirusScanItemResponse.md b/docs/CreateAntivirusScanItemResponse.md new file mode 100644 index 000000000..911db325b --- /dev/null +++ b/docs/CreateAntivirusScanItemResponse.md @@ -0,0 +1,11 @@ +# CreateAntivirusScanItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**report_id** | **str** | The ID for the report for this scan. A report ID will be generated if one is not provided. | [optional] +**result** | **str** | The result of the scan. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateAuthRefreshItemResponse.md b/docs/CreateAuthRefreshItemResponse.md new file mode 100644 index 000000000..c6c610deb --- /dev/null +++ b/docs/CreateAuthRefreshItemResponse.md @@ -0,0 +1,10 @@ +# CreateAuthRefreshItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Unique ID of the log filter. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCloudAccountResponse.md b/docs/CreateCloudAccountResponse.md new file mode 100644 index 000000000..9ea5207fa --- /dev/null +++ b/docs/CreateCloudAccountResponse.md @@ -0,0 +1,10 @@ +# CreateCloudAccountResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The name of the new account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCloudJobResponse.md b/docs/CreateCloudJobResponse.md new file mode 100644 index 000000000..6dc4b7867 --- /dev/null +++ b/docs/CreateCloudJobResponse.md @@ -0,0 +1,10 @@ +# CreateCloudJobResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The id of the new job | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCloudPoolResponse.md b/docs/CreateCloudPoolResponse.md new file mode 100644 index 000000000..34062a548 --- /dev/null +++ b/docs/CreateCloudPoolResponse.md @@ -0,0 +1,10 @@ +# CreateCloudPoolResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The name of the new pool | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCompatibilitiesClassActiveItemResponse.md b/docs/CreateCompatibilitiesClassActiveItemResponse.md new file mode 100644 index 000000000..b564899f4 --- /dev/null +++ b/docs/CreateCompatibilitiesClassActiveItemResponse.md @@ -0,0 +1,12 @@ +# CreateCompatibilitiesClassActiveItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merges** | [**list[CreateCompatibilitiesClassActiveItemResponseMerge]**](CreateCompatibilitiesClassActiveItemResponseMerge.md) | A list of all merges that will occur given this compatibility operation | [optional] +**message** | **str** | A string describing the effects of the compatibility operation. | +**splits** | [**list[CreateCompatibilitiesClassActiveItemResponseSplit]**](CreateCompatibilitiesClassActiveItemResponseSplit.md) | A list of all splits that will occur given this compatibility operation | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCompatibilitiesClassActiveItemResponseMerge.md b/docs/CreateCompatibilitiesClassActiveItemResponseMerge.md new file mode 100644 index 000000000..840ee6a6a --- /dev/null +++ b/docs/CreateCompatibilitiesClassActiveItemResponseMerge.md @@ -0,0 +1,12 @@ +# CreateCompatibilitiesClassActiveItemResponseMerge + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **list[int]** | The nodepool ids that will be merged | +**names** | **list[str]** | The nodepool names that will be merged, in the sameorder as the ids | +**result_name** | **str** | The name of the nodepool all others will merge into | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateCompatibilitiesClassActiveItemResponseSplit.md b/docs/CreateCompatibilitiesClassActiveItemResponseSplit.md new file mode 100644 index 000000000..2985aa2a9 --- /dev/null +++ b/docs/CreateCompatibilitiesClassActiveItemResponseSplit.md @@ -0,0 +1,12 @@ +# CreateCompatibilitiesClassActiveItemResponseSplit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The nodepool id that will be split | +**name** | **str** | The nodepool name that will be split | +**tier_name** | **str** | A message explaining how the nodepools tier membership will change. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateFilepoolPolicyResponse.md b/docs/CreateFilepoolPolicyResponse.md new file mode 100644 index 000000000..5454fd381 --- /dev/null +++ b/docs/CreateFilepoolPolicyResponse.md @@ -0,0 +1,10 @@ +# CreateFilepoolPolicyResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The name of the new policy | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateHardeningApplyItemResponse.md b/docs/CreateHardeningApplyItemResponse.md new file mode 100644 index 000000000..4f3042ae8 --- /dev/null +++ b/docs/CreateHardeningApplyItemResponse.md @@ -0,0 +1,10 @@ +# CreateHardeningApplyItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Message text indicating if hardening apply operation started successfully or failed to start. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateHardeningResolveItemResponse.md b/docs/CreateHardeningResolveItemResponse.md new file mode 100644 index 000000000..47555cb7a --- /dev/null +++ b/docs/CreateHardeningResolveItemResponse.md @@ -0,0 +1,10 @@ +# CreateHardeningResolveItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Message text indicating if operation to resolve issues started successfully or failed to start. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateHardeningRevertItemResponse.md b/docs/CreateHardeningRevertItemResponse.md new file mode 100644 index 000000000..5913d51d7 --- /dev/null +++ b/docs/CreateHardeningRevertItemResponse.md @@ -0,0 +1,10 @@ +# CreateHardeningRevertItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Message text indicating if hardening revert operation started successfully or failed or start. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateJobJobResponse.md b/docs/CreateJobJobResponse.md new file mode 100644 index 000000000..f10156a9e --- /dev/null +++ b/docs/CreateJobJobResponse.md @@ -0,0 +1,10 @@ +# CreateJobJobResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The ID of the job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateNfsAliaseResponse.md b/docs/CreateNfsAliaseResponse.md new file mode 100644 index 000000000..fdf9a220a --- /dev/null +++ b/docs/CreateNfsAliaseResponse.md @@ -0,0 +1,11 @@ +# CreateNfsAliaseResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health** | **str** | Specifies whether the alias is usable. | +**id** | **str** | Specifies a string which represents the unique location of the alias. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateNfsNlmSessionsCheckItemResponse.md b/docs/CreateNfsNlmSessionsCheckItemResponse.md new file mode 100644 index 000000000..eda36481e --- /dev/null +++ b/docs/CreateNfsNlmSessionsCheckItemResponse.md @@ -0,0 +1,10 @@ +# CreateNfsNlmSessionsCheckItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of lock-loss events detected | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateQuotaReportResponse.md b/docs/CreateQuotaReportResponse.md new file mode 100644 index 000000000..3450cf110 --- /dev/null +++ b/docs/CreateQuotaReportResponse.md @@ -0,0 +1,10 @@ +# CreateQuotaReportResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | ID of created item that can be used to refer to item in the collection-item resource path. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateResponse.md b/docs/CreateResponse.md new file mode 100644 index 000000000..2f9d2c78c --- /dev/null +++ b/docs/CreateResponse.md @@ -0,0 +1,10 @@ +# CreateResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID of created item that can be used to refer to item in the collection-item resource path. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSnapshotAliaseResponse.md b/docs/CreateSnapshotAliaseResponse.md new file mode 100644 index 000000000..a29737894 --- /dev/null +++ b/docs/CreateSnapshotAliaseResponse.md @@ -0,0 +1,10 @@ +# CreateSnapshotAliaseResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The ID of the newly created snapshot alias. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSnapshotChangelistResponse.md b/docs/CreateSnapshotChangelistResponse.md new file mode 100644 index 000000000..3be3bc2e3 --- /dev/null +++ b/docs/CreateSnapshotChangelistResponse.md @@ -0,0 +1,15 @@ +# CreateSnapshotChangelistResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | The ID of the job which created the changelist. | +**num_entries** | **int** | Number of LIN entries in changelist. | [optional] +**root_path** | **str** | Root path of all LINs in changelist. | +**snap1** | **int** | The lower snapid used to compute the changelist. | +**snap2** | **int** | The higher snapid used to compute the changelist. | +**status** | **str** | Status of changelist. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSnapshotLockResponse.md b/docs/CreateSnapshotLockResponse.md new file mode 100644 index 000000000..952afb6b6 --- /dev/null +++ b/docs/CreateSnapshotLockResponse.md @@ -0,0 +1,10 @@ +# CreateSnapshotLockResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The ID of the newly created snapshot lock. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSnapshotRepstateResponse.md b/docs/CreateSnapshotRepstateResponse.md new file mode 100644 index 000000000..e1b4528b3 --- /dev/null +++ b/docs/CreateSnapshotRepstateResponse.md @@ -0,0 +1,11 @@ +# CreateSnapshotRepstateResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**snap1** | **int** | The lower snapid used to compute the repstate. | +**snap2** | **int** | The higher snapid used to compute the repstate. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSnapshotScheduleResponse.md b/docs/CreateSnapshotScheduleResponse.md new file mode 100644 index 000000000..4915eba84 --- /dev/null +++ b/docs/CreateSnapshotScheduleResponse.md @@ -0,0 +1,10 @@ +# CreateSnapshotScheduleResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The ID of the newly created snapshot schedule. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSnapshotSnapshotResponse.md b/docs/CreateSnapshotSnapshotResponse.md new file mode 100644 index 000000000..bc31e3d98 --- /dev/null +++ b/docs/CreateSnapshotSnapshotResponse.md @@ -0,0 +1,24 @@ +# CreateSnapshotSnapshotResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | **str** | Alias name to create for this snapshot. If null, remove any alias. | +**created** | **int** | The Unix Epoch time the snapshot was created. | +**expires** | **int** | The Unix Epoch time the snapshot will expire and be eligible for automatic deletion. | +**has_locks** | **bool** | True if the snapshot has one or more locks present see, see the locks subresource of a snapshot for a list of locks. | +**id** | **int** | The system ID given to the snapshot. This is useful for tracking the status of delete pending snapshots. | +**name** | **str** | The user or system supplied snapshot name. This will be null for snapshots pending delete. | +**path** | **str** | The /ifs path snapshotted. | +**pct_filesystem** | **float** | Percentage of /ifs used for storing this snapshot. | +**pct_reserve** | **float** | Percentage of configured snapshot reserved used for storing this snapshot. | +**schedule** | **str** | The name of the schedule used to create this snapshot, if applicable. | +**shadow_bytes** | **int** | The amount of shadow bytes referred to by this snapshot. | +**size** | **int** | The amount of storage in bytes used to store this snapshot. | +**state** | **str** | Snapshot state. | +**target_id** | **int** | The ID of the snapshot pointed to if this is an alias. | +**target_name** | **str** | The name of the snapshot pointed to if this is an alias. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateStoragepoolTierResponse.md b/docs/CreateStoragepoolTierResponse.md new file mode 100644 index 000000000..e59d2baae --- /dev/null +++ b/docs/CreateStoragepoolTierResponse.md @@ -0,0 +1,10 @@ +# CreateStoragepoolTierResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The system ID of the new object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSyncReportsRotateItemResponse.md b/docs/CreateSyncReportsRotateItemResponse.md new file mode 100644 index 000000000..d01081ced --- /dev/null +++ b/docs/CreateSyncReportsRotateItemResponse.md @@ -0,0 +1,10 @@ +# CreateSyncReportsRotateItemResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | A message about the status of the task. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateWormDomainResponse.md b/docs/CreateWormDomainResponse.md new file mode 100644 index 000000000..172ec6fbd --- /dev/null +++ b/docs/CreateWormDomainResponse.md @@ -0,0 +1,22 @@ +# CreateWormDomainResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autocommit_offset** | **int** | Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. | +**default_retention** | **int** | Specifies the default amount of time, in seconds, that a file in this domain will be protected for. The default retention period is applied if no retention date is manually set on the file. This parameter can also be set to 'forever', 'use_min' (which applies the 'min_retention' option), or 'use_max' (which applies the 'max_retention' option). | +**id** | **int** | Specifies the system-assigned ID for the protection domain. | +**incomplete** | **bool** | True if OneFS is still in the process of creating this domain and is unable to prevent files from being modified or deleted. If false, indicates that the domain is fully created and is able to prevent files from being modified or deleted. | +**lin** | **int** | Specifies the logical inode number (LIN) for the root of this domain. | +**max_modifies** | **int** | Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. | +**max_retention** | **int** | Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. | +**min_retention** | **int** | Specifies the minimum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a shorter retention period. If this parameter is set to null, this minimum value is not enforced. This parameter can also be set to 'forever'. | +**override_date** | **int** | Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. | +**path** | **str** | Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. | +**privileged_delete** | **str** | When this value is set to 'on', files in this domain can be deleted through the privileged delete feature. If this value is set to 'disabled', privileged file deletes are permanently disabled and cannot be turned on again. | +**total_modifies** | **int** | Specifies the number of times this domain has been modified and the number of times the attributes for the domain have changed. A SmartLock domain can be modified a fixed number of times as defined by the 'max_modifies' parameter. | +**type** | **str** | Specifies whether the domain is an enterprise domain or a compliance domain. Compliance domains can not be created on enterprise clusters. Enterprise and compliance domains can be created on compliance clusters. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DebugApi.md b/docs/DebugApi.md new file mode 100644 index 000000000..a989259c8 --- /dev/null +++ b/docs/DebugApi.md @@ -0,0 +1,101 @@ +# isi_sdk.DebugApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_debug_stats**](DebugApi.md#delete_debug_stats) | **DELETE** /platform/1/debug/stats | +[**get_debug_stats**](DebugApi.md#get_debug_stats) | **GET** /platform/1/debug/stats | + + +# **delete_debug_stats** +> delete_debug_stats() + + + +Clear per-resource statistics counters. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.DebugApi() + +try: + api_instance.delete_debug_stats() +except ApiException as e: + print "Exception when calling DebugApi->delete_debug_stats: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_debug_stats** +> DebugStats get_debug_stats() + + + +List cumulative call statistics for each resource. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.DebugApi() + +try: + api_response = api_instance.get_debug_stats() + pprint(api_response) +except ApiException as e: + print "Exception when calling DebugApi->get_debug_stats: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**DebugStats**](DebugStats.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DebugStats.md b/docs/DebugStats.md new file mode 100644 index 000000000..66b7c005c --- /dev/null +++ b/docs/DebugStats.md @@ -0,0 +1,12 @@ +# DebugStats + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**describe** | [**DebugStatsUnknown**](DebugStatsUnknown.md) | Per-method statistics. | [optional] +**unknown** | [**DebugStatsUnknown**](DebugStatsUnknown.md) | Per-method statistics. | [optional] +**handlers** | [**list[DebugStatsHandler]**](DebugStatsHandler.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DebugStatsHandler.md b/docs/DebugStatsHandler.md new file mode 100644 index 000000000..620bc1ab5 --- /dev/null +++ b/docs/DebugStatsHandler.md @@ -0,0 +1,16 @@ +# DebugStatsHandler + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delete** | [**DebugStatsUnknown**](DebugStatsUnknown.md) | Per-method statistics. | [optional] +**get** | [**DebugStatsUnknown**](DebugStatsUnknown.md) | Per-method statistics. | [optional] +**head** | [**DebugStatsUnknown**](DebugStatsUnknown.md) | Per-method statistics. | [optional] +**post** | [**DebugStatsUnknown**](DebugStatsUnknown.md) | Per-method statistics. | [optional] +**put** | [**DebugStatsUnknown**](DebugStatsUnknown.md) | Per-method statistics. | [optional] +**unsupported** | [**DebugStatsUnknown**](DebugStatsUnknown.md) | Per-method statistics. | [optional] +**name** | **str** | The URI. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DebugStatsUnknown.md b/docs/DebugStatsUnknown.md new file mode 100644 index 000000000..1540b5c0a --- /dev/null +++ b/docs/DebugStatsUnknown.md @@ -0,0 +1,12 @@ +# DebugStatsUnknown + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**calls** | **int** | The number of calls. | [optional] +**errors** | **int** | The number of errors. | [optional] +**time** | **float** | The total amount of time spent in this method. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeApi.md b/docs/DedupeApi.md new file mode 100644 index 000000000..e368f02f7 --- /dev/null +++ b/docs/DedupeApi.md @@ -0,0 +1,270 @@ +# isi_sdk.DedupeApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_dedupe_dedupe_summary**](DedupeApi.md#get_dedupe_dedupe_summary) | **GET** /platform/1/dedupe/dedupe-summary | +[**get_dedupe_report**](DedupeApi.md#get_dedupe_report) | **GET** /platform/1/dedupe/reports/{DedupeReportId} | +[**get_dedupe_reports**](DedupeApi.md#get_dedupe_reports) | **GET** /platform/1/dedupe/reports | +[**get_dedupe_settings**](DedupeApi.md#get_dedupe_settings) | **GET** /platform/1/dedupe/settings | +[**update_dedupe_settings**](DedupeApi.md#update_dedupe_settings) | **PUT** /platform/1/dedupe/settings | + + +# **get_dedupe_dedupe_summary** +> DedupeDedupeSummary get_dedupe_dedupe_summary() + + + +Return summary information about dedupe. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.DedupeApi() + +try: + api_response = api_instance.get_dedupe_dedupe_summary() + pprint(api_response) +except ApiException as e: + print "Exception when calling DedupeApi->get_dedupe_dedupe_summary: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**DedupeDedupeSummary**](DedupeDedupeSummary.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_dedupe_report** +> DedupeReports get_dedupe_report(dedupe_report_id, scope=scope) + + + +Retrieve a report for a single dedupe job. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.DedupeApi() +dedupe_report_id = 'dedupe_report_id_example' # str | Retrieve a report for a single dedupe job. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_dedupe_report(dedupe_report_id, scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling DedupeApi->get_dedupe_report: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dedupe_report_id** | **str**| Retrieve a report for a single dedupe job. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**DedupeReports**](DedupeReports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_dedupe_reports** +> DedupeReportsExtended get_dedupe_reports(sort=sort, begin=begin, end=end, job_id=job_id, resume=resume, job_type=job_type, limit=limit, dir=dir) + + + +List dedupe reports. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.DedupeApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +begin = 56 # int | Restrict the query to reports at or after the given time, in seconds since the Epoch. (optional) +end = 56 # int | Restrict the query to reports at or before the given time, in seconds since the Epoch. (optional) +job_id = 56 # int | Restrict the query to the given job ID. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +job_type = 'job_type_example' # str | Restrict the query to the given job type. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_dedupe_reports(sort=sort, begin=begin, end=end, job_id=job_id, resume=resume, job_type=job_type, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling DedupeApi->get_dedupe_reports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **begin** | **int**| Restrict the query to reports at or after the given time, in seconds since the Epoch. | [optional] + **end** | **int**| Restrict the query to reports at or before the given time, in seconds since the Epoch. | [optional] + **job_id** | **int**| Restrict the query to the given job ID. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **job_type** | **str**| Restrict the query to the given job type. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**DedupeReportsExtended**](DedupeReportsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_dedupe_settings** +> DedupeSettings get_dedupe_settings() + + + +Retrieve the dedupe settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.DedupeApi() + +try: + api_response = api_instance.get_dedupe_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling DedupeApi->get_dedupe_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**DedupeSettings**](DedupeSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_dedupe_settings** +> update_dedupe_settings(dedupe_settings) + + + +Modify the dedupe settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.DedupeApi() +dedupe_settings = isi_sdk.DedupeSettingsExtended() # DedupeSettingsExtended | + +try: + api_instance.update_dedupe_settings(dedupe_settings) +except ApiException as e: + print "Exception when calling DedupeApi->update_dedupe_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dedupe_settings** | [**DedupeSettingsExtended**](DedupeSettingsExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DedupeDedupeSummary.md b/docs/DedupeDedupeSummary.md new file mode 100644 index 000000000..49faf40c2 --- /dev/null +++ b/docs/DedupeDedupeSummary.md @@ -0,0 +1,10 @@ +# DedupeDedupeSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**DedupeDedupeSummarySummary**](DedupeDedupeSummarySummary.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeDedupeSummarySummary.md b/docs/DedupeDedupeSummarySummary.md new file mode 100644 index 000000000..6265811f8 --- /dev/null +++ b/docs/DedupeDedupeSummarySummary.md @@ -0,0 +1,16 @@ +# DedupeDedupeSummarySummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_size** | **float** | Size in bytes of a filesystem block. | +**estimated_physical_blocks** | **float** | Estimated number of physical blocks deduped. | +**estimated_saved_blocks** | **float** | Estimated number of physical blocks saved by dedupe. | +**logical_blocks** | **float** | Number of logical blocks deduped. | +**saved_logical_blocks** | **float** | Number of logical blocks saved by dedupe. | +**total_blocks** | **float** | Total physical blocks in the cluster. | +**used_blocks** | **float** | Total physical blocks used in the cluster. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeReport.md b/docs/DedupeReport.md new file mode 100644 index 000000000..db27bc9ee --- /dev/null +++ b/docs/DedupeReport.md @@ -0,0 +1,12 @@ +# DedupeReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phase** | **int** | The phase of the job this report was generated for. | [optional] +**results** | **str** | The report results. | [optional] +**time** | **int** | The time this report was generated in Unix epoch seconds. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeReportExtended.md b/docs/DedupeReportExtended.md new file mode 100644 index 000000000..0f2fe14a9 --- /dev/null +++ b/docs/DedupeReportExtended.md @@ -0,0 +1,15 @@ +# DedupeReportExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dedupe_percent** | **str** | The amount of space the directory trees under this job's paths now take up, compared to what they would take up if not deduplicated (0 ~ 100). | [optional] +**elapsed_time** | **int** | The amount of time in seconds it took to run this job. | [optional] +**id** | **int** | An unique identifier for this report. | [optional] +**job_id** | **int** | The job id this report refers to. | [optional] +**job_type** | **str** | The type of dedupe job this report refers to. | [optional] +**reports** | [**list[DedupeReport]**](DedupeReport.md) | A list of report entries for this dedupe job. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeReports.md b/docs/DedupeReports.md new file mode 100644 index 000000000..1d966de25 --- /dev/null +++ b/docs/DedupeReports.md @@ -0,0 +1,10 @@ +# DedupeReports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[DedupeReportExtended]**](DedupeReportExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeReportsExtended.md b/docs/DedupeReportsExtended.md new file mode 100644 index 000000000..862424566 --- /dev/null +++ b/docs/DedupeReportsExtended.md @@ -0,0 +1,11 @@ +# DedupeReportsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[DedupeReportExtended]**](DedupeReportExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeSettings.md b/docs/DedupeSettings.md new file mode 100644 index 000000000..01ee28f71 --- /dev/null +++ b/docs/DedupeSettings.md @@ -0,0 +1,10 @@ +# DedupeSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**DedupeSettingsSettings**](DedupeSettingsSettings.md) | Dedupe settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeSettingsExtended.md b/docs/DedupeSettingsExtended.md new file mode 100644 index 000000000..a488b9157 --- /dev/null +++ b/docs/DedupeSettingsExtended.md @@ -0,0 +1,11 @@ +# DedupeSettingsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assess_paths** | **list[str]** | The paths that will be assessed. | [optional] +**paths** | **list[str]** | The paths that will be deduped. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DedupeSettingsSettings.md b/docs/DedupeSettingsSettings.md new file mode 100644 index 000000000..31c8b4f1c --- /dev/null +++ b/docs/DedupeSettingsSettings.md @@ -0,0 +1,12 @@ +# DedupeSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assess_paths** | **list[str]** | The paths that will be assessed. | [optional] +**dedupe_schedule** | **str** | The schedule for the dedupe job. | [optional] +**paths** | **list[str]** | The paths that will be deduped. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDriveFirmware.md b/docs/DrivesDriveFirmware.md new file mode 100644 index 000000000..fcc7327ae --- /dev/null +++ b/docs/DrivesDriveFirmware.md @@ -0,0 +1,11 @@ +# DrivesDriveFirmware + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[DrivesDriveFirmwareNode]**](DrivesDriveFirmwareNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDriveFirmwareNode.md b/docs/DrivesDriveFirmwareNode.md new file mode 100644 index 000000000..699c1cae4 --- /dev/null +++ b/docs/DrivesDriveFirmwareNode.md @@ -0,0 +1,12 @@ +# DrivesDriveFirmwareNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**drives** | [**list[DrivesDriveFirmwareNodeDrive]**](DrivesDriveFirmwareNodeDrive.md) | List of the firmware revisions on the drives in this node. | [optional] +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDriveFirmwareNodeDrive.md b/docs/DrivesDriveFirmwareNodeDrive.md new file mode 100644 index 000000000..25e9c460f --- /dev/null +++ b/docs/DrivesDriveFirmwareNodeDrive.md @@ -0,0 +1,16 @@ +# DrivesDriveFirmwareNodeDrive + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**baynum** | **int** | Numerical representation of this drive's bay. | [optional] +**current_firmware** | **str** | This drive's current firmware revision | [optional] +**desired_firmware** | **str** | This drive's desired firmware revision. | [optional] +**devname** | **str** | This drive's device name. | [optional] +**lnum** | **int** | This drive's logical drive number in IFS. | [optional] +**locnstr** | **str** | String representation of this drive's physical location. | [optional] +**model** | **str** | This drive's manufacturer and model. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDriveFirmwareUpdate.md b/docs/DrivesDriveFirmwareUpdate.md new file mode 100644 index 000000000..c5f7ce2f2 --- /dev/null +++ b/docs/DrivesDriveFirmwareUpdate.md @@ -0,0 +1,11 @@ +# DrivesDriveFirmwareUpdate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[DrivesDriveFirmwareUpdateNode]**](DrivesDriveFirmwareUpdateNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDriveFirmwareUpdateItem.md b/docs/DrivesDriveFirmwareUpdateItem.md new file mode 100644 index 000000000..c79e1e04e --- /dev/null +++ b/docs/DrivesDriveFirmwareUpdateItem.md @@ -0,0 +1,10 @@ +# DrivesDriveFirmwareUpdateItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_wide** | **bool** | Indicates whether this is a cluster wide drive firwmare update or not | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDriveFirmwareUpdateNode.md b/docs/DrivesDriveFirmwareUpdateNode.md new file mode 100644 index 000000000..2171492b9 --- /dev/null +++ b/docs/DrivesDriveFirmwareUpdateNode.md @@ -0,0 +1,12 @@ +# DrivesDriveFirmwareUpdateNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**status** | [**DrivesDriveFirmwareUpdateNodeStatus**](DrivesDriveFirmwareUpdateNodeStatus.md) | Drive firmware update status information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDriveFirmwareUpdateNodeStatus.md b/docs/DrivesDriveFirmwareUpdateNodeStatus.md new file mode 100644 index 000000000..96123585d --- /dev/null +++ b/docs/DrivesDriveFirmwareUpdateNodeStatus.md @@ -0,0 +1,15 @@ +# DrivesDriveFirmwareUpdateNodeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failed** | **int** | The number of drives that did not successfully complete firmware updates update on the node. | [optional] +**finish_time** | **str** | Time when drive firmware update finished on node. | [optional] +**remaining** | **int** | Number of drives remaining to be updated on node. | [optional] +**start_time** | **str** | Time when drive firmware update started on node. | [optional] +**status** | **str** | Overall status of this nodes firmware updates. | [optional] +**updated** | **int** | The number of drives that completed firmware updates on the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDriveFormatItem.md b/docs/DrivesDriveFormatItem.md new file mode 100644 index 000000000..427e8e121 --- /dev/null +++ b/docs/DrivesDriveFormatItem.md @@ -0,0 +1,10 @@ +# DrivesDriveFormatItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purpose** | **str** | The purpose to which this drive should be formatted. If not specified, defaults to 'None', which will be automatically purposed based on node configuration and drive type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DrivesDrivePurposeItem.md b/docs/DrivesDrivePurposeItem.md new file mode 100644 index 000000000..a3a74f95b --- /dev/null +++ b/docs/DrivesDrivePurposeItem.md @@ -0,0 +1,10 @@ +# DrivesDrivePurposeItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purpose** | **str** | The purpose to which this drive should be assigned. This field is required for the 'purpose' action. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Empty.md b/docs/Empty.md new file mode 100644 index 000000000..72877c10b --- /dev/null +++ b/docs/Empty.md @@ -0,0 +1,9 @@ +# Empty + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Error.md b/docs/Error.md new file mode 100644 index 000000000..e3a5fba48 --- /dev/null +++ b/docs/Error.md @@ -0,0 +1,11 @@ +# Error + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **int** | | +**message** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventAlertCondition.md b/docs/EventAlertCondition.md new file mode 100644 index 000000000..2fe99f90c --- /dev/null +++ b/docs/EventAlertCondition.md @@ -0,0 +1,16 @@ +# EventAlertCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | **list[str]** | Event Group categories to be alerted | [optional] +**channel_ids** | **list[int]** | Channels for alert | [optional] +**condition** | **str** | Trigger condition for alert | [optional] +**eventgroup_ids** | **list[str]** | Event Group IDs to be alerted | [optional] +**interval** | **int** | Required with ONGOING condition only, period in seconds between alerts of ongoing conditions | [optional] +**limit** | **int** | Required with NEW EVENTS condition only, limits the number of alerts sent as events are added | [optional] +**transient** | **int** | Any eventgroup lasting less than this many seconds is deemed transient and will not generate alerts under this condition. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventAlertConditions.md b/docs/EventAlertConditions.md new file mode 100644 index 000000000..57fae7d57 --- /dev/null +++ b/docs/EventAlertConditions.md @@ -0,0 +1,10 @@ +# EventAlertConditions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alert_conditions** | [**list[EventAlertConditionsAlertCondition]**](EventAlertConditionsAlertCondition.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventAlertConditionsAlertCondition.md b/docs/EventAlertConditionsAlertCondition.md new file mode 100644 index 000000000..389871b7d --- /dev/null +++ b/docs/EventAlertConditionsAlertCondition.md @@ -0,0 +1,18 @@ +# EventAlertConditionsAlertCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | **list[str]** | Event Group categories to be alerted | [optional] +**channel_ids** | **list[int]** | Channels for alert | [optional] +**condition** | **str** | Trigger condition for alert | [optional] +**eventgroup_ids** | **list[str]** | Event Group IDs to be alerted | [optional] +**id** | **str** | Unique identifier. | [optional] +**interval** | **int** | Required with ONGOING condition only, period in seconds between alerts of ongoing conditions | [optional] +**limit** | **int** | Required with NEW EVENTS condition only, limits the number of alerts sent as events are added | [optional] +**name** | **str** | Unique identifier. | [optional] +**transient** | **int** | Any eventgroup lasting less than this many seconds is deemed transient and will not generate alerts under this condition. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventAlertConditionsExtended.md b/docs/EventAlertConditionsExtended.md new file mode 100644 index 000000000..61fa9cb1f --- /dev/null +++ b/docs/EventAlertConditionsExtended.md @@ -0,0 +1,12 @@ +# EventAlertConditionsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alert_conditions** | [**list[EventAlertConditionsAlertCondition]**](EventAlertConditionsAlertCondition.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventApi.md b/docs/EventApi.md new file mode 100644 index 000000000..f5810a40d --- /dev/null +++ b/docs/EventApi.md @@ -0,0 +1,1266 @@ +# isi_sdk.EventApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_event_alert_condition**](EventApi.md#create_event_alert_condition) | **POST** /platform/3/event/alert-conditions | +[**create_event_channel**](EventApi.md#create_event_channel) | **POST** /platform/3/event/channels | +[**create_event_event**](EventApi.md#create_event_event) | **POST** /platform/3/event/events | +[**delete_event_alert_condition**](EventApi.md#delete_event_alert_condition) | **DELETE** /platform/3/event/alert-conditions/{EventAlertConditionId} | +[**delete_event_alert_conditions**](EventApi.md#delete_event_alert_conditions) | **DELETE** /platform/3/event/alert-conditions | +[**delete_event_channel**](EventApi.md#delete_event_channel) | **DELETE** /platform/3/event/channels/{EventChannelId} | +[**get_event_alert_condition**](EventApi.md#get_event_alert_condition) | **GET** /platform/3/event/alert-conditions/{EventAlertConditionId} | +[**get_event_categories**](EventApi.md#get_event_categories) | **GET** /platform/3/event/categories | +[**get_event_category**](EventApi.md#get_event_category) | **GET** /platform/3/event/categories/{EventCategoryId} | +[**get_event_channel**](EventApi.md#get_event_channel) | **GET** /platform/3/event/channels/{EventChannelId} | +[**get_event_eventgroup_definition**](EventApi.md#get_event_eventgroup_definition) | **GET** /platform/3/event/eventgroup-definitions/{EventEventgroupDefinitionId} | +[**get_event_eventgroup_definitions**](EventApi.md#get_event_eventgroup_definitions) | **GET** /platform/3/event/eventgroup-definitions | +[**get_event_eventgroup_occurrence**](EventApi.md#get_event_eventgroup_occurrence) | **GET** /platform/3/event/eventgroup-occurrences/{EventEventgroupOccurrenceId} | +[**get_event_eventgroup_occurrences**](EventApi.md#get_event_eventgroup_occurrences) | **GET** /platform/3/event/eventgroup-occurrences | +[**get_event_eventlist**](EventApi.md#get_event_eventlist) | **GET** /platform/3/event/eventlists/{EventEventlistId} | +[**get_event_eventlists**](EventApi.md#get_event_eventlists) | **GET** /platform/3/event/eventlists | +[**get_event_settings**](EventApi.md#get_event_settings) | **GET** /platform/3/event/settings | +[**list_event_alert_conditions**](EventApi.md#list_event_alert_conditions) | **GET** /platform/3/event/alert-conditions | +[**list_event_channels**](EventApi.md#list_event_channels) | **GET** /platform/3/event/channels | +[**update_event_alert_condition**](EventApi.md#update_event_alert_condition) | **PUT** /platform/3/event/alert-conditions/{EventAlertConditionId} | +[**update_event_channel**](EventApi.md#update_event_channel) | **PUT** /platform/3/event/channels/{EventChannelId} | +[**update_event_eventgroup_occurrence**](EventApi.md#update_event_eventgroup_occurrence) | **PUT** /platform/3/event/eventgroup-occurrences/{EventEventgroupOccurrenceId} | +[**update_event_eventgroup_occurrences**](EventApi.md#update_event_eventgroup_occurrences) | **PUT** /platform/3/event/eventgroup-occurrences | +[**update_event_settings**](EventApi.md#update_event_settings) | **PUT** /platform/3/event/settings | + + +# **create_event_alert_condition** +> CreateResponse create_event_alert_condition(event_alert_condition) + + + +Create a new alert condition. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_alert_condition = isi_sdk.EventAlertConditionsAlertCondition() # EventAlertConditionsAlertCondition | + +try: + api_response = api_instance.create_event_alert_condition(event_alert_condition) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->create_event_alert_condition: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_alert_condition** | [**EventAlertConditionsAlertCondition**](EventAlertConditionsAlertCondition.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_event_channel** +> CreateResponse create_event_channel(event_channel) + + + +Create a new channel. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_channel = isi_sdk.EventChannelsAlertCondition() # EventChannelsAlertCondition | + +try: + api_response = api_instance.create_event_channel(event_channel) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->create_event_channel: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_channel** | [**EventChannelsAlertCondition**](EventChannelsAlertCondition.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_event_event** +> CreateResponse create_event_event(event_event) + + + +Create a test event. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_event = isi_sdk.EventEvent() # EventEvent | + +try: + api_response = api_instance.create_event_event(event_event) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->create_event_event: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_event** | [**EventEvent**](EventEvent.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_event_alert_condition** +> delete_event_alert_condition(event_alert_condition_id) + + + +Delete the alert-condition. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_alert_condition_id = 'event_alert_condition_id_example' # str | Delete the alert-condition. + +try: + api_instance.delete_event_alert_condition(event_alert_condition_id) +except ApiException as e: + print "Exception when calling EventApi->delete_event_alert_condition: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_alert_condition_id** | **str**| Delete the alert-condition. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_event_alert_conditions** +> delete_event_alert_conditions(channel=channel) + + + +Bulk delete of alert conditions. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +channel = 'channel_example' # str | Delete only conditions for this channel (optional) + +try: + api_instance.delete_event_alert_conditions(channel=channel) +except ApiException as e: + print "Exception when calling EventApi->delete_event_alert_conditions: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **channel** | **str**| Delete only conditions for this channel | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_event_channel** +> delete_event_channel(event_channel_id) + + + +Delete the alert-condition. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_channel_id = 'event_channel_id_example' # str | Delete the alert-condition. + +try: + api_instance.delete_event_channel(event_channel_id) +except ApiException as e: + print "Exception when calling EventApi->delete_event_channel: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_channel_id** | **str**| Delete the alert-condition. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_alert_condition** +> EventAlertConditions get_event_alert_condition(event_alert_condition_id) + + + +Retrieve the alert-condition. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_alert_condition_id = 'event_alert_condition_id_example' # str | Retrieve the alert-condition. + +try: + api_response = api_instance.get_event_alert_condition(event_alert_condition_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_alert_condition: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_alert_condition_id** | **str**| Retrieve the alert-condition. | + +### Return type + +[**EventAlertConditions**](EventAlertConditions.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_categories** +> EventCategoriesExtended get_event_categories(limit=limit, resume=resume) + + + +List all eventgroup categories. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_event_categories(limit=limit, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_categories: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**EventCategoriesExtended**](EventCategoriesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_category** +> EventCategories get_event_category(event_category_id) + + + +Retrieve the eventgroup category. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_category_id = 'event_category_id_example' # str | Retrieve the eventgroup category. + +try: + api_response = api_instance.get_event_category(event_category_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_category: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_category_id** | **str**| Retrieve the eventgroup category. | + +### Return type + +[**EventCategories**](EventCategories.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_channel** +> EventChannels get_event_channel(event_channel_id) + + + +Retrieve the alert-condition. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_channel_id = 'event_channel_id_example' # str | Retrieve the alert-condition. + +try: + api_response = api_instance.get_event_channel(event_channel_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_channel: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_channel_id** | **str**| Retrieve the alert-condition. | + +### Return type + +[**EventChannels**](EventChannels.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_eventgroup_definition** +> EventEventgroupDefinitions get_event_eventgroup_definition(event_eventgroup_definition_id) + + + +Retrieve the eventgroup definition. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_eventgroup_definition_id = 'event_eventgroup_definition_id_example' # str | Retrieve the eventgroup definition. + +try: + api_response = api_instance.get_event_eventgroup_definition(event_eventgroup_definition_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_eventgroup_definition: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_eventgroup_definition_id** | **str**| Retrieve the eventgroup definition. | + +### Return type + +[**EventEventgroupDefinitions**](EventEventgroupDefinitions.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_eventgroup_definitions** +> EventEventgroupDefinitionsExtended get_event_eventgroup_definitions(category=category, limit=limit, resume=resume) + + + +List all eventgroup definitions. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +category = 56 # int | Return eventgroups in the specified category (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_event_eventgroup_definitions(category=category, limit=limit, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_eventgroup_definitions: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **category** | **int**| Return eventgroups in the specified category | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**EventEventgroupDefinitionsExtended**](EventEventgroupDefinitionsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_eventgroup_occurrence** +> EventEventgroupOccurrences get_event_eventgroup_occurrence(event_eventgroup_occurrence_id) + + + +Retrieve individual eventgroup occurrence. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_eventgroup_occurrence_id = 'event_eventgroup_occurrence_id_example' # str | Retrieve individual eventgroup occurrence. + +try: + api_response = api_instance.get_event_eventgroup_occurrence(event_eventgroup_occurrence_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_eventgroup_occurrence: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_eventgroup_occurrence_id** | **str**| Retrieve individual eventgroup occurrence. | + +### Return type + +[**EventEventgroupOccurrences**](EventEventgroupOccurrences.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_eventgroup_occurrences** +> EventEventgroupOccurrencesExtended get_event_eventgroup_occurrences(resolved=resolved, sort=sort, begin=begin, end=end, event_count=event_count, resume=resume, fixer=fixer, ignore=ignore, limit=limit, cause=cause, dir=dir) + + + +List all eventgroup occurrences. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +resolved = true # bool | Filter for resolved eventgroups (optional) +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +begin = 56 # int | events that are in progress after this time (optional) +end = 56 # int | events that were in progress before this time (optional) +event_count = 56 # int | events for which event_count > this (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +fixer = 'fixer_example' # str | Filter for eventgroup fixer (optional) +ignore = true # bool | Filter for ignored eventgroups (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +cause = 'cause_example' # str | Filter for cause (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_event_eventgroup_occurrences(resolved=resolved, sort=sort, begin=begin, end=end, event_count=event_count, resume=resume, fixer=fixer, ignore=ignore, limit=limit, cause=cause, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_eventgroup_occurrences: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resolved** | **bool**| Filter for resolved eventgroups | [optional] + **sort** | **str**| The field that will be used for sorting. | [optional] + **begin** | **int**| events that are in progress after this time | [optional] + **end** | **int**| events that were in progress before this time | [optional] + **event_count** | **int**| events for which event_count > this | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **fixer** | **str**| Filter for eventgroup fixer | [optional] + **ignore** | **bool**| Filter for ignored eventgroups | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **cause** | **str**| Filter for cause | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**EventEventgroupOccurrencesExtended**](EventEventgroupOccurrencesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_eventlist** +> EventEventlists get_event_eventlist(event_eventlist_id) + + + +Retrieve the list of events for a eventgroup occureence. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_eventlist_id = 'event_eventlist_id_example' # str | Retrieve the list of events for a eventgroup occureence. + +try: + api_response = api_instance.get_event_eventlist(event_eventlist_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_eventlist: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_eventlist_id** | **str**| Retrieve the list of events for a eventgroup occureence. | + +### Return type + +[**EventEventlists**](EventEventlists.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_eventlists** +> EventEventlistsExtended get_event_eventlists(event_instance=event_instance, limit=limit, resume=resume) + + + +List all event occurrences grouped by eventgroup occurrence. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_instance = 'event_instance_example' # str | Return only this event occurrence (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_event_eventlists(event_instance=event_instance, limit=limit, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_eventlists: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_instance** | **str**| Return only this event occurrence | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**EventEventlistsExtended**](EventEventlistsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_event_settings** +> EventSettings get_event_settings() + + + +Retrieve the settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() + +try: + api_response = api_instance.get_event_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->get_event_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**EventSettings**](EventSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_event_alert_conditions** +> EventAlertConditionsExtended list_event_alert_conditions(sort=sort, channel_ids=channel_ids, limit=limit, dir=dir, resume=resume) + + + +List all alert conditions. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +channel_ids = 'channel_ids_example' # str | Return only conditions for the specified channel: (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_event_alert_conditions(sort=sort, channel_ids=channel_ids, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->list_event_alert_conditions: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **channel_ids** | **str**| Return only conditions for the specified channel: | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**EventAlertConditionsExtended**](EventAlertConditionsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_event_channels** +> EventChannelsExtended list_event_channels(limit=limit, resume=resume) + + + +List all channels. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_event_channels(limit=limit, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling EventApi->list_event_channels: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**EventChannelsExtended**](EventChannelsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_event_alert_condition** +> update_event_alert_condition(event_alert_condition, event_alert_condition_id) + + + +Modify the alert-condition + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_alert_condition = isi_sdk.EventAlertCondition() # EventAlertCondition | +event_alert_condition_id = 'event_alert_condition_id_example' # str | Modify the alert-condition + +try: + api_instance.update_event_alert_condition(event_alert_condition, event_alert_condition_id) +except ApiException as e: + print "Exception when calling EventApi->update_event_alert_condition: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_alert_condition** | [**EventAlertCondition**](EventAlertCondition.md)| | + **event_alert_condition_id** | **str**| Modify the alert-condition | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_event_channel** +> update_event_channel(event_channel, event_channel_id) + + + +Modify the alert-condition + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_channel = isi_sdk.EventChannel() # EventChannel | +event_channel_id = 'event_channel_id_example' # str | Modify the alert-condition + +try: + api_instance.update_event_channel(event_channel, event_channel_id) +except ApiException as e: + print "Exception when calling EventApi->update_event_channel: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_channel** | [**EventChannel**](EventChannel.md)| | + **event_channel_id** | **str**| Modify the alert-condition | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_event_eventgroup_occurrence** +> update_event_eventgroup_occurrence(event_eventgroup_occurrence, event_eventgroup_occurrence_id) + + + +modify eventgroup occurrence. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_eventgroup_occurrence = isi_sdk.EventEventgroupOccurrence() # EventEventgroupOccurrence | +event_eventgroup_occurrence_id = 'event_eventgroup_occurrence_id_example' # str | modify eventgroup occurrence. + +try: + api_instance.update_event_eventgroup_occurrence(event_eventgroup_occurrence, event_eventgroup_occurrence_id) +except ApiException as e: + print "Exception when calling EventApi->update_event_eventgroup_occurrence: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_eventgroup_occurrence** | [**EventEventgroupOccurrence**](EventEventgroupOccurrence.md)| | + **event_eventgroup_occurrence_id** | **str**| modify eventgroup occurrence. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_event_eventgroup_occurrences** +> update_event_eventgroup_occurrences(event_eventgroup_occurrences) + + + +Modify all eventgroup occurrences, resolve or ignore all + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_eventgroup_occurrences = isi_sdk.EventEventgroupOccurrence() # EventEventgroupOccurrence | + +try: + api_instance.update_event_eventgroup_occurrences(event_eventgroup_occurrences) +except ApiException as e: + print "Exception when calling EventApi->update_event_eventgroup_occurrences: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_eventgroup_occurrences** | [**EventEventgroupOccurrence**](EventEventgroupOccurrence.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_event_settings** +> update_event_settings(event_settings) + + + +Update settings + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.EventApi() +event_settings = isi_sdk.EventSettings() # EventSettings | + +try: + api_instance.update_event_settings(event_settings) +except ApiException as e: + print "Exception when calling EventApi->update_event_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_settings** | [**EventSettings**](EventSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/EventCategories.md b/docs/EventCategories.md new file mode 100644 index 000000000..c851d9aba --- /dev/null +++ b/docs/EventCategories.md @@ -0,0 +1,10 @@ +# EventCategories + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**list[EventCategory]**](EventCategory.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventCategoriesExtended.md b/docs/EventCategoriesExtended.md new file mode 100644 index 000000000..0e6227a1a --- /dev/null +++ b/docs/EventCategoriesExtended.md @@ -0,0 +1,12 @@ +# EventCategoriesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**list[EventCategory]**](EventCategory.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventCategory.md b/docs/EventCategory.md new file mode 100644 index 000000000..59f63aed7 --- /dev/null +++ b/docs/EventCategory.md @@ -0,0 +1,12 @@ +# EventCategory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category_description** | **str** | Description of category. | [optional] +**category_name** | **str** | Name of category. | [optional] +**id** | **int** | Numeric identifier of eventgroup category. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventChannel.md b/docs/EventChannel.md new file mode 100644 index 000000000..09fc3b197 --- /dev/null +++ b/docs/EventChannel.md @@ -0,0 +1,15 @@ +# EventChannel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_nodes** | **list[int]** | Nodes that can be masters for this channel | [optional] +**enabled** | **bool** | Channel is to be used or not | [optional] +**excluded_nodes** | **list[int]** | Nodes that can be masters for this channel | [optional] +**parameters** | [**EventChannelParameters**](EventChannelParameters.md) | Parameters to be used for an smtp channel | [optional] +**system** | **bool** | Channel is a pre-defined system channel | [optional] +**type** | **str** | The mechanism used by the channel | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventChannelParameters.md b/docs/EventChannelParameters.md new file mode 100644 index 000000000..8fca6a5da --- /dev/null +++ b/docs/EventChannelParameters.md @@ -0,0 +1,21 @@ +# EventChannelParameters + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **list[str]** | Email addresses to send to. | [optional] +**batch** | **str** | Batching criterion. | [optional] +**batch_period** | **int** | Period over which batching is to be performed. | [optional] +**custom_template** | **str** | Path to custom notification template. | [optional] +**send_as** | **str** | Email address to use as from. | [optional] +**smtp_host** | **str** | SMTP relay host. | [optional] +**smtp_password** | **str** | Password for SMTP authentication - only if smtp_use_auth true. | [optional] +**smtp_port** | **int** | SMTP relay port - optional defaults to 25. | [optional] +**smtp_security** | **str** | Encryption protocol to use for SMTP. | [optional] +**smtp_use_auth** | **bool** | Use SMTP authentication - optional defaulst to false. | [optional] +**smtp_username** | **str** | Username for SMTP authentication - only if smtp_use_auth true. | [optional] +**subject** | **str** | Subject for emails. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventChannels.md b/docs/EventChannels.md new file mode 100644 index 000000000..e2b50a6b7 --- /dev/null +++ b/docs/EventChannels.md @@ -0,0 +1,10 @@ +# EventChannels + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alert_conditions** | [**list[EventChannelsAlertCondition]**](EventChannelsAlertCondition.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventChannelsAlertCondition.md b/docs/EventChannelsAlertCondition.md new file mode 100644 index 000000000..9cdfd7576 --- /dev/null +++ b/docs/EventChannelsAlertCondition.md @@ -0,0 +1,17 @@ +# EventChannelsAlertCondition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_nodes** | **list[int]** | Nodes that can be masters for this channel | [optional] +**enabled** | **bool** | Channel is to be used or not | [optional] +**excluded_nodes** | **list[int]** | Nodes that can be masters for this channel | [optional] +**id** | **int** | Unique identifier. | [optional] +**name** | **str** | Channel name, may not contain /, max length 254. | [optional] +**parameters** | [**EventChannelParameters**](EventChannelParameters.md) | Parameters to be used for an smtp channel | [optional] +**system** | **bool** | Channel is a pre-defined system channel | [optional] +**type** | **str** | The mechanism used by the channel | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventChannelsExtended.md b/docs/EventChannelsExtended.md new file mode 100644 index 000000000..d50844a35 --- /dev/null +++ b/docs/EventChannelsExtended.md @@ -0,0 +1,12 @@ +# EventChannelsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channels** | [**list[EventChannelsAlertCondition]**](EventChannelsAlertCondition.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEvent.md b/docs/EventEvent.md new file mode 100644 index 000000000..96f21cea5 --- /dev/null +++ b/docs/EventEvent.md @@ -0,0 +1,10 @@ +# EventEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | Message for test event | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventgroupDefinitions.md b/docs/EventEventgroupDefinitions.md new file mode 100644 index 000000000..2e4918761 --- /dev/null +++ b/docs/EventEventgroupDefinitions.md @@ -0,0 +1,10 @@ +# EventEventgroupDefinitions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventgroup_definitions** | [**list[EventEventgroupDefinitionsEventgroupDefinition]**](EventEventgroupDefinitionsEventgroupDefinition.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventgroupDefinitionsEventgroupDefinition.md b/docs/EventEventgroupDefinitionsEventgroupDefinition.md new file mode 100644 index 000000000..d6763c9f0 --- /dev/null +++ b/docs/EventEventgroupDefinitionsEventgroupDefinition.md @@ -0,0 +1,13 @@ +# EventEventgroupDefinitionsEventgroupDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **int** | ID of eventgroup category. | [optional] +**description** | **str** | Human readable description - may contain value placeholders. | [optional] +**id** | **str** | Unique Identifier. | [optional] +**name** | **str** | Name for eventgroup. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventgroupDefinitionsExtended.md b/docs/EventEventgroupDefinitionsExtended.md new file mode 100644 index 000000000..3695827cd --- /dev/null +++ b/docs/EventEventgroupDefinitionsExtended.md @@ -0,0 +1,12 @@ +# EventEventgroupDefinitionsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventgroup_definitions** | [**list[EventEventgroupDefinitionsEventgroupDefinition]**](EventEventgroupDefinitionsEventgroupDefinition.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventgroupOccurrence.md b/docs/EventEventgroupOccurrence.md new file mode 100644 index 000000000..2dc320814 --- /dev/null +++ b/docs/EventEventgroupOccurrence.md @@ -0,0 +1,11 @@ +# EventEventgroupOccurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore** | **bool** | True if eventgroup is to be ignored | [optional] +**resolved** | **bool** | True if eventgroup is to be resolved | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventgroupOccurrences.md b/docs/EventEventgroupOccurrences.md new file mode 100644 index 000000000..5fae6afac --- /dev/null +++ b/docs/EventEventgroupOccurrences.md @@ -0,0 +1,10 @@ +# EventEventgroupOccurrences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventgroup_occurrences** | [**list[EventEventgroupOccurrencesEventgroupOccurrence]**](EventEventgroupOccurrencesEventgroupOccurrence.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventgroupOccurrencesEventgroupOccurrence.md b/docs/EventEventgroupOccurrencesEventgroupOccurrence.md new file mode 100644 index 000000000..76a768f66 --- /dev/null +++ b/docs/EventEventgroupOccurrencesEventgroupOccurrence.md @@ -0,0 +1,24 @@ +# EventEventgroupOccurrencesEventgroupOccurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**causes** | [**list[ERRORUNKNOWN]**](.md) | List of eventgroup IDs that may be causes of this occurrence. | [optional] +**channels** | **list[str]** | List of channels to which alerts are configured for this eventgroup | [optional] +**event_count** | **int** | Number of events linked to this eventgroup. | [optional] +**eventgroup_instance** | **str** | Unique identifier of eventgroup instance. | [optional] +**id** | **str** | Same as eventgroup_instance. | [optional] +**ignore** | **bool** | True if eventgroup is marked as 'ignore'. | [optional] +**ignore_time** | **int** | Time eventgroup was marked as 'ignore'. | [optional] +**last_event** | **int** | Time the most recent event was added to this eventgroup. | [optional] +**resolve_time** | **int** | When the eventgroup became resolved. | [optional] +**resolved** | **bool** | True if eventgroup is resolved. | [optional] +**resolver** | **str** | 'USER' if the eventgroup was marked resolved via PAPI <event_instance> if eventgroup was marked resolved as a result of an event. | [optional] +**sequence** | **int** | XXX description needed. | [optional] +**severity** | **str** | Event Group severity. | [optional] +**specifier** | [**Empty**](Empty.md) | A collection of parameters defined per eventgroup_id. | [optional] +**time_noticed** | **int** | Time of first event linked to this eventgroup. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventgroupOccurrencesExtended.md b/docs/EventEventgroupOccurrencesExtended.md new file mode 100644 index 000000000..9ad57500e --- /dev/null +++ b/docs/EventEventgroupOccurrencesExtended.md @@ -0,0 +1,12 @@ +# EventEventgroupOccurrencesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventgroup_occurrences** | [**list[EventEventgroupOccurrencesEventgroupOccurrence]**](EventEventgroupOccurrencesEventgroupOccurrence.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventlists.md b/docs/EventEventlists.md new file mode 100644 index 000000000..58503149b --- /dev/null +++ b/docs/EventEventlists.md @@ -0,0 +1,10 @@ +# EventEventlists + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventlist** | [**list[EventEventlistsEventlistItem]**](EventEventlistsEventlistItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventlistsEventlistItem.md b/docs/EventEventlistsEventlistItem.md new file mode 100644 index 000000000..aece6ed05 --- /dev/null +++ b/docs/EventEventlistsEventlistItem.md @@ -0,0 +1,13 @@ +# EventEventlistsEventlistItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**event_count** | **int** | Number of events linked to this eventgroup. | [optional] +**eventgroup_instance** | **str** | Unique identifier of eventgroup instance. | [optional] +**events** | [**list[EventEventlistsEventlistItemEvent]**](EventEventlistsEventlistItemEvent.md) | list of all events linked to this eventgroup in chronological order. | [optional] +**id** | **str** | Same as eventgroup_instance. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventlistsEventlistItemEvent.md b/docs/EventEventlistsEventlistItemEvent.md new file mode 100644 index 000000000..11d01df86 --- /dev/null +++ b/docs/EventEventlistsEventlistItemEvent.md @@ -0,0 +1,18 @@ +# EventEventlistsEventlistItemEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devid** | **int** | The lnn of the node if it is still part of the cluster otherwise None. | [optional] +**ended** | **float** | Time event was ended (eventgroup resolved) | [optional] +**event_id** | **int** | Integer identifier of the event type | [optional] +**id** | **str** | Unique identifier of event occurrence. | [optional] +**message** | **str** | Human readable description | [optional] +**severity** | **str** | Severity of event occurrence. | [optional] +**specifier** | [**Empty**](Empty.md) | A collection of parameters defined per event. | [optional] +**time** | **int** | Time event was detected as UNIX timestamp. | [optional] +**value** | **float** | Value of measurement associated with this event. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventEventlistsExtended.md b/docs/EventEventlistsExtended.md new file mode 100644 index 000000000..ffd1a518d --- /dev/null +++ b/docs/EventEventlistsExtended.md @@ -0,0 +1,12 @@ +# EventEventlistsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eventlists** | [**list[EventEventlistsEventlistItem]**](EventEventlistsEventlistItem.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventSettings.md b/docs/EventSettings.md new file mode 100644 index 000000000..9cdd2f210 --- /dev/null +++ b/docs/EventSettings.md @@ -0,0 +1,13 @@ +# EventSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**heartbeat_interval** | **str** | Interval between heartbeat events. \"daily\", \"weekly\", or \"monthly\". | [optional] +**maintenance** | [**EventSettingsMaintenance**](EventSettingsMaintenance.md) | Specifies start and duration of maintenance period during which no alerts will be sent for new eventgroups. | [optional] +**retention_days** | **int** | Retention period in days | [optional] +**storage_limit** | **int** | Storage limit in megabytes per terabyte of available storage | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventSettingsMaintenance.md b/docs/EventSettingsMaintenance.md new file mode 100644 index 000000000..4f4c99279 --- /dev/null +++ b/docs/EventSettingsMaintenance.md @@ -0,0 +1,11 @@ +# EventSettingsMaintenance + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | **int** | Duration of maintenance period in seconds. | [optional] +**start** | **int** | Start of maintenance period. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FileFilterApi.md b/docs/FileFilterApi.md new file mode 100644 index 000000000..cede3729c --- /dev/null +++ b/docs/FileFilterApi.md @@ -0,0 +1,105 @@ +# isi_sdk.FileFilterApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_file_filter_settings**](FileFilterApi.md#get_file_filter_settings) | **GET** /platform/3/file-filter/settings | +[**update_file_filter_settings**](FileFilterApi.md#update_file_filter_settings) | **PUT** /platform/3/file-filter/settings | + + +# **get_file_filter_settings** +> FileFilterSettings get_file_filter_settings() + + + +View File Filtering settings of an access zone + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FileFilterApi() + +try: + api_response = api_instance.get_file_filter_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling FileFilterApi->get_file_filter_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FileFilterSettings**](FileFilterSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_file_filter_settings** +> update_file_filter_settings(file_filter_settings) + + + +Modify one or more File Filtering settings for an access zone + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FileFilterApi() +file_filter_settings = isi_sdk.FileFilterSettings() # FileFilterSettings | + +try: + api_instance.update_file_filter_settings(file_filter_settings) +except ApiException as e: + print "Exception when calling FileFilterApi->update_file_filter_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file_filter_settings** | [**FileFilterSettings**](FileFilterSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FileFilterSettings.md b/docs/FileFilterSettings.md new file mode 100644 index 000000000..4d5404f0a --- /dev/null +++ b/docs/FileFilterSettings.md @@ -0,0 +1,12 @@ +# FileFilterSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_filter_extensions** | **list[str]** | List of file extensions to be filtered. | [optional] +**file_filter_type** | **str** | Specifies if filter list is for deny or allow. Default is deny. | [optional] +**file_filtering_enabled** | **bool** | Indicates whether file filtering is enabled on this zone. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolApi.md b/docs/FilepoolApi.md new file mode 100644 index 000000000..60f5a8e29 --- /dev/null +++ b/docs/FilepoolApi.md @@ -0,0 +1,454 @@ +# isi_sdk.FilepoolApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_filepool_policy**](FilepoolApi.md#create_filepool_policy) | **POST** /platform/1/filepool/policies | +[**delete_filepool_policy**](FilepoolApi.md#delete_filepool_policy) | **DELETE** /platform/1/filepool/policies/{FilepoolPolicyId} | +[**get_filepool_default_policy**](FilepoolApi.md#get_filepool_default_policy) | **GET** /platform/1/filepool/default-policy | +[**get_filepool_policy**](FilepoolApi.md#get_filepool_policy) | **GET** /platform/1/filepool/policies/{FilepoolPolicyId} | +[**get_filepool_template**](FilepoolApi.md#get_filepool_template) | **GET** /platform/1/filepool/templates/{FilepoolTemplateId} | +[**get_filepool_templates**](FilepoolApi.md#get_filepool_templates) | **GET** /platform/1/filepool/templates | +[**list_filepool_policies**](FilepoolApi.md#list_filepool_policies) | **GET** /platform/1/filepool/policies | +[**update_filepool_default_policy**](FilepoolApi.md#update_filepool_default_policy) | **PUT** /platform/1/filepool/default-policy | +[**update_filepool_policy**](FilepoolApi.md#update_filepool_policy) | **PUT** /platform/1/filepool/policies/{FilepoolPolicyId} | + + +# **create_filepool_policy** +> CreateFilepoolPolicyResponse create_filepool_policy(filepool_policy) + + + +Create a new policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() +filepool_policy = isi_sdk.FilepoolPolicy() # FilepoolPolicy | + +try: + api_response = api_instance.create_filepool_policy(filepool_policy) + pprint(api_response) +except ApiException as e: + print "Exception when calling FilepoolApi->create_filepool_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filepool_policy** | [**FilepoolPolicy**](FilepoolPolicy.md)| | + +### Return type + +[**CreateFilepoolPolicyResponse**](CreateFilepoolPolicyResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_filepool_policy** +> delete_filepool_policy(filepool_policy_id) + + + +Delete file pool policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() +filepool_policy_id = 'filepool_policy_id_example' # str | Delete file pool policy. + +try: + api_instance.delete_filepool_policy(filepool_policy_id) +except ApiException as e: + print "Exception when calling FilepoolApi->delete_filepool_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filepool_policy_id** | **str**| Delete file pool policy. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_filepool_default_policy** +> FilepoolDefaultPolicy get_filepool_default_policy() + + + +List default file pool policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() + +try: + api_response = api_instance.get_filepool_default_policy() + pprint(api_response) +except ApiException as e: + print "Exception when calling FilepoolApi->get_filepool_default_policy: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FilepoolDefaultPolicy**](FilepoolDefaultPolicy.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_filepool_policy** +> FilepoolPolicies get_filepool_policy(filepool_policy_id) + + + +Retrieve file pool policy information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() +filepool_policy_id = 'filepool_policy_id_example' # str | Retrieve file pool policy information. + +try: + api_response = api_instance.get_filepool_policy(filepool_policy_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling FilepoolApi->get_filepool_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filepool_policy_id** | **str**| Retrieve file pool policy information. | + +### Return type + +[**FilepoolPolicies**](FilepoolPolicies.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_filepool_template** +> FilepoolTemplates get_filepool_template(filepool_template_id) + + + +List all templates. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() +filepool_template_id = 'filepool_template_id_example' # str | List all templates. + +try: + api_response = api_instance.get_filepool_template(filepool_template_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling FilepoolApi->get_filepool_template: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filepool_template_id** | **str**| List all templates. | + +### Return type + +[**FilepoolTemplates**](FilepoolTemplates.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_filepool_templates** +> FilepoolTemplates get_filepool_templates() + + + +List all templates. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() + +try: + api_response = api_instance.get_filepool_templates() + pprint(api_response) +except ApiException as e: + print "Exception when calling FilepoolApi->get_filepool_templates: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FilepoolTemplates**](FilepoolTemplates.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_filepool_policies** +> FilepoolPolicies list_filepool_policies() + + + +List all policies. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() + +try: + api_response = api_instance.list_filepool_policies() + pprint(api_response) +except ApiException as e: + print "Exception when calling FilepoolApi->list_filepool_policies: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FilepoolPolicies**](FilepoolPolicies.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_filepool_default_policy** +> update_filepool_default_policy(filepool_default_policy) + + + +Set default file pool policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() +filepool_default_policy = isi_sdk.FilepoolDefaultPolicyExtended() # FilepoolDefaultPolicyExtended | + +try: + api_instance.update_filepool_default_policy(filepool_default_policy) +except ApiException as e: + print "Exception when calling FilepoolApi->update_filepool_default_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filepool_default_policy** | [**FilepoolDefaultPolicyExtended**](FilepoolDefaultPolicyExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_filepool_policy** +> update_filepool_policy(filepool_policy, filepool_policy_id) + + + +Modify file pool policy. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilepoolApi() +filepool_policy = isi_sdk.FilepoolPolicy() # FilepoolPolicy | +filepool_policy_id = 'filepool_policy_id_example' # str | Modify file pool policy. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_filepool_policy(filepool_policy, filepool_policy_id) +except ApiException as e: + print "Exception when calling FilepoolApi->update_filepool_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filepool_policy** | [**FilepoolPolicy**](FilepoolPolicy.md)| | + **filepool_policy_id** | **str**| Modify file pool policy. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FilepoolDefaultPolicy.md b/docs/FilepoolDefaultPolicy.md new file mode 100644 index 000000000..0d3583c5d --- /dev/null +++ b/docs/FilepoolDefaultPolicy.md @@ -0,0 +1,10 @@ +# FilepoolDefaultPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_policy** | [**FilepoolDefaultPolicyDefaultPolicy**](FilepoolDefaultPolicyDefaultPolicy.md) | A default filepool policy object | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolDefaultPolicyDefaultPolicy.md b/docs/FilepoolDefaultPolicyDefaultPolicy.md new file mode 100644 index 000000000..ec19485b2 --- /dev/null +++ b/docs/FilepoolDefaultPolicyDefaultPolicy.md @@ -0,0 +1,10 @@ +# FilepoolDefaultPolicyDefaultPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actions** | [**list[FilepoolDefaultPolicyDefaultPolicyAction]**](FilepoolDefaultPolicyDefaultPolicyAction.md) | A list of actions to be taken for matching files | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolDefaultPolicyDefaultPolicyAction.md b/docs/FilepoolDefaultPolicyDefaultPolicyAction.md new file mode 100644 index 000000000..0f5fe61bf --- /dev/null +++ b/docs/FilepoolDefaultPolicyDefaultPolicyAction.md @@ -0,0 +1,11 @@ +# FilepoolDefaultPolicyDefaultPolicyAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_param** | **str** | Varies according to action_type | +**action_type** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolDefaultPolicyExtended.md b/docs/FilepoolDefaultPolicyExtended.md new file mode 100644 index 000000000..944dcb07a --- /dev/null +++ b/docs/FilepoolDefaultPolicyExtended.md @@ -0,0 +1,10 @@ +# FilepoolDefaultPolicyExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actions** | [**list[FilepoolDefaultPolicyDefaultPolicyAction]**](FilepoolDefaultPolicyDefaultPolicyAction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolPolicies.md b/docs/FilepoolPolicies.md new file mode 100644 index 000000000..c19407269 --- /dev/null +++ b/docs/FilepoolPolicies.md @@ -0,0 +1,12 @@ +# FilepoolPolicies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**list[FilepoolPolicyExtended]**](FilepoolPolicyExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolPolicy.md b/docs/FilepoolPolicy.md new file mode 100644 index 000000000..0c27bac3c --- /dev/null +++ b/docs/FilepoolPolicy.md @@ -0,0 +1,14 @@ +# FilepoolPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actions** | [**list[FilepoolDefaultPolicyDefaultPolicyAction]**](FilepoolDefaultPolicyDefaultPolicyAction.md) | A list of actions to be taken for matching files | [optional] +**apply_order** | **int** | The order in which this policy should be applied (relative to other policies) | [optional] +**description** | **str** | A description for this policy | [optional] +**file_matching_pattern** | [**FilepoolPolicyFileMatchingPattern**](FilepoolPolicyFileMatchingPattern.md) | The file matching rules for this policy | [optional] +**name** | **str** | A unique name for this policy | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolPolicyExtended.md b/docs/FilepoolPolicyExtended.md new file mode 100644 index 000000000..ae6b7b260 --- /dev/null +++ b/docs/FilepoolPolicyExtended.md @@ -0,0 +1,18 @@ +# FilepoolPolicyExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actions** | [**list[FilepoolDefaultPolicyDefaultPolicyAction]**](FilepoolDefaultPolicyDefaultPolicyAction.md) | A list of actions to be taken for matching files | [optional] +**apply_order** | **int** | The order in which this policy should be applied (relative to other policies) | [optional] +**description** | **str** | A description for this policy | [optional] +**file_matching_pattern** | [**FilepoolPolicyFileMatchingPattern**](FilepoolPolicyFileMatchingPattern.md) | The file matching rules for this policy | [optional] +**name** | **str** | A unique name for this policy | [optional] +**birth_cluster_id** | **str** | The guid assigned to the cluster on which the account was created | [optional] +**id** | **int** | A unique identifier for this policy | [optional] +**state** | **str** | Indicates whether this policy is in a good state (\"OK\") or disabled (\"disabled\") | [optional] +**state_details** | **str** | Gives further information to describe the state of this policy | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolPolicyFileMatchingPattern.md b/docs/FilepoolPolicyFileMatchingPattern.md new file mode 100644 index 000000000..4ef45d1b5 --- /dev/null +++ b/docs/FilepoolPolicyFileMatchingPattern.md @@ -0,0 +1,10 @@ +# FilepoolPolicyFileMatchingPattern + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**or_criteria** | [**list[FilepoolPolicyFileMatchingPatternOrCriteriaItem]**](FilepoolPolicyFileMatchingPatternOrCriteriaItem.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolPolicyFileMatchingPatternOrCriteriaItem.md b/docs/FilepoolPolicyFileMatchingPatternOrCriteriaItem.md new file mode 100644 index 000000000..2bc6c818f --- /dev/null +++ b/docs/FilepoolPolicyFileMatchingPatternOrCriteriaItem.md @@ -0,0 +1,10 @@ +# FilepoolPolicyFileMatchingPatternOrCriteriaItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**and_criteria** | [**list[FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem]**](FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md b/docs/FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md new file mode 100644 index 000000000..315f13173 --- /dev/null +++ b/docs/FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md @@ -0,0 +1,18 @@ +# FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute_exists** | **bool** | Indicates whether the existence of an attribute indicates a match (valid only with 'type' = 'custom_attribute') | [optional] +**begins_with** | **bool** | True to match files recursively under the given path. (valid only with 'type' = 'path') | [optional] +**case_sensitive** | **bool** | True to indicate case sensitivity when comparing file attributes (valid only with 'type' = 'name' or 'type' = 'path') | [optional] +**field** | **str** | File attribute field name to be compared in a custom comparison (valid only with 'type' = 'custom_attribute') | [optional] +**operator** | **str** | The comparison operator to use while comparing an attribute with its value | [optional] +**type** | **str** | The file attribute to be compared to a given value | +**units** | **str** | Size unit value. One of 'B','KB','MB','GB','TB','PB','EB' (valid only with 'type' = 'size') | [optional] +**use_relative_time** | **bool** | Whether time units refer to a calendar date and time (e.g., Jun 3, 2009) or a relative duration (e.g., 2 weeks) (valid only with 'type' in {accessed_time, birth_time, changed_time or metadata_changed_time} | [optional] +**value** | **str** | The value to be compared against a file attribute | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolTemplate.md b/docs/FilepoolTemplate.md new file mode 100644 index 000000000..e856f685b --- /dev/null +++ b/docs/FilepoolTemplate.md @@ -0,0 +1,18 @@ +# FilepoolTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actions** | [**list[FilepoolDefaultPolicyDefaultPolicyAction]**](FilepoolDefaultPolicyDefaultPolicyAction.md) | A list of actions to be taken for matching files | [optional] +**apply_order** | **int** | The order in which this policy should be applied (relative to other policies) | [optional] +**birth_cluster_id** | **str** | The guid assigned to the cluster on which the account was created | [optional] +**description** | **str** | A description for this policy | [optional] +**file_matching_pattern** | [**FilepoolPolicyFileMatchingPattern**](FilepoolPolicyFileMatchingPattern.md) | The file matching rules for this policy | [optional] +**id** | **int** | A unique identifier for this policy | [optional] +**name** | **str** | A unique name for this policy | [optional] +**state** | **str** | Indicates whether this policy is in a good state (\"OK\") or disabled (\"disabled\") | [optional] +**state_details** | **str** | Gives further information to describe the state of this policy | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilepoolTemplates.md b/docs/FilepoolTemplates.md new file mode 100644 index 000000000..248b401a6 --- /dev/null +++ b/docs/FilepoolTemplates.md @@ -0,0 +1,12 @@ +# FilepoolTemplates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**templates** | [**list[FilepoolTemplate]**](FilepoolTemplate.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilesystemApi.md b/docs/FilesystemApi.md new file mode 100644 index 000000000..a0aa49fc7 --- /dev/null +++ b/docs/FilesystemApi.md @@ -0,0 +1,105 @@ +# isi_sdk.FilesystemApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_settings_access_time**](FilesystemApi.md#get_settings_access_time) | **GET** /platform/1/filesystem/settings/access-time | +[**update_settings_access_time**](FilesystemApi.md#update_settings_access_time) | **PUT** /platform/1/filesystem/settings/access-time | + + +# **get_settings_access_time** +> SettingsAccessTime get_settings_access_time() + + + +Retrieve settings for access time. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilesystemApi() + +try: + api_response = api_instance.get_settings_access_time() + pprint(api_response) +except ApiException as e: + print "Exception when calling FilesystemApi->get_settings_access_time: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsAccessTime**](SettingsAccessTime.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_access_time** +> update_settings_access_time(settings_access_time) + + + +Set settings for access time. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FilesystemApi() +settings_access_time = isi_sdk.SettingsAccessTimeExtended() # SettingsAccessTimeExtended | + +try: + api_instance.update_settings_access_time(settings_access_time) +except ApiException as e: + print "Exception when calling FilesystemApi->update_settings_access_time: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_access_time** | [**SettingsAccessTimeExtended**](SettingsAccessTimeExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FsaApi.md b/docs/FsaApi.md new file mode 100644 index 000000000..3ca496e9e --- /dev/null +++ b/docs/FsaApi.md @@ -0,0 +1,351 @@ +# isi_sdk.FsaApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_fsa_result**](FsaApi.md#delete_fsa_result) | **DELETE** /platform/3/fsa/results/{FsaResultId} | +[**delete_fsa_settings**](FsaApi.md#delete_fsa_settings) | **DELETE** /platform/1/fsa/settings | +[**get_fsa_result**](FsaApi.md#get_fsa_result) | **GET** /platform/3/fsa/results/{FsaResultId} | +[**get_fsa_results**](FsaApi.md#get_fsa_results) | **GET** /platform/3/fsa/results | +[**get_fsa_settings**](FsaApi.md#get_fsa_settings) | **GET** /platform/1/fsa/settings | +[**update_fsa_result**](FsaApi.md#update_fsa_result) | **PUT** /platform/3/fsa/results/{FsaResultId} | +[**update_fsa_settings**](FsaApi.md#update_fsa_settings) | **PUT** /platform/1/fsa/settings | + + +# **delete_fsa_result** +> delete_fsa_result(fsa_result_id) + + + +Delete the result set. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaApi() +fsa_result_id = 'fsa_result_id_example' # str | Delete the result set. + +try: + api_instance.delete_fsa_result(fsa_result_id) +except ApiException as e: + print "Exception when calling FsaApi->delete_fsa_result: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fsa_result_id** | **str**| Delete the result set. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_fsa_settings** +> delete_fsa_settings() + + + +Revert all settings to their defaults. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaApi() + +try: + api_instance.delete_fsa_settings() +except ApiException as e: + print "Exception when calling FsaApi->delete_fsa_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_fsa_result** +> FsaResults get_fsa_result(fsa_result_id) + + + +Retrieve result set information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaApi() +fsa_result_id = 'fsa_result_id_example' # str | Retrieve result set information. + +try: + api_response = api_instance.get_fsa_result(fsa_result_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaApi->get_fsa_result: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fsa_result_id** | **str**| Retrieve result set information. | + +### Return type + +[**FsaResults**](FsaResults.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_fsa_results** +> FsaResultsExtended get_fsa_results() + + + +List all results. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaApi() + +try: + api_response = api_instance.get_fsa_results() + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaApi->get_fsa_results: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FsaResultsExtended**](FsaResultsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_fsa_settings** +> FsaSettings get_fsa_settings() + + + +List all settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaApi() + +try: + api_response = api_instance.get_fsa_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaApi->get_fsa_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FsaSettings**](FsaSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_fsa_result** +> update_fsa_result(fsa_result, fsa_result_id) + + + +Modify result set. Only the pinned property can be changed at this time. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaApi() +fsa_result = isi_sdk.FsaResult() # FsaResult | +fsa_result_id = 'fsa_result_id_example' # str | Modify result set. Only the pinned property can be changed at this time. + +try: + api_instance.update_fsa_result(fsa_result, fsa_result_id) +except ApiException as e: + print "Exception when calling FsaApi->update_fsa_result: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fsa_result** | [**FsaResult**](FsaResult.md)| | + **fsa_result_id** | **str**| Modify result set. Only the pinned property can be changed at this time. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_fsa_settings** +> update_fsa_settings(fsa_settings) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaApi() +fsa_settings = isi_sdk.FsaSettingsSettings() # FsaSettingsSettings | + +try: + api_instance.update_fsa_settings(fsa_settings) +except ApiException as e: + print "Exception when calling FsaApi->update_fsa_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fsa_settings** | [**FsaSettingsSettings**](FsaSettingsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FsaResult.md b/docs/FsaResult.md new file mode 100644 index 000000000..bc6149a32 --- /dev/null +++ b/docs/FsaResult.md @@ -0,0 +1,10 @@ +# FsaResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pinned** | **bool** | True if the result is pinned to prevent automatic removal. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FsaResultExtended.md b/docs/FsaResultExtended.md new file mode 100644 index 000000000..7a2b44c64 --- /dev/null +++ b/docs/FsaResultExtended.md @@ -0,0 +1,20 @@ +# FsaResultExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pinned** | **bool** | True if the result is pinned to prevent automatic removal. | +**begin_time** | **int** | Unix Epoch time of start of results collection job. | +**content_path** | **str** | Path to results database. | +**delete_link** | **str** | Resource to call with DELETE to remove results.. | +**end_time** | **int** | Unix Epoch time of end of results collection job. | +**fsa_state** | **str** | State of the result set. | +**id** | **int** | The system generated result set ID. | +**job_state** | **list[str]** | State information about the FSA Job. | +**properties_link** | **str** | Resource to call to get result properties. | +**size** | **int** | Size of the result set database in bytes. | +**version** | **int** | FSA version used to create result set. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FsaResults.md b/docs/FsaResults.md new file mode 100644 index 000000000..c58380271 --- /dev/null +++ b/docs/FsaResults.md @@ -0,0 +1,10 @@ +# FsaResults + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**list[FsaResultExtended]**](FsaResultExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FsaResultsApi.md b/docs/FsaResultsApi.md new file mode 100644 index 000000000..cad2d325c --- /dev/null +++ b/docs/FsaResultsApi.md @@ -0,0 +1,362 @@ +# isi_sdk.FsaResultsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_result_histogram**](FsaResultsApi.md#get_result_histogram) | **GET** /platform/3/fsa/results/{Id}/histogram | +[**get_result_histogram_stat**](FsaResultsApi.md#get_result_histogram_stat) | **GET** /platform/3/fsa/results/{Id}/histogram/{ResultHistogramStat} | +[**get_result_top_dir**](FsaResultsApi.md#get_result_top_dir) | **GET** /platform/3/fsa/results/{Id}/top-dirs/{ResultTopDirId} | +[**get_result_top_dirs**](FsaResultsApi.md#get_result_top_dirs) | **GET** /platform/3/fsa/results/{Id}/top-dirs | +[**get_result_top_file**](FsaResultsApi.md#get_result_top_file) | **GET** /platform/3/fsa/results/{Id}/top-files/{ResultTopFileId} | +[**get_result_top_files**](FsaResultsApi.md#get_result_top_files) | **GET** /platform/3/fsa/results/{Id}/top-files | + + +# **get_result_histogram** +> ResultHistogram get_result_histogram(id) + + + +This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaResultsApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_result_histogram(id) + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaResultsApi->get_result_histogram: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**ResultHistogram**](ResultHistogram.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_result_histogram_stat** +> ResultHistogram get_result_histogram_stat(result_histogram_stat, id, directory_filter=directory_filter, attribute_filter=attribute_filter, node_pool_filter=node_pool_filter, disk_pool_filter=disk_pool_filter, tier_filter=tier_filter, comp_report=comp_report, log_size_filter=log_size_filter, phys_size_filter=phys_size_filter, path_ext_filter=path_ext_filter, ctime_filter=ctime_filter, atime_filter=atime_filter) + + + +This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaResultsApi() +result_histogram_stat = 'result_histogram_stat_example' # str | This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. +id = 'id_example' # str | +directory_filter = 'directory_filter_example' # str | Filter according to a specific directory, which includes all of its subdirectories. (optional) +attribute_filter = 'attribute_filter_example' # str | Filter according to the name of a file user attribute. (optional) +node_pool_filter = 'node_pool_filter_example' # str | Filter according to the name of a node pool, which is a set of disk pools that belong to nodes of the same equivalence class. (optional) +disk_pool_filter = 'disk_pool_filter_example' # str | Filter according to the name of a disk pool, which is a set of drives that represent an independent failure domain. (optional) +tier_filter = 'tier_filter_example' # str | Filter according to the name of a storage tier, which is a user-created set of node pools. (optional) +comp_report = 56 # int | Result set identifier for comparison of database results. (optional) +log_size_filter = 56 # int | Filter according to file logical size, where the filter value specifies the lower bound in bytes to a set of files that have been grouped by logical size. The list of valid log_size filter values may be found by performing a histogram breakout by log_size and viewing the resulting key values. (optional) +phys_size_filter = 56 # int | Filter according to file physical size, where the filter value specifies the lower bound in bytes to a set of files that have been grouped by physical size. The list of valid phys_size filter values may be found by performing a histogram breakout by phys_size and viewing the resulting key values. (optional) +path_ext_filter = 'path_ext_filter_example' # str | Filter according to the name of a single file extension. (optional) +ctime_filter = 56 # int | Filter according to file modified time, where the filter value specifies a negative number of seconds representing a time before the begin time of the report. The list of valid ctime filter values may be found by performing a histogram breakout by ctime and viewing the resulting key values. (optional) +atime_filter = 56 # int | Filter according to file accessed time, where the filter value specifies a negative number of seconds representing a time before the begin time of the report. The list of valid atime filter values may be found by performing a histogram breakout by atime and viewing the resulting key values. (optional) + +try: + api_response = api_instance.get_result_histogram_stat(result_histogram_stat, id, directory_filter=directory_filter, attribute_filter=attribute_filter, node_pool_filter=node_pool_filter, disk_pool_filter=disk_pool_filter, tier_filter=tier_filter, comp_report=comp_report, log_size_filter=log_size_filter, phys_size_filter=phys_size_filter, path_ext_filter=path_ext_filter, ctime_filter=ctime_filter, atime_filter=atime_filter) + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaResultsApi->get_result_histogram_stat: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **result_histogram_stat** | **str**| This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. | + **id** | **str**| | + **directory_filter** | **str**| Filter according to a specific directory, which includes all of its subdirectories. | [optional] + **attribute_filter** | **str**| Filter according to the name of a file user attribute. | [optional] + **node_pool_filter** | **str**| Filter according to the name of a node pool, which is a set of disk pools that belong to nodes of the same equivalence class. | [optional] + **disk_pool_filter** | **str**| Filter according to the name of a disk pool, which is a set of drives that represent an independent failure domain. | [optional] + **tier_filter** | **str**| Filter according to the name of a storage tier, which is a user-created set of node pools. | [optional] + **comp_report** | **int**| Result set identifier for comparison of database results. | [optional] + **log_size_filter** | **int**| Filter according to file logical size, where the filter value specifies the lower bound in bytes to a set of files that have been grouped by logical size. The list of valid log_size filter values may be found by performing a histogram breakout by log_size and viewing the resulting key values. | [optional] + **phys_size_filter** | **int**| Filter according to file physical size, where the filter value specifies the lower bound in bytes to a set of files that have been grouped by physical size. The list of valid phys_size filter values may be found by performing a histogram breakout by phys_size and viewing the resulting key values. | [optional] + **path_ext_filter** | **str**| Filter according to the name of a single file extension. | [optional] + **ctime_filter** | **int**| Filter according to file modified time, where the filter value specifies a negative number of seconds representing a time before the begin time of the report. The list of valid ctime filter values may be found by performing a histogram breakout by ctime and viewing the resulting key values. | [optional] + **atime_filter** | **int**| Filter according to file accessed time, where the filter value specifies a negative number of seconds representing a time before the begin time of the report. The list of valid atime filter values may be found by performing a histogram breakout by atime and viewing the resulting key values. | [optional] + +### Return type + +[**ResultHistogram**](ResultHistogram.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_result_top_dir** +> ResultTopDirs get_result_top_dir(result_top_dir_id, id, sort=sort, start=start, limit=limit, comp_report=comp_report, dir=dir) + + + +This resource retrieves the top directories. ID in the resource path is the result set ID. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaResultsApi() +result_top_dir_id = 'result_top_dir_id_example' # str | This resource retrieves the top directories. ID in the resource path is the result set ID. +id = 'id_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +start = 56 # int | Starting index for results. Default value of 0. (optional) +limit = 56 # int | Number of results from start index. Default value of 1000. (optional) +comp_report = 56 # int | Result set identifier for comparison of database results. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_result_top_dir(result_top_dir_id, id, sort=sort, start=start, limit=limit, comp_report=comp_report, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaResultsApi->get_result_top_dir: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **result_top_dir_id** | **str**| This resource retrieves the top directories. ID in the resource path is the result set ID. | + **id** | **str**| | + **sort** | **str**| The field that will be used for sorting. | [optional] + **start** | **int**| Starting index for results. Default value of 0. | [optional] + **limit** | **int**| Number of results from start index. Default value of 1000. | [optional] + **comp_report** | **int**| Result set identifier for comparison of database results. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**ResultTopDirs**](ResultTopDirs.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_result_top_dirs** +> ResultTopDirs get_result_top_dirs(id) + + + +This resource retrieves the top directories. ID in the resource path is the result set ID. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaResultsApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_result_top_dirs(id) + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaResultsApi->get_result_top_dirs: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**ResultTopDirs**](ResultTopDirs.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_result_top_file** +> ResultTopFiles get_result_top_file(result_top_file_id, id, sort=sort, start=start, limit=limit, comp_report=comp_report, dir=dir) + + + +This resource retrieves the top files. ID in the resource path is the result set ID. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaResultsApi() +result_top_file_id = 'result_top_file_id_example' # str | This resource retrieves the top files. ID in the resource path is the result set ID. +id = 'id_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +start = 56 # int | Starting index for results. Default value of 0. (optional) +limit = 56 # int | Number of results from start index. Default value of 1000. (optional) +comp_report = 56 # int | Result set identifier for comparison of database results. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_result_top_file(result_top_file_id, id, sort=sort, start=start, limit=limit, comp_report=comp_report, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaResultsApi->get_result_top_file: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **result_top_file_id** | **str**| This resource retrieves the top files. ID in the resource path is the result set ID. | + **id** | **str**| | + **sort** | **str**| The field that will be used for sorting. | [optional] + **start** | **int**| Starting index for results. Default value of 0. | [optional] + **limit** | **int**| Number of results from start index. Default value of 1000. | [optional] + **comp_report** | **int**| Result set identifier for comparison of database results. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**ResultTopFiles**](ResultTopFiles.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_result_top_files** +> ResultTopFiles get_result_top_files(id) + + + +This resource retrieves the top files. ID in the resource path is the result set ID. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.FsaResultsApi() +id = 'id_example' # str | + +try: + api_response = api_instance.get_result_top_files(id) + pprint(api_response) +except ApiException as e: + print "Exception when calling FsaResultsApi->get_result_top_files: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**ResultTopFiles**](ResultTopFiles.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FsaResultsExtended.md b/docs/FsaResultsExtended.md new file mode 100644 index 000000000..70135be49 --- /dev/null +++ b/docs/FsaResultsExtended.md @@ -0,0 +1,11 @@ +# FsaResultsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**list[FsaResultExtended]**](FsaResultExtended.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FsaSettings.md b/docs/FsaSettings.md new file mode 100644 index 000000000..f08c1cf80 --- /dev/null +++ b/docs/FsaSettings.md @@ -0,0 +1,10 @@ +# FsaSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**FsaSettingsSettings**](FsaSettingsSettings.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FsaSettingsSettings.md b/docs/FsaSettingsSettings.md new file mode 100644 index 000000000..7484eaf29 --- /dev/null +++ b/docs/FsaSettingsSettings.md @@ -0,0 +1,16 @@ +# FsaSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_template** | **str** | Name of question template to use for new FSA jobs. | [optional] +**disk_usage_depth** | **int** | Maximum directory depth used for disk_usage question if not specified in the question. | [optional] +**max_age** | **int** | Maximum age of non-pinned results in seconds. | [optional] +**max_count** | **int** | Maximum number of non-pinned result sets to keep. | [optional] +**squash_depth** | **int** | Squash depth to use for squash binning questions if not specified in the question. | [optional] +**top_n_max** | **int** | Maximum number of items in a Top-N question result if not specified in the question. | [optional] +**use_snapshot** | **bool** | If true, use a snapshot for consistency, otherwise analyze head. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FtpSettings.md b/docs/FtpSettings.md new file mode 100644 index 000000000..bef0c9ad6 --- /dev/null +++ b/docs/FtpSettings.md @@ -0,0 +1,10 @@ +# FtpSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**FtpSettingsSettings**](FtpSettingsSettings.md) | FTP settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FtpSettingsSettings.md b/docs/FtpSettingsSettings.md new file mode 100644 index 000000000..90283d832 --- /dev/null +++ b/docs/FtpSettingsSettings.md @@ -0,0 +1,38 @@ +# FtpSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accept_timeout** | **int** | The timeout, in seconds, for a remote client to establish a PASV style data connection. | [optional] +**allow_anon_access** | **bool** | Controls whether anonymous logins are permitted or not. | [optional] +**allow_anon_upload** | **bool** | Controls whether anonymous users will be permitted to upload files. | [optional] +**allow_dirlists** | **bool** | If set to false, all directory list commands will return a permission denied error. | [optional] +**allow_downloads** | **bool** | If set to false, all downloads requests will return a permission denied error. | [optional] +**allow_local_access** | **bool** | Controls whether local logins are permitted or not. | [optional] +**allow_writes** | **bool** | This controls whether any FTP commands which change the filesystem are allowed or not. | [optional] +**always_chdir_homedir** | **bool** | This controls whether FTP will always initially change directories to the home directory of the user, regardless of whether it is chroot-ing. | [optional] +**anon_chown_username** | **str** | This is the name of the user who is given ownership of anonymously uploaded files. | [optional] +**anon_password_list** | **list[str]** | A list of passwords for anonymous users. | [optional] +**anon_root_path** | **str** | This option represents a directory in /ifs which vsftpd will try to change into after an anonymous login. | [optional] +**anon_umask** | **int** | The value that the umask for file creation is set to for anonymous users. | [optional] +**ascii_mode** | **str** | Controls whether ascii mode data transfers are honored for various types of requests. | [optional] +**chroot_exception_list** | **list[str]** | A list of users that are not chrooted when logging in. | [optional] +**chroot_local_mode** | **str** | If set to 'all', all local users will be (by default) placed in a chroot() jail in their home directory after login. If set to 'all-with-exceptions', all local users except those listed in the chroot exception list (isi ftp chroot-exception-list) will be placed in a chroot() jail in their home directory after login. If set to 'none', no local users will be chrooted by default. If set to 'none-with-exceptions', only the local users listed in the chroot exception list (isi ftp chroot-exception-list) will be place in a chroot() jail in their home directory after login. | [optional] +**connect_timeout** | **int** | The timeout, in seconds, for a remote client to respond to our PORT style data connection. | [optional] +**data_timeout** | **int** | The timeout, in seconds, which is roughly the maximum time we permit data transfers to stall for with no progress. If the timeout triggers, the remote client is kicked off. | [optional] +**denied_user_list** | **list[str]** | A list of uses that will be denied access. | [optional] +**dirlist_localtime** | **bool** | If enabled, display directory listings with the time in your local time zone. The default is to display GMT. The times returned by the MDTM FTP command are also affected by this option. | [optional] +**dirlist_names** | **str** | When set to 'hide', all user and group information in directory listings will be displayed as 'ftp'. When set to 'textual', textual names are shown in the user and group fields of directory listings. When set to 'numeric', numeric IDs are show in the user and group fields of directory listings. | [optional] +**file_create_perm** | **int** | The permissions with which uploaded files are created. Umasks are applied on top of this value. | [optional] +**limit_anon_passwords** | **bool** | This field determines whether the anon_password_list is used. | [optional] +**local_root_path** | **str** | This option represents a directory in /ifs which vsftpd will try to change into after a local login. | [optional] +**local_umask** | **int** | The value that the umask for file creation is set to for local users. | [optional] +**server_to_server** | **bool** | If enabled, allow server-to-server (FXP) transfers. | [optional] +**service** | **bool** | This field controls whether the FTP daemon is running. | [optional] +**session_support** | **bool** | If enabled, maintain login sessions for each user through Pluggable Authentication Modules (PAM). Disabling this option prevents the ability to do automatic home directory creation if that functionality were otherwise available. | [optional] +**session_timeout** | **int** | The timeout, in seconds, which is roughly the maximum time we permit data transfers to stall for with no progress. If the timeout triggers, the remote client is kicked off. | [optional] +**user_config_dir** | **str** | Specifies the directory where per-user config overrides can be found. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupMember.md b/docs/GroupMember.md new file mode 100644 index 000000000..197ae7c5f --- /dev/null +++ b/docs/GroupMember.md @@ -0,0 +1,12 @@ +# GroupMember + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'. | [optional] +**name** | **str** | Specifies the persona name, which must be combined with a type. | [optional] +**type** | **str** | Specifies the type of persona, which must be combined with a name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupMembers.md b/docs/GroupMembers.md new file mode 100644 index 000000000..040bd3ea4 --- /dev/null +++ b/docs/GroupMembers.md @@ -0,0 +1,11 @@ +# GroupMembers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**members** | [**list[GroupMember]**](GroupMember.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupnetSubnet.md b/docs/GroupnetSubnet.md new file mode 100644 index 000000000..4813bba44 --- /dev/null +++ b/docs/GroupnetSubnet.md @@ -0,0 +1,19 @@ +# GroupnetSubnet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description of the subnet. | [optional] +**dsr_addrs** | **list[str]** | List of Direct Server Return addresses. | [optional] +**gateway** | **str** | Gateway IP address. | [optional] +**gateway_priority** | **int** | Gateway priority. | [optional] +**mtu** | **int** | MTU of the subnet. | [optional] +**name** | **str** | The name of the subnet. | [optional] +**prefixlen** | **int** | Subnet Prefix Length. | [optional] +**sc_service_addr** | **str** | The address that SmartConnect listens for DNS requests. | [optional] +**vlan_enabled** | **bool** | VLAN tagging enabled or disabled. | [optional] +**vlan_id** | **int** | VLAN ID for all interfaces in the subnet. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupnetSubnetCreateParams.md b/docs/GroupnetSubnetCreateParams.md new file mode 100644 index 000000000..9ad8f931f --- /dev/null +++ b/docs/GroupnetSubnetCreateParams.md @@ -0,0 +1,20 @@ +# GroupnetSubnetCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description of the subnet. | [optional] +**dsr_addrs** | **list[str]** | List of Direct Server Return addresses. | [optional] +**gateway** | **str** | Gateway IP address. | [optional] +**gateway_priority** | **int** | Gateway priority. | [optional] +**mtu** | **int** | MTU of the subnet. | [optional] +**name** | **str** | The name of the subnet. | [optional] +**prefixlen** | **int** | Subnet Prefix Length. | [optional] +**sc_service_addr** | **str** | The address that SmartConnect listens for DNS requests. | [optional] +**vlan_enabled** | **bool** | VLAN tagging enabled or disabled. | [optional] +**vlan_id** | **int** | VLAN ID for all interfaces in the subnet. | [optional] +**addr_family** | **str** | IP address format. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupnetSubnetExtended.md b/docs/GroupnetSubnetExtended.md new file mode 100644 index 000000000..4a47c1f0c --- /dev/null +++ b/docs/GroupnetSubnetExtended.md @@ -0,0 +1,24 @@ +# GroupnetSubnetExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description of the subnet. | [optional] +**dsr_addrs** | **list[str]** | List of Direct Server Return addresses. | [optional] +**gateway** | **str** | Gateway IP address. | [optional] +**gateway_priority** | **int** | Gateway priority. | [optional] +**mtu** | **int** | MTU of the subnet. | [optional] +**name** | **str** | The name of the subnet. | [optional] +**prefixlen** | **int** | Subnet Prefix Length. | [optional] +**sc_service_addr** | **str** | The address that SmartConnect listens for DNS requests. | [optional] +**vlan_enabled** | **bool** | VLAN tagging enabled or disabled. | [optional] +**vlan_id** | **int** | VLAN ID for all interfaces in the subnet. | [optional] +**addr_family** | **str** | IP address format. | [optional] +**base_addr** | **str** | The base IP address. | [optional] +**groupnet** | **str** | Name of the groupnet this subnet belongs to. | [optional] +**id** | **str** | Unique Subnet ID. | [optional] +**pools** | **list[str]** | Name of the pools in the subnet. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupnetSubnets.md b/docs/GroupnetSubnets.md new file mode 100644 index 000000000..d77f83ea8 --- /dev/null +++ b/docs/GroupnetSubnets.md @@ -0,0 +1,10 @@ +# GroupnetSubnets + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subnets** | [**list[GroupnetSubnetExtended]**](GroupnetSubnetExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupnetSubnetsExtended.md b/docs/GroupnetSubnetsExtended.md new file mode 100644 index 000000000..5f89d7369 --- /dev/null +++ b/docs/GroupnetSubnetsExtended.md @@ -0,0 +1,12 @@ +# GroupnetSubnetsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subnets** | [**list[GroupnetSubnetExtended]**](GroupnetSubnetExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardeningApi.md b/docs/HardeningApi.md new file mode 100644 index 000000000..a5dfbe57a --- /dev/null +++ b/docs/HardeningApi.md @@ -0,0 +1,259 @@ +# isi_sdk.HardeningApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_hardening_apply_item**](HardeningApi.md#create_hardening_apply_item) | **POST** /platform/3/hardening/apply | +[**create_hardening_resolve_item**](HardeningApi.md#create_hardening_resolve_item) | **POST** /platform/3/hardening/resolve | +[**create_hardening_revert_item**](HardeningApi.md#create_hardening_revert_item) | **POST** /platform/3/hardening/revert | +[**get_hardening_state**](HardeningApi.md#get_hardening_state) | **GET** /platform/3/hardening/state | +[**get_hardening_status**](HardeningApi.md#get_hardening_status) | **GET** /platform/3/hardening/status | + + +# **create_hardening_apply_item** +> CreateHardeningApplyItemResponse create_hardening_apply_item(hardening_apply_item) + + + +Apply hardening on the cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardeningApi() +hardening_apply_item = isi_sdk.HardeningApplyItem() # HardeningApplyItem | + +try: + api_response = api_instance.create_hardening_apply_item(hardening_apply_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling HardeningApi->create_hardening_apply_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hardening_apply_item** | [**HardeningApplyItem**](HardeningApplyItem.md)| | + +### Return type + +[**CreateHardeningApplyItemResponse**](CreateHardeningApplyItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_hardening_resolve_item** +> CreateHardeningResolveItemResponse create_hardening_resolve_item(hardening_resolve_item, accept=accept) + + + +Resolve issues related to hardening, found in current cluster configuration. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardeningApi() +hardening_resolve_item = isi_sdk.HardeningResolveItem() # HardeningResolveItem | +accept = true # bool | If true, execution proceeds to resolve all issues. If false, executrion aborts. This is a required argument. (optional) + +try: + api_response = api_instance.create_hardening_resolve_item(hardening_resolve_item, accept=accept) + pprint(api_response) +except ApiException as e: + print "Exception when calling HardeningApi->create_hardening_resolve_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hardening_resolve_item** | [**HardeningResolveItem**](HardeningResolveItem.md)| | + **accept** | **bool**| If true, execution proceeds to resolve all issues. If false, executrion aborts. This is a required argument. | [optional] + +### Return type + +[**CreateHardeningResolveItemResponse**](CreateHardeningResolveItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_hardening_revert_item** +> CreateHardeningRevertItemResponse create_hardening_revert_item(hardening_revert_item, force=force) + + + +Revert hardening on the cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardeningApi() +hardening_revert_item = isi_sdk.Empty() # Empty | +force = true # bool | If specified, revert operation continues even in case of a failure. Default is false in which case revert stops at the first failure. (optional) + +try: + api_response = api_instance.create_hardening_revert_item(hardening_revert_item, force=force) + pprint(api_response) +except ApiException as e: + print "Exception when calling HardeningApi->create_hardening_revert_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hardening_revert_item** | [**Empty**](Empty.md)| | + **force** | **bool**| If specified, revert operation continues even in case of a failure. Default is false in which case revert stops at the first failure. | [optional] + +### Return type + +[**CreateHardeningRevertItemResponse**](CreateHardeningRevertItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hardening_state** +> HardeningState get_hardening_state() + + + +Get the state of the current hardening operation, if one is happening. Note that this is different from the /status resource, which returns the overall hardening status of the cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardeningApi() + +try: + api_response = api_instance.get_hardening_state() + pprint(api_response) +except ApiException as e: + print "Exception when calling HardeningApi->get_hardening_state: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HardeningState**](HardeningState.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hardening_status** +> HardeningStatus get_hardening_status() + + + +Get a message indicating whether or not the cluster is hardened. Note that this is different from the /state resource, which returns the state of a specific hardening operation (apply or revert). + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardeningApi() + +try: + api_response = api_instance.get_hardening_status() + pprint(api_response) +except ApiException as e: + print "Exception when calling HardeningApi->get_hardening_status: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HardeningStatus**](HardeningStatus.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/HardeningApplyItem.md b/docs/HardeningApplyItem.md new file mode 100644 index 000000000..dca0c036f --- /dev/null +++ b/docs/HardeningApplyItem.md @@ -0,0 +1,11 @@ +# HardeningApplyItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | **str** | Hardening profile. | [optional] +**report** | **bool** | Option to only generate and display a report on current cluster configuration with respect to the expected configuation required to apply hardening. If his option is set to true, hardening is not applied after the report is displayed. By default, this option is false. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardeningResolveItem.md b/docs/HardeningResolveItem.md new file mode 100644 index 000000000..0551a8662 --- /dev/null +++ b/docs/HardeningResolveItem.md @@ -0,0 +1,10 @@ +# HardeningResolveItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | **str** | Hardening profile. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardeningState.md b/docs/HardeningState.md new file mode 100644 index 000000000..dc40b7953 --- /dev/null +++ b/docs/HardeningState.md @@ -0,0 +1,10 @@ +# HardeningState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | [**HardeningStateState**](HardeningStateState.md) | The state of hardening operation on the cluster. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardeningStateState.md b/docs/HardeningStateState.md new file mode 100644 index 000000000..970737f74 --- /dev/null +++ b/docs/HardeningStateState.md @@ -0,0 +1,12 @@ +# HardeningStateState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**issues_file** | **str** | Full path name of issues file. This file contains all issues found when the cluster configuration is checked against expected configuration. | [optional] +**message** | **str** | This contains more information and details about the operation state. | [optional] +**state** | **str** | The state of the hardening operation. In case there is no operation currently going on, this will display the last state of operation. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardeningStatus.md b/docs/HardeningStatus.md new file mode 100644 index 000000000..a4ff33590 --- /dev/null +++ b/docs/HardeningStatus.md @@ -0,0 +1,10 @@ +# HardeningStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**HardeningStatusStatus**](HardeningStatusStatus.md) | Hardening Status of the cluster. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardeningStatusStatus.md b/docs/HardeningStatusStatus.md new file mode 100644 index 000000000..80b658686 --- /dev/null +++ b/docs/HardeningStatusStatus.md @@ -0,0 +1,10 @@ +# HardeningStatusStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_text** | **str** | Status text containing cluster-level and nodewise hardening status. Also includes hardening profile if hardening is enabled on at least one node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardwareApi.md b/docs/HardwareApi.md new file mode 100644 index 000000000..7193ae883 --- /dev/null +++ b/docs/HardwareApi.md @@ -0,0 +1,311 @@ +# isi_sdk.HardwareApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_hardware_tape_name**](HardwareApi.md#create_hardware_tape_name) | **POST** /platform/3/hardware/tape/{HardwareTapeName} | +[**delete_hardware_tape_name**](HardwareApi.md#delete_hardware_tape_name) | **DELETE** /platform/3/hardware/tape/{HardwareTapeName} | +[**get_hardware_fcport**](HardwareApi.md#get_hardware_fcport) | **GET** /platform/3/hardware/fcports/{HardwareFcportId} | +[**get_hardware_tapes**](HardwareApi.md#get_hardware_tapes) | **GET** /platform/3/hardware/tapes | +[**update_hardware_fcport**](HardwareApi.md#update_hardware_fcport) | **PUT** /platform/3/hardware/fcports/{HardwareFcportId} | +[**update_hardware_tape_name**](HardwareApi.md#update_hardware_tape_name) | **PUT** /platform/3/hardware/tape/{HardwareTapeName} | + + +# **create_hardware_tape_name** +> Empty create_hardware_tape_name(hardware_tape_name) + + + +Tape/Changer devices rescan + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardwareApi() +hardware_tape_name = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_hardware_tape_name(hardware_tape_name) + pprint(api_response) +except ApiException as e: + print "Exception when calling HardwareApi->create_hardware_tape_name: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hardware_tape_name** | [**Empty**](Empty.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_hardware_tape_name** +> delete_hardware_tape_name(hardware_tape_name) + + + +Tape/Changer devices remove + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardwareApi() +hardware_tape_name = 'hardware_tape_name_example' # str | Tape/Changer devices remove + +try: + api_instance.delete_hardware_tape_name(hardware_tape_name) +except ApiException as e: + print "Exception when calling HardwareApi->delete_hardware_tape_name: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hardware_tape_name** | **str**| Tape/Changer devices remove | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hardware_fcport** +> HardwareFcports get_hardware_fcport(hardware_fcport_id) + + + +Get one fibre-channel port + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardwareApi() +hardware_fcport_id = 56 # int | Get one fibre-channel port + +try: + api_response = api_instance.get_hardware_fcport(hardware_fcport_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling HardwareApi->get_hardware_fcport: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hardware_fcport_id** | **int**| Get one fibre-channel port | + +### Return type + +[**HardwareFcports**](HardwareFcports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hardware_tapes** +> HardwareTapes get_hardware_tapes() + + + +Get list Tape and Changer devices + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardwareApi() + +try: + api_response = api_instance.get_hardware_tapes() + pprint(api_response) +except ApiException as e: + print "Exception when calling HardwareApi->get_hardware_tapes: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HardwareTapes**](HardwareTapes.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_hardware_fcport** +> update_hardware_fcport(hardware_fcport, hardware_fcport_id) + + + +Change wwnn, wwpn, state, topology, or rate of a FC port + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardwareApi() +hardware_fcport = isi_sdk.HardwareFcport() # HardwareFcport | +hardware_fcport_id = 56 # int | Change wwnn, wwpn, state, topology, or rate of a FC port + +try: + api_instance.update_hardware_fcport(hardware_fcport, hardware_fcport_id) +except ApiException as e: + print "Exception when calling HardwareApi->update_hardware_fcport: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hardware_fcport** | [**HardwareFcport**](HardwareFcport.md)| | + **hardware_fcport_id** | **int**| Change wwnn, wwpn, state, topology, or rate of a FC port | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_hardware_tape_name** +> update_hardware_tape_name(hardware_tape_name_params, hardware_tape_name) + + + +Tape/Changer device modify + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.HardwareApi() +hardware_tape_name_params = isi_sdk.HardwareTapeNameParams() # HardwareTapeNameParams | +hardware_tape_name = 'hardware_tape_name_example' # str | Tape/Changer device modify + +try: + api_instance.update_hardware_tape_name(hardware_tape_name_params, hardware_tape_name) +except ApiException as e: + print "Exception when calling HardwareApi->update_hardware_tape_name: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hardware_tape_name_params** | [**HardwareTapeNameParams**](HardwareTapeNameParams.md)| | + **hardware_tape_name** | **str**| Tape/Changer device modify | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/HardwareFcport.md b/docs/HardwareFcport.md new file mode 100644 index 000000000..b653a581d --- /dev/null +++ b/docs/HardwareFcport.md @@ -0,0 +1,15 @@ +# HardwareFcport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique display id | [optional] +**rate** | **str** | | [optional] +**state** | **str** | State of the port | [optional] +**topology** | **str** | | [optional] +**wwnn** | **str** | World wide node name of the port | [optional] +**wwpn** | **str** | World wide port name of the port | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardwareFcports.md b/docs/HardwareFcports.md new file mode 100644 index 000000000..e24e4c36d --- /dev/null +++ b/docs/HardwareFcports.md @@ -0,0 +1,16 @@ +# HardwareFcports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique display id | [optional] +**port** | **str** | Port ID | [optional] +**rate** | **str** | | [optional] +**state** | **str** | State of the port | [optional] +**topology** | **str** | | [optional] +**wwnn** | **str** | World wide node name of the port | [optional] +**wwpn** | **str** | World wide port name of the port | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardwareTapeNameParams.md b/docs/HardwareTapeNameParams.md new file mode 100644 index 000000000..30775a51a --- /dev/null +++ b/docs/HardwareTapeNameParams.md @@ -0,0 +1,11 @@ +# HardwareTapeNameParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the device | [optional] +**state** | **str** | Set the device state to close | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardwareTapes.md b/docs/HardwareTapes.md new file mode 100644 index 000000000..4b71e8d6c --- /dev/null +++ b/docs/HardwareTapes.md @@ -0,0 +1,11 @@ +# HardwareTapes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | **str** | Resume string returned by previous query. | [optional] +**total** | **int** | The number of devices | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsLogLevel.md b/docs/HdfsLogLevel.md new file mode 100644 index 000000000..012d11131 --- /dev/null +++ b/docs/HdfsLogLevel.md @@ -0,0 +1,10 @@ +# HdfsLogLevel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | **str** | Setup the HDFS service log level for this node | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsProxyuser.md b/docs/HdfsProxyuser.md new file mode 100644 index 000000000..c1ef47f64 --- /dev/null +++ b/docs/HdfsProxyuser.md @@ -0,0 +1,12 @@ +# HdfsProxyuser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The ID of the role. | +**members** | [**list[GroupMember]**](GroupMember.md) | Users or groups impersonated by proxyuser. | +**name** | **str** | The name of the proxyuser. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsProxyusers.md b/docs/HdfsProxyusers.md new file mode 100644 index 000000000..923a8f2d7 --- /dev/null +++ b/docs/HdfsProxyusers.md @@ -0,0 +1,12 @@ +# HdfsProxyusers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**proxyusers** | [**list[HdfsProxyuser]**](HdfsProxyuser.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsRack.md b/docs/HdfsRack.md new file mode 100644 index 000000000..b3d8ccf31 --- /dev/null +++ b/docs/HdfsRack.md @@ -0,0 +1,12 @@ +# HdfsRack + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_ip_ranges** | **list[str]** | Array of IP ranges. Clients from one of these IP ranges are served by corresponding nodes from ip_pools array. | [optional] +**ip_pools** | **list[str]** | Array of IP pool names to use for serving clients from client_ip_ranges. | [optional] +**name** | **str** | Name of the rack | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsRackExtended.md b/docs/HdfsRackExtended.md new file mode 100644 index 000000000..caf5c38ba --- /dev/null +++ b/docs/HdfsRackExtended.md @@ -0,0 +1,13 @@ +# HdfsRackExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_ip_ranges** | **list[str]** | Array of IP ranges. Clients from one of these IP ranges are served by corresponding nodes from ip_pools array. | [optional] +**ip_pools** | **list[str]** | Array of IP pool names to use for serving clients from client_ip_ranges. | [optional] +**name** | **str** | Name of the rack | [optional] +**id** | **str** | The ID of the rack. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsRacks.md b/docs/HdfsRacks.md new file mode 100644 index 000000000..870e41e85 --- /dev/null +++ b/docs/HdfsRacks.md @@ -0,0 +1,10 @@ +# HdfsRacks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**racks** | [**list[HdfsRackExtended]**](HdfsRackExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsRacksExtended.md b/docs/HdfsRacksExtended.md new file mode 100644 index 000000000..7ff3fadb4 --- /dev/null +++ b/docs/HdfsRacksExtended.md @@ -0,0 +1,12 @@ +# HdfsRacksExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**racks** | [**list[HdfsRackExtended]**](HdfsRackExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsSettings.md b/docs/HdfsSettings.md new file mode 100644 index 000000000..c89560fa0 --- /dev/null +++ b/docs/HdfsSettings.md @@ -0,0 +1,10 @@ +# HdfsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**HdfsSettingsSettings**](HdfsSettingsSettings.md) | This is schema that contains HDFS protocol properties. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HdfsSettingsSettings.md b/docs/HdfsSettingsSettings.md new file mode 100644 index 000000000..0432a7476 --- /dev/null +++ b/docs/HdfsSettingsSettings.md @@ -0,0 +1,18 @@ +# HdfsSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ambari_namenode** | **str** | NameNode of Ambari server | [optional] +**ambari_server** | **str** | Ambari server | [optional] +**authentication_mode** | **str** | Type of authentication for HDFS protocol. | [optional] +**default_block_size** | **int** | Block size (size=2**value) reported by HDFS server. | [optional] +**default_checksum_type** | **str** | Checksum type reported by HDFS server. | [optional] +**odp_version** | **str** | ODP stack repository version number | [optional] +**root_directory** | **str** | HDFS root directory | [optional] +**service** | **bool** | Enable or disable the HDFS service. | [optional] +**webhdfs_enabled** | **bool** | Enable or disable WebHDFS | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HistoryFile.md b/docs/HistoryFile.md new file mode 100644 index 000000000..f5844b8b8 --- /dev/null +++ b/docs/HistoryFile.md @@ -0,0 +1,11 @@ +# HistoryFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statistics** | [**list[HistoryFileStatistic]**](HistoryFileStatistic.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HistoryFileStatistic.md b/docs/HistoryFileStatistic.md new file mode 100644 index 000000000..3c01cb73e --- /dev/null +++ b/docs/HistoryFileStatistic.md @@ -0,0 +1,14 @@ +# HistoryFileStatistic + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocated** | **int** | Nodes allocated for the sync action. | +**id** | **int** | An ID for a single performance report. | +**limit** | **int** | Sync action limit. | +**timestamp** | **int** | Timestamp for the performance report. | +**total** | **int** | Total usage for the performance report. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HttpSettings.md b/docs/HttpSettings.md new file mode 100644 index 000000000..6dab20a58 --- /dev/null +++ b/docs/HttpSettings.md @@ -0,0 +1,10 @@ +# HttpSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**HttpSettingsSettings**](HttpSettingsSettings.md) | This is schema that contains HTTP protocol properties. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HttpSettingsSettings.md b/docs/HttpSettingsSettings.md new file mode 100644 index 000000000..571953244 --- /dev/null +++ b/docs/HttpSettingsSettings.md @@ -0,0 +1,16 @@ +# HttpSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_control** | **bool** | Enable Access Control Authentication | [optional] +**basic_authentication** | **bool** | Enable Basic Authentication | [optional] +**dav** | **bool** | Enable DAV specification | [optional] +**enable_access_log** | **bool** | Enable HTTP access logging | [optional] +**integrated_authentication** | **bool** | Enable Integrated Authentication | [optional] +**server_root** | **str** | Document root directory. Must be within /ifs. | [optional] +**service** | **str** | Enable/disable the HTTP service or redirect to WebUI. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobApi.md b/docs/JobApi.md new file mode 100644 index 000000000..11109e54d --- /dev/null +++ b/docs/JobApi.md @@ -0,0 +1,919 @@ +# isi_sdk.JobApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_job_job**](JobApi.md#create_job_job) | **POST** /platform/3/job/jobs | +[**create_job_policy**](JobApi.md#create_job_policy) | **POST** /platform/1/job/policies | +[**delete_job_policy**](JobApi.md#delete_job_policy) | **DELETE** /platform/1/job/policies/{JobPolicyId} | +[**get_job_events**](JobApi.md#get_job_events) | **GET** /platform/3/job/events | +[**get_job_job**](JobApi.md#get_job_job) | **GET** /platform/3/job/jobs/{JobJobId} | +[**get_job_job_summary**](JobApi.md#get_job_job_summary) | **GET** /platform/1/job/job-summary | +[**get_job_policy**](JobApi.md#get_job_policy) | **GET** /platform/1/job/policies/{JobPolicyId} | +[**get_job_recent**](JobApi.md#get_job_recent) | **GET** /platform/3/job/recent | +[**get_job_reports**](JobApi.md#get_job_reports) | **GET** /platform/3/job/reports | +[**get_job_statistics**](JobApi.md#get_job_statistics) | **GET** /platform/1/job/statistics | +[**get_job_type**](JobApi.md#get_job_type) | **GET** /platform/1/job/types/{JobTypeId} | +[**get_job_types**](JobApi.md#get_job_types) | **GET** /platform/1/job/types | +[**list_job_jobs**](JobApi.md#list_job_jobs) | **GET** /platform/3/job/jobs | +[**list_job_policies**](JobApi.md#list_job_policies) | **GET** /platform/1/job/policies | +[**update_job_job**](JobApi.md#update_job_job) | **PUT** /platform/3/job/jobs/{JobJobId} | +[**update_job_policy**](JobApi.md#update_job_policy) | **PUT** /platform/1/job/policies/{JobPolicyId} | +[**update_job_type**](JobApi.md#update_job_type) | **PUT** /platform/1/job/types/{JobTypeId} | + + +# **create_job_job** +> CreateJobJobResponse create_job_job(job_job) + + + +Queue a new instance of a job type. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_job = isi_sdk.JobJobCreateParams() # JobJobCreateParams | + +try: + api_response = api_instance.create_job_job(job_job) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->create_job_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_job** | [**JobJobCreateParams**](JobJobCreateParams.md)| | + +### Return type + +[**CreateJobJobResponse**](CreateJobJobResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_job_policy** +> CreateResponse create_job_policy(job_policy) + + + +Create a new job impact policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_policy = isi_sdk.JobPolicyCreateParams() # JobPolicyCreateParams | + +try: + api_response = api_instance.create_job_policy(job_policy) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->create_job_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_policy** | [**JobPolicyCreateParams**](JobPolicyCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_job_policy** +> delete_job_policy(job_policy_id) + + + +Delete a job impact policy. System policies may not be deleted. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_policy_id = 'job_policy_id_example' # str | Delete a job impact policy. System policies may not be deleted. + +try: + api_instance.delete_job_policy(job_policy_id) +except ApiException as e: + print "Exception when calling JobApi->delete_job_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_policy_id** | **str**| Delete a job impact policy. System policies may not be deleted. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_events** +> JobEvents get_job_events(begin=begin, end=end, job_id=job_id, resume=resume, job_type=job_type, timeout_ms=timeout_ms, state=state, limit=limit, key=key) + + + +List job events. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +begin = 56 # int | Restrict the query to events at or after the given time, in seconds since the Epoch. (optional) +end = 56 # int | Restrict the query to events before the given time, in seconds since the Epoch. (optional) +job_id = 56 # int | Restrict the query to the given job ID. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +job_type = 'job_type_example' # str | Restrict the query to the given job type. (optional) +timeout_ms = 56 # int | Query timeout in milliseconds. The default is 10000 ms. (optional) +state = 'state_example' # str | Restrict the query to events containing the given state. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +key = 'key_example' # str | Restrict the query to the given key name. (optional) + +try: + api_response = api_instance.get_job_events(begin=begin, end=end, job_id=job_id, resume=resume, job_type=job_type, timeout_ms=timeout_ms, state=state, limit=limit, key=key) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_events: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **begin** | **int**| Restrict the query to events at or after the given time, in seconds since the Epoch. | [optional] + **end** | **int**| Restrict the query to events before the given time, in seconds since the Epoch. | [optional] + **job_id** | **int**| Restrict the query to the given job ID. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **job_type** | **str**| Restrict the query to the given job type. | [optional] + **timeout_ms** | **int**| Query timeout in milliseconds. The default is 10000 ms. | [optional] + **state** | **str**| Restrict the query to events containing the given state. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **key** | **str**| Restrict the query to the given key name. | [optional] + +### Return type + +[**JobEvents**](JobEvents.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_job** +> JobJobs get_job_job(job_job_id) + + + +View a single job instance. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_job_id = 'job_job_id_example' # str | View a single job instance. + +try: + api_response = api_instance.get_job_job(job_job_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_job_id** | **str**| View a single job instance. | + +### Return type + +[**JobJobs**](JobJobs.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_job_summary** +> JobJobSummary get_job_job_summary() + + + +View job engine status. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() + +try: + api_response = api_instance.get_job_job_summary() + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_job_summary: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**JobJobSummary**](JobJobSummary.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_policy** +> JobPolicies get_job_policy(job_policy_id) + + + +View a single job impact policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_policy_id = 'job_policy_id_example' # str | View a single job impact policy. + +try: + api_response = api_instance.get_job_policy(job_policy_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_policy_id** | **str**| View a single job impact policy. | + +### Return type + +[**JobPolicies**](JobPolicies.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_recent** +> JobRecent get_job_recent(timeout_ms=timeout_ms, limit=limit) + + + +List recently completed jobs. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +timeout_ms = 56 # int | Query timeout in milliseconds. The default is 10000 ms. (optional) +limit = 56 # int | Max number of recent jobs to return. The default is 8, the max is 100. (optional) + +try: + api_response = api_instance.get_job_recent(timeout_ms=timeout_ms, limit=limit) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_recent: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **timeout_ms** | **int**| Query timeout in milliseconds. The default is 10000 ms. | [optional] + **limit** | **int**| Max number of recent jobs to return. The default is 8, the max is 100. | [optional] + +### Return type + +[**JobRecent**](JobRecent.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_reports** +> JobReports get_job_reports(begin=begin, end=end, job_id=job_id, resume=resume, job_type=job_type, timeout_ms=timeout_ms, limit=limit) + + + +List job reports. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +begin = 56 # int | Restrict the query to reports at or after the given time, in seconds since the Epoch. (optional) +end = 56 # int | Restrict the query to reports before the given time, in seconds since the Epoch. (optional) +job_id = 56 # int | Restrict the query to the given job ID. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +job_type = 'job_type_example' # str | Restrict the query to the given job type. (optional) +timeout_ms = 56 # int | Query timeout in milliseconds. The default is 10000 ms. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) + +try: + api_response = api_instance.get_job_reports(begin=begin, end=end, job_id=job_id, resume=resume, job_type=job_type, timeout_ms=timeout_ms, limit=limit) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_reports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **begin** | **int**| Restrict the query to reports at or after the given time, in seconds since the Epoch. | [optional] + **end** | **int**| Restrict the query to reports before the given time, in seconds since the Epoch. | [optional] + **job_id** | **int**| Restrict the query to the given job ID. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **job_type** | **str**| Restrict the query to the given job type. | [optional] + **timeout_ms** | **int**| Query timeout in milliseconds. The default is 10000 ms. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + +### Return type + +[**JobReports**](JobReports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_statistics** +> JobStatistics get_job_statistics() + + + +View job engine statistics. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() + +try: + api_response = api_instance.get_job_statistics() + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_statistics: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**JobStatistics**](JobStatistics.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_type** +> JobTypes get_job_type(job_type_id) + + + +Retrieve job type information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_type_id = 'job_type_id_example' # str | Retrieve job type information. + +try: + api_response = api_instance.get_job_type(job_type_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_type: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_type_id** | **str**| Retrieve job type information. | + +### Return type + +[**JobTypes**](JobTypes.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_job_types** +> JobTypesExtended get_job_types(sort=sort, show_all=show_all, dir=dir) + + + +List job types. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +show_all = true # bool | Whether to show all job types, including hidden ones. Defaults to false. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_job_types(sort=sort, show_all=show_all, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->get_job_types: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **show_all** | **bool**| Whether to show all job types, including hidden ones. Defaults to false. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**JobTypesExtended**](JobTypesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_job_jobs** +> JobJobsExtended list_job_jobs(sort=sort, resume=resume, batch=batch, state=state, limit=limit, dir=dir) + + + +List running and paused jobs. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +batch = true # bool | If true, other arguments are ignored, and the query will return all results, unsorted, as quickly as possible. (optional) +state = 'state_example' # str | Limit the results to jobs in the specified state. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_job_jobs(sort=sort, resume=resume, batch=batch, state=state, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->list_job_jobs: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **batch** | **bool**| If true, other arguments are ignored, and the query will return all results, unsorted, as quickly as possible. | [optional] + **state** | **str**| Limit the results to jobs in the specified state. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**JobJobsExtended**](JobJobsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_job_policies** +> JobPoliciesExtended list_job_policies(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List job impact policies. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_job_policies(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling JobApi->list_job_policies: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**JobPoliciesExtended**](JobPoliciesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_job_job** +> update_job_job(job_job, job_job_id) + + + +Modify a running or paused job instance. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_job = isi_sdk.JobJob() # JobJob | +job_job_id = 'job_job_id_example' # str | Modify a running or paused job instance. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_job_job(job_job, job_job_id) +except ApiException as e: + print "Exception when calling JobApi->update_job_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_job** | [**JobJob**](JobJob.md)| | + **job_job_id** | **str**| Modify a running or paused job instance. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_job_policy** +> update_job_policy(job_policy, job_policy_id) + + + +Modify a job impact policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_policy = isi_sdk.JobPolicy() # JobPolicy | +job_policy_id = 'job_policy_id_example' # str | Modify a job impact policy. + +try: + api_instance.update_job_policy(job_policy, job_policy_id) +except ApiException as e: + print "Exception when calling JobApi->update_job_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_policy** | [**JobPolicy**](JobPolicy.md)| | + **job_policy_id** | **str**| Modify a job impact policy. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_job_type** +> update_job_type(job_type, job_type_id) + + + +Modify the job type. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.JobApi() +job_type = isi_sdk.JobType() # JobType | +job_type_id = 'job_type_id_example' # str | Modify the job type. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_job_type(job_type, job_type_id) +except ApiException as e: + print "Exception when calling JobApi->update_job_type: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **job_type** | [**JobType**](JobType.md)| | + **job_type_id** | **str**| Modify the job type. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/JobEvent.md b/docs/JobEvent.md new file mode 100644 index 000000000..9ed19c16c --- /dev/null +++ b/docs/JobEvent.md @@ -0,0 +1,17 @@ +# JobEvent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flags** | **str** | Event flags. | +**id** | **str** | Job event ID. | +**job_id** | **int** | Job ID. | +**job_type** | **str** | Job Type. | +**key** | **str** | Event key name. | +**phase** | **int** | Job phase number at time of event. | +**time** | **int** | Time of event in Unix epoch seconds. | +**value** | **str** | Event value. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobEvents.md b/docs/JobEvents.md new file mode 100644 index 000000000..259111590 --- /dev/null +++ b/docs/JobEvents.md @@ -0,0 +1,12 @@ +# JobEvents + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**events** | [**list[JobEvent]**](JobEvent.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJob.md b/docs/JobJob.md new file mode 100644 index 000000000..9b1f296a5 --- /dev/null +++ b/docs/JobJob.md @@ -0,0 +1,12 @@ +# JobJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | **str** | Impact policy of this job instance. | [optional] +**priority** | **int** | Priority of this job instance; lower numbers preempt higher numbers. | [optional] +**state** | **str** | Desired new state of this job instance. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobAvscanParams.md b/docs/JobJobAvscanParams.md new file mode 100644 index 000000000..574a62c1d --- /dev/null +++ b/docs/JobJobAvscanParams.md @@ -0,0 +1,13 @@ +# JobJobAvscanParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**force_run** | **bool** | Force files to be scanned, even if excluded by the policy. | [optional] +**policy** | **str** | The antivirus scan policy to run. | +**report_id** | **str** | An optional report id for the scan. | [optional] +**update** | **bool** | Update the last run time for the policy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobChangelistcreateParams.md b/docs/JobJobChangelistcreateParams.md new file mode 100644 index 000000000..940d0b08e --- /dev/null +++ b/docs/JobJobChangelistcreateParams.md @@ -0,0 +1,12 @@ +# JobJobChangelistcreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**newer_snapid** | **int** | Newer snapshot ID. | +**older_snapid** | **int** | Older snapshot ID. | +**retain_repstate** | **bool** | Whether to retain the replication record after a changelist is created. Retaining a replication record allows a changelist to be recreated later. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobCreateParams.md b/docs/JobJobCreateParams.md new file mode 100644 index 000000000..67263607a --- /dev/null +++ b/docs/JobJobCreateParams.md @@ -0,0 +1,20 @@ +# JobJobCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allow_dup** | **bool** | Whether or not to queue the job if one of the same type is already running or queued. | [optional] +**avscan_params** | [**JobJobAvscanParams**](JobJobAvscanParams.md) | | [optional] +**changelistcreate_params** | [**JobJobChangelistcreateParams**](JobJobChangelistcreateParams.md) | | [optional] +**domainmark_params** | [**JobJobDomainmarkParams**](JobJobDomainmarkParams.md) | | [optional] +**paths** | **list[str]** | For jobs which take paths, the IFS paths to pass to the job. | [optional] +**policy** | **str** | Impact policy of this job instance. | [optional] +**prepair_params** | [**JobJobPrepairParams**](JobJobPrepairParams.md) | | [optional] +**priority** | **int** | Priority of this job instance; lower numbers preempt higher numbers. | [optional] +**smartpoolstree_params** | [**JobJobSmartpoolstreeParams**](JobJobSmartpoolstreeParams.md) | | [optional] +**snaprevert_params** | [**JobJobSnaprevertParams**](JobJobSnaprevertParams.md) | | [optional] +**type** | **str** | Job type to queue. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobDomainmarkParams.md b/docs/JobJobDomainmarkParams.md new file mode 100644 index 000000000..b0008f2e7 --- /dev/null +++ b/docs/JobJobDomainmarkParams.md @@ -0,0 +1,12 @@ +# JobJobDomainmarkParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delete** | **bool** | Whether this is a delete operation. | [optional] +**root** | **str** | Base IFS path to associate with the domain. | +**type** | **str** | The type of domain. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobExtended.md b/docs/JobJobExtended.md new file mode 100644 index 000000000..8a8016e2e --- /dev/null +++ b/docs/JobJobExtended.md @@ -0,0 +1,29 @@ +# JobJobExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | **str** | Impact policy of this job instance. | [optional] +**priority** | **int** | Priority of this job instance; lower numbers preempt higher numbers. | [optional] +**state** | **str** | Desired new state of this job instance. | [optional] +**control_state** | **str** | State to which the job is transitioning; if control_state is identical to state, the job's state is stable. | [optional] +**create_time** | **int** | The time the job was queued, in seconds since the epoch. | +**current_phase** | **int** | The current phase of the job. | [optional] +**description** | **str** | A text representation of the job. | [optional] +**end_time** | **int** | The time the job ended, in seconds since the Epoch. | [optional] +**id** | **int** | The ID of the job. | +**impact** | **str** | The current impact of the job. | +**participants** | **list[int]** | The set of devids working on the job. | [optional] +**paths** | **list[str]** | Paths for which the job was queued. | [optional] +**progress** | **str** | A text representation of the job's progress. | [optional] +**retries_remaining** | **int** | The number of retries remaining if the job fails. | +**running_time** | **int** | The number of seconds the job has executed. | [optional] +**start_time** | **int** | The time the job started, in seconds since the Epoch. | [optional] +**total_phases** | **int** | The total number of phases of the job type. | +**type** | **str** | The job type. | +**waiting_on** | **int** | The ID of a job for which this job is waiting. | [optional] +**waiting_reason** | **str** | The reason the job is waiting. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobPrepairParams.md b/docs/JobJobPrepairParams.md new file mode 100644 index 000000000..894655e7b --- /dev/null +++ b/docs/JobJobPrepairParams.md @@ -0,0 +1,13 @@ +# JobJobPrepairParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping_type** | **str** | Type of permissions; not accepted with mode=clone or mode=inherit. | [optional] +**mode** | **str** | Type of PermissionRepair operation. | +**template** | **str** | IFS file or directory to use as a template; required with mode=clone and mode=inherit, not accepted with mode=convert. | [optional] +**zone** | **str** | Authentication zone; not accepted with mode=clone or mode=inherit. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobSmartpoolstreeParams.md b/docs/JobJobSmartpoolstreeParams.md new file mode 100644 index 000000000..dd27635c9 --- /dev/null +++ b/docs/JobJobSmartpoolstreeParams.md @@ -0,0 +1,13 @@ +# JobJobSmartpoolstreeParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**directory_only** | **bool** | Skip processing of regular files. | [optional] +**nop** | **bool** | Calculate what would be done (dry run). | [optional] +**policy_only** | **bool** | Apply policies but skip restriping. | [optional] +**recurse** | **bool** | Process children, recursively. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobSnaprevertParams.md b/docs/JobJobSnaprevertParams.md new file mode 100644 index 000000000..4d537523f --- /dev/null +++ b/docs/JobJobSnaprevertParams.md @@ -0,0 +1,10 @@ +# JobJobSnaprevertParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**snapid** | **int** | Snapshot to revert. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobSummary.md b/docs/JobJobSummary.md new file mode 100644 index 000000000..f840d8d87 --- /dev/null +++ b/docs/JobJobSummary.md @@ -0,0 +1,10 @@ +# JobJobSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**JobJobSummarySummary**](JobJobSummarySummary.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobSummarySummary.md b/docs/JobJobSummarySummary.md new file mode 100644 index 000000000..8b6d4d37a --- /dev/null +++ b/docs/JobJobSummarySummary.md @@ -0,0 +1,17 @@ +# JobJobSummarySummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_is_degraded** | **bool** | Whether the cluster is in a degraded state. Note this is from the perspective of the node handling the query, which might be different from another node. | +**connected** | **bool** | Whether isi_job_d instances on all up nodes in the cluster are connected to the coordinator. | +**coordinator** | **int** | The devid of the job engine coordinator. | +**disconnected_nodes** | **list[int]** | If connected=false, this is the set of devids that are not connected to the coordinator. | [optional] +**down_or_read_only_nodes** | **bool** | Whether the cluster has any down or read-only nodes. These nodes are not considered in the connected property. | +**next_jid** | **int** | The job ID to be assigned to the next job. | +**run_degraded** | **bool** | Whether the job engine would allow most jobs to run even when the cluster is in a degraded state. | +**stats_ready** | **bool** | Whether the coordinator has recently gathered statistics for all nodes in the cluster. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobs.md b/docs/JobJobs.md new file mode 100644 index 000000000..e130aee64 --- /dev/null +++ b/docs/JobJobs.md @@ -0,0 +1,10 @@ +# JobJobs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**list[JobJobExtended]**](JobJobExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobJobsExtended.md b/docs/JobJobsExtended.md new file mode 100644 index 000000000..ac1535839 --- /dev/null +++ b/docs/JobJobsExtended.md @@ -0,0 +1,12 @@ +# JobJobsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**list[JobJobExtended]**](JobJobExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobPolicies.md b/docs/JobPolicies.md new file mode 100644 index 000000000..aa2d3478f --- /dev/null +++ b/docs/JobPolicies.md @@ -0,0 +1,10 @@ +# JobPolicies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**types** | [**list[JobPoliciesType]**](JobPoliciesType.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobPoliciesExtended.md b/docs/JobPoliciesExtended.md new file mode 100644 index 000000000..56758862d --- /dev/null +++ b/docs/JobPoliciesExtended.md @@ -0,0 +1,12 @@ +# JobPoliciesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**list[JobPoliciesType]**](JobPoliciesType.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobPoliciesType.md b/docs/JobPoliciesType.md new file mode 100644 index 000000000..2f028b44e --- /dev/null +++ b/docs/JobPoliciesType.md @@ -0,0 +1,14 @@ +# JobPoliciesType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A helpful human-readable description of the impact policy. | +**id** | **str** | The ID of the impact policy. | +**intervals** | [**list[JobPolicyInterval]**](JobPolicyInterval.md) | | +**name** | **str** | The name of the impact policy. | +**system** | **bool** | Whether or not this is a read-only system impact policy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobPolicy.md b/docs/JobPolicy.md new file mode 100644 index 000000000..2d493dec5 --- /dev/null +++ b/docs/JobPolicy.md @@ -0,0 +1,11 @@ +# JobPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A helpful human-readable description of the impact policy. | [optional] +**intervals** | [**list[JobPolicyInterval]**](JobPolicyInterval.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobPolicyCreateParams.md b/docs/JobPolicyCreateParams.md new file mode 100644 index 000000000..2ffb999cd --- /dev/null +++ b/docs/JobPolicyCreateParams.md @@ -0,0 +1,12 @@ +# JobPolicyCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A helpful human-readable description of the impact policy. | [optional] +**intervals** | [**list[JobPolicyInterval]**](JobPolicyInterval.md) | | [optional] +**name** | **str** | The name of the impact policy. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobPolicyInterval.md b/docs/JobPolicyInterval.md new file mode 100644 index 000000000..93765a461 --- /dev/null +++ b/docs/JobPolicyInterval.md @@ -0,0 +1,12 @@ +# JobPolicyInterval + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**begin** | **str** | Beginning time for the corresponding impact, in the format 'WWWW HH:MM', where 'WWWW' is the full English name of the day of the week, 'HH' is the hour (00-23), and 'MM' is the minute (00-59). | +**end** | **str** | Ending time for the corresponding impact, in the format 'WWWW HH:MM', where 'WWWW' is the full English name of the day of the week, 'HH' is the hour (00-23), and 'MM' is the minute (00-59). | +**impact** | **str** | Impact for the corresponding time span. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobRecent.md b/docs/JobRecent.md new file mode 100644 index 000000000..2b9832b11 --- /dev/null +++ b/docs/JobRecent.md @@ -0,0 +1,11 @@ +# JobRecent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recent** | [**list[JobRecentRecentItem]**](JobRecentRecentItem.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobRecentRecentItem.md b/docs/JobRecentRecentItem.md new file mode 100644 index 000000000..0e50b88e7 --- /dev/null +++ b/docs/JobRecentRecentItem.md @@ -0,0 +1,29 @@ +# JobRecentRecentItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**control_state** | **str** | State to which the job is transitioning; if control_state is identical to state, the job's state is stable. | [optional] +**create_time** | **int** | The time the job was queued, in seconds since the epoch. | +**current_phase** | **int** | The current phase of the job. | [optional] +**description** | **str** | A text representation of the job. | [optional] +**end_time** | **int** | The time the job ended, in seconds since the Epoch. | [optional] +**id** | **int** | The ID of the job. | +**impact** | **str** | The current impact of the job. | +**participants** | **list[int]** | The set of devids working on the job. | [optional] +**paths** | **list[str]** | Paths for which the job was queued. | [optional] +**policy** | **str** | Current impact policy of the job. | +**priority** | **int** | Current priority of the job; lower numbers preempt higher numbers. | +**progress** | **str** | A text representation of the job's progress. | [optional] +**retries_remaining** | **int** | The number of retries remaining if the job fails. | +**running_time** | **int** | The number of seconds the job has executed. | [optional] +**start_time** | **int** | The time the job started, in seconds since the Epoch. | [optional] +**state** | **str** | Current state of the job. | +**total_phases** | **int** | The total number of phases of the job type. | +**type** | **str** | The job type. | +**waiting_on** | **int** | The ID of a job for which this job is waiting. | [optional] +**waiting_reason** | **str** | The reason the job is waiting. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobReports.md b/docs/JobReports.md new file mode 100644 index 000000000..f0d8b6cee --- /dev/null +++ b/docs/JobReports.md @@ -0,0 +1,12 @@ +# JobReports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[JobEvent]**](JobEvent.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatistics.md b/docs/JobStatistics.md new file mode 100644 index 000000000..58243e318 --- /dev/null +++ b/docs/JobStatistics.md @@ -0,0 +1,11 @@ +# JobStatistics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**list[JobStatisticsJob]**](JobStatisticsJob.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJob.md b/docs/JobStatisticsJob.md new file mode 100644 index 000000000..e7305c0d0 --- /dev/null +++ b/docs/JobStatisticsJob.md @@ -0,0 +1,13 @@ +# JobStatisticsJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**job_id** | **int** | The job ID. | +**nodes** | [**list[JobStatisticsJobNode]**](JobStatisticsJobNode.md) | | +**phase** | **int** | The current phase of the job. | +**total_nodes** | **int** | The number of nodes participating in the job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNode.md b/docs/JobStatisticsJobNode.md new file mode 100644 index 000000000..694701466 --- /dev/null +++ b/docs/JobStatisticsJobNode.md @@ -0,0 +1,16 @@ +# JobStatisticsJobNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | [**JobStatisticsJobNodeCpu**](JobStatisticsJobNodeCpu.md) | | +**io** | [**JobStatisticsJobNodeIo**](JobStatisticsJobNodeIo.md) | | +**memory** | [**JobStatisticsJobNodeMemory**](JobStatisticsJobNodeMemory.md) | | +**node** | **int** | The devid of the node. | +**pid** | **int** | The process ID of the job on this node. | +**total_workers** | **int** | The number of workers for this job on this node. | +**workers** | [**list[JobStatisticsJobNodeWorker]**](JobStatisticsJobNodeWorker.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNodeCpu.md b/docs/JobStatisticsJobNodeCpu.md new file mode 100644 index 000000000..be172e679 --- /dev/null +++ b/docs/JobStatisticsJobNodeCpu.md @@ -0,0 +1,13 @@ +# JobStatisticsJobNodeCpu + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average** | **float** | The average CPU utilization of the job on this node. | [optional] +**current** | **float** | The current CPU utilization of the job on this node. | +**maximum** | **float** | The maximum CPU utilization of the job on this node. | +**minimum** | **float** | The minimum CPU utilization of the job on this node. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNodeIo.md b/docs/JobStatisticsJobNodeIo.md new file mode 100644 index 000000000..ee6ecee6c --- /dev/null +++ b/docs/JobStatisticsJobNodeIo.md @@ -0,0 +1,11 @@ +# JobStatisticsJobNodeIo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read** | [**JobStatisticsJobNodeIoRead**](JobStatisticsJobNodeIoRead.md) | | +**write** | [**JobStatisticsJobNodeIoWrite**](JobStatisticsJobNodeIoWrite.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNodeIoRead.md b/docs/JobStatisticsJobNodeIoRead.md new file mode 100644 index 000000000..1daab2d5b --- /dev/null +++ b/docs/JobStatisticsJobNodeIoRead.md @@ -0,0 +1,11 @@ +# JobStatisticsJobNodeIoRead + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bytes** | **int** | The number of bytes recently read by this job on this node. | +**ops** | **int** | The number of read operations recently performed by this job on this node. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNodeIoWrite.md b/docs/JobStatisticsJobNodeIoWrite.md new file mode 100644 index 000000000..c05b2399b --- /dev/null +++ b/docs/JobStatisticsJobNodeIoWrite.md @@ -0,0 +1,11 @@ +# JobStatisticsJobNodeIoWrite + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bytes** | **int** | The number of bytes recently written by this job on this node. | +**ops** | **int** | The number of write operations recently performed by this job on this node. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNodeMemory.md b/docs/JobStatisticsJobNodeMemory.md new file mode 100644 index 000000000..4d85fc785 --- /dev/null +++ b/docs/JobStatisticsJobNodeMemory.md @@ -0,0 +1,11 @@ +# JobStatisticsJobNodeMemory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**physical** | [**JobStatisticsJobNodeMemoryPhysical**](JobStatisticsJobNodeMemoryPhysical.md) | | +**virtual** | [**JobStatisticsJobNodeMemoryVirtual**](JobStatisticsJobNodeMemoryVirtual.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNodeMemoryPhysical.md b/docs/JobStatisticsJobNodeMemoryPhysical.md new file mode 100644 index 000000000..fcb292f45 --- /dev/null +++ b/docs/JobStatisticsJobNodeMemoryPhysical.md @@ -0,0 +1,13 @@ +# JobStatisticsJobNodeMemoryPhysical + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average** | **float** | The average physical memory utilization of the job on this node, in KB. | [optional] +**current** | **float** | The current physical memory utilization of the job on this node, in KB. | +**maximum** | **float** | The maximum physical memory utilization of the job on this node, in KB. | +**minimum** | **float** | The minimum physical memory utilization of the job on this node, in KB. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNodeMemoryVirtual.md b/docs/JobStatisticsJobNodeMemoryVirtual.md new file mode 100644 index 000000000..9f6bd714c --- /dev/null +++ b/docs/JobStatisticsJobNodeMemoryVirtual.md @@ -0,0 +1,13 @@ +# JobStatisticsJobNodeMemoryVirtual + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average** | **float** | The average virtual memory utilization of the job on this node, in KB. | [optional] +**current** | **float** | The current virtual memory utilization of the job on this node, in KB. | +**maximum** | **float** | The maximum virtual memory utilization of the job on this node, in KB. | +**minimum** | **float** | The minimum virtual memory utilization of the job on this node, in KB. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobStatisticsJobNodeWorker.md b/docs/JobStatisticsJobNodeWorker.md new file mode 100644 index 000000000..9b6763315 --- /dev/null +++ b/docs/JobStatisticsJobNodeWorker.md @@ -0,0 +1,13 @@ +# JobStatisticsJobNodeWorker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stw** | **float** | The sleep-to-work ratio of this worker; how much time it spends sleeping compared to working. | [optional] +**task** | **str** | A representation of the task the worker is currently processing; not intended to be read by humans. | [optional] +**task_result** | **str** | A representation of the most recent task result produced by the worker; not intended to be read by humans. | [optional] +**worker** | **int** | The worker ID. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobType.md b/docs/JobType.md new file mode 100644 index 000000000..6764d1ae6 --- /dev/null +++ b/docs/JobType.md @@ -0,0 +1,13 @@ +# JobType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Whether the job type is enabled and able to run. | [optional] +**policy** | **str** | Default impact policy of this job type. | [optional] +**priority** | **int** | Default priority of this job type; lower numbers preempt higher numbers. | [optional] +**schedule** | **str** | The schedule on which this job type is queued, if any. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobTypeExtended.md b/docs/JobTypeExtended.md new file mode 100644 index 000000000..768ce3084 --- /dev/null +++ b/docs/JobTypeExtended.md @@ -0,0 +1,18 @@ +# JobTypeExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Whether the job type is enabled and able to run. | [optional] +**policy** | **str** | Default impact policy of this job type. | [optional] +**priority** | **int** | Default priority of this job type; lower numbers preempt higher numbers. | [optional] +**schedule** | **str** | The schedule on which this job type is queued, if any. | [optional] +**allow_multiple_instances** | **bool** | Whether multiple instances of this job type may run simultaneously. | +**description** | **str** | Brief description of the job type. | +**exclusion_set** | **str** | The set(s) of mutually-exclusive job types to which this job belongs. No job in this set may run with any other job in this set. Obsolete; this value will always be an empty string, as exclusion sets are no longer a job type property. | +**hidden** | **bool** | Whether this job type is normally visible in the UI. | +**id** | **str** | Job type ID. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobTypes.md b/docs/JobTypes.md new file mode 100644 index 000000000..834d1b0c0 --- /dev/null +++ b/docs/JobTypes.md @@ -0,0 +1,10 @@ +# JobTypes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**types** | [**list[JobTypeExtended]**](JobTypeExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/JobTypesExtended.md b/docs/JobTypesExtended.md new file mode 100644 index 000000000..f868f1f85 --- /dev/null +++ b/docs/JobTypesExtended.md @@ -0,0 +1,11 @@ +# JobTypesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**types** | [**list[JobTypeExtended]**](JobTypeExtended.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LicenseApi.md b/docs/LicenseApi.md new file mode 100644 index 000000000..a9e2acbca --- /dev/null +++ b/docs/LicenseApi.md @@ -0,0 +1,156 @@ +# isi_sdk.LicenseApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_license_license**](LicenseApi.md#create_license_license) | **POST** /platform/1/license/licenses | +[**get_license_license**](LicenseApi.md#get_license_license) | **GET** /platform/1/license/licenses/{LicenseLicenseId} | +[**list_license_licenses**](LicenseApi.md#list_license_licenses) | **GET** /platform/1/license/licenses | + + +# **create_license_license** +> create_license_license(license_license) + + + +Install a new license key. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.LicenseApi() +license_license = isi_sdk.LicenseLicenseCreateParams() # LicenseLicenseCreateParams | + +try: + api_instance.create_license_license(license_license) +except ApiException as e: + print "Exception when calling LicenseApi->create_license_license: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **license_license** | [**LicenseLicenseCreateParams**](LicenseLicenseCreateParams.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_license_license** +> LicenseLicenses get_license_license(license_license_id) + + + +Retrieve license information for the feature. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.LicenseApi() +license_license_id = 'license_license_id_example' # str | Retrieve license information for the feature. + +try: + api_response = api_instance.get_license_license(license_license_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling LicenseApi->get_license_license: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **license_license_id** | **str**| Retrieve license information for the feature. | + +### Return type + +[**LicenseLicenses**](LicenseLicenses.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_license_licenses** +> LicenseLicenses list_license_licenses() + + + +Retrieve license information for all licensable products. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.LicenseApi() + +try: + api_response = api_instance.list_license_licenses() + pprint(api_response) +except ApiException as e: + print "Exception when calling LicenseApi->list_license_licenses: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**LicenseLicenses**](LicenseLicenses.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/LicenseLicense.md b/docs/LicenseLicense.md new file mode 100644 index 000000000..02de8baf8 --- /dev/null +++ b/docs/LicenseLicense.md @@ -0,0 +1,14 @@ +# LicenseLicense + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | **int** | Total duration in seconds for temporary licenses. | +**expiration** | **int** | Unix epoch time the license will expire. | +**id** | **str** | Unique identifier for the license. | +**name** | **str** | Name of the licensed feature. | +**status** | **str** | Current status of the license. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LicenseLicenseCreateParams.md b/docs/LicenseLicenseCreateParams.md new file mode 100644 index 000000000..b6f203f79 --- /dev/null +++ b/docs/LicenseLicenseCreateParams.md @@ -0,0 +1,10 @@ +# LicenseLicenseCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | New license key. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LicenseLicenses.md b/docs/LicenseLicenses.md new file mode 100644 index 000000000..8a2638480 --- /dev/null +++ b/docs/LicenseLicenses.md @@ -0,0 +1,10 @@ +# LicenseLicenses + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**licenses** | [**list[LicenseLicense]**](LicenseLicense.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LocalApi.md b/docs/LocalApi.md new file mode 100644 index 000000000..bad0f601c --- /dev/null +++ b/docs/LocalApi.md @@ -0,0 +1,55 @@ +# isi_sdk.LocalApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cluster_time**](LocalApi.md#get_cluster_time) | **GET** /platform/3/local/cluster/time | + + +# **get_cluster_time** +> ClusterTimeExtended get_cluster_time() + + + +Get the current time on the local node. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.LocalApi() + +try: + api_response = api_instance.get_cluster_time() + pprint(api_response) +except ApiException as e: + print "Exception when calling LocalApi->get_cluster_time: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterTimeExtended**](ClusterTimeExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MappingDump.md b/docs/MappingDump.md new file mode 100644 index 000000000..f0dc6fd43 --- /dev/null +++ b/docs/MappingDump.md @@ -0,0 +1,12 @@ +# MappingDump + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identities** | **list[list[str]]** | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingIdentities.md b/docs/MappingIdentities.md new file mode 100644 index 000000000..cf059202b --- /dev/null +++ b/docs/MappingIdentities.md @@ -0,0 +1,10 @@ +# MappingIdentities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identities** | [**list[MappingIdentity]**](MappingIdentity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingIdentity.md b/docs/MappingIdentity.md new file mode 100644 index 000000000..b7ac28bb5 --- /dev/null +++ b/docs/MappingIdentity.md @@ -0,0 +1,12 @@ +# MappingIdentity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Specifies the identity mapping entry id. | +**source** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**targets** | [**list[MappingIdentityTarget]**](MappingIdentityTarget.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingIdentityCreateParams.md b/docs/MappingIdentityCreateParams.md new file mode 100644 index 000000000..19ef4cb4d --- /dev/null +++ b/docs/MappingIdentityCreateParams.md @@ -0,0 +1,11 @@ +# MappingIdentityCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**targets** | [**list[MappingIdentityTargetCreateParams]**](MappingIdentityTargetCreateParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingIdentityTarget.md b/docs/MappingIdentityTarget.md new file mode 100644 index 000000000..91cf947a5 --- /dev/null +++ b/docs/MappingIdentityTarget.md @@ -0,0 +1,12 @@ +# MappingIdentityTarget + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**on_disk** | **bool** | If true, the identity is preferred on-disk. | [optional] +**target** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**type** | **str** | Specifies the origin of the identity mapping. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingIdentityTargetCreateParams.md b/docs/MappingIdentityTargetCreateParams.md new file mode 100644 index 000000000..e05898302 --- /dev/null +++ b/docs/MappingIdentityTargetCreateParams.md @@ -0,0 +1,12 @@ +# MappingIdentityTargetCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**on_disk** | **bool** | If true, the identity is preferred on-disk. | [optional] +**target** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**type** | **str** | Specifies the origin of the identity mapping. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingImport.md b/docs/MappingImport.md new file mode 100644 index 000000000..74dfa3bfd --- /dev/null +++ b/docs/MappingImport.md @@ -0,0 +1,10 @@ +# MappingImport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identities** | **list[list[str]]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersLookup.md b/docs/MappingUsersLookup.md new file mode 100644 index 000000000..4a23200a4 --- /dev/null +++ b/docs/MappingUsersLookup.md @@ -0,0 +1,10 @@ +# MappingUsersLookup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping** | [**list[MappingUsersLookupMappingItem]**](MappingUsersLookupMappingItem.md) | Lookup a user access token. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersLookupMappingItem.md b/docs/MappingUsersLookupMappingItem.md new file mode 100644 index 000000000..bb57a0403 --- /dev/null +++ b/docs/MappingUsersLookupMappingItem.md @@ -0,0 +1,14 @@ +# MappingUsersLookupMappingItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**list[MappingUsersLookupMappingItemGroup]**](MappingUsersLookupMappingItemGroup.md) | | [optional] +**privileges** | [**list[AuthIdNtokenPrivilegeItem]**](AuthIdNtokenPrivilegeItem.md) | | [optional] +**user** | [**MappingUsersLookupMappingItemUser**](MappingUsersLookupMappingItemUser.md) | Specifies the configuration properties for a user. | [optional] +**zid** | **int** | | [optional] +**zone** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersLookupMappingItemGroup.md b/docs/MappingUsersLookupMappingItemGroup.md new file mode 100644 index 000000000..c9d96d6c3 --- /dev/null +++ b/docs/MappingUsersLookupMappingItemGroup.md @@ -0,0 +1,43 @@ +# MappingUsersLookupMappingItemGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | Specifies the distinguished name for the user. | +**dns_domain** | **str** | Specifies the DNS domain. | +**domain** | **str** | Specifies the domain that the object is part of. | +**email** | **str** | Specifies an email address. | [optional] +**enabled** | **bool** | If true, the authenticated user is enabled. | [optional] +**expired** | **bool** | If true, the authenticated auth user is expired. | [optional] +**expiry** | **int** | Specifies the Epoch time at which the authenticated user will expire. | [optional] +**gecos** | **str** | Specifies the GECOS value, which is usually the full name. | [optional] +**generated_gid** | **bool** | If true, indicates that the GID was generated. | [optional] +**generated_uid** | **bool** | If true, indicates that the UID was generated. | [optional] +**generated_upn** | **bool** | If true, indicates that the UPN was generated. | [optional] +**gid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**home_directory** | **str** | Specifies the home directory for the user. | [optional] +**id** | **str** | Specifies the user or group ID. | +**locked** | **bool** | If true, the account is locked out. | [optional] +**max_password_age** | **int** | Specifies the maximum time in seconds allowed before the password expires. | [optional] +**member_of** | [**list[GroupMember]**](GroupMember.md) | | +**name** | **str** | Specifies a user or group name. | +**on_disk_group_identity** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**on_disk_user_identity** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**password_expired** | **bool** | If true, the password has expired. | [optional] +**password_expires** | **bool** | If true, the password is allowed to expire. | [optional] +**password_expiry** | **int** | Specifies the time in Epoch seconds the password will expire. | [optional] +**password_last_set** | **int** | Specifies the last time the password was set. | [optional] +**primary_group_sid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**prompt_password_change** | **bool** | If true, prompts the user to change their password on next login. | [optional] +**provider** | **str** | Specifies the authentication provider that the object belongs to. | +**sam_account_name** | **str** | Specifies a user or group name. | +**shell** | **str** | Specifies the path to the shell for the user. | [optional] +**sid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**type** | **str** | Specifies the object type. | +**uid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**upn** | **str** | Specifies the user principal name. | [optional] +**user_can_change_password** | **bool** | If true, the user password can be changed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersLookupMappingItemUser.md b/docs/MappingUsersLookupMappingItemUser.md new file mode 100644 index 000000000..4cd93869b --- /dev/null +++ b/docs/MappingUsersLookupMappingItemUser.md @@ -0,0 +1,43 @@ +# MappingUsersLookupMappingItemUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | Specifies the distinguished name for the user. | +**dns_domain** | **str** | Specifies the DNS domain. | +**domain** | **str** | Specifies the domain that the object is part of. | +**email** | **str** | Specifies an email address. | +**enabled** | **bool** | True, if the authenticated user is enabled. | +**expired** | **bool** | True, if the authenticated user has expired. | +**expiry** | **int** | Specifies the Unix Epoch time at which the authenticated user will expire. | +**gecos** | **str** | Specifies the GECOS value, which is usually the full name. | +**generated_gid** | **bool** | True, if the GID was generated. | +**generated_uid** | **bool** | True, if the UID was generated. | +**generated_upn** | **bool** | True, if the UPN was generated. | +**gid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**home_directory** | **str** | Specifies a home directory for the user. | +**id** | **str** | Specifies the user or group ID. | +**locked** | **bool** | If true, indicates that the account is locked. | +**max_password_age** | **int** | Specifies the maximum time in seconds allowed before the password expires. | +**member_of** | [**list[GroupMember]**](GroupMember.md) | | +**name** | **str** | Specifies a user or group name. | +**on_disk_group_identity** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**on_disk_user_identity** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**password_expired** | **bool** | If true, the password has expired. | +**password_expires** | **bool** | If true, the password is allowed to expire. | +**password_expiry** | **int** | Specifies the time in Unix Epoch seconds that the password will expire. | +**password_last_set** | **int** | Specifies the last time the password was set. | +**primary_group_sid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**prompt_password_change** | **bool** | Prompts the user to change their password at the next login. | +**provider** | **str** | Specifies the authentication provider that the object belongs to. | +**sam_account_name** | **str** | Specifies a user or group name. | +**shell** | **str** | Specifies a path to the shell for the user. | +**sid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**type** | **str** | Specifies the object type. | +**uid** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**upn** | **str** | Specifies a principal name for the user. | +**user_can_change_password** | **bool** | Specifies whether the password for the user can be changed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersRules.md b/docs/MappingUsersRules.md new file mode 100644 index 000000000..2dc2490e9 --- /dev/null +++ b/docs/MappingUsersRules.md @@ -0,0 +1,10 @@ +# MappingUsersRules + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**MappingUsersRulesRules**](MappingUsersRulesRules.md) | Specifies the properties for user mapping rules. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersRulesRule.md b/docs/MappingUsersRulesRule.md new file mode 100644 index 000000000..c95c3a289 --- /dev/null +++ b/docs/MappingUsersRulesRule.md @@ -0,0 +1,13 @@ +# MappingUsersRulesRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operator** | **str** | Specifies the operator to make rules on specified users or groups. | [optional] +**options** | [**MappingUsersRulesRuleOptions**](MappingUsersRulesRuleOptions.md) | Specifies the properties for user mapping rules. | [optional] +**user1** | [**MappingUsersRulesRuleUser2**](MappingUsersRulesRuleUser2.md) | | +**user2** | [**MappingUsersRulesRuleUser2**](MappingUsersRulesRuleUser2.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersRulesRuleOptions.md b/docs/MappingUsersRulesRuleOptions.md new file mode 100644 index 000000000..a78103e9e --- /dev/null +++ b/docs/MappingUsersRulesRuleOptions.md @@ -0,0 +1,14 @@ +# MappingUsersRulesRuleOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_break** | **bool** | If true, and the rule was applied successfully, stop processing further. | [optional] +**default_user** | [**MappingUsersRulesRuleUser2**](MappingUsersRulesRuleUser2.md) | | [optional] +**group** | **bool** | If true, the primary GID and primary group SID should be copied to the existing credential. | [optional] +**groups** | **bool** | If true, all additional identifiers should be copied to the existing credential. | [optional] +**user** | **bool** | If true, the primary UID and primary user SID should be copied to the existing credential. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersRulesRuleUser2.md b/docs/MappingUsersRulesRuleUser2.md new file mode 100644 index 000000000..b28ea6e47 --- /dev/null +++ b/docs/MappingUsersRulesRuleUser2.md @@ -0,0 +1,11 @@ +# MappingUsersRulesRuleUser2 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | Specifies the domain of the user that is being mapped. | [optional] +**user** | **str** | Specifies the name of the user that is being mapped. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersRulesRules.md b/docs/MappingUsersRulesRules.md new file mode 100644 index 000000000..0b46d5613 --- /dev/null +++ b/docs/MappingUsersRulesRules.md @@ -0,0 +1,11 @@ +# MappingUsersRulesRules + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parameters** | [**MappingUsersRulesRulesParameters**](MappingUsersRulesRulesParameters.md) | Specifies the default UNIX user information that can be applied if the final credentials do not have valid UID and GID information. | [optional] +**rules** | [**list[MappingUsersRulesRule]**](MappingUsersRulesRule.md) | Specifies the list of user mapping rules. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MappingUsersRulesRulesParameters.md b/docs/MappingUsersRulesRulesParameters.md new file mode 100644 index 000000000..d5255f9e2 --- /dev/null +++ b/docs/MappingUsersRulesRulesParameters.md @@ -0,0 +1,10 @@ +# MappingUsersRulesRulesParameters + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_unix_user** | [**MappingUsersRulesRuleUser2**](MappingUsersRulesRuleUser2.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpContextsBre.md b/docs/NdmpContextsBre.md new file mode 100644 index 000000000..f05f22808 --- /dev/null +++ b/docs/NdmpContextsBre.md @@ -0,0 +1,12 @@ +# NdmpContextsBre + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contexts** | [**list[NdmpContextsBreContext]**](NdmpContextsBreContext.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpContextsBreContext.md b/docs/NdmpContextsBreContext.md new file mode 100644 index 000000000..52412ee69 --- /dev/null +++ b/docs/NdmpContextsBreContext.md @@ -0,0 +1,11 @@ +# NdmpContextsBreContext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bre_context_id** | **str** | Unique ID of NDMP BRE context | [optional] +**id** | **str** | Unique display id. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpDiagnostics.md b/docs/NdmpDiagnostics.md new file mode 100644 index 000000000..812cb9ce4 --- /dev/null +++ b/docs/NdmpDiagnostics.md @@ -0,0 +1,10 @@ +# NdmpDiagnostics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**diagnostics** | [**NdmpDiagnosticsDiagnostics**](NdmpDiagnosticsDiagnostics.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpDiagnosticsDiagnostics.md b/docs/NdmpDiagnosticsDiagnostics.md new file mode 100644 index 000000000..1dfa8c343 --- /dev/null +++ b/docs/NdmpDiagnosticsDiagnostics.md @@ -0,0 +1,12 @@ +# NdmpDiagnosticsDiagnostics + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**diag_level** | **int** | Diagnostics level for ndmp. | [optional] +**protocol_version** | **int** | The version of the ndmp protocol. | [optional] +**trace_level** | **str** | Trace level for ndmp. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpLogs.md b/docs/NdmpLogs.md new file mode 100644 index 000000000..0e35e238a --- /dev/null +++ b/docs/NdmpLogs.md @@ -0,0 +1,10 @@ +# NdmpLogs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | **str** | NDMP logs | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpSession.md b/docs/NdmpSession.md new file mode 100644 index 000000000..57097c510 --- /dev/null +++ b/docs/NdmpSession.md @@ -0,0 +1,26 @@ +# NdmpSession + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_bytes_transferred** | **int** | Bytes transferred to/from the filesystem | +**data_state** | **str** | State of the NDMP Data Service | +**dest_path** | **str** | The path being recovered to | +**dma_ip_addr** | **str** | IP address of the DMA | +**elapsed_time** | **int** | Number of seconds elapsed since the backup was started | +**id** | **str** | Unique display ID. | +**mover_bytes_transferred** | **int** | Bytes transferred to/from tape or remote writer | +**mover_state** | **str** | State of the NDMP Mover Service | +**operation** | **str** | The type of backup session | +**remote_ip_addr** | **str** | IP address of the remote NDMP participant | +**scsi_device** | **str** | Name of the media changer device used if any | +**session** | **str** | Session ID in form <lnn>.<pid>. | +**source_path** | **str** | The path being backed up | +**start_time** | **int** | Time backup was started in seconds since epoch | +**tape_device** | **str** | Name of the tape device used if any | +**tape_open_mode** | **str** | Describes the mode in which the tape is opened | +**throughput** | **int** | The throughput in MB/s | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpSessions.md b/docs/NdmpSessions.md new file mode 100644 index 000000000..00a07310f --- /dev/null +++ b/docs/NdmpSessions.md @@ -0,0 +1,12 @@ +# NdmpSessions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**sessions** | [**list[NdmpSession]**](NdmpSession.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpSettingsGlobal.md b/docs/NdmpSettingsGlobal.md new file mode 100644 index 000000000..f67c6e6f1 --- /dev/null +++ b/docs/NdmpSettingsGlobal.md @@ -0,0 +1,10 @@ +# NdmpSettingsGlobal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_global** | [**NdmpSettingsGlobalGlobal**](NdmpSettingsGlobalGlobal.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpSettingsGlobalGlobal.md b/docs/NdmpSettingsGlobalGlobal.md new file mode 100644 index 000000000..5d3a1d1c7 --- /dev/null +++ b/docs/NdmpSettingsGlobalGlobal.md @@ -0,0 +1,15 @@ +# NdmpSettingsGlobalGlobal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bre_max_num_contexts** | **int** | Maximum number of BRE contexts. | [optional] +**dma** | **str** | A unique identifier for the dma vendor. | [optional] +**msb_context_retention_duration** | **int** | Multi-Stream Backup context retention duration. | [optional] +**msr_context_retention_duration** | **int** | Multi-Stream Restore context retention duration. | [optional] +**port** | **int** | The port to listen on. | [optional] +**service** | **bool** | Property to enable/diable the NDMP service. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpSettingsVariable.md b/docs/NdmpSettingsVariable.md new file mode 100644 index 000000000..2fa287918 --- /dev/null +++ b/docs/NdmpSettingsVariable.md @@ -0,0 +1,10 @@ +# NdmpSettingsVariable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | The value of environment variable. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpUser.md b/docs/NdmpUser.md new file mode 100644 index 000000000..7355f2c0b --- /dev/null +++ b/docs/NdmpUser.md @@ -0,0 +1,10 @@ +# NdmpUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**password** | **str** | The password for the NDMP administrator. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpUserCreateParams.md b/docs/NdmpUserCreateParams.md new file mode 100644 index 000000000..e9a2b9084 --- /dev/null +++ b/docs/NdmpUserCreateParams.md @@ -0,0 +1,11 @@ +# NdmpUserCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**password** | **str** | The password for the NDMP administrator. | +**name** | **str** | A unique user name for NDMP administrator. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpUsers.md b/docs/NdmpUsers.md new file mode 100644 index 000000000..968a60252 --- /dev/null +++ b/docs/NdmpUsers.md @@ -0,0 +1,11 @@ +# NdmpUsers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique display ID. | [optional] +**name** | **str** | A unique user name for NDMP administrator. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NdmpUsersExtended.md b/docs/NdmpUsersExtended.md new file mode 100644 index 000000000..9df42b4f0 --- /dev/null +++ b/docs/NdmpUsersExtended.md @@ -0,0 +1,11 @@ +# NdmpUsersExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **int** | Total number of items available. | [optional] +**users** | [**list[NdmpUsers]**](NdmpUsers.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkApi.md b/docs/NetworkApi.md new file mode 100644 index 000000000..2ba80a261 --- /dev/null +++ b/docs/NetworkApi.md @@ -0,0 +1,815 @@ +# isi_sdk.NetworkApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_dnscache_flush_item**](NetworkApi.md#create_dnscache_flush_item) | **POST** /platform/3/network/dnscache/flush | +[**create_network_groupnet**](NetworkApi.md#create_network_groupnet) | **POST** /platform/3/network/groupnets | +[**create_network_sc_rebalance_all_item**](NetworkApi.md#create_network_sc_rebalance_all_item) | **POST** /platform/3/network/sc-rebalance-all | +[**delete_network_groupnet**](NetworkApi.md#delete_network_groupnet) | **DELETE** /platform/3/network/groupnets/{NetworkGroupnetId} | +[**get_network_dnscache**](NetworkApi.md#get_network_dnscache) | **GET** /platform/3/network/dnscache | +[**get_network_external**](NetworkApi.md#get_network_external) | **GET** /platform/3/network/external | +[**get_network_groupnet**](NetworkApi.md#get_network_groupnet) | **GET** /platform/3/network/groupnets/{NetworkGroupnetId} | +[**get_network_interfaces**](NetworkApi.md#get_network_interfaces) | **GET** /platform/3/network/interfaces | +[**get_network_pools**](NetworkApi.md#get_network_pools) | **GET** /platform/3/network/pools | +[**get_network_rules**](NetworkApi.md#get_network_rules) | **GET** /platform/3/network/rules | +[**get_network_subnets**](NetworkApi.md#get_network_subnets) | **GET** /platform/3/network/subnets | +[**list_network_groupnets**](NetworkApi.md#list_network_groupnets) | **GET** /platform/3/network/groupnets | +[**update_network_dnscache**](NetworkApi.md#update_network_dnscache) | **PUT** /platform/3/network/dnscache | +[**update_network_external**](NetworkApi.md#update_network_external) | **PUT** /platform/3/network/external | +[**update_network_groupnet**](NetworkApi.md#update_network_groupnet) | **PUT** /platform/3/network/groupnets/{NetworkGroupnetId} | + + +# **create_dnscache_flush_item** +> Empty create_dnscache_flush_item(dnscache_flush_item) + + + +Flush the DNSCache. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +dnscache_flush_item = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_dnscache_flush_item(dnscache_flush_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->create_dnscache_flush_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dnscache_flush_item** | [**Empty**](Empty.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_network_groupnet** +> CreateResponse create_network_groupnet(network_groupnet) + + + +Create a new groupnet. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +network_groupnet = isi_sdk.NetworkGroupnet() # NetworkGroupnet | + +try: + api_response = api_instance.create_network_groupnet(network_groupnet) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->create_network_groupnet: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_groupnet** | [**NetworkGroupnet**](NetworkGroupnet.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_network_sc_rebalance_all_item** +> Empty create_network_sc_rebalance_all_item(network_sc_rebalance_all_item) + + + +Rebalance IP addresses in all pools. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +network_sc_rebalance_all_item = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_network_sc_rebalance_all_item(network_sc_rebalance_all_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->create_network_sc_rebalance_all_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_sc_rebalance_all_item** | [**Empty**](Empty.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_network_groupnet** +> delete_network_groupnet(network_groupnet_id) + + + +Delete a network groupnet. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +network_groupnet_id = 'network_groupnet_id_example' # str | Delete a network groupnet. + +try: + api_instance.delete_network_groupnet(network_groupnet_id) +except ApiException as e: + print "Exception when calling NetworkApi->delete_network_groupnet: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_groupnet_id** | **str**| Delete a network groupnet. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_network_dnscache** +> NetworkDnscache get_network_dnscache() + + + +View network dns cache settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() + +try: + api_response = api_instance.get_network_dnscache() + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->get_network_dnscache: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NetworkDnscache**](NetworkDnscache.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_network_external** +> NetworkExternal get_network_external() + + + +View external network settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() + +try: + api_response = api_instance.get_network_external() + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->get_network_external: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NetworkExternal**](NetworkExternal.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_network_groupnet** +> NetworkGroupnets get_network_groupnet(network_groupnet_id) + + + +View a network groupnet. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +network_groupnet_id = 'network_groupnet_id_example' # str | View a network groupnet. + +try: + api_response = api_instance.get_network_groupnet(network_groupnet_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->get_network_groupnet: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_groupnet_id** | **str**| View a network groupnet. | + +### Return type + +[**NetworkGroupnets**](NetworkGroupnets.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_network_interfaces** +> PoolsPoolInterfaces get_network_interfaces(sort=sort, network=network, resume=resume, lnns=lnns, alloc_method=alloc_method, limit=limit, dir=dir) + + + +Get a list of interfaces. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +network = 'network_example' # str | Show interfaces associated with external and/or internal networks. Default is 'external' (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +lnns = 'lnns_example' # str | Get a list of interfaces for the specified lnn. (optional) +alloc_method = 'alloc_method_example' # str | Filter addresses and owners by pool address allocation method. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_network_interfaces(sort=sort, network=network, resume=resume, lnns=lnns, alloc_method=alloc_method, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->get_network_interfaces: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **network** | **str**| Show interfaces associated with external and/or internal networks. Default is 'external' | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **lnns** | **str**| Get a list of interfaces for the specified lnn. | [optional] + **alloc_method** | **str**| Filter addresses and owners by pool address allocation method. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**PoolsPoolInterfaces**](PoolsPoolInterfaces.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_network_pools** +> NetworkPools get_network_pools(sort=sort, subnet=subnet, resume=resume, access_zone=access_zone, alloc_method=alloc_method, limit=limit, groupnet=groupnet, dir=dir) + + + +Get a list of flexnet pools. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +subnet = 'subnet_example' # str | If specified, only pools for this subnet will be returned. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +access_zone = 'access_zone_example' # str | If specified, only pools with this zone name will be returned. (optional) +alloc_method = 'alloc_method_example' # str | If specified, only pools with this allocation type will be returned. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +groupnet = 'groupnet_example' # str | If specified, only pools for this groupnet will be returned. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_network_pools(sort=sort, subnet=subnet, resume=resume, access_zone=access_zone, alloc_method=alloc_method, limit=limit, groupnet=groupnet, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->get_network_pools: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **subnet** | **str**| If specified, only pools for this subnet will be returned. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **access_zone** | **str**| If specified, only pools with this zone name will be returned. | [optional] + **alloc_method** | **str**| If specified, only pools with this allocation type will be returned. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **groupnet** | **str**| If specified, only pools for this groupnet will be returned. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**NetworkPools**](NetworkPools.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_network_rules** +> NetworkRules get_network_rules(sort=sort, subnet=subnet, resume=resume, limit=limit, dir=dir, groupnet=groupnet, pool=pool) + + + +Get a list of network rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +subnet = 'subnet_example' # str | Name of the subnet to list rules from. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +groupnet = 'groupnet_example' # str | Name of the groupnet to list rules from. (optional) +pool = 'pool_example' # str | Name of the pool to list rules from. (optional) + +try: + api_response = api_instance.get_network_rules(sort=sort, subnet=subnet, resume=resume, limit=limit, dir=dir, groupnet=groupnet, pool=pool) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->get_network_rules: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **subnet** | **str**| Name of the subnet to list rules from. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **groupnet** | **str**| Name of the groupnet to list rules from. | [optional] + **pool** | **str**| Name of the pool to list rules from. | [optional] + +### Return type + +[**NetworkRules**](NetworkRules.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_network_subnets** +> NetworkSubnets get_network_subnets(sort=sort, groupnet=groupnet, limit=limit, dir=dir, resume=resume) + + + +Get a list of subnets. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +groupnet = 'groupnet_example' # str | If specified, only subnets for this groupnet will be returned. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_network_subnets(sort=sort, groupnet=groupnet, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->get_network_subnets: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **groupnet** | **str**| If specified, only subnets for this groupnet will be returned. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**NetworkSubnets**](NetworkSubnets.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_network_groupnets** +> NetworkGroupnetsExtended list_network_groupnets(sort=sort, limit=limit, dir=dir, resume=resume) + + + +Get a list of groupnets. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_network_groupnets(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkApi->list_network_groupnets: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**NetworkGroupnetsExtended**](NetworkGroupnetsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_network_dnscache** +> update_network_dnscache(network_dnscache) + + + +Modify network dns cache settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +network_dnscache = isi_sdk.NetworkDnscacheSetting() # NetworkDnscacheSetting | + +try: + api_instance.update_network_dnscache(network_dnscache) +except ApiException as e: + print "Exception when calling NetworkApi->update_network_dnscache: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_dnscache** | [**NetworkDnscacheSetting**](NetworkDnscacheSetting.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_network_external** +> update_network_external(network_external) + + + +Modify external network settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +network_external = isi_sdk.NetworkExternalExtended() # NetworkExternalExtended | + +try: + api_instance.update_network_external(network_external) +except ApiException as e: + print "Exception when calling NetworkApi->update_network_external: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_external** | [**NetworkExternalExtended**](NetworkExternalExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_network_groupnet** +> update_network_groupnet(network_groupnet, network_groupnet_id) + + + +Modify a network groupnet. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkApi() +network_groupnet = isi_sdk.NetworkGroupnet() # NetworkGroupnet | +network_groupnet_id = 'network_groupnet_id_example' # str | Modify a network groupnet. + +try: + api_instance.update_network_groupnet(network_groupnet, network_groupnet_id) +except ApiException as e: + print "Exception when calling NetworkApi->update_network_groupnet: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **network_groupnet** | [**NetworkGroupnet**](NetworkGroupnet.md)| | + **network_groupnet_id** | **str**| Modify a network groupnet. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/NetworkDnscache.md b/docs/NetworkDnscache.md new file mode 100644 index 000000000..4448377e2 --- /dev/null +++ b/docs/NetworkDnscache.md @@ -0,0 +1,10 @@ +# NetworkDnscache + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**list[NetworkDnscacheSetting]**](NetworkDnscacheSetting.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkDnscacheSetting.md b/docs/NetworkDnscacheSetting.md new file mode 100644 index 000000000..beadde459 --- /dev/null +++ b/docs/NetworkDnscacheSetting.md @@ -0,0 +1,22 @@ +# NetworkDnscacheSetting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cache_entry_limit** | **int** | DNS cache entry limit | +**cluster_timeout** | **int** | Timeout value for calls made to other nodes in the cluster | +**dns_timeout** | **int** | Timeout value for calls made to the dns resolvers | +**eager_refresh** | **int** | Lead time to refresh cache entries nearing expiration | +**testping_delta** | **int** | Deltas for checking cbind cluster health | +**ttl_max_noerror** | **int** | Upper bound on ttl for cache hits | +**ttl_max_nxdomain** | **int** | Upper bound on ttl for nxdomain | +**ttl_max_other** | **int** | Upper bound on ttl for non-nxdomain failures | +**ttl_max_servfail** | **int** | Upper bound on ttl for server failures | +**ttl_min_noerror** | **int** | Lower bound on ttl for cache hits | +**ttl_min_nxdomain** | **int** | Lower bound on ttl for nxdomain | +**ttl_min_other** | **int** | Lower bound on ttl for non-nxdomain failures | +**ttl_min_servfail** | **int** | Lower bound on ttl for server failures | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkExternal.md b/docs/NetworkExternal.md new file mode 100644 index 000000000..b1efb4bc2 --- /dev/null +++ b/docs/NetworkExternal.md @@ -0,0 +1,10 @@ +# NetworkExternal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**list[NetworkExternalSetting]**](NetworkExternalSetting.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkExternalExtended.md b/docs/NetworkExternalExtended.md new file mode 100644 index 000000000..3e4402f18 --- /dev/null +++ b/docs/NetworkExternalExtended.md @@ -0,0 +1,12 @@ +# NetworkExternalExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sbr** | **bool** | Enable or disable Source Based Routing (Defaults to false) | [optional] +**sc_rebalance_delay** | **int** | Delay in seconds for IP rebalance. | [optional] +**tcp_ports** | **list[int]** | List of client TCP ports. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkExternalSetting.md b/docs/NetworkExternalSetting.md new file mode 100644 index 000000000..3137b2696 --- /dev/null +++ b/docs/NetworkExternalSetting.md @@ -0,0 +1,13 @@ +# NetworkExternalSetting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_groupnet** | **str** | Default client-side DNS settings for non-multitenancy aware programs | +**sbr** | **bool** | Enable or disable Source Based Routing (Defaults to false) | +**sc_rebalance_delay** | **int** | Delay in seconds for IP rebalance. | +**tcp_ports** | **list[int]** | List of client TCP ports. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkGroupnet.md b/docs/NetworkGroupnet.md new file mode 100644 index 000000000..dd4f78bbd --- /dev/null +++ b/docs/NetworkGroupnet.md @@ -0,0 +1,16 @@ +# NetworkGroupnet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description of the groupnet. | [optional] +**dns_cache_enabled** | **bool** | DNS caching is enabled or disabled. | [optional] +**dns_options** | **list[str]** | List of DNS resolver options. | [optional] +**dns_search** | **list[str]** | List of DNS search suffixes. | [optional] +**dns_servers** | **list[str]** | List of Domain Name Server IP addresses. | [optional] +**name** | **str** | The name of the groupnet. | [optional] +**server_side_dns_search** | **bool** | Enable or disable appending nodes DNS search list to client DNS inquiries directed at SmartConnect service IP. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkGroupnetExtended.md b/docs/NetworkGroupnetExtended.md new file mode 100644 index 000000000..29ac13d10 --- /dev/null +++ b/docs/NetworkGroupnetExtended.md @@ -0,0 +1,18 @@ +# NetworkGroupnetExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | A description of the groupnet. | [optional] +**dns_cache_enabled** | **bool** | DNS caching is enabled or disabled. | [optional] +**dns_options** | **list[str]** | List of DNS resolver options. | [optional] +**dns_search** | **list[str]** | List of DNS search suffixes. | [optional] +**dns_servers** | **list[str]** | List of Domain Name Server IP addresses. | [optional] +**name** | **str** | The name of the groupnet. | [optional] +**server_side_dns_search** | **bool** | Enable or disable appending nodes DNS search list to client DNS inquiries directed at SmartConnect service IP. | [optional] +**id** | **str** | Unique Interface ID. | [optional] +**subnets** | **list[str]** | Name of the subnets in the groupnet. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkGroupnets.md b/docs/NetworkGroupnets.md new file mode 100644 index 000000000..c59e4966f --- /dev/null +++ b/docs/NetworkGroupnets.md @@ -0,0 +1,10 @@ +# NetworkGroupnets + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groupnets** | [**list[NetworkGroupnetExtended]**](NetworkGroupnetExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkGroupnetsApi.md b/docs/NetworkGroupnetsApi.md new file mode 100644 index 000000000..84990760f --- /dev/null +++ b/docs/NetworkGroupnetsApi.md @@ -0,0 +1,572 @@ +# isi_sdk.NetworkGroupnetsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_groupnet_subnet**](NetworkGroupnetsApi.md#create_groupnet_subnet) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets | +[**create_subnets_subnet_pool**](NetworkGroupnetsApi.md#create_subnets_subnet_pool) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools | +[**delete_groupnet_subnet**](NetworkGroupnetsApi.md#delete_groupnet_subnet) | **DELETE** /platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId} | +[**delete_subnets_subnet_pool**](NetworkGroupnetsApi.md#delete_subnets_subnet_pool) | **DELETE** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId} | +[**get_groupnet_subnet**](NetworkGroupnetsApi.md#get_groupnet_subnet) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId} | +[**get_subnets_subnet_pool**](NetworkGroupnetsApi.md#get_subnets_subnet_pool) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId} | +[**list_groupnet_subnets**](NetworkGroupnetsApi.md#list_groupnet_subnets) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets | +[**list_subnets_subnet_pools**](NetworkGroupnetsApi.md#list_subnets_subnet_pools) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools | +[**update_groupnet_subnet**](NetworkGroupnetsApi.md#update_groupnet_subnet) | **PUT** /platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId} | +[**update_subnets_subnet_pool**](NetworkGroupnetsApi.md#update_subnets_subnet_pool) | **PUT** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId} | + + +# **create_groupnet_subnet** +> CreateResponse create_groupnet_subnet(groupnet_subnet, groupnet) + + + +Create a new subnet. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +groupnet_subnet = isi_sdk.GroupnetSubnetCreateParams() # GroupnetSubnetCreateParams | +groupnet = 'groupnet_example' # str | + +try: + api_response = api_instance.create_groupnet_subnet(groupnet_subnet, groupnet) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->create_groupnet_subnet: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupnet_subnet** | [**GroupnetSubnetCreateParams**](GroupnetSubnetCreateParams.md)| | + **groupnet** | **str**| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_subnets_subnet_pool** +> CreateResponse create_subnets_subnet_pool(subnets_subnet_pool, groupnet, subnet, force=force) + + + +Create a new pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +subnets_subnet_pool = isi_sdk.SubnetsSubnetPool() # SubnetsSubnetPool | +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +force = true # bool | force creating this pool even if it causes an MTU conflict. (optional) + +try: + api_response = api_instance.create_subnets_subnet_pool(subnets_subnet_pool, groupnet, subnet, force=force) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->create_subnets_subnet_pool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subnets_subnet_pool** | [**SubnetsSubnetPool**](SubnetsSubnetPool.md)| | + **groupnet** | **str**| | + **subnet** | **str**| | + **force** | **bool**| force creating this pool even if it causes an MTU conflict. | [optional] + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_groupnet_subnet** +> delete_groupnet_subnet(groupnet_subnet_id, groupnet, force=force) + + + +Delete a network subnet.. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +groupnet_subnet_id = 'groupnet_subnet_id_example' # str | Delete a network subnet.. +groupnet = 'groupnet_example' # str | +force = true # bool | force deleting this subnet even if pools in other subnets rely on this subnet's SC VIP. (optional) + +try: + api_instance.delete_groupnet_subnet(groupnet_subnet_id, groupnet, force=force) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->delete_groupnet_subnet: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupnet_subnet_id** | **str**| Delete a network subnet.. | + **groupnet** | **str**| | + **force** | **bool**| force deleting this subnet even if pools in other subnets rely on this subnet's SC VIP. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_subnets_subnet_pool** +> delete_subnets_subnet_pool(subnets_subnet_pool_id, groupnet, subnet) + + + +Delete a network pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +subnets_subnet_pool_id = 'subnets_subnet_pool_id_example' # str | Delete a network pool. +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | + +try: + api_instance.delete_subnets_subnet_pool(subnets_subnet_pool_id, groupnet, subnet) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->delete_subnets_subnet_pool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subnets_subnet_pool_id** | **str**| Delete a network pool. | + **groupnet** | **str**| | + **subnet** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_groupnet_subnet** +> GroupnetSubnets get_groupnet_subnet(groupnet_subnet_id, groupnet, force=force) + + + +View a network subnet. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +groupnet_subnet_id = 'groupnet_subnet_id_example' # str | View a network subnet. +groupnet = 'groupnet_example' # str | +force = true # bool | force modifying this subnet even if it causes an MTU conflict. (optional) + +try: + api_response = api_instance.get_groupnet_subnet(groupnet_subnet_id, groupnet, force=force) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->get_groupnet_subnet: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupnet_subnet_id** | **str**| View a network subnet. | + **groupnet** | **str**| | + **force** | **bool**| force modifying this subnet even if it causes an MTU conflict. | [optional] + +### Return type + +[**GroupnetSubnets**](GroupnetSubnets.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_subnets_subnet_pool** +> SubnetsSubnetPools get_subnets_subnet_pool(subnets_subnet_pool_id, groupnet, subnet) + + + +View a single network pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +subnets_subnet_pool_id = 'subnets_subnet_pool_id_example' # str | View a single network pool. +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | + +try: + api_response = api_instance.get_subnets_subnet_pool(subnets_subnet_pool_id, groupnet, subnet) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->get_subnets_subnet_pool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subnets_subnet_pool_id** | **str**| View a single network pool. | + **groupnet** | **str**| | + **subnet** | **str**| | + +### Return type + +[**SubnetsSubnetPools**](SubnetsSubnetPools.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_groupnet_subnets** +> GroupnetSubnetsExtended list_groupnet_subnets(groupnet, sort=sort, limit=limit, dir=dir, resume=resume) + + + +Get a list of subnets. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +groupnet = 'groupnet_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_groupnet_subnets(groupnet, sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->list_groupnet_subnets: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupnet** | **str**| | + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**GroupnetSubnetsExtended**](GroupnetSubnetsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_subnets_subnet_pools** +> SubnetsSubnetPoolsExtended list_subnets_subnet_pools(groupnet, subnet, sort=sort, resume=resume, access_zone=access_zone, alloc_method=alloc_method, limit=limit, dir=dir) + + + +Get a list of network pools. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +access_zone = 'access_zone_example' # str | If specified, only pools with this zone name will be returned. (optional) +alloc_method = 'alloc_method_example' # str | If specified, only pools with this allocation type will be returned. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_subnets_subnet_pools(groupnet, subnet, sort=sort, resume=resume, access_zone=access_zone, alloc_method=alloc_method, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->list_subnets_subnet_pools: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupnet** | **str**| | + **subnet** | **str**| | + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **access_zone** | **str**| If specified, only pools with this zone name will be returned. | [optional] + **alloc_method** | **str**| If specified, only pools with this allocation type will be returned. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**SubnetsSubnetPoolsExtended**](SubnetsSubnetPoolsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_groupnet_subnet** +> update_groupnet_subnet(groupnet_subnet, groupnet_subnet_id, groupnet) + + + +Modify a network subnet. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +groupnet_subnet = isi_sdk.GroupnetSubnet() # GroupnetSubnet | +groupnet_subnet_id = 'groupnet_subnet_id_example' # str | Modify a network subnet. +groupnet = 'groupnet_example' # str | + +try: + api_instance.update_groupnet_subnet(groupnet_subnet, groupnet_subnet_id, groupnet) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->update_groupnet_subnet: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupnet_subnet** | [**GroupnetSubnet**](GroupnetSubnet.md)| | + **groupnet_subnet_id** | **str**| Modify a network subnet. | + **groupnet** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_subnets_subnet_pool** +> update_subnets_subnet_pool(subnets_subnet_pool, subnets_subnet_pool_id, groupnet, subnet, force=force) + + + +Modify a network pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsApi() +subnets_subnet_pool = isi_sdk.SubnetsSubnetPool() # SubnetsSubnetPool | +subnets_subnet_pool_id = 'subnets_subnet_pool_id_example' # str | Modify a network pool. +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +force = true # bool | force creating this pool even if it causes an MTU conflict. (optional) + +try: + api_instance.update_subnets_subnet_pool(subnets_subnet_pool, subnets_subnet_pool_id, groupnet, subnet, force=force) +except ApiException as e: + print "Exception when calling NetworkGroupnetsApi->update_subnets_subnet_pool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subnets_subnet_pool** | [**SubnetsSubnetPool**](SubnetsSubnetPool.md)| | + **subnets_subnet_pool_id** | **str**| Modify a network pool. | + **groupnet** | **str**| | + **subnet** | **str**| | + **force** | **bool**| force creating this pool even if it causes an MTU conflict. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/NetworkGroupnetsExtended.md b/docs/NetworkGroupnetsExtended.md new file mode 100644 index 000000000..f60ed1b3c --- /dev/null +++ b/docs/NetworkGroupnetsExtended.md @@ -0,0 +1,12 @@ +# NetworkGroupnetsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groupnets** | [**list[NetworkGroupnetExtended]**](NetworkGroupnetExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkGroupnetsSubnetsApi.md b/docs/NetworkGroupnetsSubnetsApi.md new file mode 100644 index 000000000..3327e21fd --- /dev/null +++ b/docs/NetworkGroupnetsSubnetsApi.md @@ -0,0 +1,535 @@ +# isi_sdk.NetworkGroupnetsSubnetsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_pools_pool_rebalance_ip**](NetworkGroupnetsSubnetsApi.md#create_pools_pool_rebalance_ip) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rebalance-ips | +[**create_pools_pool_rule**](NetworkGroupnetsSubnetsApi.md#create_pools_pool_rule) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules | +[**create_pools_pool_sc_resume_node**](NetworkGroupnetsSubnetsApi.md#create_pools_pool_sc_resume_node) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/sc-resume-nodes | +[**create_pools_pool_sc_suspend_node**](NetworkGroupnetsSubnetsApi.md#create_pools_pool_sc_suspend_node) | **POST** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/sc-suspend-nodes | +[**delete_pools_pool_rule**](NetworkGroupnetsSubnetsApi.md#delete_pools_pool_rule) | **DELETE** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId} | +[**get_pools_pool_interfaces**](NetworkGroupnetsSubnetsApi.md#get_pools_pool_interfaces) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/interfaces | +[**get_pools_pool_rule**](NetworkGroupnetsSubnetsApi.md#get_pools_pool_rule) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId} | +[**list_pools_pool_rules**](NetworkGroupnetsSubnetsApi.md#list_pools_pool_rules) | **GET** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules | +[**update_pools_pool_rule**](NetworkGroupnetsSubnetsApi.md#update_pools_pool_rule) | **PUT** /platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId} | + + +# **create_pools_pool_rebalance_ip** +> Empty create_pools_pool_rebalance_ip(pools_pool_rebalance_ip, groupnet, subnet, pool) + + + +Rebalance IP addresses in specified pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +pools_pool_rebalance_ip = isi_sdk.Empty() # Empty | +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | + +try: + api_response = api_instance.create_pools_pool_rebalance_ip(pools_pool_rebalance_ip, groupnet, subnet, pool) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->create_pools_pool_rebalance_ip: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pools_pool_rebalance_ip** | [**Empty**](Empty.md)| | + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pools_pool_rule** +> CreateResponse create_pools_pool_rule(pools_pool_rule, groupnet, subnet, pool) + + + +Create a new rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +pools_pool_rule = isi_sdk.PoolsPoolRule() # PoolsPoolRule | +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | + +try: + api_response = api_instance.create_pools_pool_rule(pools_pool_rule, groupnet, subnet, pool) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->create_pools_pool_rule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pools_pool_rule** | [**PoolsPoolRule**](PoolsPoolRule.md)| | + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pools_pool_sc_resume_node** +> Empty create_pools_pool_sc_resume_node(pools_pool_sc_resume_node, groupnet, subnet, pool) + + + +Resume suspended nodes. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +pools_pool_sc_resume_node = isi_sdk.PoolsPoolScResumeNode() # PoolsPoolScResumeNode | +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | + +try: + api_response = api_instance.create_pools_pool_sc_resume_node(pools_pool_sc_resume_node, groupnet, subnet, pool) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->create_pools_pool_sc_resume_node: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pools_pool_sc_resume_node** | [**PoolsPoolScResumeNode**](PoolsPoolScResumeNode.md)| | + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_pools_pool_sc_suspend_node** +> Empty create_pools_pool_sc_suspend_node(pools_pool_sc_suspend_node, groupnet, subnet, pool) + + + +Suspend nodes. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +pools_pool_sc_suspend_node = isi_sdk.PoolsPoolScResumeNode() # PoolsPoolScResumeNode | +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | + +try: + api_response = api_instance.create_pools_pool_sc_suspend_node(pools_pool_sc_suspend_node, groupnet, subnet, pool) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->create_pools_pool_sc_suspend_node: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pools_pool_sc_suspend_node** | [**PoolsPoolScResumeNode**](PoolsPoolScResumeNode.md)| | + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_pools_pool_rule** +> delete_pools_pool_rule(pools_pool_rule_id, groupnet, subnet, pool) + + + +Delete a network rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +pools_pool_rule_id = 'pools_pool_rule_id_example' # str | Delete a network rule. +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | + +try: + api_instance.delete_pools_pool_rule(pools_pool_rule_id, groupnet, subnet, pool) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->delete_pools_pool_rule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pools_pool_rule_id** | **str**| Delete a network rule. | + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pools_pool_interfaces** +> PoolsPoolInterfaces get_pools_pool_interfaces(groupnet, subnet, pool, sort=sort, resume=resume, limit=limit, dir=dir, lnns=lnns) + + + +Get a list of interfaces. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +lnns = 'lnns_example' # str | Get a list of interfaces for the specified lnn. (optional) + +try: + api_response = api_instance.get_pools_pool_interfaces(groupnet, subnet, pool, sort=sort, resume=resume, limit=limit, dir=dir, lnns=lnns) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->get_pools_pool_interfaces: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **lnns** | **str**| Get a list of interfaces for the specified lnn. | [optional] + +### Return type + +[**PoolsPoolInterfaces**](PoolsPoolInterfaces.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_pools_pool_rule** +> PoolsPoolRules get_pools_pool_rule(pools_pool_rule_id, groupnet, subnet, pool) + + + +View a single network rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +pools_pool_rule_id = 'pools_pool_rule_id_example' # str | View a single network rule. +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | + +try: + api_response = api_instance.get_pools_pool_rule(pools_pool_rule_id, groupnet, subnet, pool) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->get_pools_pool_rule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pools_pool_rule_id** | **str**| View a single network rule. | + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + +### Return type + +[**PoolsPoolRules**](PoolsPoolRules.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_pools_pool_rules** +> PoolsPoolRulesExtended list_pools_pool_rules(groupnet, subnet, pool, sort=sort, limit=limit, dir=dir, resume=resume) + + + +Get a list of network rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_pools_pool_rules(groupnet, subnet, pool, sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->list_pools_pool_rules: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**PoolsPoolRulesExtended**](PoolsPoolRulesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_pools_pool_rule** +> update_pools_pool_rule(pools_pool_rule, pools_pool_rule_id, groupnet, subnet, pool) + + + +Modify a network rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.NetworkGroupnetsSubnetsApi() +pools_pool_rule = isi_sdk.PoolsPoolRule() # PoolsPoolRule | +pools_pool_rule_id = 'pools_pool_rule_id_example' # str | Modify a network rule. +groupnet = 'groupnet_example' # str | +subnet = 'subnet_example' # str | +pool = 'pool_example' # str | + +try: + api_instance.update_pools_pool_rule(pools_pool_rule, pools_pool_rule_id, groupnet, subnet, pool) +except ApiException as e: + print "Exception when calling NetworkGroupnetsSubnetsApi->update_pools_pool_rule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pools_pool_rule** | [**PoolsPoolRule**](PoolsPoolRule.md)| | + **pools_pool_rule_id** | **str**| Modify a network rule. | + **groupnet** | **str**| | + **subnet** | **str**| | + **pool** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/NetworkPools.md b/docs/NetworkPools.md new file mode 100644 index 000000000..9b5378562 --- /dev/null +++ b/docs/NetworkPools.md @@ -0,0 +1,12 @@ +# NetworkPools + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pools** | [**list[SubnetsSubnetPoolsPool]**](SubnetsSubnetPoolsPool.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkRules.md b/docs/NetworkRules.md new file mode 100644 index 000000000..35d73c558 --- /dev/null +++ b/docs/NetworkRules.md @@ -0,0 +1,12 @@ +# NetworkRules + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**rules** | [**list[PoolsPoolRulesRule]**](PoolsPoolRulesRule.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkSubnet.md b/docs/NetworkSubnet.md new file mode 100644 index 000000000..19ef6cb40 --- /dev/null +++ b/docs/NetworkSubnet.md @@ -0,0 +1,24 @@ +# NetworkSubnet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addr_family** | **str** | IP address format. | [optional] +**base_addr** | **str** | The base IP address. | [optional] +**description** | **str** | A description of the subnet. | [optional] +**dsr_addrs** | **list[str]** | List of Direct Server Return addresses. | [optional] +**gateway** | **str** | Gateway IP address. | [optional] +**gateway_priority** | **int** | Gateway priority. | [optional] +**groupnet** | **str** | Name of the groupnet this subnet belongs to. | [optional] +**id** | **str** | Unique Subnet ID. | [optional] +**mtu** | **int** | MTU of the subnet. | [optional] +**name** | **str** | The name of the subnet. | [optional] +**pools** | **list[str]** | Name of the pools in the subnet. | [optional] +**prefixlen** | **int** | Subnet Prefix Length. | [optional] +**sc_service_addr** | **str** | The address that SmartConnect listens for DNS requests. | [optional] +**vlan_enabled** | **bool** | VLAN tagging enabled or disabled. | [optional] +**vlan_id** | **int** | VLAN ID for all interfaces in the subnet. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkSubnets.md b/docs/NetworkSubnets.md new file mode 100644 index 000000000..049f9b283 --- /dev/null +++ b/docs/NetworkSubnets.md @@ -0,0 +1,12 @@ +# NetworkSubnets + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**subnets** | [**list[NetworkSubnet]**](NetworkSubnet.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsAliase.md b/docs/NfsAliase.md new file mode 100644 index 000000000..a2536af0d --- /dev/null +++ b/docs/NfsAliase.md @@ -0,0 +1,13 @@ +# NfsAliase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health** | **str** | Specifies whether the alias is usable. | [optional] +**name** | **str** | Specifies the name by which the alias can be referenced. | [optional] +**path** | **str** | Specifies the path to which the alias points. | [optional] +**zone** | **str** | Specifies the zone in which the alias is valid. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsAliaseExtended.md b/docs/NfsAliaseExtended.md new file mode 100644 index 000000000..32f9b9876 --- /dev/null +++ b/docs/NfsAliaseExtended.md @@ -0,0 +1,14 @@ +# NfsAliaseExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**health** | **str** | Specifies whether the alias is usable. | [optional] +**name** | **str** | Specifies the name by which the alias can be referenced. | [optional] +**path** | **str** | Specifies the path to which the alias points. | [optional] +**zone** | **str** | Specifies the zone in which the alias is valid. | [optional] +**id** | **str** | Specifies a string which represents the unique location of the alias. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsAliases.md b/docs/NfsAliases.md new file mode 100644 index 000000000..b7ac653de --- /dev/null +++ b/docs/NfsAliases.md @@ -0,0 +1,10 @@ +# NfsAliases + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aliases** | [**list[NfsAliaseExtended]**](NfsAliaseExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsAliasesExtended.md b/docs/NfsAliasesExtended.md new file mode 100644 index 000000000..8a3d081ac --- /dev/null +++ b/docs/NfsAliasesExtended.md @@ -0,0 +1,12 @@ +# NfsAliasesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aliases** | [**list[NfsAliaseExtended]**](NfsAliaseExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsCheck.md b/docs/NfsCheck.md new file mode 100644 index 000000000..956fc53f4 --- /dev/null +++ b/docs/NfsCheck.md @@ -0,0 +1,11 @@ +# NfsCheck + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The ID of the export. | +**messages** | **str** | The message about the export. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsCheckExtended.md b/docs/NfsCheckExtended.md new file mode 100644 index 000000000..6b6ef2120 --- /dev/null +++ b/docs/NfsCheckExtended.md @@ -0,0 +1,10 @@ +# NfsCheckExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checks** | [**list[NfsCheck]**](NfsCheck.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsExport.md b/docs/NfsExport.md new file mode 100644 index 000000000..85ad34daa --- /dev/null +++ b/docs/NfsExport.md @@ -0,0 +1,57 @@ +# NfsExport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all_dirs** | **bool** | True if all directories under the specified paths are mountable. | [optional] +**block_size** | **int** | Specifies the block size returned by the NFS statfs procedure. | [optional] +**can_set_time** | **bool** | True if the client can set file times through the NFS set attribute request. This parameter does not affect server behavior, but is included to accommoate legacy client requirements. | [optional] +**case_insensitive** | **bool** | True if the case is ignored for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**case_preserving** | **bool** | True if the case is preserved for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**chown_restricted** | **bool** | True if the superuser can change file ownership. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**clients** | **list[str]** | Specifies the clients with root access to the export. | [optional] +**commit_asynchronous** | **bool** | True if NFS commit requests execute asynchronously. | [optional] +**description** | **str** | Specifies the user-defined string that is used to identify the export. | [optional] +**directory_transfer_size** | **int** | Specifies the preferred size for directory read operations. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**encoding** | **str** | Specifies the default character set encoding of the clients connecting to the export, unless otherwise specified. | [optional] +**link_max** | **int** | Specifies the reported maximum number of links to a file. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**map_all** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_failure** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_full** | **bool** | True if user mappings query the OneFS user database. When set to false, user mappings only query local authentication. | [optional] +**map_lookup_uid** | **bool** | True if incoming user IDs (UIDs) are mapped to users in the OneFS user database. When set to false, incoming UIDs are applied directly to file operations. | [optional] +**map_non_root** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_retry** | **bool** | Determines whether searches for users specified in 'map_all', 'map_root' or 'map_nonroot' are retried if the search fails. | [optional] +**map_root** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**max_file_size** | **int** | Specifies the maximum file size for any file accessed from the export. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**name_max_size** | **int** | Specifies the reported maximum length of a file name. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**no_truncate** | **bool** | True if long file names result in an error. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**paths** | **list[str]** | Specifies the paths under /ifs that are exported. | [optional] +**read_only** | **bool** | True if the export is set to read-only. | [optional] +**read_only_clients** | **list[str]** | Specifies the clients with read-only access to the export. | [optional] +**read_transfer_max_size** | **int** | Specifies the maximum buffer size that clients should use on NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**read_transfer_multiple** | **int** | Specifies the preferred multiple size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**read_transfer_size** | **int** | Specifies the preferred size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**read_write_clients** | **list[str]** | Specifies the clients with both read and write access to the export, even when the export is set to read-only. | [optional] +**readdirplus** | **bool** | True if 'readdirplus' requests are enabled. Enabling this property might improve network performance and is only available for NFSv3. | [optional] +**readdirplus_prefetch** | **int** | Sets the number of directory entries that are prefetched when a 'readdirplus' request is processed. (Deprecated.) | [optional] +**return_32bit_file_ids** | **bool** | Limits the size of file identifiers returned by NFSv3+ to 32-bit values. | [optional] +**root_clients** | **list[str]** | Clients that have root access to the export. | [optional] +**security_flavors** | **list[str]** | Specifies the authentication types that are supported for this export. | [optional] +**setattr_asynchronous** | **bool** | True if set attribute operations execute asynchronously. | [optional] +**snapshot** | **str** | Specifies the snapshot for all mounts. | [optional] +**symlinks** | **bool** | True if symlinks are supported. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**time_delta** | **float** | Specifies the resolution of all time values that are returned to the clients | [optional] +**write_datasync_action** | **str** | Specifies the synchronization type. | [optional] +**write_datasync_reply** | **str** | Specifies the synchronization type. | [optional] +**write_filesync_action** | **str** | Specifies the synchronization type. | [optional] +**write_filesync_reply** | **str** | Specifies the synchronization type. | [optional] +**write_transfer_max_size** | **int** | Specifies the maximum buffer size that clients should use on NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_transfer_multiple** | **int** | Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_transfer_size** | **int** | Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_unstable_action** | **str** | Specifies the synchronization type. | [optional] +**write_unstable_reply** | **str** | Specifies the synchronization type. | [optional] +**zone** | **str** | Specifies the zone in which the export is valid. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsExportExtended.md b/docs/NfsExportExtended.md new file mode 100644 index 000000000..14246aac9 --- /dev/null +++ b/docs/NfsExportExtended.md @@ -0,0 +1,60 @@ +# NfsExportExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all_dirs** | **bool** | True if all directories under the specified paths are mountable. | [optional] +**block_size** | **int** | Specifies the block size returned by the NFS statfs procedure. | [optional] +**can_set_time** | **bool** | True if the client can set file times through the NFS set attribute request. This parameter does not affect server behavior, but is included to accommoate legacy client requirements. | [optional] +**case_insensitive** | **bool** | True if the case is ignored for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**case_preserving** | **bool** | True if the case is preserved for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**chown_restricted** | **bool** | True if the superuser can change file ownership. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**clients** | **list[str]** | Specifies the clients with root access to the export. | [optional] +**commit_asynchronous** | **bool** | True if NFS commit requests execute asynchronously. | [optional] +**description** | **str** | Specifies the user-defined string that is used to identify the export. | [optional] +**directory_transfer_size** | **int** | Specifies the preferred size for directory read operations. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**encoding** | **str** | Specifies the default character set encoding of the clients connecting to the export, unless otherwise specified. | [optional] +**link_max** | **int** | Specifies the reported maximum number of links to a file. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**map_all** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_failure** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_full** | **bool** | True if user mappings query the OneFS user database. When set to false, user mappings only query local authentication. | [optional] +**map_lookup_uid** | **bool** | True if incoming user IDs (UIDs) are mapped to users in the OneFS user database. When set to false, incoming UIDs are applied directly to file operations. | [optional] +**map_non_root** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_retry** | **bool** | Determines whether searches for users specified in 'map_all', 'map_root' or 'map_nonroot' are retried if the search fails. | [optional] +**map_root** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**max_file_size** | **int** | Specifies the maximum file size for any file accessed from the export. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**name_max_size** | **int** | Specifies the reported maximum length of a file name. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**no_truncate** | **bool** | True if long file names result in an error. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**paths** | **list[str]** | Specifies the paths under /ifs that are exported. | [optional] +**read_only** | **bool** | True if the export is set to read-only. | [optional] +**read_only_clients** | **list[str]** | Specifies the clients with read-only access to the export. | [optional] +**read_transfer_max_size** | **int** | Specifies the maximum buffer size that clients should use on NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**read_transfer_multiple** | **int** | Specifies the preferred multiple size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**read_transfer_size** | **int** | Specifies the preferred size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**read_write_clients** | **list[str]** | Specifies the clients with both read and write access to the export, even when the export is set to read-only. | [optional] +**readdirplus** | **bool** | True if 'readdirplus' requests are enabled. Enabling this property might improve network performance and is only available for NFSv3. | [optional] +**readdirplus_prefetch** | **int** | Sets the number of directory entries that are prefetched when a 'readdirplus' request is processed. (Deprecated.) | [optional] +**return_32bit_file_ids** | **bool** | Limits the size of file identifiers returned by NFSv3+ to 32-bit values. | [optional] +**root_clients** | **list[str]** | Clients that have root access to the export. | [optional] +**security_flavors** | **list[str]** | Specifies the authentication types that are supported for this export. | [optional] +**setattr_asynchronous** | **bool** | True if set attribute operations execute asynchronously. | [optional] +**snapshot** | **str** | Specifies the snapshot for all mounts. | [optional] +**symlinks** | **bool** | True if symlinks are supported. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**time_delta** | **float** | Specifies the resolution of all time values that are returned to the clients | [optional] +**write_datasync_action** | **str** | Specifies the synchronization type. | [optional] +**write_datasync_reply** | **str** | Specifies the synchronization type. | [optional] +**write_filesync_action** | **str** | Specifies the synchronization type. | [optional] +**write_filesync_reply** | **str** | Specifies the synchronization type. | [optional] +**write_transfer_max_size** | **int** | Specifies the maximum buffer size that clients should use on NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_transfer_multiple** | **int** | Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_transfer_size** | **int** | Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_unstable_action** | **str** | Specifies the synchronization type. | [optional] +**write_unstable_reply** | **str** | Specifies the synchronization type. | [optional] +**zone** | **str** | Specifies the zone in which the export is valid. | [optional] +**conflicting_paths** | **list[str]** | Reports the paths that conflict with another export. | [optional] +**id** | **int** | Specifies the system-assigned ID for the export. This ID is returned when an export is created through the POST method. | [optional] +**unresolved_clients** | **list[str]** | Reports clients that cannot be resolved. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsExportMapAll.md b/docs/NfsExportMapAll.md new file mode 100644 index 000000000..011d0f0b1 --- /dev/null +++ b/docs/NfsExportMapAll.md @@ -0,0 +1,13 @@ +# NfsExportMapAll + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | True if the user mapping is applied. | [optional] +**primary_group** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**secondary_groups** | [**list[NfsExportMapAllSecondaryGroups]**](NfsExportMapAllSecondaryGroups.md) | Specifies persona properties for the secondary user group. A persona consists of either a type and name, or an ID. | [optional] +**user** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsExportMapAllSecondaryGroups.md b/docs/NfsExportMapAllSecondaryGroups.md new file mode 100644 index 000000000..3c163e48d --- /dev/null +++ b/docs/NfsExportMapAllSecondaryGroups.md @@ -0,0 +1,12 @@ +# NfsExportMapAllSecondaryGroups + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'. | [optional] +**name** | **str** | Specifies the persona name, which must be combined with a type. | [optional] +**type** | **str** | Specifies the type of persona, which must be combined with a name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsExports.md b/docs/NfsExports.md new file mode 100644 index 000000000..4a73d87bd --- /dev/null +++ b/docs/NfsExports.md @@ -0,0 +1,10 @@ +# NfsExports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exports** | [**list[NfsExportExtended]**](NfsExportExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsExportsExtended.md b/docs/NfsExportsExtended.md new file mode 100644 index 000000000..4f9ffb711 --- /dev/null +++ b/docs/NfsExportsExtended.md @@ -0,0 +1,12 @@ +# NfsExportsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exports** | [**list[NfsExportExtended]**](NfsExportExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsExportsSummary.md b/docs/NfsExportsSummary.md new file mode 100644 index 000000000..be7e52f74 --- /dev/null +++ b/docs/NfsExportsSummary.md @@ -0,0 +1,10 @@ +# NfsExportsSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**NfsExportsSummarySummary**](NfsExportsSummarySummary.md) | The summary of a collection of objects. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsExportsSummarySummary.md b/docs/NfsExportsSummarySummary.md new file mode 100644 index 000000000..59ca478ce --- /dev/null +++ b/docs/NfsExportsSummarySummary.md @@ -0,0 +1,10 @@ +# NfsExportsSummarySummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | The count of objects in the collection | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsLogLevel.md b/docs/NfsLogLevel.md new file mode 100644 index 000000000..b272173e3 --- /dev/null +++ b/docs/NfsLogLevel.md @@ -0,0 +1,10 @@ +# NfsLogLevel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | **str** | Valid NFS logging levels | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsNetgroup.md b/docs/NfsNetgroup.md new file mode 100644 index 000000000..b9c8351f2 --- /dev/null +++ b/docs/NfsNetgroup.md @@ -0,0 +1,9 @@ +# NfsNetgroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsNlmLocks.md b/docs/NfsNlmLocks.md new file mode 100644 index 000000000..ed0f6be2a --- /dev/null +++ b/docs/NfsNlmLocks.md @@ -0,0 +1,12 @@ +# NfsNlmLocks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**locks** | [**list[NfsNlmLocksLock]**](NfsNlmLocksLock.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsNlmLocksLock.md b/docs/NfsNlmLocksLock.md new file mode 100644 index 000000000..857c1be66 --- /dev/null +++ b/docs/NfsNlmLocksLock.md @@ -0,0 +1,17 @@ +# NfsNlmLocksLock + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client** | **str** | Specifies the client host name and IP address. | [optional] +**client_id** | **str** | Specifies the client ID. | [optional] +**created** | **int** | Specifies the UNIX EPoch time that the lock was created. | [optional] +**id** | **str** | Specifies the system-assigned ID given to the lock. This value is returned when the lock is created with the POST method. | [optional] +**lin** | **str** | Specifies the LIN in /ifs that is locked. | [optional] +**lock_type** | **str** | Specifies the lock type. | [optional] +**path** | **str** | Specifies the path under /ifs that is locked. | [optional] +**range** | **list[int]** | Specifies the byte range within the locked file. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsNlmSessions.md b/docs/NfsNlmSessions.md new file mode 100644 index 000000000..579aba417 --- /dev/null +++ b/docs/NfsNlmSessions.md @@ -0,0 +1,10 @@ +# NfsNlmSessions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sessions** | [**list[NfsNlmSessionsSession]**](NfsNlmSessionsSession.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsNlmSessionsExtended.md b/docs/NfsNlmSessionsExtended.md new file mode 100644 index 000000000..3def929d0 --- /dev/null +++ b/docs/NfsNlmSessionsExtended.md @@ -0,0 +1,11 @@ +# NfsNlmSessionsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clients** | [**list[NfsNlmSessionsSession]**](NfsNlmSessionsSession.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsNlmSessionsSession.md b/docs/NfsNlmSessionsSession.md new file mode 100644 index 000000000..b66338e67 --- /dev/null +++ b/docs/NfsNlmSessionsSession.md @@ -0,0 +1,18 @@ +# NfsNlmSessionsSession + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delegates** | **list[int]** | | [optional] +**host_type** | **str** | The sort of host that this entry represents | [optional] +**hostname** | **str** | The host being monitored | [optional] +**is_active** | **bool** | Whether or not the client is actively being monitored | [optional] +**last_modified** | **int** | Unix time in seconds that the client was last modified (monitored or unmonitored) | [optional] +**node_ip** | **str** | An IP address for which NSM has client records | [optional] +**notify_attempts_remaining** | **int** | Number of times we will attempt to notify this client before giving up | [optional] +**notify_error** | **str** | Last error recieved attempting to notify this client | [optional] +**notify_last_attempt** | **int** | Unix time in seconds when we last attempted to notify this clients | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsNlmWaiters.md b/docs/NfsNlmWaiters.md new file mode 100644 index 000000000..98830b92e --- /dev/null +++ b/docs/NfsNlmWaiters.md @@ -0,0 +1,12 @@ +# NfsNlmWaiters + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] +**waiters** | [**list[NfsNlmLocksLock]**](NfsNlmLocksLock.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsSettingsExport.md b/docs/NfsSettingsExport.md new file mode 100644 index 000000000..c28979bda --- /dev/null +++ b/docs/NfsSettingsExport.md @@ -0,0 +1,10 @@ +# NfsSettingsExport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**NfsSettingsExportSettings**](NfsSettingsExportSettings.md) | Specifies configuration values for NFS exports. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsSettingsExportSettings.md b/docs/NfsSettingsExportSettings.md new file mode 100644 index 000000000..bbc4197f4 --- /dev/null +++ b/docs/NfsSettingsExportSettings.md @@ -0,0 +1,51 @@ +# NfsSettingsExportSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**all_dirs** | **bool** | True if all directories under the specified paths are mountable. | [optional] +**block_size** | **int** | Specifies the block size returned by the NFS statfs procedure. | [optional] +**can_set_time** | **bool** | True if the client can set file times through the NFS set attribute request. This parameter does not affect server behavior, but is included to accommoate legacy client requirements. | [optional] +**case_insensitive** | **bool** | True if the case is ignored for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**case_preserving** | **bool** | True if the case is preserved for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**chown_restricted** | **bool** | True if the superuser can change file ownership. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**commit_asynchronous** | **bool** | True if NFS commit requests execute asynchronously. | [optional] +**directory_transfer_size** | **int** | Specifies the preferred size for directory read operations. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**encoding** | **str** | Specifies the default character set encoding of the clients connecting to the export, unless otherwise specified. | [optional] +**link_max** | **int** | Specifies the reported maximum number of links to a file. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**map_all** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_failure** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_full** | **bool** | True if user mappings query the OneFS user database. When set to false, user mappings only query local authentication. | [optional] +**map_lookup_uid** | **bool** | True if incoming user IDs (UIDs) are mapped to users in the OneFS user database. When set to false, incoming UIDs are applied directly to file operations. | [optional] +**map_non_root** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**map_retry** | **bool** | Determines whether searches for users specified in 'map_all', 'map_root' or 'map_nonroot' are retried if the search fails. | [optional] +**map_root** | [**NfsExportMapAll**](NfsExportMapAll.md) | User and group mapping. | [optional] +**max_file_size** | **int** | Specifies the maximum file size for any file accessed from the export. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**name_max_size** | **int** | Specifies the reported maximum length of a file name. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**no_truncate** | **bool** | True if long file names result in an error. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. | [optional] +**read_only** | **bool** | True if the export is set to read-only. | [optional] +**read_transfer_max_size** | **int** | Specifies the maximum buffer size that clients should use on NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**read_transfer_multiple** | **int** | Specifies the preferred multiple size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**read_transfer_size** | **int** | Specifies the preferred size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**readdirplus** | **bool** | True if 'readdirplus' requests are enabled. Enabling this property might improve network performance and is only available for NFSv3. | [optional] +**readdirplus_prefetch** | **int** | Sets the number of directory entries that are prefetched when a 'readdirplus' request is processed. (Deprecated.) | [optional] +**return_32bit_file_ids** | **bool** | Limits the size of file identifiers returned by NFSv3+ to 32-bit values. | [optional] +**security_flavors** | **list[str]** | Specifies the authentication types that are supported for this export. | [optional] +**setattr_asynchronous** | **bool** | True if set attribute operations execute asynchronously. | [optional] +**snapshot** | **str** | Specifies the snapshot for all mounts. | [optional] +**symlinks** | **bool** | True if symlinks are supported. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**time_delta** | **float** | Specifies the resolution of all time values that are returned to the clients | [optional] +**write_datasync_action** | **str** | Specifies the synchronization type. | [optional] +**write_datasync_reply** | **str** | Specifies the synchronization type. | [optional] +**write_filesync_action** | **str** | Specifies the synchronization type. | [optional] +**write_filesync_reply** | **str** | Specifies the synchronization type. | [optional] +**write_transfer_max_size** | **int** | Specifies the maximum buffer size that clients should use on NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_transfer_multiple** | **int** | Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_transfer_size** | **int** | Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. | [optional] +**write_unstable_action** | **str** | Specifies the synchronization type. | [optional] +**write_unstable_reply** | **str** | Specifies the synchronization type. | [optional] +**zone** | **str** | Specifies the zone in which the export is valid. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsSettingsGlobal.md b/docs/NfsSettingsGlobal.md new file mode 100644 index 000000000..bdac1a29e --- /dev/null +++ b/docs/NfsSettingsGlobal.md @@ -0,0 +1,10 @@ +# NfsSettingsGlobal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**NfsSettingsGlobalSettings**](NfsSettingsGlobalSettings.md) | Specifies the global NFS configuration settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsSettingsGlobalSettings.md b/docs/NfsSettingsGlobalSettings.md new file mode 100644 index 000000000..0e04298ff --- /dev/null +++ b/docs/NfsSettingsGlobalSettings.md @@ -0,0 +1,14 @@ +# NfsSettingsGlobalSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nfsv3_enabled** | **bool** | True if NFSv3 is enabled. | [optional] +**nfsv4_enabled** | **bool** | True if NFSv4 is enabled. | [optional] +**rpc_maxthreads** | **int** | Specifies the maximum number of threads in the nfsd thread pool. | [optional] +**rpc_minthreads** | **int** | Specifies the minimum number of threads in the nfsd thread pool. | [optional] +**service** | **bool** | True if the NFS service is enabled. When set to false, the NFS service is disabled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsSettingsZone.md b/docs/NfsSettingsZone.md new file mode 100644 index 000000000..5ee388cd5 --- /dev/null +++ b/docs/NfsSettingsZone.md @@ -0,0 +1,10 @@ +# NfsSettingsZone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**NfsSettingsZoneSettings**](NfsSettingsZoneSettings.md) | Specifies the per-zone NFS configuration settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NfsSettingsZoneSettings.md b/docs/NfsSettingsZoneSettings.md new file mode 100644 index 000000000..f71010587 --- /dev/null +++ b/docs/NfsSettingsZoneSettings.md @@ -0,0 +1,16 @@ +# NfsSettingsZoneSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nfsv4_allow_numeric_ids** | **bool** | If true, sends owners and groups as UIDs and GIDs when look up fails or if the 'nfsv4_no_name' property is set to 1. | [optional] +**nfsv4_domain** | **str** | Specifies the domain or realm through which users and groups are associated. | [optional] +**nfsv4_no_domain** | **bool** | If true, sends owners and groups without a domain name. | [optional] +**nfsv4_no_domain_uids** | **bool** | If true, sends UIDs and GIDs without a domain name. | [optional] +**nfsv4_no_names** | **bool** | If true, sends owners and groups as UIDs and GIDs. | [optional] +**nfsv4_replace_domain** | **bool** | If true, replaces the owner or group domain with an NFS domain name. | [optional] +**zone** | **str** | Specifies the access zones in which these settings apply. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeDrives.md b/docs/NodeDrives.md new file mode 100644 index 000000000..d0a205872 --- /dev/null +++ b/docs/NodeDrives.md @@ -0,0 +1,11 @@ +# NodeDrives + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeDrivesNode]**](NodeDrivesNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeDrivesNode.md b/docs/NodeDrivesNode.md new file mode 100644 index 000000000..d59b65a1b --- /dev/null +++ b/docs/NodeDrivesNode.md @@ -0,0 +1,12 @@ +# NodeDrivesNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**drives** | [**list[NodeDrivesNodeDrive]**](NodeDrivesNodeDrive.md) | List of the drives in this node. | [optional] +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeDrivesNodeDrive.md b/docs/NodeDrivesNodeDrive.md new file mode 100644 index 000000000..58f58621f --- /dev/null +++ b/docs/NodeDrivesNodeDrive.md @@ -0,0 +1,30 @@ +# NodeDrivesNodeDrive + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**baynum** | **int** | Numerical representation of this drive's bay. | [optional] +**blocks** | **int** | Number of blocks on this drive. | [optional] +**chassis** | **int** | The chassis number which contains this drive. | [optional] +**devname** | **str** | This drive's device name. | [optional] +**firmware** | [**NodeDrivesNodeDriveFirmware**](NodeDrivesNodeDriveFirmware.md) | Drive firmware information. | [optional] +**handle** | **int** | Drive_d's handle representation for this drive | [optional] +**interface_type** | **str** | String representtation of this drive's interface type. | [optional] +**lnum** | **int** | This drive's logical drive number in IFS. | [optional] +**locnstr** | **str** | String representation of this drive's physical location. | [optional] +**logical_block_length** | **int** | Size of a logical block on this drive. | [optional] +**media_type** | **str** | String representation of this drive's media type. | [optional] +**model** | **str** | This drive's manufacturer and model. | [optional] +**physical_block_length** | **int** | Size of a physical block on this drive. | [optional] +**present** | **bool** | Indicates whether this drive is physically present in the node. | [optional] +**purpose** | **str** | This drive's purpose in the DRV state machine. | [optional] +**purpose_description** | **str** | Description of this drive's purpose. | [optional] +**serial** | **str** | Serial number for this drive. | [optional] +**ui_state** | **str** | This drive's state as presented to the UI. | [optional] +**wwn** | **str** | The drive's 'worldwide name' from its NAA identifiers. | [optional] +**x_loc** | **int** | This drive's x-axis grid location. | [optional] +**y_loc** | **int** | This drive's y-axis grid location. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeDrivesNodeDriveFirmware.md b/docs/NodeDrivesNodeDriveFirmware.md new file mode 100644 index 000000000..4723b97fb --- /dev/null +++ b/docs/NodeDrivesNodeDriveFirmware.md @@ -0,0 +1,11 @@ +# NodeDrivesNodeDriveFirmware + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_firmware** | **str** | This drive's current firmware revision | [optional] +**desired_firmware** | **str** | This drive's desired firmware revision. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeDrivesPurposelist.md b/docs/NodeDrivesPurposelist.md new file mode 100644 index 000000000..4ad0487af --- /dev/null +++ b/docs/NodeDrivesPurposelist.md @@ -0,0 +1,11 @@ +# NodeDrivesPurposelist + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeDrivesPurposelistNode]**](NodeDrivesPurposelistNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeDrivesPurposelistNode.md b/docs/NodeDrivesPurposelistNode.md new file mode 100644 index 000000000..6c58a0368 --- /dev/null +++ b/docs/NodeDrivesPurposelistNode.md @@ -0,0 +1,12 @@ +# NodeDrivesPurposelistNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**purposes** | [**list[NodeDrivesPurposelistNodePurpose]**](NodeDrivesPurposelistNodePurpose.md) | List of the drive purposes available on this node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeDrivesPurposelistNodePurpose.md b/docs/NodeDrivesPurposelistNodePurpose.md new file mode 100644 index 000000000..002eecdfd --- /dev/null +++ b/docs/NodeDrivesPurposelistNodePurpose.md @@ -0,0 +1,11 @@ +# NodeDrivesPurposelistNodePurpose + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purpose** | **str** | String representation of this purpose for API use. | [optional] +**purpose_description** | **str** | A description of this purpose. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeHardware.md b/docs/NodeHardware.md new file mode 100644 index 000000000..208fec669 --- /dev/null +++ b/docs/NodeHardware.md @@ -0,0 +1,11 @@ +# NodeHardware + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeHardwareNode]**](NodeHardwareNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeHardwareNode.md b/docs/NodeHardwareNode.md new file mode 100644 index 000000000..8388ea433 --- /dev/null +++ b/docs/NodeHardwareNode.md @@ -0,0 +1,36 @@ +# NodeHardwareNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**chassis** | **str** | Name of this node's chassis. | [optional] +**chassis_code** | **str** | Chassis code of this node (1U, 2U, etc.). | [optional] +**chassis_count** | **str** | Number of chassis making up this node. | [optional] +**_class** | **str** | Class of this node (storage, accelerator, etc.). | [optional] +**configuration_id** | **str** | Node configuration ID. | [optional] +**cpu** | **str** | Manufacturer and model of this node's CPU. | [optional] +**disk_controller** | **str** | Manufacturer and model of this node's disk controller. | [optional] +**disk_expander** | **str** | Manufacturer and model of this node's disk expander. | [optional] +**family_code** | **str** | Family code of this node (X, S, NL, etc.). | [optional] +**flash_drive** | **str** | Manufacturer, model, and device id of this node's flash drive. | [optional] +**generation_code** | **str** | Generation code of this node. | [optional] +**hwgen** | **str** | Isilon hardware generation name. | [optional] +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**imb_version** | **str** | Version of this node's Isilon Management Board. | [optional] +**infiniband** | **str** | Infiniband card type. | [optional] +**lcd_version** | **str** | Version of the LCD panel. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**motherboard** | **str** | Manufacturer and model of this node's motherboard. | [optional] +**net_interfaces** | **str** | Description of all this node's network interfaces. | [optional] +**nvram** | **str** | Manufacturer and model of this node's NVRAM board. | [optional] +**powersupplies** | **list[str]** | Description strings for each power supply on this node. | [optional] +**processor** | **str** | Number of processors and cores on this node. | [optional] +**product** | **str** | Isilon product name. | [optional] +**ram** | **int** | Size of RAM in bytes. | [optional] +**serial_number** | **str** | Serial number of this node. | [optional] +**series** | **str** | Series of this node (X, I, NL, etc.). | [optional] +**storage_class** | **str** | Storage class of this node (storage or diskless). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodePartitions.md b/docs/NodePartitions.md new file mode 100644 index 000000000..f4f8cd5a7 --- /dev/null +++ b/docs/NodePartitions.md @@ -0,0 +1,11 @@ +# NodePartitions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodePartitionsNode]**](NodePartitionsNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodePartitionsNode.md b/docs/NodePartitionsNode.md new file mode 100644 index 000000000..9d1b76031 --- /dev/null +++ b/docs/NodePartitionsNode.md @@ -0,0 +1,13 @@ +# NodePartitionsNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Count of how many partitions are included. | [optional] +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**partitions** | [**list[NodePartitionsNodePartition]**](NodePartitionsNodePartition.md) | Partition information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodePartitionsNodePartition.md b/docs/NodePartitionsNodePartition.md new file mode 100644 index 000000000..bf0047864 --- /dev/null +++ b/docs/NodePartitionsNodePartition.md @@ -0,0 +1,16 @@ +# NodePartitionsNodePartition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_size** | **int** | The block size used for the reported partition information. | [optional] +**capacity** | **int** | Total blocks on this file system partition. | [optional] +**component_devices** | **str** | Comma separated list of devices used for this file system partition. | [optional] +**mount_point** | **str** | Directory on which this partition is mounted. | [optional] +**percent_used** | **str** | Used blocks on this file system partition, expressed as a percentage. | [optional] +**statfs** | [**NodePartitionsNodePartitionStatfs**](NodePartitionsNodePartitionStatfs.md) | System partition details as provided by statfs(2). | [optional] +**used** | **int** | Used blocks on this file system partition. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodePartitionsNodePartitionStatfs.md b/docs/NodePartitionsNodePartitionStatfs.md new file mode 100644 index 000000000..5906d652c --- /dev/null +++ b/docs/NodePartitionsNodePartitionStatfs.md @@ -0,0 +1,24 @@ +# NodePartitionsNodePartitionStatfs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**f_bavail** | **int** | Free blocks available to non-superuser on this partition. | [optional] +**f_bfree** | **int** | Free blocks on this partition. | [optional] +**f_blocks** | **int** | Total data blocks on this partition. | [optional] +**f_bsize** | **int** | Filesystem fragment size; block size in OneFS. | [optional] +**f_ffree** | **int** | Free file nodes avail to non-superuser. | [optional] +**f_files** | **int** | Total file nodes in filesystem. | [optional] +**f_flags** | **int** | Mount exported flags. | [optional] +**f_fstypename** | **str** | File system type name. | [optional] +**f_iosize** | **int** | Optimal transfer block size. | [optional] +**f_mntfromname** | **str** | Names of devices this partition is mounted from. | [optional] +**f_mntonname** | **str** | Directory this partition is mounted to. | [optional] +**f_namemax** | **int** | Maximum filename length. | [optional] +**f_owner** | **int** | UID of user that mounted the filesystem. | [optional] +**f_type** | **int** | Type of filesystem. | [optional] +**f_version** | **int** | statfs() structure version number. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeSensors.md b/docs/NodeSensors.md new file mode 100644 index 000000000..314ef5795 --- /dev/null +++ b/docs/NodeSensors.md @@ -0,0 +1,11 @@ +# NodeSensors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeSensorsNode]**](NodeSensorsNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeSensorsNode.md b/docs/NodeSensorsNode.md new file mode 100644 index 000000000..8d1468437 --- /dev/null +++ b/docs/NodeSensorsNode.md @@ -0,0 +1,12 @@ +# NodeSensorsNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**sensors** | [**list[NodeSensorsNodeSensor]**](NodeSensorsNodeSensor.md) | This node's sensor information. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeSensorsNodeSensor.md b/docs/NodeSensorsNodeSensor.md new file mode 100644 index 000000000..d6617bb06 --- /dev/null +++ b/docs/NodeSensorsNodeSensor.md @@ -0,0 +1,12 @@ +# NodeSensorsNodeSensor + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | The count of values in this sensor group. | [optional] +**name** | **str** | The name of this sensor group. | [optional] +**values** | [**list[NodeSensorsNodeSensorValue]**](NodeSensorsNodeSensorValue.md) | The list of specific sensor value info in this sensor group. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeSensorsNodeSensorValue.md b/docs/NodeSensorsNodeSensorValue.md new file mode 100644 index 000000000..318e4ed11 --- /dev/null +++ b/docs/NodeSensorsNodeSensorValue.md @@ -0,0 +1,13 @@ +# NodeSensorsNodeSensorValue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**desc** | **str** | The descriptive name of this sensor. | [optional] +**name** | **str** | The identifier name of this sensor. | [optional] +**units** | **str** | The units of this sensor. | [optional] +**value** | **str** | The value of this sensor. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeState.md b/docs/NodeState.md new file mode 100644 index 000000000..fdd82f3ea --- /dev/null +++ b/docs/NodeState.md @@ -0,0 +1,11 @@ +# NodeState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeStateNode]**](NodeStateNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateNode.md b/docs/NodeStateNode.md new file mode 100644 index 000000000..115d15d96 --- /dev/null +++ b/docs/NodeStateNode.md @@ -0,0 +1,14 @@ +# NodeStateNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**readonly** | [**NodeStateReadonlyExtended**](NodeStateReadonlyExtended.md) | Node readonly state. | [optional] +**servicelight** | [**NodeStateServicelightExtended**](NodeStateServicelightExtended.md) | Node service light state. | [optional] +**smartfail** | [**NodeStateSmartfailExtended**](NodeStateSmartfailExtended.md) | Node smartfail state. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateReadonly.md b/docs/NodeStateReadonly.md new file mode 100644 index 000000000..cf8691c1a --- /dev/null +++ b/docs/NodeStateReadonly.md @@ -0,0 +1,11 @@ +# NodeStateReadonly + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeStateReadonlyNode]**](NodeStateReadonlyNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateReadonlyExtended.md b/docs/NodeStateReadonlyExtended.md new file mode 100644 index 000000000..8cb7496ed --- /dev/null +++ b/docs/NodeStateReadonlyExtended.md @@ -0,0 +1,15 @@ +# NodeStateReadonlyExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **bool** | The current read-only mode allowed status for the node. | [optional] +**enabled** | **bool** | The current read-only user mode status for the node. NOTE: If read-only mode is currently disallowed for this node, it will remain read/write until read-only mode is allowed again. This value only sets or clears any user-specified requests for read-only mode. If the node has been placed into read-only mode by the system, it will remain in read-only mode until the system conditions which triggered read-only mode have cleared. | [optional] +**mode** | **bool** | The current read-only mode status for the node. | [optional] +**status** | **str** | The current read-only mode status description for the node. | [optional] +**valid** | **bool** | The read-only state values are valid (False = Error). | [optional] +**value** | **int** | The current read-only value (enumerated bitfield) for the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateReadonlyNode.md b/docs/NodeStateReadonlyNode.md new file mode 100644 index 000000000..9056b2ac7 --- /dev/null +++ b/docs/NodeStateReadonlyNode.md @@ -0,0 +1,17 @@ +# NodeStateReadonlyNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed** | **bool** | The current read-only mode allowed status for the node. | [optional] +**enabled** | **bool** | The current read-only user mode status for the node. NOTE: If read-only mode is currently disallowed for this node, it will remain read/write until read-only mode is allowed again. This value only sets or clears any user-specified requests for read-only mode. If the node has been placed into read-only mode by the system, it will remain in read-only mode until the system conditions which triggered read-only mode have cleared. | [optional] +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**mode** | **bool** | The current read-only mode status for the node. | [optional] +**status** | **str** | The current read-only mode status description for the node. | [optional] +**valid** | **bool** | The read-only state values are valid (False = Error). | [optional] +**value** | **int** | The current read-only value (enumerated bitfield) for the node. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateServicelight.md b/docs/NodeStateServicelight.md new file mode 100644 index 000000000..19f4989d1 --- /dev/null +++ b/docs/NodeStateServicelight.md @@ -0,0 +1,11 @@ +# NodeStateServicelight + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeStateServicelightNode]**](NodeStateServicelightNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateServicelightExtended.md b/docs/NodeStateServicelightExtended.md new file mode 100644 index 000000000..c3d64c612 --- /dev/null +++ b/docs/NodeStateServicelightExtended.md @@ -0,0 +1,13 @@ +# NodeStateServicelightExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | The node service light state (True = on). | [optional] +**present** | **bool** | This node has a service light. | [optional] +**supported** | **bool** | This node supports a service light. | [optional] +**valid** | **bool** | The node service light state is valid (False = Error). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateServicelightNode.md b/docs/NodeStateServicelightNode.md new file mode 100644 index 000000000..6ed6f960d --- /dev/null +++ b/docs/NodeStateServicelightNode.md @@ -0,0 +1,15 @@ +# NodeStateServicelightNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | The node service light state (True = on). | +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**present** | **bool** | This node has a service light. | [optional] +**supported** | **bool** | This node supports a service light. | [optional] +**valid** | **bool** | The node service light state is valid (False = Error). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateSmartfail.md b/docs/NodeStateSmartfail.md new file mode 100644 index 000000000..93328eae9 --- /dev/null +++ b/docs/NodeStateSmartfail.md @@ -0,0 +1,11 @@ +# NodeStateSmartfail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeStateSmartfailNode]**](NodeStateSmartfailNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateSmartfailExtended.md b/docs/NodeStateSmartfailExtended.md new file mode 100644 index 000000000..9e97c0a7c --- /dev/null +++ b/docs/NodeStateSmartfailExtended.md @@ -0,0 +1,15 @@ +# NodeStateSmartfailExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dead** | **bool** | This node is dead (dead_devs). | [optional] +**down** | **bool** | This node is down (down_devs). | [optional] +**in_cluster** | **bool** | This node is in the cluster (all_devs). | [optional] +**readonly** | **bool** | This node is readonly (ro_devs). | [optional] +**shutdown_readonly** | **bool** | This node is shutdown readonly (down_devs). | [optional] +**smartfailed** | **bool** | This node is smartfailed (soft_devs). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStateSmartfailNode.md b/docs/NodeStateSmartfailNode.md new file mode 100644 index 000000000..ccab21c6c --- /dev/null +++ b/docs/NodeStateSmartfailNode.md @@ -0,0 +1,17 @@ +# NodeStateSmartfailNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dead** | **bool** | This node is dead (dead_devs). | [optional] +**down** | **bool** | This node is down (down_devs). | [optional] +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**in_cluster** | **bool** | This node is in the cluster (all_devs). | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**readonly** | **bool** | This node is readonly (ro_devs). | [optional] +**shutdown_readonly** | **bool** | This node is shutdown readonly (down_devs). | [optional] +**smartfailed** | **bool** | This node is smartfailed (soft_devs). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatus.md b/docs/NodeStatus.md new file mode 100644 index 000000000..83b0f1e81 --- /dev/null +++ b/docs/NodeStatus.md @@ -0,0 +1,11 @@ +# NodeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeStatusNode]**](NodeStatusNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusBatterystatus.md b/docs/NodeStatusBatterystatus.md new file mode 100644 index 000000000..151e6bcf8 --- /dev/null +++ b/docs/NodeStatusBatterystatus.md @@ -0,0 +1,11 @@ +# NodeStatusBatterystatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[NodeStatusBatterystatusNode]**](NodeStatusBatterystatusNode.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusBatterystatusNode.md b/docs/NodeStatusBatterystatusNode.md new file mode 100644 index 000000000..ee49993c7 --- /dev/null +++ b/docs/NodeStatusBatterystatusNode.md @@ -0,0 +1,21 @@ +# NodeStatusBatterystatusNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**last_test_time1** | **str** | The last battery test time for battery 1. | [optional] +**last_test_time2** | **str** | The last battery test time for battery 2. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**next_test_time1** | **str** | The next checkup for battery 1. | [optional] +**next_test_time2** | **str** | The next checkup for battery 2. | [optional] +**present** | **bool** | Node has battery status. | [optional] +**result1** | **str** | The result of the last battery test for battery 1. | [optional] +**result2** | **str** | The result of the last battery test for battery 2. | [optional] +**status1** | **str** | The status of battery 1. | [optional] +**status2** | **str** | The status of battery 2. | [optional] +**supported** | **bool** | Node supports battery status. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusNode.md b/docs/NodeStatusNode.md new file mode 100644 index 000000000..60afe8154 --- /dev/null +++ b/docs/NodeStatusNode.md @@ -0,0 +1,19 @@ +# NodeStatusNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batterystatus** | [**NodeStatusNodeBatterystatus**](NodeStatusNodeBatterystatus.md) | Battery status information. | [optional] +**capacity** | [**list[NodeStatusNodeCapacityItem]**](NodeStatusNodeCapacityItem.md) | Storage capacity of this node. | [optional] +**cpu** | [**NodeStatusNodeCpu**](NodeStatusNodeCpu.md) | CPU status information for this node. | [optional] +**id** | **int** | Node ID (Device Number) of this node. | [optional] +**lnn** | **int** | Logical Node Number (LNN) of this node. | [optional] +**nvram** | [**NodeStatusNodeNvram**](NodeStatusNodeNvram.md) | Node NVRAM information. | [optional] +**powersupplies** | [**NodeStatusNodePowersupplies**](NodeStatusNodePowersupplies.md) | Information about this node's power supplies. | [optional] +**release** | **str** | OneFS release. | [optional] +**uptime** | **int** | Seconds this node has been online. | [optional] +**version** | **str** | OneFS version. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusNodeBatterystatus.md b/docs/NodeStatusNodeBatterystatus.md new file mode 100644 index 000000000..da6c00566 --- /dev/null +++ b/docs/NodeStatusNodeBatterystatus.md @@ -0,0 +1,19 @@ +# NodeStatusNodeBatterystatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_test_time1** | **str** | The last battery test time for battery 1. | [optional] +**last_test_time2** | **str** | The last battery test time for battery 2. | [optional] +**next_test_time1** | **str** | The next checkup for battery 1. | [optional] +**next_test_time2** | **str** | The next checkup for battery 2. | [optional] +**present** | **bool** | Node has battery status. | [optional] +**result1** | **str** | The result of the last battery test for battery 1. | [optional] +**result2** | **str** | The result of the last battery test for battery 2. | [optional] +**status1** | **str** | The status of battery 1. | [optional] +**status2** | **str** | The status of battery 2. | [optional] +**supported** | **bool** | Node supports battery status. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusNodeCapacityItem.md b/docs/NodeStatusNodeCapacityItem.md new file mode 100644 index 000000000..d7dc9101c --- /dev/null +++ b/docs/NodeStatusNodeCapacityItem.md @@ -0,0 +1,12 @@ +# NodeStatusNodeCapacityItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bytes** | **int** | Total device storage bytes. | [optional] +**count** | **int** | Total device count. | [optional] +**type** | **str** | Device type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusNodeCpu.md b/docs/NodeStatusNodeCpu.md new file mode 100644 index 000000000..bfb7cf632 --- /dev/null +++ b/docs/NodeStatusNodeCpu.md @@ -0,0 +1,13 @@ +# NodeStatusNodeCpu + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**model** | **str** | Manufacturer model description of this CPU. | [optional] +**overtemp** | **str** | CPU overtemp state. | [optional] +**proc** | **str** | Type of processor and core of this CPU. | [optional] +**speed_limit** | **str** | CPU throttling (expressed as a percentage). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusNodeNvram.md b/docs/NodeStatusNodeNvram.md new file mode 100644 index 000000000..7b4f055a9 --- /dev/null +++ b/docs/NodeStatusNodeNvram.md @@ -0,0 +1,23 @@ +# NodeStatusNodeNvram + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batteries** | [**list[NodeStatusNodeNvramBattery]**](NodeStatusNodeNvramBattery.md) | This node's NVRAM battery status information. | [optional] +**battery_count** | **int** | This node's NVRAM battery count. | [optional] +**charge_status** | **str** | This node's NVRAM battery charge status, as a color. | [optional] +**charge_status_number** | **int** | This node's NVRAM battery charge status, as a number. | [optional] +**device** | **str** | This node's NVRAM device name with path. | [optional] +**present** | **bool** | This node has NVRAM. | [optional] +**present_flash** | **bool** | This node has NVRAM with flash storage. | [optional] +**present_size** | **int** | The size of the NVRAM, in bytes. | [optional] +**present_type** | **str** | This node's NVRAM type. | [optional] +**ship_mode** | **int** | This node's current ship mode state for NVRAM batteries. | [optional] +**supported** | **bool** | This node supports NVRAM. | [optional] +**supported_flash** | **bool** | This node supports NVRAM with flash storage. | [optional] +**supported_size** | **int** | The maximum size of the NVRAM, in bytes. | [optional] +**supported_type** | **str** | This node's supported NVRAM type. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusNodeNvramBattery.md b/docs/NodeStatusNodeNvramBattery.md new file mode 100644 index 000000000..1c146a48a --- /dev/null +++ b/docs/NodeStatusNodeNvramBattery.md @@ -0,0 +1,13 @@ +# NodeStatusNodeNvramBattery + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | **str** | The current status color of the NVRAM battery. | [optional] +**id** | **int** | Identifying index for the NVRAM battery. | [optional] +**status** | **str** | The current status message of the NVRAM battery. | [optional] +**voltage** | **str** | The current voltage of the NVRAM battery. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusNodePowersupplies.md b/docs/NodeStatusNodePowersupplies.md new file mode 100644 index 000000000..c7fad1ada --- /dev/null +++ b/docs/NodeStatusNodePowersupplies.md @@ -0,0 +1,15 @@ +# NodeStatusNodePowersupplies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Count of how many power supplies are supported. | [optional] +**failures** | **int** | Count of how many power supplies have failed. | [optional] +**has_cff** | **bool** | Does this node have a CFF power supply. | [optional] +**status** | **str** | A descriptive status string for this node's power supplies. | [optional] +**supplies** | [**list[NodeStatusNodePowersuppliesSupply]**](NodeStatusNodePowersuppliesSupply.md) | List of this node's power supplies. | [optional] +**supports_cff** | **bool** | Does this node support CFF power supplies. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodeStatusNodePowersuppliesSupply.md b/docs/NodeStatusNodePowersuppliesSupply.md new file mode 100644 index 000000000..0a2ed825f --- /dev/null +++ b/docs/NodeStatusNodePowersuppliesSupply.md @@ -0,0 +1,16 @@ +# NodeStatusNodePowersuppliesSupply + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**chassis** | **int** | Which node chassis is this power supply in. | [optional] +**firmware** | **str** | The current firmware revision of this power supply. | [optional] +**good** | **str** | Is this power supply in a failure state. | [optional] +**id** | **int** | Identifying index for this power supply. | +**name** | **str** | Complete identifying string for this power supply. | [optional] +**status** | **str** | A descriptive status string for this power supply. | [optional] +**type** | **str** | The type of this power supply. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodesNodeFirmwareStatus.md b/docs/NodesNodeFirmwareStatus.md new file mode 100644 index 000000000..5bb42eda1 --- /dev/null +++ b/docs/NodesNodeFirmwareStatus.md @@ -0,0 +1,12 @@ +# NodesNodeFirmwareStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**list[ClusterFirmwareStatusNodeDevice]**](ClusterFirmwareStatusNodeDevice.md) | List of the firmware status for hardware components on the node. | [optional] +**node_unavailable** | **bool** | Node is unavailable. | [optional] +**package** | [**list[ClusterFirmwareStatusNodePackageItem]**](ClusterFirmwareStatusNodePackageItem.md) | List of the firmware binary information for the installed firmware package. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NtpServer.md b/docs/NtpServer.md new file mode 100644 index 000000000..6803c1316 --- /dev/null +++ b/docs/NtpServer.md @@ -0,0 +1,10 @@ +# NtpServer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | Key value from key_file that maps to this server. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NtpServerCreateParams.md b/docs/NtpServerCreateParams.md new file mode 100644 index 000000000..e20e02b43 --- /dev/null +++ b/docs/NtpServerCreateParams.md @@ -0,0 +1,11 @@ +# NtpServerCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | Key value from key_file that maps to this server. | +**name** | **str** | NTP server name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NtpServerExtended.md b/docs/NtpServerExtended.md new file mode 100644 index 000000000..ec4e94da1 --- /dev/null +++ b/docs/NtpServerExtended.md @@ -0,0 +1,12 @@ +# NtpServerExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | Key value from key_file that maps to this server. | +**id** | **str** | Field ID. | +**name** | **str** | NTP server name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NtpServers.md b/docs/NtpServers.md new file mode 100644 index 000000000..b006eabd5 --- /dev/null +++ b/docs/NtpServers.md @@ -0,0 +1,10 @@ +# NtpServers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**servers** | [**list[NtpServerExtended]**](NtpServerExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NtpServersExtended.md b/docs/NtpServersExtended.md new file mode 100644 index 000000000..5cdaa5918 --- /dev/null +++ b/docs/NtpServersExtended.md @@ -0,0 +1,11 @@ +# NtpServersExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**servers** | [**list[NtpServerExtended]**](NtpServerExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NtpSettings.md b/docs/NtpSettings.md new file mode 100644 index 000000000..b4e4493c3 --- /dev/null +++ b/docs/NtpSettings.md @@ -0,0 +1,10 @@ +# NtpSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**NtpSettingsSettings**](NtpSettingsSettings.md) | NTP settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NtpSettingsSettings.md b/docs/NtpSettingsSettings.md new file mode 100644 index 000000000..9abaaa86e --- /dev/null +++ b/docs/NtpSettingsSettings.md @@ -0,0 +1,12 @@ +# NtpSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**chimers** | **int** | Number of nodes that will contact the NTP servers. | [optional] +**excluded** | **list[str]** | Node number (LNN) for nodes excluded from chimer duty. | [optional] +**key_file** | **str** | Path to NTP key file within /ifs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoolsPoolInterfaces.md b/docs/PoolsPoolInterfaces.md new file mode 100644 index 000000000..314485d51 --- /dev/null +++ b/docs/PoolsPoolInterfaces.md @@ -0,0 +1,12 @@ +# PoolsPoolInterfaces + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interface** | [**list[PoolsPoolInterfacesInterfaceItem]**](PoolsPoolInterfacesInterfaceItem.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoolsPoolInterfacesInterfaceItem.md b/docs/PoolsPoolInterfacesInterfaceItem.md new file mode 100644 index 000000000..33771a590 --- /dev/null +++ b/docs/PoolsPoolInterfacesInterfaceItem.md @@ -0,0 +1,17 @@ +# PoolsPoolInterfacesInterfaceItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique interface ID. | +**ip_addrs** | **list[str]** | List of IP addresses | +**lnn** | **int** | Logical Node Number | +**name** | **str** | The name of the interface. | +**nic_name** | **str** | NIC name | +**owners** | [**list[PoolsPoolInterfacesInterfaceItemOwner]**](PoolsPoolInterfacesInterfaceItemOwner.md) | List of owners (membership) | +**status** | **str** | Status of the interface | +**type** | **str** | Interface type. The '*gige' types stand for 'gigabit ethernet'. 'gige' itself is occasionally also referred to in other places as 'ext' for 'external'. 'ib' and 'ib_qdr' are internal Infiniband interface types. 'vlan' and 'vmxnet3' are virtual interface types that appear on virtual nodes. 'loopback' is an interface for failover addresses and should only appear if failover is configured. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoolsPoolInterfacesInterfaceItemOwner.md b/docs/PoolsPoolInterfacesInterfaceItemOwner.md new file mode 100644 index 000000000..f4a081051 --- /dev/null +++ b/docs/PoolsPoolInterfacesInterfaceItemOwner.md @@ -0,0 +1,12 @@ +# PoolsPoolInterfacesInterfaceItemOwner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groupnet** | **str** | | [optional] +**pool** | **str** | | [optional] +**subnet** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoolsPoolRule.md b/docs/PoolsPoolRule.md new file mode 100644 index 000000000..298282d21 --- /dev/null +++ b/docs/PoolsPoolRule.md @@ -0,0 +1,13 @@ +# PoolsPoolRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Description for the provisioning rule. | [optional] +**iface** | **str** | Interface name the provisioning rule applies to. | [optional] +**name** | **str** | Name of the provisioning rule. | [optional] +**node_type** | **str** | Node type the provisioning rule applies to. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoolsPoolRules.md b/docs/PoolsPoolRules.md new file mode 100644 index 000000000..7aaa55a12 --- /dev/null +++ b/docs/PoolsPoolRules.md @@ -0,0 +1,10 @@ +# PoolsPoolRules + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**list[PoolsPoolRulesRule]**](PoolsPoolRulesRule.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoolsPoolRulesExtended.md b/docs/PoolsPoolRulesExtended.md new file mode 100644 index 000000000..1c21b9655 --- /dev/null +++ b/docs/PoolsPoolRulesExtended.md @@ -0,0 +1,12 @@ +# PoolsPoolRulesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**list[PoolsPoolRulesRule]**](PoolsPoolRulesRule.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoolsPoolRulesRule.md b/docs/PoolsPoolRulesRule.md new file mode 100644 index 000000000..9acacc358 --- /dev/null +++ b/docs/PoolsPoolRulesRule.md @@ -0,0 +1,17 @@ +# PoolsPoolRulesRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Description for the provisioning rule. | +**groupnet** | **str** | Name of the groupnet this rule belongs to | +**id** | **str** | Unique rule ID. | +**iface** | **str** | Interface name the provisioning rule applies to. | +**name** | **str** | Name of the provisioning rule. | +**node_type** | **str** | Node type the provisioning rule applies to. | +**pool** | **str** | Name of the pool this rule belongs to. | +**subnet** | **str** | Name of the subnet this rule belongs to. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoolsPoolScResumeNode.md b/docs/PoolsPoolScResumeNode.md new file mode 100644 index 000000000..8141bfe0c --- /dev/null +++ b/docs/PoolsPoolScResumeNode.md @@ -0,0 +1,10 @@ +# PoolsPoolScResumeNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lnn** | **list[int]** | Logical node numbers of the nodes suspended/resumed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProtocolsApi.md b/docs/ProtocolsApi.md new file mode 100644 index 000000000..70004816c --- /dev/null +++ b/docs/ProtocolsApi.md @@ -0,0 +1,5073 @@ +# isi_sdk.ProtocolsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_hdfs_proxyuser**](ProtocolsApi.md#create_hdfs_proxyuser) | **POST** /platform/1/protocols/hdfs/proxyusers | +[**create_hdfs_rack**](ProtocolsApi.md#create_hdfs_rack) | **POST** /platform/1/protocols/hdfs/racks | +[**create_ndmp_user**](ProtocolsApi.md#create_ndmp_user) | **POST** /platform/3/protocols/ndmp/users | +[**create_nfs_aliase**](ProtocolsApi.md#create_nfs_aliase) | **POST** /platform/2/protocols/nfs/aliases | +[**create_nfs_export**](ProtocolsApi.md#create_nfs_export) | **POST** /platform/2/protocols/nfs/exports | +[**create_nfs_netgroup_check_item**](ProtocolsApi.md#create_nfs_netgroup_check_item) | **POST** /platform/3/protocols/nfs/netgroup/check | +[**create_nfs_netgroup_flush_item**](ProtocolsApi.md#create_nfs_netgroup_flush_item) | **POST** /platform/3/protocols/nfs/netgroup/flush | +[**create_nfs_nlm_sessions_check_item**](ProtocolsApi.md#create_nfs_nlm_sessions_check_item) | **POST** /platform/3/protocols/nfs/nlm/sessions-check | +[**create_nfs_reload_item**](ProtocolsApi.md#create_nfs_reload_item) | **POST** /platform/3/protocols/nfs/reload | +[**create_ntp_server**](ProtocolsApi.md#create_ntp_server) | **POST** /platform/3/protocols/ntp/servers | +[**create_smb_log_level_filter**](ProtocolsApi.md#create_smb_log_level_filter) | **POST** /platform/3/protocols/smb/log-level/filters | +[**create_smb_share**](ProtocolsApi.md#create_smb_share) | **POST** /platform/3/protocols/smb/shares | +[**create_swift_account**](ProtocolsApi.md#create_swift_account) | **POST** /platform/3/protocols/swift/accounts | +[**delete_hdfs_proxyuser**](ProtocolsApi.md#delete_hdfs_proxyuser) | **DELETE** /platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId} | +[**delete_hdfs_rack**](ProtocolsApi.md#delete_hdfs_rack) | **DELETE** /platform/1/protocols/hdfs/racks/{HdfsRackId} | +[**delete_ndmp_user**](ProtocolsApi.md#delete_ndmp_user) | **DELETE** /platform/3/protocols/ndmp/users/{NdmpUserId} | +[**delete_nfs_aliase**](ProtocolsApi.md#delete_nfs_aliase) | **DELETE** /platform/2/protocols/nfs/aliases/{NfsAliaseId} | +[**delete_nfs_export**](ProtocolsApi.md#delete_nfs_export) | **DELETE** /platform/2/protocols/nfs/exports/{NfsExportId} | +[**delete_nfs_nlm_session**](ProtocolsApi.md#delete_nfs_nlm_session) | **DELETE** /platform/3/protocols/nfs/nlm/sessions/{NfsNlmSessionId} | +[**delete_ntp_server**](ProtocolsApi.md#delete_ntp_server) | **DELETE** /platform/3/protocols/ntp/servers/{NtpServerId} | +[**delete_ntp_servers**](ProtocolsApi.md#delete_ntp_servers) | **DELETE** /platform/3/protocols/ntp/servers | +[**delete_smb_log_level_filter**](ProtocolsApi.md#delete_smb_log_level_filter) | **DELETE** /platform/3/protocols/smb/log-level/filters/{SmbLogLevelFilterId} | +[**delete_smb_log_level_filters**](ProtocolsApi.md#delete_smb_log_level_filters) | **DELETE** /platform/3/protocols/smb/log-level/filters | +[**delete_smb_openfile**](ProtocolsApi.md#delete_smb_openfile) | **DELETE** /platform/1/protocols/smb/openfiles/{SmbOpenfileId} | +[**delete_smb_session**](ProtocolsApi.md#delete_smb_session) | **DELETE** /platform/1/protocols/smb/sessions/{SmbSessionId} | +[**delete_smb_sessions_computer_user**](ProtocolsApi.md#delete_smb_sessions_computer_user) | **DELETE** /platform/1/protocols/smb/sessions/{Computer}/{SmbSessionsComputerUser} | +[**delete_smb_share**](ProtocolsApi.md#delete_smb_share) | **DELETE** /platform/3/protocols/smb/shares/{SmbShareId} | +[**delete_smb_shares**](ProtocolsApi.md#delete_smb_shares) | **DELETE** /platform/3/protocols/smb/shares | +[**delete_swift_account**](ProtocolsApi.md#delete_swift_account) | **DELETE** /platform/3/protocols/swift/accounts/{SwiftAccountId} | +[**get_ftp_settings**](ProtocolsApi.md#get_ftp_settings) | **GET** /platform/3/protocols/ftp/settings | +[**get_hdfs_log_level**](ProtocolsApi.md#get_hdfs_log_level) | **GET** /platform/3/protocols/hdfs/log-level | +[**get_hdfs_proxyuser**](ProtocolsApi.md#get_hdfs_proxyuser) | **GET** /platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId} | +[**get_hdfs_rack**](ProtocolsApi.md#get_hdfs_rack) | **GET** /platform/1/protocols/hdfs/racks/{HdfsRackId} | +[**get_hdfs_settings**](ProtocolsApi.md#get_hdfs_settings) | **GET** /platform/3/protocols/hdfs/settings | +[**get_http_settings**](ProtocolsApi.md#get_http_settings) | **GET** /platform/3/protocols/http/settings | +[**get_ndmp_contexts_bre**](ProtocolsApi.md#get_ndmp_contexts_bre) | **GET** /platform/3/protocols/ndmp/contexts/bre | +[**get_ndmp_diagnostics**](ProtocolsApi.md#get_ndmp_diagnostics) | **GET** /platform/3/protocols/ndmp/diagnostics | +[**get_ndmp_logs**](ProtocolsApi.md#get_ndmp_logs) | **GET** /platform/3/protocols/ndmp/logs | +[**get_ndmp_sessions**](ProtocolsApi.md#get_ndmp_sessions) | **GET** /platform/3/protocols/ndmp/sessions | +[**get_ndmp_settings_global**](ProtocolsApi.md#get_ndmp_settings_global) | **GET** /platform/3/protocols/ndmp/settings/global | +[**get_ndmp_user**](ProtocolsApi.md#get_ndmp_user) | **GET** /platform/3/protocols/ndmp/users/{NdmpUserId} | +[**get_nfs_aliase**](ProtocolsApi.md#get_nfs_aliase) | **GET** /platform/2/protocols/nfs/aliases/{NfsAliaseId} | +[**get_nfs_check**](ProtocolsApi.md#get_nfs_check) | **GET** /platform/2/protocols/nfs/check | +[**get_nfs_export**](ProtocolsApi.md#get_nfs_export) | **GET** /platform/2/protocols/nfs/exports/{NfsExportId} | +[**get_nfs_exports_summary**](ProtocolsApi.md#get_nfs_exports_summary) | **GET** /platform/2/protocols/nfs/exports-summary | +[**get_nfs_log_level**](ProtocolsApi.md#get_nfs_log_level) | **GET** /platform/3/protocols/nfs/log-level | +[**get_nfs_netgroup**](ProtocolsApi.md#get_nfs_netgroup) | **GET** /platform/3/protocols/nfs/netgroup | +[**get_nfs_nlm_locks**](ProtocolsApi.md#get_nfs_nlm_locks) | **GET** /platform/2/protocols/nfs/nlm/locks | +[**get_nfs_nlm_session**](ProtocolsApi.md#get_nfs_nlm_session) | **GET** /platform/3/protocols/nfs/nlm/sessions/{NfsNlmSessionId} | +[**get_nfs_nlm_sessions**](ProtocolsApi.md#get_nfs_nlm_sessions) | **GET** /platform/3/protocols/nfs/nlm/sessions | +[**get_nfs_nlm_waiters**](ProtocolsApi.md#get_nfs_nlm_waiters) | **GET** /platform/2/protocols/nfs/nlm/waiters | +[**get_nfs_settings_export**](ProtocolsApi.md#get_nfs_settings_export) | **GET** /platform/2/protocols/nfs/settings/export | +[**get_nfs_settings_global**](ProtocolsApi.md#get_nfs_settings_global) | **GET** /platform/3/protocols/nfs/settings/global | +[**get_nfs_settings_zone**](ProtocolsApi.md#get_nfs_settings_zone) | **GET** /platform/2/protocols/nfs/settings/zone | +[**get_ntp_server**](ProtocolsApi.md#get_ntp_server) | **GET** /platform/3/protocols/ntp/servers/{NtpServerId} | +[**get_ntp_settings**](ProtocolsApi.md#get_ntp_settings) | **GET** /platform/3/protocols/ntp/settings | +[**get_smb_log_level**](ProtocolsApi.md#get_smb_log_level) | **GET** /platform/3/protocols/smb/log-level | +[**get_smb_log_level_filter**](ProtocolsApi.md#get_smb_log_level_filter) | **GET** /platform/3/protocols/smb/log-level/filters/{SmbLogLevelFilterId} | +[**get_smb_openfiles**](ProtocolsApi.md#get_smb_openfiles) | **GET** /platform/1/protocols/smb/openfiles | +[**get_smb_sessions**](ProtocolsApi.md#get_smb_sessions) | **GET** /platform/1/protocols/smb/sessions | +[**get_smb_settings_global**](ProtocolsApi.md#get_smb_settings_global) | **GET** /platform/3/protocols/smb/settings/global | +[**get_smb_settings_share**](ProtocolsApi.md#get_smb_settings_share) | **GET** /platform/3/protocols/smb/settings/share | +[**get_smb_share**](ProtocolsApi.md#get_smb_share) | **GET** /platform/3/protocols/smb/shares/{SmbShareId} | +[**get_smb_shares_summary**](ProtocolsApi.md#get_smb_shares_summary) | **GET** /platform/1/protocols/smb/shares-summary | +[**get_snmp_settings**](ProtocolsApi.md#get_snmp_settings) | **GET** /platform/3/protocols/snmp/settings | +[**get_swift_account**](ProtocolsApi.md#get_swift_account) | **GET** /platform/3/protocols/swift/accounts/{SwiftAccountId} | +[**list_hdfs_proxyusers**](ProtocolsApi.md#list_hdfs_proxyusers) | **GET** /platform/1/protocols/hdfs/proxyusers | +[**list_hdfs_racks**](ProtocolsApi.md#list_hdfs_racks) | **GET** /platform/1/protocols/hdfs/racks | +[**list_ndmp_users**](ProtocolsApi.md#list_ndmp_users) | **GET** /platform/3/protocols/ndmp/users | +[**list_nfs_aliases**](ProtocolsApi.md#list_nfs_aliases) | **GET** /platform/2/protocols/nfs/aliases | +[**list_nfs_exports**](ProtocolsApi.md#list_nfs_exports) | **GET** /platform/2/protocols/nfs/exports | +[**list_ntp_servers**](ProtocolsApi.md#list_ntp_servers) | **GET** /platform/3/protocols/ntp/servers | +[**list_smb_log_level_filters**](ProtocolsApi.md#list_smb_log_level_filters) | **GET** /platform/3/protocols/smb/log-level/filters | +[**list_smb_shares**](ProtocolsApi.md#list_smb_shares) | **GET** /platform/3/protocols/smb/shares | +[**list_swift_accounts**](ProtocolsApi.md#list_swift_accounts) | **GET** /platform/3/protocols/swift/accounts | +[**update_ftp_settings**](ProtocolsApi.md#update_ftp_settings) | **PUT** /platform/3/protocols/ftp/settings | +[**update_hdfs_log_level**](ProtocolsApi.md#update_hdfs_log_level) | **PUT** /platform/3/protocols/hdfs/log-level | +[**update_hdfs_proxyuser**](ProtocolsApi.md#update_hdfs_proxyuser) | **PUT** /platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId} | +[**update_hdfs_rack**](ProtocolsApi.md#update_hdfs_rack) | **PUT** /platform/1/protocols/hdfs/racks/{HdfsRackId} | +[**update_hdfs_settings**](ProtocolsApi.md#update_hdfs_settings) | **PUT** /platform/3/protocols/hdfs/settings | +[**update_http_settings**](ProtocolsApi.md#update_http_settings) | **PUT** /platform/3/protocols/http/settings | +[**update_ndmp_diagnostics**](ProtocolsApi.md#update_ndmp_diagnostics) | **PUT** /platform/3/protocols/ndmp/diagnostics | +[**update_ndmp_settings_global**](ProtocolsApi.md#update_ndmp_settings_global) | **PUT** /platform/3/protocols/ndmp/settings/global | +[**update_ndmp_user**](ProtocolsApi.md#update_ndmp_user) | **PUT** /platform/3/protocols/ndmp/users/{NdmpUserId} | +[**update_nfs_aliase**](ProtocolsApi.md#update_nfs_aliase) | **PUT** /platform/2/protocols/nfs/aliases/{NfsAliaseId} | +[**update_nfs_export**](ProtocolsApi.md#update_nfs_export) | **PUT** /platform/2/protocols/nfs/exports/{NfsExportId} | +[**update_nfs_log_level**](ProtocolsApi.md#update_nfs_log_level) | **PUT** /platform/3/protocols/nfs/log-level | +[**update_nfs_netgroup**](ProtocolsApi.md#update_nfs_netgroup) | **PUT** /platform/3/protocols/nfs/netgroup | +[**update_nfs_settings_export**](ProtocolsApi.md#update_nfs_settings_export) | **PUT** /platform/2/protocols/nfs/settings/export | +[**update_nfs_settings_global**](ProtocolsApi.md#update_nfs_settings_global) | **PUT** /platform/3/protocols/nfs/settings/global | +[**update_nfs_settings_zone**](ProtocolsApi.md#update_nfs_settings_zone) | **PUT** /platform/2/protocols/nfs/settings/zone | +[**update_ntp_server**](ProtocolsApi.md#update_ntp_server) | **PUT** /platform/3/protocols/ntp/servers/{NtpServerId} | +[**update_ntp_settings**](ProtocolsApi.md#update_ntp_settings) | **PUT** /platform/3/protocols/ntp/settings | +[**update_smb_log_level**](ProtocolsApi.md#update_smb_log_level) | **PUT** /platform/3/protocols/smb/log-level | +[**update_smb_settings_global**](ProtocolsApi.md#update_smb_settings_global) | **PUT** /platform/3/protocols/smb/settings/global | +[**update_smb_settings_share**](ProtocolsApi.md#update_smb_settings_share) | **PUT** /platform/3/protocols/smb/settings/share | +[**update_smb_share**](ProtocolsApi.md#update_smb_share) | **PUT** /platform/3/protocols/smb/shares/{SmbShareId} | +[**update_snmp_settings**](ProtocolsApi.md#update_snmp_settings) | **PUT** /platform/3/protocols/snmp/settings | +[**update_swift_account**](ProtocolsApi.md#update_swift_account) | **PUT** /platform/3/protocols/swift/accounts/{SwiftAccountId} | + + +# **create_hdfs_proxyuser** +> CreateResponse create_hdfs_proxyuser(hdfs_proxyuser) + + + +Create a new HDFS proxyuser. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_proxyuser = isi_sdk.HdfsProxyuser() # HdfsProxyuser | + +try: + api_response = api_instance.create_hdfs_proxyuser(hdfs_proxyuser) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_hdfs_proxyuser: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_proxyuser** | [**HdfsProxyuser**](HdfsProxyuser.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_hdfs_rack** +> CreateResponse create_hdfs_rack(hdfs_rack) + + + +Create a new HDFS rack. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_rack = isi_sdk.HdfsRack() # HdfsRack | + +try: + api_response = api_instance.create_hdfs_rack(hdfs_rack) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_hdfs_rack: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_rack** | [**HdfsRack**](HdfsRack.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_ndmp_user** +> Empty create_ndmp_user(ndmp_user) + + + +Created a new user. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ndmp_user = isi_sdk.NdmpUserCreateParams() # NdmpUserCreateParams | + +try: + api_response = api_instance.create_ndmp_user(ndmp_user) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_ndmp_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ndmp_user** | [**NdmpUserCreateParams**](NdmpUserCreateParams.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_nfs_aliase** +> CreateNfsAliaseResponse create_nfs_aliase(nfs_aliase, zone=zone) + + + +Create a new NFS alias. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_aliase = isi_sdk.NfsAliase() # NfsAliase | +zone = 'zone_example' # str | Access zone (optional) + +try: + api_response = api_instance.create_nfs_aliase(nfs_aliase, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_nfs_aliase: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_aliase** | [**NfsAliase**](NfsAliase.md)| | + **zone** | **str**| Access zone | [optional] + +### Return type + +[**CreateNfsAliaseResponse**](CreateNfsAliaseResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_nfs_export** +> CreateQuotaReportResponse create_nfs_export(nfs_export, force=force, zone=zone) + + + +Create a new NFS export. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_export = isi_sdk.NfsExport() # NfsExport | +force = true # bool | If true, the export will be created even if it conflicts with another export. (optional) +zone = 'zone_example' # str | Access zone (optional) + +try: + api_response = api_instance.create_nfs_export(nfs_export, force=force, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_nfs_export: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_export** | [**NfsExport**](NfsExport.md)| | + **force** | **bool**| If true, the export will be created even if it conflicts with another export. | [optional] + **zone** | **str**| Access zone | [optional] + +### Return type + +[**CreateQuotaReportResponse**](CreateQuotaReportResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_nfs_netgroup_check_item** +> Empty create_nfs_netgroup_check_item(nfs_netgroup_check_item, host=host) + + + +Update the NFS netgroups in the cache. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_netgroup_check_item = isi_sdk.Empty() # Empty | +host = 'host_example' # str | IP address of node to update. If unspecified, the local nodes cache is updated. (optional) + +try: + api_response = api_instance.create_nfs_netgroup_check_item(nfs_netgroup_check_item, host=host) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_nfs_netgroup_check_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_netgroup_check_item** | [**Empty**](Empty.md)| | + **host** | **str**| IP address of node to update. If unspecified, the local nodes cache is updated. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_nfs_netgroup_flush_item** +> Empty create_nfs_netgroup_flush_item(nfs_netgroup_flush_item, host=host) + + + +Flush the NFS netgroups in the cache. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_netgroup_flush_item = isi_sdk.Empty() # Empty | +host = 'host_example' # str | IP address of node to flush. If unspecified, all nodes on the cluster are flushed. (optional) + +try: + api_response = api_instance.create_nfs_netgroup_flush_item(nfs_netgroup_flush_item, host=host) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_nfs_netgroup_flush_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_netgroup_flush_item** | [**Empty**](Empty.md)| | + **host** | **str**| IP address of node to flush. If unspecified, all nodes on the cluster are flushed. | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_nfs_nlm_sessions_check_item** +> CreateNfsNlmSessionsCheckItemResponse create_nfs_nlm_sessions_check_item(nfs_nlm_sessions_check_item, ip=ip, zone=zone) + + + +Perform an active scan for lost NFSv3 locks. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_nlm_sessions_check_item = isi_sdk.Empty() # Empty | +ip = 'ip_example' # str | An IP address for which NSM has client records (optional) +zone = 'zone_example' # str | Represents an extant auth zone (optional) + +try: + api_response = api_instance.create_nfs_nlm_sessions_check_item(nfs_nlm_sessions_check_item, ip=ip, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_nfs_nlm_sessions_check_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_nlm_sessions_check_item** | [**Empty**](Empty.md)| | + **ip** | **str**| An IP address for which NSM has client records | [optional] + **zone** | **str**| Represents an extant auth zone | [optional] + +### Return type + +[**CreateNfsNlmSessionsCheckItemResponse**](CreateNfsNlmSessionsCheckItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_nfs_reload_item** +> Empty create_nfs_reload_item(nfs_reload_item, zone=zone) + + + +Reload default NFS export configuration. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_reload_item = isi_sdk.Empty() # Empty | +zone = 'zone_example' # str | Access zone (optional) + +try: + api_response = api_instance.create_nfs_reload_item(nfs_reload_item, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_nfs_reload_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_reload_item** | [**Empty**](Empty.md)| | + **zone** | **str**| Access zone | [optional] + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_ntp_server** +> CreateResponse create_ntp_server(ntp_server) + + + +Create an NTP server entry. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ntp_server = isi_sdk.NtpServerCreateParams() # NtpServerCreateParams | + +try: + api_response = api_instance.create_ntp_server(ntp_server) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_ntp_server: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ntp_server** | [**NtpServerCreateParams**](NtpServerCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_smb_log_level_filter** +> CreateAuthRefreshItemResponse create_smb_log_level_filter(smb_log_level_filter) + + + +Add an SMB log filter. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_log_level_filter = isi_sdk.SmbLogLevelFilter() # SmbLogLevelFilter | + +try: + api_response = api_instance.create_smb_log_level_filter(smb_log_level_filter) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_smb_log_level_filter: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_log_level_filter** | [**SmbLogLevelFilter**](SmbLogLevelFilter.md)| | + +### Return type + +[**CreateAuthRefreshItemResponse**](CreateAuthRefreshItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_smb_share** +> CreateResponse create_smb_share(smb_share, zone=zone) + + + +Create a new share. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_share = isi_sdk.SmbShareCreateParams() # SmbShareCreateParams | +zone = 'zone_example' # str | Zone which contains this share. (optional) + +try: + api_response = api_instance.create_smb_share(smb_share, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_smb_share: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_share** | [**SmbShareCreateParams**](SmbShareCreateParams.md)| | + **zone** | **str**| Zone which contains this share. | [optional] + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_swift_account** +> CreateResponse create_swift_account(swift_account) + + + +Create a new Swift account + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +swift_account = isi_sdk.SwiftAccount() # SwiftAccount | + +try: + api_response = api_instance.create_swift_account(swift_account) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->create_swift_account: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **swift_account** | [**SwiftAccount**](SwiftAccount.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_hdfs_proxyuser** +> delete_hdfs_proxyuser(hdfs_proxyuser_id) + + + +Delete a a HDFS proxyuser. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_proxyuser_id = 'hdfs_proxyuser_id_example' # str | Delete a a HDFS proxyuser. + +try: + api_instance.delete_hdfs_proxyuser(hdfs_proxyuser_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_hdfs_proxyuser: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_proxyuser_id** | **str**| Delete a a HDFS proxyuser. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_hdfs_rack** +> delete_hdfs_rack(hdfs_rack_id) + + + +Delete the HDFS rack. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_rack_id = 'hdfs_rack_id_example' # str | Delete the HDFS rack. + +try: + api_instance.delete_hdfs_rack(hdfs_rack_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_hdfs_rack: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_rack_id** | **str**| Delete the HDFS rack. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_ndmp_user** +> delete_ndmp_user(ndmp_user_id) + + + +Delete the user. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ndmp_user_id = 'ndmp_user_id_example' # str | Delete the user. + +try: + api_instance.delete_ndmp_user(ndmp_user_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_ndmp_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ndmp_user_id** | **str**| Delete the user. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_nfs_aliase** +> delete_nfs_aliase(nfs_aliase_id, zone=zone) + + + +Delete the export. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_aliase_id = 'nfs_aliase_id_example' # str | Delete the export. +zone = 'zone_example' # str | Access zone (optional) + +try: + api_instance.delete_nfs_aliase(nfs_aliase_id, zone=zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_nfs_aliase: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_aliase_id** | **str**| Delete the export. | + **zone** | **str**| Access zone | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_nfs_export** +> delete_nfs_export(nfs_export_id, zone=zone) + + + +Delete the export. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_export_id = 'nfs_export_id_example' # str | Delete the export. +zone = 'zone_example' # str | Access zone (optional) + +try: + api_instance.delete_nfs_export(nfs_export_id, zone=zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_nfs_export: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_export_id** | **str**| Delete the export. | + **zone** | **str**| Access zone | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_nfs_nlm_session** +> delete_nfs_nlm_session(nfs_nlm_session_id, ip=ip, zone=zone, refresh=refresh) + + + +Delete all lock state for this host. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_nlm_session_id = 'nfs_nlm_session_id_example' # str | Delete all lock state for this host. +ip = 'ip_example' # str | An IP address for which NSM has client records (optional) +zone = 'zone_example' # str | Represents an extant auth zone (optional) +refresh = true # bool | if set to true, the client will be given a chance to reclaim its locks before they are destroyed (optional) + +try: + api_instance.delete_nfs_nlm_session(nfs_nlm_session_id, ip=ip, zone=zone, refresh=refresh) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_nfs_nlm_session: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_nlm_session_id** | **str**| Delete all lock state for this host. | + **ip** | **str**| An IP address for which NSM has client records | [optional] + **zone** | **str**| Represents an extant auth zone | [optional] + **refresh** | **bool**| if set to true, the client will be given a chance to reclaim its locks before they are destroyed | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_ntp_server** +> delete_ntp_server(ntp_server_id) + + + +Delete an NTP server entry. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ntp_server_id = 'ntp_server_id_example' # str | Delete an NTP server entry. + +try: + api_instance.delete_ntp_server(ntp_server_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_ntp_server: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ntp_server_id** | **str**| Delete an NTP server entry. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_ntp_servers** +> delete_ntp_servers() + + + +Delete all NTP server entries. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_instance.delete_ntp_servers() +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_ntp_servers: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_smb_log_level_filter** +> delete_smb_log_level_filter(smb_log_level_filter_id) + + + +Delete log filter. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_log_level_filter_id = 'smb_log_level_filter_id_example' # str | Delete log filter. + +try: + api_instance.delete_smb_log_level_filter(smb_log_level_filter_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_smb_log_level_filter: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_log_level_filter_id** | **str**| Delete log filter. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_smb_log_level_filters** +> delete_smb_log_level_filters() + + + +Delete an existing SMB log filter. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_instance.delete_smb_log_level_filters() +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_smb_log_level_filters: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_smb_openfile** +> delete_smb_openfile(smb_openfile_id) + + + +Close the file in the SMB server. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_openfile_id = 'smb_openfile_id_example' # str | Close the file in the SMB server. + +try: + api_instance.delete_smb_openfile(smb_openfile_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_smb_openfile: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_openfile_id** | **str**| Close the file in the SMB server. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_smb_session** +> delete_smb_session(smb_session_id) + + + +Close the SMB session. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_session_id = 'smb_session_id_example' # str | Close the SMB session. + +try: + api_instance.delete_smb_session(smb_session_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_smb_session: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_session_id** | **str**| Close the SMB session. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_smb_sessions_computer_user** +> delete_smb_sessions_computer_user(smb_sessions_computer_user, computer) + + + +Close the SMB session. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_sessions_computer_user = 'smb_sessions_computer_user_example' # str | Close the SMB session. +computer = 'computer_example' # str | + +try: + api_instance.delete_smb_sessions_computer_user(smb_sessions_computer_user, computer) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_smb_sessions_computer_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_sessions_computer_user** | **str**| Close the SMB session. | + **computer** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_smb_share** +> delete_smb_share(smb_share_id, zone=zone) + + + +Delete the share. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_share_id = 'smb_share_id_example' # str | Delete the share. +zone = 'zone_example' # str | Zone which contains this share. (optional) + +try: + api_instance.delete_smb_share(smb_share_id, zone=zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_smb_share: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_share_id** | **str**| Delete the share. | + **zone** | **str**| Zone which contains this share. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_smb_shares** +> delete_smb_shares() + + + +Delete multiple smb shares. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_instance.delete_smb_shares() +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_smb_shares: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_swift_account** +> delete_swift_account(swift_account_id) + + + +Delete a Swift account. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +swift_account_id = 'swift_account_id_example' # str | Delete a Swift account. + +try: + api_instance.delete_swift_account(swift_account_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->delete_swift_account: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **swift_account_id** | **str**| Delete a Swift account. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ftp_settings** +> FtpSettings get_ftp_settings() + + + +Retrieve the FTP settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_ftp_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ftp_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FtpSettings**](FtpSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hdfs_log_level** +> HdfsLogLevel get_hdfs_log_level() + + + +Retrieve the HDFS service log-level. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_hdfs_log_level() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_hdfs_log_level: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HdfsLogLevel**](HdfsLogLevel.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hdfs_proxyuser** +> HdfsProxyusers get_hdfs_proxyuser(hdfs_proxyuser_id) + + + +List all proxyusers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_proxyuser_id = 'hdfs_proxyuser_id_example' # str | List all proxyusers. + +try: + api_response = api_instance.get_hdfs_proxyuser(hdfs_proxyuser_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_hdfs_proxyuser: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_proxyuser_id** | **str**| List all proxyusers. | + +### Return type + +[**HdfsProxyusers**](HdfsProxyusers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hdfs_rack** +> HdfsRacks get_hdfs_rack(hdfs_rack_id) + + + +Retrieve the HDFS rack. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_rack_id = 'hdfs_rack_id_example' # str | Retrieve the HDFS rack. + +try: + api_response = api_instance.get_hdfs_rack(hdfs_rack_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_hdfs_rack: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_rack_id** | **str**| Retrieve the HDFS rack. | + +### Return type + +[**HdfsRacks**](HdfsRacks.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_hdfs_settings** +> HdfsSettings get_hdfs_settings() + + + +Retrieve HDFS properties. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_hdfs_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_hdfs_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HdfsSettings**](HdfsSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_http_settings** +> HttpSettings get_http_settings() + + + +Retrieve HTTP properties. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_http_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_http_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HttpSettings**](HttpSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ndmp_contexts_bre** +> NdmpContextsBre get_ndmp_contexts_bre() + + + +Get list of NDMP BRE Contexts. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_ndmp_contexts_bre() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ndmp_contexts_bre: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NdmpContextsBre**](NdmpContextsBre.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ndmp_diagnostics** +> NdmpDiagnostics get_ndmp_diagnostics() + + + +List ndmp diagnostics settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_ndmp_diagnostics() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ndmp_diagnostics: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NdmpDiagnostics**](NdmpDiagnostics.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ndmp_logs** +> NdmpLogs get_ndmp_logs() + + + +Get NDMP logs + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_ndmp_logs() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ndmp_logs: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NdmpLogs**](NdmpLogs.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ndmp_sessions** +> NdmpSessions get_ndmp_sessions() + + + +List all ndmp sessions. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_ndmp_sessions() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ndmp_sessions: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NdmpSessions**](NdmpSessions.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ndmp_settings_global** +> NdmpSettingsGlobal get_ndmp_settings_global() + + + +List global ndmp settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_ndmp_settings_global() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ndmp_settings_global: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NdmpSettingsGlobal**](NdmpSettingsGlobal.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ndmp_user** +> NdmpUsers get_ndmp_user(ndmp_user_id) + + + +Retrieve the user. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ndmp_user_id = 'ndmp_user_id_example' # str | Retrieve the user. + +try: + api_response = api_instance.get_ndmp_user(ndmp_user_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ndmp_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ndmp_user_id** | **str**| Retrieve the user. | + +### Return type + +[**NdmpUsers**](NdmpUsers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_aliase** +> NfsAliases get_nfs_aliase(nfs_aliase_id, scope=scope, zone=zone) + + + +Retrieve export information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_aliase_id = 'nfs_aliase_id_example' # str | Retrieve export information. +scope = 'scope_example' # str | When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. (optional) +zone = 'zone_example' # str | Access zone (optional) + +try: + api_response = api_instance.get_nfs_aliase(nfs_aliase_id, scope=scope, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_aliase: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_aliase_id** | **str**| Retrieve export information. | + **scope** | **str**| When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. | [optional] + **zone** | **str**| Access zone | [optional] + +### Return type + +[**NfsAliases**](NfsAliases.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_check** +> NfsCheckExtended get_nfs_check(zone=zone) + + + +Retrieve NFS export validation information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +zone = 'zone_example' # str | Access zone (optional) + +try: + api_response = api_instance.get_nfs_check(zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_check: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zone** | **str**| Access zone | [optional] + +### Return type + +[**NfsCheckExtended**](NfsCheckExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_export** +> NfsExports get_nfs_export(nfs_export_id, scope=scope, zone=zone) + + + +Retrieve export information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_export_id = 'nfs_export_id_example' # str | Retrieve export information. +scope = 'scope_example' # str | When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. (optional) +zone = 'zone_example' # str | Access zone (optional) + +try: + api_response = api_instance.get_nfs_export(nfs_export_id, scope=scope, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_export: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_export_id** | **str**| Retrieve export information. | + **scope** | **str**| When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. | [optional] + **zone** | **str**| Access zone | [optional] + +### Return type + +[**NfsExports**](NfsExports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_exports_summary** +> NfsExportsSummary get_nfs_exports_summary(zone=zone) + + + +Retrieve NFS export summary information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +zone = 'zone_example' # str | Access zone (optional) + +try: + api_response = api_instance.get_nfs_exports_summary(zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_exports_summary: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zone** | **str**| Access zone | [optional] + +### Return type + +[**NfsExportsSummary**](NfsExportsSummary.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_log_level** +> NfsLogLevel get_nfs_log_level() + + + +Get the current NFS service logging level. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_nfs_log_level() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_log_level: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NfsLogLevel**](NfsLogLevel.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_netgroup** +> NfsNetgroup get_nfs_netgroup(host=host) + + + +Get the current NFS netgroup cache settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +host = 'host_example' # str | Host to retrieve netgroup cache settings from. (optional) + +try: + api_response = api_instance.get_nfs_netgroup(host=host) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_netgroup: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **host** | **str**| Host to retrieve netgroup cache settings from. | [optional] + +### Return type + +[**NfsNetgroup**](NfsNetgroup.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_nlm_locks** +> NfsNlmLocks get_nfs_nlm_locks(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List all NLM locks. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_nfs_nlm_locks(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_nlm_locks: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**NfsNlmLocks**](NfsNlmLocks.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_nlm_session** +> NfsNlmSessions get_nfs_nlm_session(nfs_nlm_session_id, ip=ip, zone=zone) + + + +Retrieve all lock state for a single client. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_nlm_session_id = 'nfs_nlm_session_id_example' # str | Retrieve all lock state for a single client. +ip = 'ip_example' # str | An IP address for which NSM has client records (optional) +zone = 'zone_example' # str | Represents an extant auth zone (optional) + +try: + api_response = api_instance.get_nfs_nlm_session(nfs_nlm_session_id, ip=ip, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_nlm_session: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_nlm_session_id** | **str**| Retrieve all lock state for a single client. | + **ip** | **str**| An IP address for which NSM has client records | [optional] + **zone** | **str**| Represents an extant auth zone | [optional] + +### Return type + +[**NfsNlmSessions**](NfsNlmSessions.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_nlm_sessions** +> NfsNlmSessionsExtended get_nfs_nlm_sessions(ip=ip, zone=zone) + + + +List all NSM clients (optionally filtered by either zone or IP) + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ip = 'ip_example' # str | An IP address for which NSM has client records (optional) +zone = 'zone_example' # str | Represents an extant auth zone (optional) + +try: + api_response = api_instance.get_nfs_nlm_sessions(ip=ip, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_nlm_sessions: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ip** | **str**| An IP address for which NSM has client records | [optional] + **zone** | **str**| Represents an extant auth zone | [optional] + +### Return type + +[**NfsNlmSessionsExtended**](NfsNlmSessionsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_nlm_waiters** +> NfsNlmWaiters get_nfs_nlm_waiters(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List all NLM lock waiters. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_nfs_nlm_waiters(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_nlm_waiters: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**NfsNlmWaiters**](NfsNlmWaiters.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_settings_export** +> NfsSettingsExport get_nfs_settings_export(scope=scope, zone=zone) + + + +Retrieve export information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) +zone = 'zone_example' # str | Access zone (optional) + +try: + api_response = api_instance.get_nfs_settings_export(scope=scope, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_settings_export: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + **zone** | **str**| Access zone | [optional] + +### Return type + +[**NfsSettingsExport**](NfsSettingsExport.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_settings_global** +> NfsSettingsGlobal get_nfs_settings_global() + + + +Retrieve the NFS configuration. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_nfs_settings_global() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_settings_global: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NfsSettingsGlobal**](NfsSettingsGlobal.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_nfs_settings_zone** +> NfsSettingsZone get_nfs_settings_zone() + + + +Retrieve the NFS server settings for this zone. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_nfs_settings_zone() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_nfs_settings_zone: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NfsSettingsZone**](NfsSettingsZone.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ntp_server** +> NtpServers get_ntp_server(ntp_server_id) + + + +Retrieve one NTP server. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ntp_server_id = 'ntp_server_id_example' # str | Retrieve one NTP server. + +try: + api_response = api_instance.get_ntp_server(ntp_server_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ntp_server: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ntp_server_id** | **str**| Retrieve one NTP server. | + +### Return type + +[**NtpServers**](NtpServers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_ntp_settings** +> NtpSettings get_ntp_settings() + + + +Retrieve the NTP settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_ntp_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_ntp_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NtpSettings**](NtpSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_smb_log_level** +> SmbLogLevel get_smb_log_level() + + + +Get the current SMB logging level. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_smb_log_level() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_smb_log_level: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SmbLogLevel**](SmbLogLevel.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_smb_log_level_filter** +> SmbLogLevelFilters get_smb_log_level_filter(smb_log_level_filter_id) + + + +View log filter. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_log_level_filter_id = 'smb_log_level_filter_id_example' # str | View log filter. + +try: + api_response = api_instance.get_smb_log_level_filter(smb_log_level_filter_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_smb_log_level_filter: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_log_level_filter_id** | **str**| View log filter. | + +### Return type + +[**SmbLogLevelFilters**](SmbLogLevelFilters.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_smb_openfiles** +> SmbOpenfiles get_smb_openfiles(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List open files. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +sort = 'sort_example' # str | Order results by this field. Default is id. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_smb_openfiles(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_smb_openfiles: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| Order results by this field. Default is id. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SmbOpenfiles**](SmbOpenfiles.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_smb_sessions** +> SmbSessions get_smb_sessions(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List open sessions. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +sort = 'sort_example' # str | Order results by this field. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_smb_sessions(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_smb_sessions: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| Order results by this field. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SmbSessions**](SmbSessions.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_smb_settings_global** +> SmbSettingsGlobal get_smb_settings_global(scope=scope) + + + +List all settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) + +try: + api_response = api_instance.get_smb_settings_global(scope=scope) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_smb_settings_global: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + +### Return type + +[**SmbSettingsGlobal**](SmbSettingsGlobal.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_smb_settings_share** +> SmbSettingsShare get_smb_settings_share(scope=scope, zone=zone) + + + +List all settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) +zone = 'zone_example' # str | Zone which contains these share settings. (optional) + +try: + api_response = api_instance.get_smb_settings_share(scope=scope, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_smb_settings_share: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + **zone** | **str**| Zone which contains these share settings. | [optional] + +### Return type + +[**SmbSettingsShare**](SmbSettingsShare.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_smb_share** +> SmbShares get_smb_share(smb_share_id, scope=scope, resolve_names=resolve_names, zone=zone) + + + +Retrieve share. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_share_id = 'smb_share_id_example' # str | Retrieve share. +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) +resolve_names = true # bool | If true, resolve group and user names in personas. (optional) +zone = 'zone_example' # str | Zone which contains this share. (optional) + +try: + api_response = api_instance.get_smb_share(smb_share_id, scope=scope, resolve_names=resolve_names, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_smb_share: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_share_id** | **str**| Retrieve share. | + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + **resolve_names** | **bool**| If true, resolve group and user names in personas. | [optional] + **zone** | **str**| Zone which contains this share. | [optional] + +### Return type + +[**SmbShares**](SmbShares.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_smb_shares_summary** +> SmbSharesSummary get_smb_shares_summary() + + + +Return summary information about shares. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_smb_shares_summary() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_smb_shares_summary: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SmbSharesSummary**](SmbSharesSummary.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snmp_settings** +> SnmpSettings get_snmp_settings() + + + +Retrieve the SNMP settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.get_snmp_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_snmp_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SnmpSettings**](SnmpSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_swift_account** +> SwiftAccounts get_swift_account(swift_account_id) + + + +List a swift account. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +swift_account_id = 'swift_account_id_example' # str | List a swift account. + +try: + api_response = api_instance.get_swift_account(swift_account_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->get_swift_account: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **swift_account_id** | **str**| List a swift account. | + +### Return type + +[**SwiftAccounts**](SwiftAccounts.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_hdfs_proxyusers** +> HdfsProxyusers list_hdfs_proxyusers() + + + +List all proxyusers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.list_hdfs_proxyusers() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_hdfs_proxyusers: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HdfsProxyusers**](HdfsProxyusers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_hdfs_racks** +> HdfsRacksExtended list_hdfs_racks() + + + +List all racks. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.list_hdfs_racks() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_hdfs_racks: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HdfsRacksExtended**](HdfsRacksExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_ndmp_users** +> NdmpUsersExtended list_ndmp_users() + + + +List all ndmp administrators. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.list_ndmp_users() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_ndmp_users: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**NdmpUsersExtended**](NdmpUsersExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_nfs_aliases** +> NfsAliasesExtended list_nfs_aliases(sort=sort, zone=zone, resume=resume, limit=limit, check=check, dir=dir) + + + +List all NFS aliases. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +zone = 'zone_example' # str | Access zone (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +check = true # bool | Check for conflicts when listing exports. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_nfs_aliases(sort=sort, zone=zone, resume=resume, limit=limit, check=check, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_nfs_aliases: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **zone** | **str**| Access zone | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **check** | **bool**| Check for conflicts when listing exports. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**NfsAliasesExtended**](NfsAliasesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_nfs_exports** +> NfsExportsExtended list_nfs_exports(sort=sort, paths=paths, zone=zone, resume=resume, limit=limit, scope=scope, check=check, dir=dir) + + + +List all NFS exports. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +paths = 'paths_example' # str | If specified, only exports that explicitly reference at least one of the given paths will be returned. (optional) +zone = 'zone_example' # str | Access zone (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +scope = 'scope_example' # str | When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. (optional) +check = true # bool | Check for conflicts when listing exports. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_nfs_exports(sort=sort, paths=paths, zone=zone, resume=resume, limit=limit, scope=scope, check=check, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_nfs_exports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **paths** | **str**| If specified, only exports that explicitly reference at least one of the given paths will be returned. | [optional] + **zone** | **str**| Access zone | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **scope** | **str**| When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. | [optional] + **check** | **bool**| Check for conflicts when listing exports. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**NfsExportsExtended**](NfsExportsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_ntp_servers** +> NtpServersExtended list_ntp_servers(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List all NTP servers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_ntp_servers(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_ntp_servers: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**NtpServersExtended**](NtpServersExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_smb_log_level_filters** +> SmbLogLevelFiltersExtended list_smb_log_level_filters() + + + +Get the current SMB log filters. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.list_smb_log_level_filters() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_smb_log_level_filters: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SmbLogLevelFiltersExtended**](SmbLogLevelFiltersExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_smb_shares** +> SmbSharesExtended list_smb_shares(sort=sort, zone=zone, resume=resume, resolve_names=resolve_names, limit=limit, scope=scope, dir=dir) + + + +List all shares. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +sort = 'sort_example' # str | Order results by this field. Default is id. (optional) +zone = 'zone_example' # str | Zone which contains this share. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +resolve_names = true # bool | If true, resolve group and user names in personas. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_smb_shares(sort=sort, zone=zone, resume=resume, resolve_names=resolve_names, limit=limit, scope=scope, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_smb_shares: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| Order results by this field. Default is id. | [optional] + **zone** | **str**| Zone which contains this share. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **resolve_names** | **bool**| If true, resolve group and user names in personas. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**SmbSharesExtended**](SmbSharesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_swift_accounts** +> SwiftAccounts list_swift_accounts() + + + +List all swift accounts. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() + +try: + api_response = api_instance.list_swift_accounts() + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsApi->list_swift_accounts: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SwiftAccounts**](SwiftAccounts.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_ftp_settings** +> update_ftp_settings(ftp_settings) + + + +Modify the FTP settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ftp_settings = isi_sdk.FtpSettingsSettings() # FtpSettingsSettings | + +try: + api_instance.update_ftp_settings(ftp_settings) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_ftp_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ftp_settings** | [**FtpSettingsSettings**](FtpSettingsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_hdfs_log_level** +> update_hdfs_log_level(hdfs_log_level) + + + +Modify the HDFS service log-level. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_log_level = isi_sdk.HdfsLogLevel() # HdfsLogLevel | + +try: + api_instance.update_hdfs_log_level(hdfs_log_level) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_hdfs_log_level: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_log_level** | [**HdfsLogLevel**](HdfsLogLevel.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_hdfs_proxyuser** +> update_hdfs_proxyuser(hdfs_proxyuser, hdfs_proxyuser_id) + + + +Create a new HDFS proxyuser. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_proxyuser = isi_sdk.Empty() # Empty | +hdfs_proxyuser_id = 'hdfs_proxyuser_id_example' # str | Create a new HDFS proxyuser. + +try: + api_instance.update_hdfs_proxyuser(hdfs_proxyuser, hdfs_proxyuser_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_hdfs_proxyuser: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_proxyuser** | [**Empty**](Empty.md)| | + **hdfs_proxyuser_id** | **str**| Create a new HDFS proxyuser. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_hdfs_rack** +> update_hdfs_rack(hdfs_rack, hdfs_rack_id) + + + +Modify the HDFS rack + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_rack = isi_sdk.HdfsRack() # HdfsRack | +hdfs_rack_id = 'hdfs_rack_id_example' # str | Modify the HDFS rack + +try: + api_instance.update_hdfs_rack(hdfs_rack, hdfs_rack_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_hdfs_rack: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_rack** | [**HdfsRack**](HdfsRack.md)| | + **hdfs_rack_id** | **str**| Modify the HDFS rack | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_hdfs_settings** +> update_hdfs_settings(hdfs_settings) + + + +Modify HDFS properties. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +hdfs_settings = isi_sdk.HdfsSettingsSettings() # HdfsSettingsSettings | + +try: + api_instance.update_hdfs_settings(hdfs_settings) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_hdfs_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hdfs_settings** | [**HdfsSettingsSettings**](HdfsSettingsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_http_settings** +> update_http_settings(http_settings) + + + +Modify HTTP properties. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +http_settings = isi_sdk.HttpSettingsSettings() # HttpSettingsSettings | + +try: + api_instance.update_http_settings(http_settings) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_http_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **http_settings** | [**HttpSettingsSettings**](HttpSettingsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_ndmp_diagnostics** +> update_ndmp_diagnostics(ndmp_diagnostics) + + + +Modify ndmp diagnostics settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ndmp_diagnostics = isi_sdk.NdmpDiagnosticsDiagnostics() # NdmpDiagnosticsDiagnostics | + +try: + api_instance.update_ndmp_diagnostics(ndmp_diagnostics) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_ndmp_diagnostics: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ndmp_diagnostics** | [**NdmpDiagnosticsDiagnostics**](NdmpDiagnosticsDiagnostics.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_ndmp_settings_global** +> update_ndmp_settings_global(ndmp_settings_global) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ndmp_settings_global = isi_sdk.NdmpSettingsGlobalGlobal() # NdmpSettingsGlobalGlobal | + +try: + api_instance.update_ndmp_settings_global(ndmp_settings_global) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_ndmp_settings_global: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ndmp_settings_global** | [**NdmpSettingsGlobalGlobal**](NdmpSettingsGlobalGlobal.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_ndmp_user** +> update_ndmp_user(ndmp_user, ndmp_user_id) + + + +Modify the user + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ndmp_user = isi_sdk.NdmpUser() # NdmpUser | +ndmp_user_id = 'ndmp_user_id_example' # str | Modify the user + +try: + api_instance.update_ndmp_user(ndmp_user, ndmp_user_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_ndmp_user: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ndmp_user** | [**NdmpUser**](NdmpUser.md)| | + **ndmp_user_id** | **str**| Modify the user | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_nfs_aliase** +> update_nfs_aliase(nfs_aliase, nfs_aliase_id, zone=zone) + + + +Modify the alias. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_aliase = isi_sdk.NfsAliase() # NfsAliase | +nfs_aliase_id = 'nfs_aliase_id_example' # str | Modify the alias. All input fields are optional, but one or more must be supplied. +zone = 'zone_example' # str | Access zone (optional) + +try: + api_instance.update_nfs_aliase(nfs_aliase, nfs_aliase_id, zone=zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_nfs_aliase: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_aliase** | [**NfsAliase**](NfsAliase.md)| | + **nfs_aliase_id** | **str**| Modify the alias. All input fields are optional, but one or more must be supplied. | + **zone** | **str**| Access zone | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_nfs_export** +> update_nfs_export(nfs_export, nfs_export_id, force=force, zone=zone) + + + +Modify the export. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_export = isi_sdk.NfsExport() # NfsExport | +nfs_export_id = 'nfs_export_id_example' # str | Modify the export. All input fields are optional, but one or more must be supplied. +force = true # bool | If true, the export will be updated even if that change conflicts with another export. (optional) +zone = 'zone_example' # str | Access zone (optional) + +try: + api_instance.update_nfs_export(nfs_export, nfs_export_id, force=force, zone=zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_nfs_export: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_export** | [**NfsExport**](NfsExport.md)| | + **nfs_export_id** | **str**| Modify the export. All input fields are optional, but one or more must be supplied. | + **force** | **bool**| If true, the export will be updated even if that change conflicts with another export. | [optional] + **zone** | **str**| Access zone | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_nfs_log_level** +> update_nfs_log_level(nfs_log_level) + + + +Set the current NFS service logging level. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_log_level = isi_sdk.NfsLogLevel() # NfsLogLevel | + +try: + api_instance.update_nfs_log_level(nfs_log_level) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_nfs_log_level: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_log_level** | [**NfsLogLevel**](NfsLogLevel.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_nfs_netgroup** +> update_nfs_netgroup(nfs_netgroup, host=host) + + + +Modify the current NFS netgroup settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_netgroup = isi_sdk.NfsNetgroup() # NfsNetgroup | +host = 'host_example' # str | Host to retrieve netgroup cache settings for. (optional) + +try: + api_instance.update_nfs_netgroup(nfs_netgroup, host=host) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_nfs_netgroup: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_netgroup** | [**NfsNetgroup**](NfsNetgroup.md)| | + **host** | **str**| Host to retrieve netgroup cache settings for. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_nfs_settings_export** +> update_nfs_settings_export(nfs_settings_export, zone=zone) + + + +Modify the default values for NFS exports. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_settings_export = isi_sdk.NfsSettingsExportSettings() # NfsSettingsExportSettings | +zone = 'zone_example' # str | Access zone (optional) + +try: + api_instance.update_nfs_settings_export(nfs_settings_export, zone=zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_nfs_settings_export: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_settings_export** | [**NfsSettingsExportSettings**](NfsSettingsExportSettings.md)| | + **zone** | **str**| Access zone | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_nfs_settings_global** +> update_nfs_settings_global(nfs_settings_global) + + + +Modify the default values for NFS exports. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_settings_global = isi_sdk.NfsSettingsGlobalSettings() # NfsSettingsGlobalSettings | + +try: + api_instance.update_nfs_settings_global(nfs_settings_global) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_nfs_settings_global: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_settings_global** | [**NfsSettingsGlobalSettings**](NfsSettingsGlobalSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_nfs_settings_zone** +> update_nfs_settings_zone(nfs_settings_zone) + + + +Modify the NFS server settings for this zone. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +nfs_settings_zone = isi_sdk.NfsSettingsZoneSettings() # NfsSettingsZoneSettings | + +try: + api_instance.update_nfs_settings_zone(nfs_settings_zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_nfs_settings_zone: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nfs_settings_zone** | [**NfsSettingsZoneSettings**](NfsSettingsZoneSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_ntp_server** +> update_ntp_server(ntp_server, ntp_server_id) + + + +Modify the key value for an NTP server. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ntp_server = isi_sdk.NtpServer() # NtpServer | +ntp_server_id = 'ntp_server_id_example' # str | Modify the key value for an NTP server. + +try: + api_instance.update_ntp_server(ntp_server, ntp_server_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_ntp_server: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ntp_server** | [**NtpServer**](NtpServer.md)| | + **ntp_server_id** | **str**| Modify the key value for an NTP server. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_ntp_settings** +> update_ntp_settings(ntp_settings) + + + +Modify the NTP settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +ntp_settings = isi_sdk.NtpSettingsSettings() # NtpSettingsSettings | + +try: + api_instance.update_ntp_settings(ntp_settings) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_ntp_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ntp_settings** | [**NtpSettingsSettings**](NtpSettingsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_smb_log_level** +> update_smb_log_level(smb_log_level) + + + +Set the current SMB logging level. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_log_level = isi_sdk.SmbLogLevel() # SmbLogLevel | + +try: + api_instance.update_smb_log_level(smb_log_level) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_smb_log_level: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_log_level** | [**SmbLogLevel**](SmbLogLevel.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_smb_settings_global** +> update_smb_settings_global(smb_settings_global) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_settings_global = isi_sdk.SmbSettingsGlobalSettings() # SmbSettingsGlobalSettings | + +try: + api_instance.update_smb_settings_global(smb_settings_global) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_smb_settings_global: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_settings_global** | [**SmbSettingsGlobalSettings**](SmbSettingsGlobalSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_smb_settings_share** +> update_smb_settings_share(smb_settings_share, zone=zone) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_settings_share = isi_sdk.SmbSettingsShareSettings() # SmbSettingsShareSettings | +zone = 'zone_example' # str | Zone which contains these share settings. (optional) + +try: + api_instance.update_smb_settings_share(smb_settings_share, zone=zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_smb_settings_share: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_settings_share** | [**SmbSettingsShareSettings**](SmbSettingsShareSettings.md)| | + **zone** | **str**| Zone which contains these share settings. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_smb_share** +> update_smb_share(smb_share, smb_share_id, zone=zone) + + + +Modify share. All input fields are optional, but one or must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +smb_share = isi_sdk.SmbShare() # SmbShare | +smb_share_id = 'smb_share_id_example' # str | Modify share. All input fields are optional, but one or must be supplied. +zone = 'zone_example' # str | Zone which contains this share. (optional) + +try: + api_instance.update_smb_share(smb_share, smb_share_id, zone=zone) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_smb_share: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **smb_share** | [**SmbShare**](SmbShare.md)| | + **smb_share_id** | **str**| Modify share. All input fields are optional, but one or must be supplied. | + **zone** | **str**| Zone which contains this share. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_snmp_settings** +> update_snmp_settings(snmp_settings) + + + +Modify the SNMO settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +snmp_settings = isi_sdk.SnmpSettingsExtended() # SnmpSettingsExtended | + +try: + api_instance.update_snmp_settings(snmp_settings) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_snmp_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snmp_settings** | [**SnmpSettingsExtended**](SnmpSettingsExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_swift_account** +> update_swift_account(swift_account, swift_account_id) + + + +Modify a Swift account + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsApi() +swift_account = isi_sdk.SwiftAccount() # SwiftAccount | +swift_account_id = 'swift_account_id_example' # str | Modify a Swift account + +try: + api_instance.update_swift_account(swift_account, swift_account_id) +except ApiException as e: + print "Exception when calling ProtocolsApi->update_swift_account: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **swift_account** | [**SwiftAccount**](SwiftAccount.md)| | + **swift_account_id** | **str**| Modify a Swift account | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ProtocolsHdfsApi.md b/docs/ProtocolsHdfsApi.md new file mode 100644 index 000000000..e9db8b387 --- /dev/null +++ b/docs/ProtocolsHdfsApi.md @@ -0,0 +1,218 @@ +# isi_sdk.ProtocolsHdfsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_proxyusers_name_member**](ProtocolsHdfsApi.md#create_proxyusers_name_member) | **POST** /platform/1/protocols/hdfs/proxyusers/{Name}/members | +[**delete_proxyusers_name_member**](ProtocolsHdfsApi.md#delete_proxyusers_name_member) | **DELETE** /platform/1/protocols/hdfs/proxyusers/{Name}/members/{ProxyusersNameMemberId} | +[**list_proxyusers_name_members**](ProtocolsHdfsApi.md#list_proxyusers_name_members) | **GET** /platform/1/protocols/hdfs/proxyusers/{Name}/members | +[**update_proxyusers_name_member**](ProtocolsHdfsApi.md#update_proxyusers_name_member) | **PUT** /platform/1/protocols/hdfs/proxyusers/{Name}/members/{ProxyusersNameMemberId} | + + +# **create_proxyusers_name_member** +> CreateResponse create_proxyusers_name_member(proxyusers_name_member, name) + + + +Add a member to the HDFS proxyuser. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsHdfsApi() +proxyusers_name_member = isi_sdk.GroupMember() # GroupMember | +name = 'name_example' # str | + +try: + api_response = api_instance.create_proxyusers_name_member(proxyusers_name_member, name) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsHdfsApi->create_proxyusers_name_member: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **proxyusers_name_member** | [**GroupMember**](GroupMember.md)| | + **name** | **str**| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_proxyusers_name_member** +> delete_proxyusers_name_member(proxyusers_name_member_id, name) + + + +Remove a member from the HDFS proxyuser. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsHdfsApi() +proxyusers_name_member_id = 'proxyusers_name_member_id_example' # str | Remove a member from the HDFS proxyuser. +name = 'name_example' # str | + +try: + api_instance.delete_proxyusers_name_member(proxyusers_name_member_id, name) +except ApiException as e: + print "Exception when calling ProtocolsHdfsApi->delete_proxyusers_name_member: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **proxyusers_name_member_id** | **str**| Remove a member from the HDFS proxyuser. | + **name** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_proxyusers_name_members** +> GroupMembers list_proxyusers_name_members(name) + + + +List all the members of the HDFS proxyuser. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsHdfsApi() +name = 'name_example' # str | + +try: + api_response = api_instance.list_proxyusers_name_members(name) + pprint(api_response) +except ApiException as e: + print "Exception when calling ProtocolsHdfsApi->list_proxyusers_name_members: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | + +### Return type + +[**GroupMembers**](GroupMembers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_proxyusers_name_member** +> update_proxyusers_name_member(proxyusers_name_member, proxyusers_name_member_id, name) + + + +Create a new HDFS proxyuser. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ProtocolsHdfsApi() +proxyusers_name_member = isi_sdk.Empty() # Empty | +proxyusers_name_member_id = 'proxyusers_name_member_id_example' # str | Create a new HDFS proxyuser. +name = 'name_example' # str | + +try: + api_instance.update_proxyusers_name_member(proxyusers_name_member, proxyusers_name_member_id, name) +except ApiException as e: + print "Exception when calling ProtocolsHdfsApi->update_proxyusers_name_member: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **proxyusers_name_member** | [**Empty**](Empty.md)| | + **proxyusers_name_member_id** | **str**| Create a new HDFS proxyuser. | + **name** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ProvidersAds.md b/docs/ProvidersAds.md new file mode 100644 index 000000000..e349110b6 --- /dev/null +++ b/docs/ProvidersAds.md @@ -0,0 +1,10 @@ +# ProvidersAds + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ads** | [**list[ProvidersAdsAdsItem]**](ProvidersAdsAdsItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersAdsAdsItem.md b/docs/ProvidersAdsAdsItem.md new file mode 100644 index 000000000..f3195fd9d --- /dev/null +++ b/docs/ProvidersAdsAdsItem.md @@ -0,0 +1,55 @@ +# ProvidersAdsAdsItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocate_gids** | **bool** | Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. | [optional] +**allocate_uids** | **bool** | Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. | [optional] +**assume_default_domain** | **bool** | Enables lookup of unqualified user names in the primary domain. | [optional] +**authentication** | **bool** | Enables authentication and identity management through the authentication provider. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**controller_time** | **int** | Specifies the current time for the domain controllers. | [optional] +**create_home_directory** | **bool** | Automatically creates a home directory on the first login. | [optional] +**domain_offline_alerts** | **bool** | Sends an alert if the domain goes offline. | [optional] +**findable_groups** | **list[str]** | Sets list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Sets list of users that can be resolved. | [optional] +**forest** | **str** | Specifies the Active Directory forest. | [optional] +**groupnet** | **str** | Groupnet identifier. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**hostname** | **str** | Specifies the fully qualified hostname stored in the machine account. | [optional] +**id** | **str** | Specifies the ID of the Active Directory provider instance. | [optional] +**ignore_all_trusts** | **bool** | If set to true, ignores all trusted domains. | [optional] +**ignored_trusted_domains** | **list[str]** | Includes trusted domains when 'ignore_all_trusts' is set to false. | [optional] +**include_trusted_domains** | **list[str]** | Includes trusted domains when 'ignore_all_trusts' is set to true. | [optional] +**instance** | **str** | Specifies Active Directory provider instnace. | [optional] +**ldap_sign_and_seal** | **bool** | Enables encryption and signing on LDAP requests. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**lookup_domains** | **list[str]** | Limits user and group lookups to the specified domains. | [optional] +**lookup_groups** | **bool** | Looks up AD groups in other providers before allocating a group ID. | [optional] +**lookup_normalize_groups** | **bool** | Normalizes AD group names to lowercase before look up. | [optional] +**lookup_normalize_users** | **bool** | Normalize AD user names to lowercase before look up. | [optional] +**lookup_users** | **bool** | Looks up AD users in other providers before allocating a user ID. | [optional] +**machine_account** | **str** | Specifies the SAM account name of the machine account. | [optional] +**machine_name** | **str** | Specifies name to join AD as. | [optional] +**machine_password_changes** | **bool** | Enables periodic changes of the machine password for security. | [optional] +**machine_password_lifespan** | **int** | Sets maximum age of a password in seconds. | [optional] +**name** | **str** | Specifies the Active Directory provider name. | [optional] +**netbios_domain** | **str** | Specifies the NetBIOS domain name associated with the machine account. | [optional] +**node_dc_affinity** | **str** | Specifies the domain controller for which the node has affinity. | [optional] +**node_dc_affinity_timeout** | **int** | Specifies the timeout for the domain controller for which the local node has affinity. | [optional] +**nss_enumeration** | **bool** | Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. | [optional] +**primary_domain** | **str** | Specifies the AD domain to which the provider is joined. | [optional] +**recommended_spns** | **list[str]** | Configuration recommended SPNs. | [optional] +**restrict_findable** | **bool** | Check the provider for filtered lists of findable and unfindable users and groups. | [optional] +**sfu_support** | **str** | Specifies whether to support RFC 2307 attributes on ADS domain controllers. | [optional] +**site** | **str** | Specifies the site for the Active Directory. | [optional] +**spns** | **list[str]** | Currently configured SPNs. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**store_sfu_mappings** | **bool** | Stores SFU mappings permanently in the ID mapper. | [optional] +**system** | **bool** | If set to true, indicates that this provider instance was created by OneFS and cannot be removed. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersAdsAdsItemExtended.md b/docs/ProvidersAdsAdsItemExtended.md new file mode 100644 index 000000000..9428054a0 --- /dev/null +++ b/docs/ProvidersAdsAdsItemExtended.md @@ -0,0 +1,53 @@ +# ProvidersAdsAdsItemExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocate_gids** | **bool** | Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. | [optional] +**allocate_uids** | **bool** | Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. | [optional] +**assume_default_domain** | **bool** | Enables lookup of unqualified user names in the primary domain. | [optional] +**authentication** | **bool** | Enables authentication and identity management through the authentication provider. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**controller_time** | **int** | Specifies the current time for the domain controllers. | [optional] +**create_home_directory** | **bool** | Automatically creates a home directory on the first login. | [optional] +**domain_offline_alerts** | **bool** | Sends an alert if the domain goes offline. | [optional] +**findable_groups** | **list[str]** | Sets list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Sets list of users that can be resolved. | [optional] +**forest** | **str** | Specifies the Active Directory forest. | [optional] +**groupnet** | **str** | Groupnet identifier. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**hostname** | **str** | Specifies the fully qualified hostname stored in the machine account. | [optional] +**id** | **str** | Specifies the ID of the Active Directory provider instance. | [optional] +**ignore_all_trusts** | **bool** | If set to true, ignores all trusted domains. | [optional] +**ignored_trusted_domains** | **list[str]** | Includes trusted domains when 'ignore_all_trusts' is set to false. | [optional] +**include_trusted_domains** | **list[str]** | Includes trusted domains when 'ignore_all_trusts' is set to true. | [optional] +**instance** | **str** | Specifies Active Directory provider instnace. | [optional] +**ldap_sign_and_seal** | **bool** | Enables encryption and signing on LDAP requests. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**lookup_domains** | **list[str]** | Limits user and group lookups to the specified domains. | [optional] +**lookup_groups** | **bool** | Looks up AD groups in other providers before allocating a group ID. | [optional] +**lookup_normalize_groups** | **bool** | Normalizes AD group names to lowercase before look up. | [optional] +**lookup_normalize_users** | **bool** | Normalize AD user names to lowercase before look up. | [optional] +**lookup_users** | **bool** | Looks up AD users in other providers before allocating a user ID. | [optional] +**machine_account** | **str** | Specifies the SAM account name of the machine account. | [optional] +**machine_name** | **str** | Specifies name to join AD as. | [optional] +**machine_password_changes** | **bool** | Enables periodic changes of the machine password for security. | [optional] +**machine_password_lifespan** | **int** | Sets maximum age of a password in seconds. | [optional] +**name** | **str** | Specifies the Active Directory provider name. | [optional] +**netbios_domain** | **str** | Specifies the NetBIOS domain name associated with the machine account. | [optional] +**node_dc_affinity** | **str** | Specifies the domain controller for which the node has affinity. | [optional] +**node_dc_affinity_timeout** | **int** | Specifies the timeout for the domain controller for which the local node has affinity. | [optional] +**nss_enumeration** | **bool** | Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. | [optional] +**primary_domain** | **str** | Specifies the AD domain to which the provider is joined. | [optional] +**restrict_findable** | **bool** | Check the provider for filtered lists of findable and unfindable users and groups. | [optional] +**sfu_support** | **str** | Specifies whether to support RFC 2307 attributes on ADS domain controllers. | [optional] +**site** | **str** | Specifies the site for the Active Directory. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**store_sfu_mappings** | **bool** | Stores SFU mappings permanently in the ID mapper. | [optional] +**system** | **bool** | If set to true, indicates that this provider instance was created by OneFS and cannot be removed. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersAdsExtended.md b/docs/ProvidersAdsExtended.md new file mode 100644 index 000000000..9a9cb0690 --- /dev/null +++ b/docs/ProvidersAdsExtended.md @@ -0,0 +1,10 @@ +# ProvidersAdsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ads** | [**list[ProvidersAdsAdsItem]**](ProvidersAdsAdsItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersAdsIdParams.md b/docs/ProvidersAdsIdParams.md new file mode 100644 index 000000000..d2bd0b6bd --- /dev/null +++ b/docs/ProvidersAdsIdParams.md @@ -0,0 +1,47 @@ +# ProvidersAdsIdParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocate_gids** | **bool** | Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. | [optional] +**allocate_uids** | **bool** | Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. | [optional] +**assume_default_domain** | **bool** | Enables lookup of unqualified user names in the primary domain. | [optional] +**authentication** | **bool** | Enables authentication and identity management through the authentication provider. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**controller_time** | **int** | Specifies the current time for the domain controllers. | [optional] +**create_home_directory** | **bool** | Automatically creates a home directory on the first login. | [optional] +**domain_controller** | **str** | Specifies the domain controller to which the authentication service should send requests | [optional] +**domain_offline_alerts** | **bool** | Sends an alert if the domain goes offline. | [optional] +**findable_groups** | **list[str]** | Sets list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Sets list of users that can be resolved. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**ignore_all_trusts** | **bool** | If set to true, ignores all trusted domains. | [optional] +**ignored_trusted_domains** | **list[str]** | Includes trusted domains when 'ignore_all_trusts' is set to false. | [optional] +**include_trusted_domains** | **list[str]** | Includes trusted domains when 'ignore_all_trusts' is set to true. | [optional] +**instance** | **str** | Specifies Active Directory provider instnace. | [optional] +**ldap_sign_and_seal** | **bool** | Enables encryption and signing on LDAP requests. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**lookup_domains** | **list[str]** | Limits user and group lookups to the specified domains. | [optional] +**lookup_groups** | **bool** | Looks up AD groups in other providers before allocating a group ID. | [optional] +**lookup_normalize_groups** | **bool** | Normalizes AD group names to lowercase before look up. | [optional] +**lookup_normalize_users** | **bool** | Normalize AD user names to lowercase before look up. | [optional] +**lookup_users** | **bool** | Looks up AD users in other providers before allocating a user ID. | [optional] +**machine_name** | **str** | Specifies name to join AD as. | [optional] +**machine_password_changes** | **bool** | Enables periodic changes of the machine password for security. | [optional] +**machine_password_lifespan** | **int** | Sets maximum age of a password in seconds. | [optional] +**node_dc_affinity** | **str** | Specifies the domain controller for which the node has affinity. | [optional] +**node_dc_affinity_timeout** | **int** | Specifies the timeout for the domain controller for which the local node has affinity. | [optional] +**nss_enumeration** | **bool** | Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. | [optional] +**password** | **str** | Specifies the password used during domain join. | [optional] +**reset_schannel** | **bool** | Resets the secure channel to the primary domain. | [optional] +**restrict_findable** | **bool** | Check the provider for filtered lists of findable and unfindable users and groups. | [optional] +**sfu_support** | **str** | Specifies whether to support RFC 2307 attributes on ADS domain controllers. | [optional] +**spns** | **list[str]** | Currently configured SPNs. | [optional] +**store_sfu_mappings** | **bool** | Stores SFU mappings permanently in the ID mapper. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**user** | **str** | Specifies the user name that has permission to join a machine to the given domain. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersAdsItem.md b/docs/ProvidersAdsItem.md new file mode 100644 index 000000000..f806a659b --- /dev/null +++ b/docs/ProvidersAdsItem.md @@ -0,0 +1,51 @@ +# ProvidersAdsItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account** | **str** | Specifies the machine account name when creating a SAM account with Active Directory. The default cluster name is called 'default'. | [optional] +**allocate_gids** | **bool** | Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. | [optional] +**allocate_uids** | **bool** | Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. | [optional] +**assume_default_domain** | **bool** | Enables lookup of unqualified user names in the primary domain. | [optional] +**authentication** | **bool** | Enables authentication and identity management through the authentication provider. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**controller_time** | **int** | Specifies the current time for the domain controllers. | [optional] +**create_home_directory** | **bool** | Automatically creates a home directory on the first login. | [optional] +**dns_domain** | **str** | Specifies the DNS search domain. Set this parameter if the DNS search domain has a unique name or address. | [optional] +**domain_offline_alerts** | **bool** | Sends an alert if the domain goes offline. | [optional] +**findable_groups** | **list[str]** | Sets list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Sets list of users that can be resolved. | [optional] +**groupnet** | **str** | Groupnet identifier. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**ignore_all_trusts** | **bool** | If set to true, ignores all trusted domains. | [optional] +**ignored_trusted_domains** | **list[str]** | Includes trusted domains when 'ignore_all_trusts' is set to false. | [optional] +**include_trusted_domains** | **list[str]** | Includes trusted domains when 'ignore_all_trusts' is set to true. | [optional] +**instance** | **str** | Specifies Active Directory provider instnace. | [optional] +**kerberos_hdfs_spn** | **bool** | Determines if connecting through HDFS with Kerberos. | [optional] +**kerberos_nfs_spn** | **bool** | Determines if connecting through NFS with Kerberos. | [optional] +**ldap_sign_and_seal** | **bool** | Enables encryption and signing on LDAP requests. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**lookup_domains** | **list[str]** | Limits user and group lookups to the specified domains. | [optional] +**lookup_groups** | **bool** | Looks up AD groups in other providers before allocating a group ID. | [optional] +**lookup_normalize_groups** | **bool** | Normalizes AD group names to lowercase before look up. | [optional] +**lookup_normalize_users** | **bool** | Normalize AD user names to lowercase before look up. | [optional] +**lookup_users** | **bool** | Looks up AD users in other providers before allocating a user ID. | [optional] +**machine_name** | **str** | Specifies name to join AD as. | [optional] +**machine_password_changes** | **bool** | Enables periodic changes of the machine password for security. | [optional] +**machine_password_lifespan** | **int** | Sets maximum age of a password in seconds. | [optional] +**name** | **str** | Specifies the Active Directory provider name. | +**node_dc_affinity** | **str** | Specifies the domain controller for which the node has affinity. | [optional] +**node_dc_affinity_timeout** | **int** | Specifies the timeout for the domain controller for which the local node has affinity. | [optional] +**nss_enumeration** | **bool** | Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. | [optional] +**organizational_unit** | **str** | Specifies the organizational unit. | [optional] +**password** | **str** | Specifies the password used during domain join. | +**restrict_findable** | **bool** | Check the provider for filtered lists of findable and unfindable users and groups. | [optional] +**sfu_support** | **str** | Specifies whether to support RFC 2307 attributes on ADS domain controllers. | [optional] +**store_sfu_mappings** | **bool** | Stores SFU mappings permanently in the ID mapper. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**user** | **str** | Specifies the user name that has permission to join a machine to the given domain. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersFile.md b/docs/ProvidersFile.md new file mode 100644 index 000000000..e64cb7b5c --- /dev/null +++ b/docs/ProvidersFile.md @@ -0,0 +1,10 @@ +# ProvidersFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file** | [**list[ProvidersFileFileItem]**](ProvidersFileFileItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersFileFileItem.md b/docs/ProvidersFileFileItem.md new file mode 100644 index 000000000..b96da0d6f --- /dev/null +++ b/docs/ProvidersFileFileItem.md @@ -0,0 +1,44 @@ +# ProvidersFileFileItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authentication** | **bool** | Enables authentication and identity mapping through the authentication provider. | [optional] +**create_home_directory** | **bool** | Automatically creates a home directory on the first login. | [optional] +**enabled** | **bool** | Enables the file provider. | [optional] +**enumerate_groups** | **bool** | Enables the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | Enables the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which domains are qualified. | [optional] +**group_file** | **str** | Specifies the location of the file that contains information about the group. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**id** | **str** | Specifies the file provider ID. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**modifiable_groups** | **list[str]** | Specifies the groups that can be modified in the provider. | [optional] +**modifiable_users** | **list[str]** | Specifies the users that can be modified in the provider. | [optional] +**name** | **str** | Specifies the name of the file provider. | [optional] +**netgroup_file** | **str** | Specifies the path to a netgroups replacement file. | [optional] +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**password_file** | **str** | Specifies the location of the file containing information about users. | [optional] +**provider_domain** | **str** | Specifies the domain for the provider. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**restrict_modifiable** | **bool** | If true, checks the provider for filtered lists of modifiable and unmodifiable users and groups. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**system** | **bool** | If true, indicates that this provider instance was created by OneFS and cannot be removed. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**unmodifiable_groups** | **list[str]** | Specifies a group that cannot be modified by the provider. | [optional] +**unmodifiable_users** | **list[str]** | Specifies a user that cannot be modified by the provider. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersFileIdParams.md b/docs/ProvidersFileIdParams.md new file mode 100644 index 000000000..e80823d96 --- /dev/null +++ b/docs/ProvidersFileIdParams.md @@ -0,0 +1,41 @@ +# ProvidersFileIdParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authentication** | **bool** | Enables authentication and identity mapping through the authentication provider. | [optional] +**create_home_directory** | **bool** | Automatically creates a home directory on the first login. | [optional] +**enabled** | **bool** | Enables the file provider. | [optional] +**enumerate_groups** | **bool** | Enables the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | Enables the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which domains are qualified. | [optional] +**group_file** | **str** | Specifies the location of the file that contains information about the group. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**modifiable_groups** | **list[str]** | Specifies the groups that can be modified in the provider. | [optional] +**modifiable_users** | **list[str]** | Specifies the users that can be modified in the provider. | [optional] +**name** | **str** | Specifies the name of the file provider. | [optional] +**netgroup_file** | **str** | Specifies the path to a netgroups replacement file. | [optional] +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**password_file** | **str** | Specifies the location of the file containing information about users. | [optional] +**provider_domain** | **str** | Specifies the domain for the provider. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**restrict_modifiable** | **bool** | If true, checks the provider for filtered lists of modifiable and unmodifiable users and groups. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**unmodifiable_groups** | **list[str]** | Specifies a group that cannot be modified by the provider. | [optional] +**unmodifiable_users** | **list[str]** | Specifies a user that cannot be modified by the provider. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersKrb5.md b/docs/ProvidersKrb5.md new file mode 100644 index 000000000..3fd4430fb --- /dev/null +++ b/docs/ProvidersKrb5.md @@ -0,0 +1,10 @@ +# ProvidersKrb5 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**krb5** | [**list[ProvidersKrb5Krb5Item]**](ProvidersKrb5Krb5Item.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersKrb5Extended.md b/docs/ProvidersKrb5Extended.md new file mode 100644 index 000000000..35d288fd8 --- /dev/null +++ b/docs/ProvidersKrb5Extended.md @@ -0,0 +1,10 @@ +# ProvidersKrb5Extended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**krb5** | [**list[ProvidersKrb5Krb5Item]**](ProvidersKrb5Krb5Item.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersKrb5IdParams.md b/docs/ProvidersKrb5IdParams.md new file mode 100644 index 000000000..59f666082 --- /dev/null +++ b/docs/ProvidersKrb5IdParams.md @@ -0,0 +1,17 @@ +# ProvidersKrb5IdParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keytab_entries** | [**list[ProvidersKrb5IdParamsKeytabEntry]**](ProvidersKrb5IdParamsKeytabEntry.md) | Specifies the key information for the Kerberos SPNs. | [optional] +**keytab_file** | **str** | Specifies the path to a keytab file to import. | [optional] +**manual_keying** | **bool** | If true, keys are managed manually. If false, keys are managed through kadmin. | [optional] +**name** | **str** | Specifies the Kerberos provider name. | [optional] +**password** | **str** | Specifies the Kerberos provider password. | [optional] +**realm** | **str** | Specifies the name of realm. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**user** | **str** | Specifies the name of the user that performs kadmin tasks. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersKrb5IdParamsKeytabEntry.md b/docs/ProvidersKrb5IdParamsKeytabEntry.md new file mode 100644 index 000000000..8e7e4c13d --- /dev/null +++ b/docs/ProvidersKrb5IdParamsKeytabEntry.md @@ -0,0 +1,13 @@ +# ProvidersKrb5IdParamsKeytabEntry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**encryption** | **list[str]** | Specifies the encryption types. | [optional] +**kvno** | **int** | Specifies the version number of the SPN key. | [optional] +**spn** | **str** | Specifies the Service Principal Name (SPN). | [optional] +**timestamp** | **int** | Specifies the time the SPN key was created. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersKrb5Item.md b/docs/ProvidersKrb5Item.md new file mode 100644 index 000000000..48da57b67 --- /dev/null +++ b/docs/ProvidersKrb5Item.md @@ -0,0 +1,17 @@ +# ProvidersKrb5Item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groupnet** | **str** | Groupnet identifier. | [optional] +**keytab_entries** | [**list[ProvidersKrb5IdParamsKeytabEntry]**](ProvidersKrb5IdParamsKeytabEntry.md) | Specifies the key information for the Kerberos SPN. | [optional] +**keytab_file** | **str** | Specifies the path to a keytab file to import. | [optional] +**manual_keying** | **bool** | If true, keys are managed manually. If false, keys are managed through kadmin. | [optional] +**name** | **str** | Specifies the Kerberos provider name. | [optional] +**password** | **str** | Specifies the Kerberos provider password. | [optional] +**realm** | **str** | Specifies the name of realm. | +**user** | **str** | Specifies the name of the user that performs kadmin tasks. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersKrb5Krb5Item.md b/docs/ProvidersKrb5Krb5Item.md new file mode 100644 index 000000000..728f34f07 --- /dev/null +++ b/docs/ProvidersKrb5Krb5Item.md @@ -0,0 +1,20 @@ +# ProvidersKrb5Krb5Item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groupnet** | **str** | Groupnet identifier. | [optional] +**id** | **str** | Specifies the Kerberos provider ID. | [optional] +**keytab_entries** | [**list[ProvidersKrb5IdParamsKeytabEntry]**](ProvidersKrb5IdParamsKeytabEntry.md) | Specifies the key information for the Kerberos SPNs. | [optional] +**keytab_file** | **str** | Specifies the path to a keytab file to import. | [optional] +**manual_keying** | **bool** | If true, keys are managed manually. If false, keys are managed through kadmin. | [optional] +**name** | **str** | Specifies the Kerberos provider name. | [optional] +**realm** | **str** | Specifies the name of realm. | [optional] +**recommended_spns** | **list[str]** | Specifies the recommended SPNs. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**system** | **bool** | If true, indicates that this provider instance was created by OneFS and cannot be removed | [optional] +**user** | **str** | Specifies the name of the user that performs kadmin tasks. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersKrb5Krb5ItemExtended.md b/docs/ProvidersKrb5Krb5ItemExtended.md new file mode 100644 index 000000000..a83364225 --- /dev/null +++ b/docs/ProvidersKrb5Krb5ItemExtended.md @@ -0,0 +1,21 @@ +# ProvidersKrb5Krb5ItemExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groupnet** | **str** | Groupnet identifier. | [optional] +**id** | **str** | Specifies the Kerberos provider ID. | [optional] +**keytab_entries** | [**list[ProvidersKrb5IdParamsKeytabEntry]**](ProvidersKrb5IdParamsKeytabEntry.md) | Specifies the key information for the Kerberos SPNs. | [optional] +**keytab_file** | **str** | Specifies the path to a keytab file to import. | [optional] +**manual_keying** | **bool** | If true, keys are managed manually. If false, keys are managed through kadmin. | [optional] +**name** | **str** | Specifies the Kerberos provider name. | [optional] +**realm** | **str** | Specifies the name of realm. | [optional] +**recommended_spns** | **list[str]** | Specifies the recommended SPNs. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**system** | **bool** | If true, indicates that this provider instance was created by OneFS and cannot be removed | [optional] +**user** | **str** | Specifies the name of the user that performs kadmin tasks. | [optional] +**password** | **str** | Specifies the Kerberos provider password. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersLdap.md b/docs/ProvidersLdap.md new file mode 100644 index 000000000..8cd502326 --- /dev/null +++ b/docs/ProvidersLdap.md @@ -0,0 +1,10 @@ +# ProvidersLdap + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ldap** | [**list[ProvidersLdapLdapItem]**](ProvidersLdapLdapItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersLdapIdParams.md b/docs/ProvidersLdapIdParams.md new file mode 100644 index 000000000..a6a09e152 --- /dev/null +++ b/docs/ProvidersLdapIdParams.md @@ -0,0 +1,71 @@ +# ProvidersLdapIdParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alternate_security_identities_attribute** | **str** | Specifies the attribute name used when searching for alternate security identities. | [optional] +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**balance_servers** | **bool** | If true, connects the provider to a random server. | [optional] +**base_dn** | **str** | Specifies the root of the tree in which to search identities. | [optional] +**bind_dn** | **str** | Specifies the distinguished name for binding to the LDAP server. | [optional] +**bind_mechanism** | **str** | Specifies which bind mechanism to use when connecting to an LDAP server. The only supported option is the 'simple' value. | [optional] +**bind_password** | **str** | Specifies the password for the distinguished name for binding to the LDAP server. | [optional] +**bind_timeout** | **int** | Specifies the timeout in seconds when binding to an LDAP server. | [optional] +**certificate_authority_file** | **str** | Specifies the path to the root certificates file. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**cn_attribute** | **str** | Specifies the canonical name. | [optional] +**create_home_directory** | **bool** | Automatically create the home directory on the first login. | [optional] +**crypt_password_attribute** | **str** | Specifies the hashed password value. | [optional] +**email_attribute** | **str** | Specifies the LDAP Email attribute. | [optional] +**enabled** | **bool** | If true, enables the LDAP provider. | [optional] +**enumerate_groups** | **bool** | If true, allows the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | If true, allows the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**gecos_attribute** | **str** | Specifies the LDAP GECOS attribute. | [optional] +**gid_attribute** | **str** | Specifies the LDAP GID attribute. | [optional] +**group_base_dn** | **str** | Specifies the distinguished name of the entry where LDAP searches for groups are started. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which groups are qualified. | [optional] +**group_filter** | **str** | Specifies the LDAP filter for group objects. | [optional] +**group_members_attribute** | **str** | Specifies the LDAP Group Members attribute. | [optional] +**group_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**homedir_attribute** | **str** | Specifies the LDAP Homedir attribute. | [optional] +**ignore_tls_errors** | **bool** | If true, continues over secure connections even if identity checks fail. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**member_of_attribute** | **str** | Specifies the LDAP Query Member Of attribute, which performs reverse membership queries. | [optional] +**name** | **str** | Specifies the name of the LDAP provider. | [optional] +**name_attribute** | **str** | Specifies the LDAP UID attribute, which is used as the login name. | [optional] +**netgroup_base_dn** | **str** | Specifies the distinguished name of the entry where LDAP searches for netgroups are started. | [optional] +**netgroup_filter** | **str** | Specifies the LDAP filter for netgroup objects. | [optional] +**netgroup_members_attribute** | **str** | Specifies the LDAP Netgroup Members attribute. | [optional] +**netgroup_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] +**netgroup_triple_attribute** | **str** | Specifies the LDAP Netgroup Triple attribute. | [optional] +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**nt_password_attribute** | **str** | Specifies the LDAP NT Password attribute. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**provider_domain** | **str** | Specifies the provider domain. | [optional] +**require_secure_connection** | **bool** | Determines whether to continue over a non-TLS connection. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**search_scope** | **str** | Specifies the default depth from the base DN to perform LDAP searches. | [optional] +**search_timeout** | **int** | Specifies the search timeout period in seconds. | [optional] +**server_uris** | **list[str]** | Specifies the server URIs. | [optional] +**shell_attribute** | **str** | Specifies the the LDAP Shell attribute. | [optional] +**uid_attribute** | **str** | Specifies the the LDAP UID Number attribute. | [optional] +**unfindable_groups** | **list[str]** | Specifies the groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unique_group_members_attribute** | **str** | Sets the LDAP Unique Group Members attribute. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**user_base_dn** | **str** | Specifies the distinguished name of the entry at which to start LDAP searches for users. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] +**user_filter** | **str** | Specifies the LDAP filter for user objects. | [optional] +**user_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersLdapItem.md b/docs/ProvidersLdapItem.md new file mode 100644 index 000000000..c22169b05 --- /dev/null +++ b/docs/ProvidersLdapItem.md @@ -0,0 +1,72 @@ +# ProvidersLdapItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alternate_security_identities_attribute** | **str** | Specifies the attribute name used when searching for alternate security identities. | [optional] +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**balance_servers** | **bool** | If true, connects the provider to a random server. | [optional] +**base_dn** | **str** | Specifies the root of the tree in which to search identities. | +**bind_dn** | **str** | Specifies the distinguished name for binding to the LDAP server. | [optional] +**bind_mechanism** | **str** | Specifies which bind mechanism to use when connecting to an LDAP server. The only supported option is the 'simple' value. | [optional] +**bind_password** | **str** | Specifies the password for the distinguished name for binding to the LDAP server. | [optional] +**bind_timeout** | **int** | Specifies the timeout in seconds when binding to an LDAP server. | [optional] +**certificate_authority_file** | **str** | Specifies the path to the root certificates file. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**cn_attribute** | **str** | Specifies the canonical name. | [optional] +**create_home_directory** | **bool** | Automatically create the home directory on the first login. | [optional] +**crypt_password_attribute** | **str** | Specifies the hashed password value. | [optional] +**email_attribute** | **str** | Specifies the LDAP Email attribute. | [optional] +**enabled** | **bool** | If true, enables the LDAP provider. | [optional] +**enumerate_groups** | **bool** | If true, allows the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | If true, allows the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**gecos_attribute** | **str** | Specifies the LDAP GECOS attribute. | [optional] +**gid_attribute** | **str** | Specifies the LDAP GID attribute. | [optional] +**group_base_dn** | **str** | Specifies the distinguished name of the entry where LDAP searches for groups are started. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which groups are qualified. | [optional] +**group_filter** | **str** | Specifies the LDAP filter for group objects. | [optional] +**group_members_attribute** | **str** | Specifies the LDAP Group Members attribute. | [optional] +**group_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] +**groupnet** | **str** | Groupnet identifier. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**homedir_attribute** | **str** | Specifies the LDAP Homedir attribute. | [optional] +**ignore_tls_errors** | **bool** | If true, continues over secure connections even if identity checks fail. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**member_of_attribute** | **str** | Specifies the LDAP Query Member Of attribute, which performs reverse membership queries. | [optional] +**name** | **str** | Specifies the name of the LDAP provider. | +**name_attribute** | **str** | Specifies the LDAP UID attribute, which is used as the login name. | [optional] +**netgroup_base_dn** | **str** | Specifies the distinguished name of the entry where LDAP searches for netgroups are started. | [optional] +**netgroup_filter** | **str** | Specifies the LDAP filter for netgroup objects. | [optional] +**netgroup_members_attribute** | **str** | Specifies the LDAP Netgroup Members attribute. | [optional] +**netgroup_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] +**netgroup_triple_attribute** | **str** | Specifies the LDAP Netgroup Triple attribute. | [optional] +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**nt_password_attribute** | **str** | Specifies the LDAP NT Password attribute. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**provider_domain** | **str** | Specifies the provider domain. | [optional] +**require_secure_connection** | **bool** | Determines whether to continue over a non-TLS connection. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**search_scope** | **str** | Specifies the default depth from the base DN to perform LDAP searches. | [optional] +**search_timeout** | **int** | Specifies the search timeout period in seconds. | [optional] +**server_uris** | **list[str]** | Specifies the server URIs. | +**shell_attribute** | **str** | Specifies the the LDAP Shell attribute. | [optional] +**uid_attribute** | **str** | Specifies the the LDAP UID Number attribute. | [optional] +**unfindable_groups** | **list[str]** | Specifies the groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unique_group_members_attribute** | **str** | Sets the LDAP Unique Group Members attribute. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**user_base_dn** | **str** | Specifies the distinguished name of the entry at which to start LDAP searches for users. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] +**user_filter** | **str** | Specifies the LDAP filter for user objects. | [optional] +**user_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersLdapLdapItem.md b/docs/ProvidersLdapLdapItem.md new file mode 100644 index 000000000..7d28b3b00 --- /dev/null +++ b/docs/ProvidersLdapLdapItem.md @@ -0,0 +1,74 @@ +# ProvidersLdapLdapItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alternate_security_identities_attribute** | **str** | Specifies the attribute name used when searching for alternate security identities. | [optional] +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**balance_servers** | **bool** | If true, connects the provider to a random server. | [optional] +**base_dn** | **str** | Specifies the root of the tree in which to search identities. | [optional] +**bind_dn** | **str** | Specifies the distinguished name for binding to the LDAP server. | [optional] +**bind_mechanism** | **str** | Specifies which bind mechanism to use when connecting to an LDAP server. The only supported option is the 'simple' value. | [optional] +**bind_timeout** | **int** | Specifies the timeout in seconds when binding to an LDAP server. | [optional] +**certificate_authority_file** | **str** | Specifies the path to the root certificates file. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**cn_attribute** | **str** | Specifies the canonical name. | [optional] +**create_home_directory** | **bool** | Automatically create the home directory on the first login. | [optional] +**crypt_password_attribute** | **str** | Specifies the hashed password value. | [optional] +**email_attribute** | **str** | Specifies the LDAP Email attribute. | [optional] +**enabled** | **bool** | If true, enables the LDAP provider. | [optional] +**enumerate_groups** | **bool** | If true, allows the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | If true, allows the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**gecos_attribute** | **str** | Specifies the LDAP GECOS attribute. | [optional] +**gid_attribute** | **str** | Specifies the LDAP GID attribute. | [optional] +**group_base_dn** | **str** | Specifies the distinguished name of the entry where LDAP searches for groups are started. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which groups are qualified. | [optional] +**group_filter** | **str** | Specifies the LDAP filter for group objects. | [optional] +**group_members_attribute** | **str** | Specifies the LDAP Group Members attribute. | [optional] +**group_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] +**groupnet** | **str** | Groupnet identifier. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**homedir_attribute** | **str** | Specifies the LDAP Homedir attribute. | [optional] +**id** | **str** | Specifies the ID of the LDAP provider. | [optional] +**ignore_tls_errors** | **bool** | If true, continues over secure connections even if identity checks fail. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**member_of_attribute** | **str** | Specifies the LDAP Query Member Of attribute, which performs reverse membership queries. | [optional] +**name** | **str** | Specifies the name of the LDAP provider. | [optional] +**name_attribute** | **str** | Specifies the LDAP UID attribute, which is used as the login name. | [optional] +**netgroup_base_dn** | **str** | Specifies the distinguished name of the entry where LDAP searches for netgroups are started. | [optional] +**netgroup_filter** | **str** | Specifies the LDAP filter for netgroup objects. | [optional] +**netgroup_members_attribute** | **str** | Specifies the LDAP Netgroup Members attribute. | [optional] +**netgroup_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] +**netgroup_triple_attribute** | **str** | Specifies the LDAP Netgroup Triple attribute. | [optional] +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**nt_password_attribute** | **str** | Specifies the LDAP NT Password attribute. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**provider_domain** | **str** | Specifies the provider domain. | [optional] +**require_secure_connection** | **bool** | Determines whether to continue over a non-TLS connection. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**search_scope** | **str** | Specifies the default depth from the base DN to perform LDAP searches. | [optional] +**search_timeout** | **int** | Specifies the search timeout period in seconds. | [optional] +**server_uris** | **list[str]** | Specifies the server URIs. | [optional] +**shell_attribute** | **str** | Specifies the the LDAP Shell attribute. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**system** | **bool** | If true, indicates that this provider instance was created by OneFS and cannot be removed. | [optional] +**uid_attribute** | **str** | Specifies the the LDAP UID Number attribute. | [optional] +**unfindable_groups** | **list[str]** | Specifies the groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unique_group_members_attribute** | **str** | Sets the LDAP Unique Group Members attribute. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**user_base_dn** | **str** | Specifies the distinguished name of the entry at which to start LDAP searches for users. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] +**user_filter** | **str** | Specifies the LDAP filter for user objects. | [optional] +**user_search_scope** | **str** | Specifies the depth from the base DN to perform LDAP searches. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersLocal.md b/docs/ProvidersLocal.md new file mode 100644 index 000000000..c745a64b5 --- /dev/null +++ b/docs/ProvidersLocal.md @@ -0,0 +1,10 @@ +# ProvidersLocal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**local** | [**list[ProvidersLocalLocalItem]**](ProvidersLocalLocalItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersLocalIdParams.md b/docs/ProvidersLocalIdParams.md new file mode 100644 index 000000000..e44f322e8 --- /dev/null +++ b/docs/ProvidersLocalIdParams.md @@ -0,0 +1,24 @@ +# ProvidersLocalIdParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**create_home_directory** | **bool** | Automatically creates the home directory on the first login. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**lockout_duration** | **int** | Specifies the length of time in seconds that an account will be inaccessible after multiple failed login attempts. | [optional] +**lockout_threshold** | **int** | Specifies the number of failed login attempts necessary before an account is locked. | [optional] +**lockout_window** | **int** | Specifies the duration of time in seconds in which the number of failed attempts set in the 'lockout_threshold' parameter must be made before an account is locked. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**machine_name** | **str** | Specifies the domain for this provider through which users and groups are qualified. | [optional] +**max_password_age** | **int** | Specifies the maximum password age in seconds. | [optional] +**min_password_age** | **int** | Specifies the minimum password age in seconds. | [optional] +**min_password_length** | **int** | Specifies the minimum password length. | [optional] +**name** | **str** | Specifies the local provider name. | [optional] +**password_complexity** | **list[str]** | Specifies the conditions required for a password. | [optional] +**password_history_length** | **int** | Specifies the number of previous passwords to store. | [optional] +**password_prompt_time** | **int** | Specifies the time in seconds remaining before a user will be prompted for a password change. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersLocalLocalItem.md b/docs/ProvidersLocalLocalItem.md new file mode 100644 index 000000000..453946a63 --- /dev/null +++ b/docs/ProvidersLocalLocalItem.md @@ -0,0 +1,27 @@ +# ProvidersLocalLocalItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**create_home_directory** | **bool** | Automatically creates the home directory on the first login. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**id** | **str** | Specifies the local provider ID. | [optional] +**lockout_duration** | **int** | Specifies the length of time in seconds that an account will be inaccessible after multiple failed login attempts. | [optional] +**lockout_threshold** | **int** | Specifies the number of failed login attempts necessary before an account is locked. | [optional] +**lockout_window** | **int** | Specifies the duration of time in seconds in which the number of failed attempts set in the 'lockout_threshold' parameter must be made before an account is locked. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**machine_name** | **str** | Specifies the domain for this provider through which users and groups are qualified. | [optional] +**max_password_age** | **int** | Specifies the maximum password age in seconds. | [optional] +**min_password_age** | **int** | Specifies the minimum password age in seconds. | [optional] +**min_password_length** | **int** | Specifies the minimum password length. | [optional] +**name** | **str** | Specifies the local provider name. | [optional] +**password_complexity** | **list[str]** | Specifies the conditions required for a password. | [optional] +**password_history_length** | **int** | Specifies the number of previous passwords to store. | [optional] +**password_prompt_time** | **int** | Specifies the time in seconds remaining before a user will be prompted for a password change. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**system** | **bool** | If true, indicates that this provider instance was created by OneFS and cannot be removed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersNis.md b/docs/ProvidersNis.md new file mode 100644 index 000000000..3d616c7c7 --- /dev/null +++ b/docs/ProvidersNis.md @@ -0,0 +1,10 @@ +# ProvidersNis + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nis** | [**list[ProvidersNisNisItem]**](ProvidersNisNisItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersNisExtended.md b/docs/ProvidersNisExtended.md new file mode 100644 index 000000000..b2cbabd77 --- /dev/null +++ b/docs/ProvidersNisExtended.md @@ -0,0 +1,10 @@ +# ProvidersNisExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nis** | [**list[ProvidersNisNisItem]**](ProvidersNisNisItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersNisIdParams.md b/docs/ProvidersNisIdParams.md new file mode 100644 index 000000000..0695dcd58 --- /dev/null +++ b/docs/ProvidersNisIdParams.md @@ -0,0 +1,41 @@ +# ProvidersNisIdParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**balance_servers** | **bool** | If true, connects the provider to a random server. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**create_home_directory** | **bool** | Automatically creates the home directory on the first login. | [optional] +**enabled** | **bool** | If true, enables the NIS provider. | [optional] +**enumerate_groups** | **bool** | If true, allows the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | If true, allows the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which groups are qualified. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**hostname_lookup** | **bool** | If true, enables host name look ups. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**name** | **str** | Specifies the NIS provider name. | [optional] +**nis_domain** | **str** | Specifies the NIS domain name. | [optional] +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**provider_domain** | **str** | Specifies the domain for the provider. | [optional] +**request_timeout** | **int** | Specifies the request timeout interval in seconds. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**retry_time** | **int** | Specifies the timeout period in seconds after which a request will be retried. | [optional] +**servers** | **list[str]** | Adds an NIS server for this provider. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] +**ypmatch_using_tcp** | **bool** | If true, specifies TCP for YP Match operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersNisItem.md b/docs/ProvidersNisItem.md new file mode 100644 index 000000000..afe5c29cc --- /dev/null +++ b/docs/ProvidersNisItem.md @@ -0,0 +1,42 @@ +# ProvidersNisItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**balance_servers** | **bool** | If true, connects the provider to a random server. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**create_home_directory** | **bool** | Automatically creates the home directory on the first login. | [optional] +**enabled** | **bool** | If true, enables the NIS provider. | [optional] +**enumerate_groups** | **bool** | If true, allows the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | If true, allows the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which groups are qualified. | [optional] +**groupnet** | **str** | Groupnet identifier. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**hostname_lookup** | **bool** | If true, enables host name look ups. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**name** | **str** | Specifies the NIS provider name. | +**nis_domain** | **str** | Specifies the NIS domain name. | +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**provider_domain** | **str** | Specifies the domain for the provider. | [optional] +**request_timeout** | **int** | Specifies the request timeout interval in seconds. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**retry_time** | **int** | Specifies the timeout period in seconds after which a request will be retried. | [optional] +**servers** | **list[str]** | Adds an NIS server for this provider. | +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] +**ypmatch_using_tcp** | **bool** | If true, specifies TCP for YP Match operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersNisNisItem.md b/docs/ProvidersNisNisItem.md new file mode 100644 index 000000000..f9ae5465d --- /dev/null +++ b/docs/ProvidersNisNisItem.md @@ -0,0 +1,44 @@ +# ProvidersNisNisItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**balance_servers** | **bool** | If true, connects the provider to a random server. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**create_home_directory** | **bool** | Automatically creates the home directory on the first login. | [optional] +**enabled** | **bool** | If true, enables the NIS provider. | [optional] +**enumerate_groups** | **bool** | If true, allows the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | If true, allows the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which groups are qualified. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**hostname_lookup** | **bool** | If true, enables host name look ups. | [optional] +**id** | **str** | Specifies the NIS provider ID. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**name** | **str** | Specifies the NIS provider name. | [optional] +**nis_domain** | **str** | Specifies the NIS domain name. | [optional] +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**provider_domain** | **str** | Specifies the domain for the provider. | [optional] +**request_timeout** | **int** | Specifies the request timeout interval in seconds. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**retry_time** | **int** | Specifies the timeout period in seconds after which a request will be retried. | [optional] +**servers** | **list[str]** | Adds an NIS server for this provider. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**system** | **bool** | If true, indicates that this provider instance was created by OneFS and cannot be removed. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] +**ypmatch_using_tcp** | **bool** | If true, specifies TCP for YP Match operations. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersNisNisItemExtended.md b/docs/ProvidersNisNisItemExtended.md new file mode 100644 index 000000000..99c3435c1 --- /dev/null +++ b/docs/ProvidersNisNisItemExtended.md @@ -0,0 +1,45 @@ +# ProvidersNisNisItemExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authentication** | **bool** | If true, enables authentication and identity management through the authentication provider. | [optional] +**balance_servers** | **bool** | If true, connects the provider to a random server. | [optional] +**check_online_interval** | **int** | Specifies the time in seconds between provider online checks. | [optional] +**create_home_directory** | **bool** | Automatically creates the home directory on the first login. | [optional] +**enabled** | **bool** | If true, enables the NIS provider. | [optional] +**enumerate_groups** | **bool** | If true, allows the provider to enumerate groups. | [optional] +**enumerate_users** | **bool** | If true, allows the provider to enumerate users. | [optional] +**findable_groups** | **list[str]** | Specifies the list of groups that can be resolved. | [optional] +**findable_users** | **list[str]** | Specifies the list of users that can be resolved. | [optional] +**group_domain** | **str** | Specifies the domain for this provider through which groups are qualified. | [optional] +**home_directory_template** | **str** | Specifies the path to the home directory template. | [optional] +**hostname_lookup** | **bool** | If true, enables host name look ups. | [optional] +**id** | **str** | Specifies the NIS provider ID. | [optional] +**listable_groups** | **list[str]** | Specifies the groups that can be viewed in the provider. | [optional] +**listable_users** | **list[str]** | Specifies the users that can be viewed in the provider. | [optional] +**login_shell** | **str** | Specifies the login shell path. | [optional] +**name** | **str** | Specifies the NIS provider name. | [optional] +**nis_domain** | **str** | Specifies the NIS domain name. | [optional] +**normalize_groups** | **bool** | Normalizes group names to lowercase before look up. | [optional] +**normalize_users** | **bool** | Normalizes user names to lowercase before look up. | [optional] +**ntlm_support** | **str** | Specifies which NTLM versions to support for users with NTLM-compatible credentials. | [optional] +**provider_domain** | **str** | Specifies the domain for the provider. | [optional] +**request_timeout** | **int** | Specifies the request timeout interval in seconds. | [optional] +**restrict_findable** | **bool** | If true, checks the provider for filtered lists of findable and unfindable users and groups. | [optional] +**restrict_listable** | **bool** | If true, checks the provider for filtered lists of listable and unlistable users and groups. | [optional] +**retry_time** | **int** | Specifies the timeout period in seconds after which a request will be retried. | [optional] +**servers** | **list[str]** | Adds an NIS server for this provider. | [optional] +**status** | **str** | Specifies the status of the provider. | [optional] +**system** | **bool** | If true, indicates that this provider instance was created by OneFS and cannot be removed. | [optional] +**unfindable_groups** | **list[str]** | Specifies groups that cannot be resolved by the provider. | [optional] +**unfindable_users** | **list[str]** | Specifies users that cannot be resolved by the provider. | [optional] +**unlistable_groups** | **list[str]** | Specifies a group that cannot be listed by the provider. | [optional] +**unlistable_users** | **list[str]** | Specifies a user that cannot be listed by the provider. | [optional] +**user_domain** | **str** | Specifies the domain for this provider through which users are qualified. | [optional] +**ypmatch_using_tcp** | **bool** | If true, specifies TCP for YP Match operations. | [optional] +**groupnet** | **str** | Groupnet identifier. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersSummary.md b/docs/ProvidersSummary.md new file mode 100644 index 000000000..2dcfa23de --- /dev/null +++ b/docs/ProvidersSummary.md @@ -0,0 +1,10 @@ +# ProvidersSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**provider_instances** | [**list[ProvidersSummaryProviderInstance]**](ProvidersSummaryProviderInstance.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersSummaryProviderInstance.md b/docs/ProvidersSummaryProviderInstance.md new file mode 100644 index 000000000..c353eb99f --- /dev/null +++ b/docs/ProvidersSummaryProviderInstance.md @@ -0,0 +1,19 @@ +# ProvidersSummaryProviderInstance + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_server** | **str** | Specifies the server through which the provider serves authentication requests. Null if no server is set or is not applicable for that provider. | [optional] +**client_site** | **str** | The Nodes Site. | [optional] +**connections** | [**list[ProvidersSummaryProviderInstanceConnection]**](ProvidersSummaryProviderInstanceConnection.md) | | [optional] +**dc_site** | **str** | The DC Site. | [optional] +**forest** | **str** | Specifies the Active Directory forest. Null if not applicable. | [optional] +**groupnet** | **str** | The groupnet the provider is in. | [optional] +**id** | **str** | Specifies the ID of the provider. | [optional] +**name** | **str** | Specifies the name of the provider. | [optional] +**status** | **str** | Indicates the status of the provider. | [optional] +**type** | **str** | Specifies the type of provider. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvidersSummaryProviderInstanceConnection.md b/docs/ProvidersSummaryProviderInstanceConnection.md new file mode 100644 index 000000000..51d135831 --- /dev/null +++ b/docs/ProvidersSummaryProviderInstanceConnection.md @@ -0,0 +1,12 @@ +# ProvidersSummaryProviderInstanceConnection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | Specifies the IP address of the provider. | [optional] +**last_used** | **str** | Specifies the last time the server was contacted. | [optional] +**server** | **str** | Specifies the fully qualified domain name of the server. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaApi.md b/docs/QuotaApi.md new file mode 100644 index 000000000..a19ecbe44 --- /dev/null +++ b/docs/QuotaApi.md @@ -0,0 +1,1355 @@ +# isi_sdk.QuotaApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_quota_quota**](QuotaApi.md#create_quota_quota) | **POST** /platform/1/quota/quotas | +[**create_quota_report**](QuotaApi.md#create_quota_report) | **POST** /platform/1/quota/reports | +[**create_settings_mapping**](QuotaApi.md#create_settings_mapping) | **POST** /platform/1/quota/settings/mappings | +[**create_settings_notification**](QuotaApi.md#create_settings_notification) | **POST** /platform/1/quota/settings/notifications | +[**delete_quota_quota**](QuotaApi.md#delete_quota_quota) | **DELETE** /platform/1/quota/quotas/{QuotaQuotaId} | +[**delete_quota_quotas**](QuotaApi.md#delete_quota_quotas) | **DELETE** /platform/1/quota/quotas | +[**delete_quota_report**](QuotaApi.md#delete_quota_report) | **DELETE** /platform/1/quota/reports/{QuotaReportId} | +[**delete_settings_mapping**](QuotaApi.md#delete_settings_mapping) | **DELETE** /platform/1/quota/settings/mappings/{SettingsMappingId} | +[**delete_settings_mappings**](QuotaApi.md#delete_settings_mappings) | **DELETE** /platform/1/quota/settings/mappings | +[**delete_settings_notification**](QuotaApi.md#delete_settings_notification) | **DELETE** /platform/1/quota/settings/notifications/{SettingsNotificationId} | +[**delete_settings_notifications**](QuotaApi.md#delete_settings_notifications) | **DELETE** /platform/1/quota/settings/notifications | +[**get_quota_license**](QuotaApi.md#get_quota_license) | **GET** /platform/1/quota/license | +[**get_quota_quota**](QuotaApi.md#get_quota_quota) | **GET** /platform/1/quota/quotas/{QuotaQuotaId} | +[**get_quota_quotas_summary**](QuotaApi.md#get_quota_quotas_summary) | **GET** /platform/1/quota/quotas-summary | +[**get_quota_report**](QuotaApi.md#get_quota_report) | **GET** /platform/1/quota/reports/{QuotaReportId} | +[**get_settings_mapping**](QuotaApi.md#get_settings_mapping) | **GET** /platform/1/quota/settings/mappings/{SettingsMappingId} | +[**get_settings_notification**](QuotaApi.md#get_settings_notification) | **GET** /platform/1/quota/settings/notifications/{SettingsNotificationId} | +[**get_settings_reports**](QuotaApi.md#get_settings_reports) | **GET** /platform/1/quota/settings/reports | +[**list_quota_quotas**](QuotaApi.md#list_quota_quotas) | **GET** /platform/1/quota/quotas | +[**list_quota_reports**](QuotaApi.md#list_quota_reports) | **GET** /platform/1/quota/reports | +[**list_settings_mappings**](QuotaApi.md#list_settings_mappings) | **GET** /platform/1/quota/settings/mappings | +[**list_settings_notifications**](QuotaApi.md#list_settings_notifications) | **GET** /platform/1/quota/settings/notifications | +[**update_quota_quota**](QuotaApi.md#update_quota_quota) | **PUT** /platform/1/quota/quotas/{QuotaQuotaId} | +[**update_settings_mapping**](QuotaApi.md#update_settings_mapping) | **PUT** /platform/1/quota/settings/mappings/{SettingsMappingId} | +[**update_settings_notification**](QuotaApi.md#update_settings_notification) | **PUT** /platform/1/quota/settings/notifications/{SettingsNotificationId} | +[**update_settings_reports**](QuotaApi.md#update_settings_reports) | **PUT** /platform/1/quota/settings/reports | + + +# **create_quota_quota** +> CreateResponse create_quota_quota(quota_quota, zone=zone) + + + +Create a new quota. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +quota_quota = isi_sdk.QuotaQuotaCreateParams() # QuotaQuotaCreateParams | +zone = 'zone_example' # str | Optional named zone to use for user and group resolution. (optional) + +try: + api_response = api_instance.create_quota_quota(quota_quota, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->create_quota_quota: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_quota** | [**QuotaQuotaCreateParams**](QuotaQuotaCreateParams.md)| | + **zone** | **str**| Optional named zone to use for user and group resolution. | [optional] + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_quota_report** +> CreateQuotaReportResponse create_quota_report(quota_report) + + + +Create a new report. The type of this report is 'manual'; it is also sometimes called 'live' or 'ad-hoc'. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +quota_report = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_quota_report(quota_report) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->create_quota_report: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_report** | [**Empty**](Empty.md)| | + +### Return type + +[**CreateQuotaReportResponse**](CreateQuotaReportResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_settings_mapping** +> CreateResponse create_settings_mapping(settings_mapping) + + + +Create a new rule. The new rule must not conflict with an existing rule (e.g. match both the type and domain fields). + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_mapping = isi_sdk.SettingsMappingExtended() # SettingsMappingExtended | + +try: + api_response = api_instance.create_settings_mapping(settings_mapping) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->create_settings_mapping: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_mapping** | [**SettingsMappingExtended**](SettingsMappingExtended.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_settings_notification** +> CreateResponse create_settings_notification(settings_notification) + + + +Create a new global notification rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_notification = isi_sdk.SettingsNotificationCreateParams() # SettingsNotificationCreateParams | + +try: + api_response = api_instance.create_settings_notification(settings_notification) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->create_settings_notification: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_notification** | [**SettingsNotificationCreateParams**](SettingsNotificationCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_quota_quota** +> delete_quota_quota(quota_quota_id) + + + +Delete the quota. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +quota_quota_id = 'quota_quota_id_example' # str | Delete the quota. + +try: + api_instance.delete_quota_quota(quota_quota_id) +except ApiException as e: + print "Exception when calling QuotaApi->delete_quota_quota: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_quota_id** | **str**| Delete the quota. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_quota_quotas** +> delete_quota_quotas(enforced=enforced, include_snapshots=include_snapshots, recurse_path_children=recurse_path_children, recurse_path_parents=recurse_path_parents, persona=persona, path=path, type=type) + + + +Delete all or matching quotas. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +enforced = true # bool | Only delete quotas with this enforcement (non-accounting). (optional) +include_snapshots = true # bool | Only delete quotas with this setting for include_snapshots. (optional) +recurse_path_children = true # bool | If used with the path argument, delete all quotas at that path or any descendent sub-directory. (optional) +recurse_path_parents = true # bool | If used with the path argument, delete all quotas at that path or any parent directory. (optional) +persona = 'persona_example' # str | Only delete user or group quotas matching this persona (must be used with the corresponding type argument). Format is :, where PERSONA_TYPE is one of USER, GROUP, SID, ID, or GID. (optional) +path = 'path_example' # str | Only delete quotas matching this path (see also recurse_path_*). (optional) +type = 'type_example' # str | Only delete quotas matching this type. (optional) + +try: + api_instance.delete_quota_quotas(enforced=enforced, include_snapshots=include_snapshots, recurse_path_children=recurse_path_children, recurse_path_parents=recurse_path_parents, persona=persona, path=path, type=type) +except ApiException as e: + print "Exception when calling QuotaApi->delete_quota_quotas: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enforced** | **bool**| Only delete quotas with this enforcement (non-accounting). | [optional] + **include_snapshots** | **bool**| Only delete quotas with this setting for include_snapshots. | [optional] + **recurse_path_children** | **bool**| If used with the path argument, delete all quotas at that path or any descendent sub-directory. | [optional] + **recurse_path_parents** | **bool**| If used with the path argument, delete all quotas at that path or any parent directory. | [optional] + **persona** | **str**| Only delete user or group quotas matching this persona (must be used with the corresponding type argument). Format is <PERSONA_TYPE>:<string/integer>, where PERSONA_TYPE is one of USER, GROUP, SID, ID, or GID. | [optional] + **path** | **str**| Only delete quotas matching this path (see also recurse_path_*). | [optional] + **type** | **str**| Only delete quotas matching this type. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_quota_report** +> delete_quota_report(quota_report_id) + + + +Delete the report. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +quota_report_id = 'quota_report_id_example' # str | Delete the report. + +try: + api_instance.delete_quota_report(quota_report_id) +except ApiException as e: + print "Exception when calling QuotaApi->delete_quota_report: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_report_id** | **str**| Delete the report. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_settings_mapping** +> delete_settings_mapping(settings_mapping_id) + + + +Delete the mapping. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_mapping_id = 'settings_mapping_id_example' # str | Delete the mapping. + +try: + api_instance.delete_settings_mapping(settings_mapping_id) +except ApiException as e: + print "Exception when calling QuotaApi->delete_settings_mapping: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_mapping_id** | **str**| Delete the mapping. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_settings_mappings** +> delete_settings_mappings() + + + +Delete all rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() + +try: + api_instance.delete_settings_mappings() +except ApiException as e: + print "Exception when calling QuotaApi->delete_settings_mappings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_settings_notification** +> delete_settings_notification(settings_notification_id) + + + +Delete the notification rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_notification_id = 'settings_notification_id_example' # str | Delete the notification rule. + +try: + api_instance.delete_settings_notification(settings_notification_id) +except ApiException as e: + print "Exception when calling QuotaApi->delete_settings_notification: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_notification_id** | **str**| Delete the notification rule. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_settings_notifications** +> delete_settings_notifications() + + + +Delete all rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() + +try: + api_instance.delete_settings_notifications() +except ApiException as e: + print "Exception when calling QuotaApi->delete_settings_notifications: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_quota_license** +> LicenseLicense get_quota_license() + + + +Retrieve license information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() + +try: + api_response = api_instance.get_quota_license() + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->get_quota_license: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**LicenseLicense**](LicenseLicense.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_quota_quota** +> QuotaQuotas get_quota_quota(quota_quota_id, resolve_names=resolve_names, zone=zone) + + + +Retrieve quota information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +quota_quota_id = 'quota_quota_id_example' # str | Retrieve quota information. +resolve_names = true # bool | If true, resolve group and user names in personas. (optional) +zone = 'zone_example' # str | Optional named zone to use for user and group resolution. (optional) + +try: + api_response = api_instance.get_quota_quota(quota_quota_id, resolve_names=resolve_names, zone=zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->get_quota_quota: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_quota_id** | **str**| Retrieve quota information. | + **resolve_names** | **bool**| If true, resolve group and user names in personas. | [optional] + **zone** | **str**| Optional named zone to use for user and group resolution. | [optional] + +### Return type + +[**QuotaQuotas**](QuotaQuotas.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_quota_quotas_summary** +> QuotaQuotasSummary get_quota_quotas_summary() + + + +Return summary information about quotas. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() + +try: + api_response = api_instance.get_quota_quotas_summary() + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->get_quota_quotas_summary: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**QuotaQuotasSummary**](QuotaQuotasSummary.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_quota_report** +> ReportAbout get_quota_report(quota_report_id, contents=contents) + + + +Retrieve report data (XML) or contents (meta-data). + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +quota_report_id = 'quota_report_id_example' # str | Retrieve report data (XML) or contents (meta-data). +contents = true # bool | Display JSON meta-data contents instead of report data. (optional) + +try: + api_response = api_instance.get_quota_report(quota_report_id, contents=contents) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->get_quota_report: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_report_id** | **str**| Retrieve report data (XML) or contents (meta-data). | + **contents** | **bool**| Display JSON meta-data contents instead of report data. | [optional] + +### Return type + +[**ReportAbout**](ReportAbout.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_mapping** +> SettingsMappings get_settings_mapping(settings_mapping_id) + + + +Retrieve the mapping information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_mapping_id = 'settings_mapping_id_example' # str | Retrieve the mapping information. + +try: + api_response = api_instance.get_settings_mapping(settings_mapping_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->get_settings_mapping: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_mapping_id** | **str**| Retrieve the mapping information. | + +### Return type + +[**SettingsMappings**](SettingsMappings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_notification** +> SettingsNotifications get_settings_notification(settings_notification_id) + + + +Retrieve notification rule information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_notification_id = 'settings_notification_id_example' # str | Retrieve notification rule information. + +try: + api_response = api_instance.get_settings_notification(settings_notification_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->get_settings_notification: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_notification_id** | **str**| Retrieve notification rule information. | + +### Return type + +[**SettingsNotifications**](SettingsNotifications.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_settings_reports** +> SettingsReports get_settings_reports() + + + +List all settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() + +try: + api_response = api_instance.get_settings_reports() + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->get_settings_reports: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsReports**](SettingsReports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_quota_quotas** +> QuotaQuotasExtended list_quota_quotas(enforced=enforced, include_snapshots=include_snapshots, zone=zone, resume=resume, recurse_path_children=recurse_path_children, resolve_names=resolve_names, recurse_path_parents=recurse_path_parents, persona=persona, limit=limit, exceeded=exceeded, path=path, type=type, report_id=report_id) + + + +List all or matching quotas. Can also be used to retrieve quota state from existing reports. For any query argument not supplied, the default behavior is return all. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +enforced = true # bool | Only list quotas with this enforcement (non-accounting). (optional) +include_snapshots = true # bool | Only list quotas with this setting for include_snapshots. (optional) +zone = 'zone_example' # str | Optional named zone to use for user and group resolution. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +recurse_path_children = true # bool | If used with the path argument, match all quotas at that path or any descendent sub-directory. (optional) +resolve_names = true # bool | If true, resolve group and user names in personas. (optional) +recurse_path_parents = true # bool | If used with the path argument, match all quotas at that path or any parent directory. (optional) +persona = 'persona_example' # str | Only list user or group quotas matching this persona (must be used with the corresponding type argument). Format is :, where PERSONA_TYPE is one of USER, GROUP, SID, ID, or GID. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +exceeded = true # bool | Set to true to only list quotas which have exceeded one or more of their thresholds. (optional) +path = 'path_example' # str | Only list quotas matching this path (see also recurse_path_*). (optional) +type = 'type_example' # str | Only list quotas matching this type. (optional) +report_id = 'report_id_example' # str | Use the named report as a source rather than the live quotas. See the /q/quota/reports resource for a list of valid reports. (optional) + +try: + api_response = api_instance.list_quota_quotas(enforced=enforced, include_snapshots=include_snapshots, zone=zone, resume=resume, recurse_path_children=recurse_path_children, resolve_names=resolve_names, recurse_path_parents=recurse_path_parents, persona=persona, limit=limit, exceeded=exceeded, path=path, type=type, report_id=report_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->list_quota_quotas: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enforced** | **bool**| Only list quotas with this enforcement (non-accounting). | [optional] + **include_snapshots** | **bool**| Only list quotas with this setting for include_snapshots. | [optional] + **zone** | **str**| Optional named zone to use for user and group resolution. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **recurse_path_children** | **bool**| If used with the path argument, match all quotas at that path or any descendent sub-directory. | [optional] + **resolve_names** | **bool**| If true, resolve group and user names in personas. | [optional] + **recurse_path_parents** | **bool**| If used with the path argument, match all quotas at that path or any parent directory. | [optional] + **persona** | **str**| Only list user or group quotas matching this persona (must be used with the corresponding type argument). Format is <PERSONA_TYPE>:<string/integer>, where PERSONA_TYPE is one of USER, GROUP, SID, ID, or GID. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **exceeded** | **bool**| Set to true to only list quotas which have exceeded one or more of their thresholds. | [optional] + **path** | **str**| Only list quotas matching this path (see also recurse_path_*). | [optional] + **type** | **str**| Only list quotas matching this type. | [optional] + **report_id** | **str**| Use the named report as a source rather than the live quotas. See the /q/quota/reports resource for a list of valid reports. | [optional] + +### Return type + +[**QuotaQuotasExtended**](QuotaQuotasExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_quota_reports** +> QuotaReports list_quota_reports(sort=sort, resume=resume, generated=generated, limit=limit, type=type, dir=dir) + + + +List all or matching reports. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +sort = 'sort_example' # str | Order results by this field. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +generated = 'generated_example' # str | Only list reports matching this source. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +type = 'type_example' # str | Only list reports matching this type. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_quota_reports(sort=sort, resume=resume, generated=generated, limit=limit, type=type, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->list_quota_reports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| Order results by this field. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **generated** | **str**| Only list reports matching this source. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **type** | **str**| Only list reports matching this type. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**QuotaReports**](QuotaReports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_settings_mappings** +> SettingsMappings list_settings_mappings() + + + +List all rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() + +try: + api_response = api_instance.list_settings_mappings() + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->list_settings_mappings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsMappings**](SettingsMappings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_settings_notifications** +> SettingsNotificationsExtended list_settings_notifications() + + + +List all rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() + +try: + api_response = api_instance.list_settings_notifications() + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaApi->list_settings_notifications: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SettingsNotificationsExtended**](SettingsNotificationsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_quota_quota** +> update_quota_quota(quota_quota, quota_quota_id) + + + +Modify quota. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +quota_quota = isi_sdk.QuotaQuota() # QuotaQuota | +quota_quota_id = 'quota_quota_id_example' # str | Modify quota. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_quota_quota(quota_quota, quota_quota_id) +except ApiException as e: + print "Exception when calling QuotaApi->update_quota_quota: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_quota** | [**QuotaQuota**](QuotaQuota.md)| | + **quota_quota_id** | **str**| Modify quota. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_mapping** +> update_settings_mapping(settings_mapping, settings_mapping_id) + + + +Modify the mapping. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_mapping = isi_sdk.SettingsMappingExtended() # SettingsMappingExtended | +settings_mapping_id = 'settings_mapping_id_example' # str | Modify the mapping. + +try: + api_instance.update_settings_mapping(settings_mapping, settings_mapping_id) +except ApiException as e: + print "Exception when calling QuotaApi->update_settings_mapping: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_mapping** | [**SettingsMappingExtended**](SettingsMappingExtended.md)| | + **settings_mapping_id** | **str**| Modify the mapping. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_notification** +> update_settings_notification(settings_notification, settings_notification_id) + + + +Modify notification rule. All input fields are optional, but one or must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_notification = isi_sdk.QuotaNotification() # QuotaNotification | +settings_notification_id = 'settings_notification_id_example' # str | Modify notification rule. All input fields are optional, but one or must be supplied. + +try: + api_instance.update_settings_notification(settings_notification, settings_notification_id) +except ApiException as e: + print "Exception when calling QuotaApi->update_settings_notification: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_notification** | [**QuotaNotification**](QuotaNotification.md)| | + **settings_notification_id** | **str**| Modify notification rule. All input fields are optional, but one or must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_settings_reports** +> update_settings_reports(settings_reports) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaApi() +settings_reports = isi_sdk.SettingsReportsSettings() # SettingsReportsSettings | + +try: + api_instance.update_settings_reports(settings_reports) +except ApiException as e: + print "Exception when calling QuotaApi->update_settings_reports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_reports** | [**SettingsReportsSettings**](SettingsReportsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/QuotaNotification.md b/docs/QuotaNotification.md new file mode 100644 index 000000000..d3ab49dc1 --- /dev/null +++ b/docs/QuotaNotification.md @@ -0,0 +1,15 @@ +# QuotaNotification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_alert** | **bool** | Send alert when rule matches. | [optional] +**action_email_address** | **str** | Email a specific email address when rule matches. | [optional] +**action_email_owner** | **bool** | Email quota domain owner when rule matches. | [optional] +**email_template** | **str** | Path of optional /ifs template file used for email actions. | [optional] +**holdoff** | **int** | Time to wait between detections for rules triggered by user actions. | [optional] +**schedule** | **str** | Schedule for rules that repeatedly notify. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaNotificationCreateParams.md b/docs/QuotaNotificationCreateParams.md new file mode 100644 index 000000000..c14136694 --- /dev/null +++ b/docs/QuotaNotificationCreateParams.md @@ -0,0 +1,17 @@ +# QuotaNotificationCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_alert** | **bool** | Send alert when rule matches. | [optional] +**action_email_address** | **str** | Email a specific email address when rule matches. | [optional] +**action_email_owner** | **bool** | Email quota domain owner when rule matches. | [optional] +**email_template** | **str** | Path of optional /ifs template file used for email actions. | [optional] +**holdoff** | **int** | Time to wait between detections for rules triggered by user actions. | [optional] +**schedule** | **str** | Schedule for rules that repeatedly notify. | [optional] +**condition** | **str** | The condition detected. | +**threshold** | **str** | The quota threshold detected. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaNotificationExtended.md b/docs/QuotaNotificationExtended.md new file mode 100644 index 000000000..6683fe271 --- /dev/null +++ b/docs/QuotaNotificationExtended.md @@ -0,0 +1,18 @@ +# QuotaNotificationExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_alert** | **bool** | Send alert when rule matches. | [optional] +**action_email_address** | **str** | Email a specific email address when rule matches. | [optional] +**action_email_owner** | **bool** | Email quota domain owner when rule matches. | [optional] +**email_template** | **str** | Path of optional /ifs template file used for email actions. | [optional] +**holdoff** | **int** | Time to wait between detections for rules triggered by user actions. | [optional] +**schedule** | **str** | Schedule for rules that repeatedly notify. | [optional] +**condition** | **str** | The condition detected. | +**id** | **str** | The system ID given to the rule. | +**threshold** | **str** | The quota threshold detected. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaNotifications.md b/docs/QuotaNotifications.md new file mode 100644 index 000000000..4d387688d --- /dev/null +++ b/docs/QuotaNotifications.md @@ -0,0 +1,10 @@ +# QuotaNotifications + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | [**list[QuotaNotificationExtended]**](QuotaNotificationExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaNotificationsExtended.md b/docs/QuotaNotificationsExtended.md new file mode 100644 index 000000000..d48eb9770 --- /dev/null +++ b/docs/QuotaNotificationsExtended.md @@ -0,0 +1,11 @@ +# QuotaNotificationsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | [**list[QuotaNotificationExtended]**](QuotaNotificationExtended.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuota.md b/docs/QuotaQuota.md new file mode 100644 index 000000000..9fec16d17 --- /dev/null +++ b/docs/QuotaQuota.md @@ -0,0 +1,14 @@ +# QuotaQuota + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container** | **bool** | If true, SMB shares using the quota directory see the quota thresholds as share size. | [optional] +**enforced** | **bool** | True if the quota provides enforcement, otherwise a accounting quota. | [optional] +**linked** | **bool** | If false and the quota is linked, attempt to unlink. | [optional] +**thresholds** | [**QuotaQuotaThresholds**](QuotaQuotaThresholds.md) | | [optional] +**thresholds_include_overhead** | **bool** | If true, thresholds apply to data plus filesystem overhead required to store the data (i.e. 'physical' usage). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotaCreateParams.md b/docs/QuotaQuotaCreateParams.md new file mode 100644 index 000000000..027fe6979 --- /dev/null +++ b/docs/QuotaQuotaCreateParams.md @@ -0,0 +1,18 @@ +# QuotaQuotaCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container** | **bool** | If true, SMB shares using the quota directory see the quota thresholds as share size. | [optional] +**enforced** | **bool** | True if the quota provides enforcement, otherwise a accounting quota. | +**force** | **bool** | Force creation of quotas on the root of /ifs. | [optional] +**include_snapshots** | **bool** | If true, quota governs snapshot data as well as head data. | +**path** | **str** | The /ifs path governed. | +**persona** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | [optional] +**thresholds** | [**QuotaQuotaThresholds**](QuotaQuotaThresholds.md) | | [optional] +**thresholds_include_overhead** | **bool** | If true, thresholds apply to data plus filesystem overhead required to store the data (i.e. 'physical' usage). | +**type** | **str** | The type of quota. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotaExtended.md b/docs/QuotaQuotaExtended.md new file mode 100644 index 000000000..771e363b3 --- /dev/null +++ b/docs/QuotaQuotaExtended.md @@ -0,0 +1,22 @@ +# QuotaQuotaExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container** | **bool** | If true, SMB shares using the quota directory see the quota thresholds as share size. | [optional] +**enforced** | **bool** | True if the quota provides enforcement, otherwise a accounting quota. | [optional] +**linked** | **bool** | If false and the quota is linked, attempt to unlink. | [optional] +**thresholds** | [**QuotaQuotaThresholds**](QuotaQuotaThresholds.md) | | [optional] +**thresholds_include_overhead** | **bool** | If true, thresholds apply to data plus filesystem overhead required to store the data (i.e. 'physical' usage). | [optional] +**id** | **str** | The system ID given to the quota. | +**include_snapshots** | **bool** | If true, quota governs snapshot data as well as head data. | +**notifications** | **str** | Summary of notifications: 'custom' indicates one or more notification rules available from the notifications sub-resource; 'default' indicates system default rules are used; 'disabled' indicates that no notifications will be used for this quota. | +**path** | **str** | The /ifs path governed. | +**persona** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | +**ready** | **bool** | True if the accounting is accurate on the quota. If false, this quota is waiting on completion of a QuotaScan job. | +**type** | **str** | The type of quota. | +**usage** | [**QuotaQuotaUsage**](QuotaQuotaUsage.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotaThresholds.md b/docs/QuotaQuotaThresholds.md new file mode 100644 index 000000000..11e075271 --- /dev/null +++ b/docs/QuotaQuotaThresholds.md @@ -0,0 +1,13 @@ +# QuotaQuotaThresholds + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advisory** | **int** | Usage bytes at which notifications will be sent but writes will not be denied. | [optional] +**hard** | **int** | Usage bytes at which further writes will be denied. | [optional] +**soft** | **int** | Usage bytes at which notifications will be sent and soft grace time will be started. | [optional] +**soft_grace** | **int** | Time in seconds after which the soft threshold has been hit before writes will be denied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotaThresholdsExtended.md b/docs/QuotaQuotaThresholdsExtended.md new file mode 100644 index 000000000..bbb27fac2 --- /dev/null +++ b/docs/QuotaQuotaThresholdsExtended.md @@ -0,0 +1,19 @@ +# QuotaQuotaThresholdsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advisory** | **int** | Usage bytes at which notifications will be sent but writes will not be denied. | [optional] +**hard** | **int** | Usage bytes at which further writes will be denied. | [optional] +**soft** | **int** | Usage bytes at which notifications will be sent and soft grace time will be started. | [optional] +**soft_grace** | **int** | Time in seconds after which the soft threshold has been hit before writes will be denied. | [optional] +**advisory_exceeded** | **bool** | True if the advisory threshold has been hit. | +**advisory_last_exceeded** | **int** | Time at which advisory threshold was hit. | +**hard_exceeded** | **bool** | True if the hard threshold has been hit. | +**hard_last_exceeded** | **int** | Time at which hard threshold was hit. | +**soft_exceeded** | **bool** | True if the soft threshold has been hit. | +**soft_last_exceeded** | **int** | Time at which soft threshold was hit | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotaUsage.md b/docs/QuotaQuotaUsage.md new file mode 100644 index 000000000..12841a2c4 --- /dev/null +++ b/docs/QuotaQuotaUsage.md @@ -0,0 +1,12 @@ +# QuotaQuotaUsage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inodes** | **int** | Number of inodes (filesystem entities) used by governed data. | +**logical** | **int** | Apparent bytes used by governed data. | +**physical** | **int** | Bytes used for governed data and filesystem overhead. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotas.md b/docs/QuotaQuotas.md new file mode 100644 index 000000000..49243af00 --- /dev/null +++ b/docs/QuotaQuotas.md @@ -0,0 +1,10 @@ +# QuotaQuotas + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**quotas** | [**list[QuotaQuotaExtended]**](QuotaQuotaExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotasApi.md b/docs/QuotaQuotasApi.md new file mode 100644 index 000000000..42de3ebca --- /dev/null +++ b/docs/QuotaQuotasApi.md @@ -0,0 +1,373 @@ +# isi_sdk.QuotaQuotasApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_quota_notification**](QuotaQuotasApi.md#create_quota_notification) | **POST** /platform/1/quota/quotas/{Qid}/notifications | +[**delete_quota_notification**](QuotaQuotasApi.md#delete_quota_notification) | **DELETE** /platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId} | +[**delete_quota_notifications**](QuotaQuotasApi.md#delete_quota_notifications) | **DELETE** /platform/1/quota/quotas/{Qid}/notifications | +[**get_quota_notification**](QuotaQuotasApi.md#get_quota_notification) | **GET** /platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId} | +[**list_quota_notifications**](QuotaQuotasApi.md#list_quota_notifications) | **GET** /platform/1/quota/quotas/{Qid}/notifications | +[**update_quota_notification**](QuotaQuotasApi.md#update_quota_notification) | **PUT** /platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId} | +[**update_quota_notifications**](QuotaQuotasApi.md#update_quota_notifications) | **PUT** /platform/1/quota/quotas/{Qid}/notifications | + + +# **create_quota_notification** +> CreateResponse create_quota_notification(quota_notification, qid) + + + +Create a new notification rule specific to this quota. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaQuotasApi() +quota_notification = isi_sdk.QuotaNotificationCreateParams() # QuotaNotificationCreateParams | +qid = 'qid_example' # str | + +try: + api_response = api_instance.create_quota_notification(quota_notification, qid) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaQuotasApi->create_quota_notification: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_notification** | [**QuotaNotificationCreateParams**](QuotaNotificationCreateParams.md)| | + **qid** | **str**| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_quota_notification** +> delete_quota_notification(quota_notification_id, qid) + + + +Delete the notification rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaQuotasApi() +quota_notification_id = 'quota_notification_id_example' # str | Delete the notification rule. +qid = 'qid_example' # str | + +try: + api_instance.delete_quota_notification(quota_notification_id, qid) +except ApiException as e: + print "Exception when calling QuotaQuotasApi->delete_quota_notification: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_notification_id** | **str**| Delete the notification rule. | + **qid** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_quota_notifications** +> delete_quota_notifications(qid) + + + +Delete all quota specific rules. The quota will then use the global rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaQuotasApi() +qid = 'qid_example' # str | + +try: + api_instance.delete_quota_notifications(qid) +except ApiException as e: + print "Exception when calling QuotaQuotasApi->delete_quota_notifications: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qid** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_quota_notification** +> QuotaNotifications get_quota_notification(quota_notification_id, qid) + + + +Retrieve notification rule information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaQuotasApi() +quota_notification_id = 'quota_notification_id_example' # str | Retrieve notification rule information. +qid = 'qid_example' # str | + +try: + api_response = api_instance.get_quota_notification(quota_notification_id, qid) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaQuotasApi->get_quota_notification: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_notification_id** | **str**| Retrieve notification rule information. | + **qid** | **str**| | + +### Return type + +[**QuotaNotifications**](QuotaNotifications.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_quota_notifications** +> QuotaNotificationsExtended list_quota_notifications(qid) + + + +List all rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaQuotasApi() +qid = 'qid_example' # str | + +try: + api_response = api_instance.list_quota_notifications(qid) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaQuotasApi->list_quota_notifications: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **qid** | **str**| | + +### Return type + +[**QuotaNotificationsExtended**](QuotaNotificationsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_quota_notification** +> update_quota_notification(quota_notification, quota_notification_id, qid) + + + +Modify notification rule. All input fields are optional, but one or must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaQuotasApi() +quota_notification = isi_sdk.QuotaNotification() # QuotaNotification | +quota_notification_id = 'quota_notification_id_example' # str | Modify notification rule. All input fields are optional, but one or must be supplied. +qid = 'qid_example' # str | + +try: + api_instance.update_quota_notification(quota_notification, quota_notification_id, qid) +except ApiException as e: + print "Exception when calling QuotaQuotasApi->update_quota_notification: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_notification** | [**QuotaNotification**](QuotaNotification.md)| | + **quota_notification_id** | **str**| Modify notification rule. All input fields are optional, but one or must be supplied. | + **qid** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_quota_notifications** +> update_quota_notifications(quota_notifications, qid) + + + +This method creates an empty set of rules so that the global rules are not used. The input must be an empty JSON object. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaQuotasApi() +quota_notifications = isi_sdk.Empty() # Empty | +qid = 'qid_example' # str | + +try: + api_instance.update_quota_notifications(quota_notifications, qid) +except ApiException as e: + print "Exception when calling QuotaQuotasApi->update_quota_notifications: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota_notifications** | [**Empty**](Empty.md)| | + **qid** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/QuotaQuotasExtended.md b/docs/QuotaQuotasExtended.md new file mode 100644 index 000000000..626181226 --- /dev/null +++ b/docs/QuotaQuotasExtended.md @@ -0,0 +1,11 @@ +# QuotaQuotasExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**quotas** | [**list[QuotaQuotaExtended]**](QuotaQuotaExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotasSummary.md b/docs/QuotaQuotasSummary.md new file mode 100644 index 000000000..8be5200d3 --- /dev/null +++ b/docs/QuotaQuotasSummary.md @@ -0,0 +1,10 @@ +# QuotaQuotasSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**QuotaQuotasSummarySummary**](QuotaQuotasSummarySummary.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaQuotasSummarySummary.md b/docs/QuotaQuotasSummarySummary.md new file mode 100644 index 000000000..ce878909b --- /dev/null +++ b/docs/QuotaQuotasSummarySummary.md @@ -0,0 +1,16 @@ +# QuotaQuotasSummarySummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Total number of quotas. | +**default_group_quotas_count** | **int** | Total number of default-group quotas. | +**default_user_quotas_count** | **int** | Total number of default-user quotas. | +**directory_quotas_count** | **int** | Total number of directory quotas. | +**group_quotas_count** | **int** | Total number of -group quotas. | +**linked_quotas_count** | **int** | Total number of user and group totals that are linked. | +**user_quotas_count** | **int** | Total number of user quotas. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaReports.md b/docs/QuotaReports.md new file mode 100644 index 000000000..cb5f0f6db --- /dev/null +++ b/docs/QuotaReports.md @@ -0,0 +1,12 @@ +# QuotaReports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[ReportAboutReport]**](ReportAboutReport.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuotaReportsApi.md b/docs/QuotaReportsApi.md new file mode 100644 index 000000000..40239790a --- /dev/null +++ b/docs/QuotaReportsApi.md @@ -0,0 +1,59 @@ +# isi_sdk.QuotaReportsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_report_about**](QuotaReportsApi.md#get_report_about) | **GET** /platform/1/quota/reports/{Rid}/about | + + +# **get_report_about** +> ReportAbout get_report_about(rid) + + + +Retrieve report meta-data information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.QuotaReportsApi() +rid = 'rid_example' # str | + +try: + api_response = api_instance.get_report_about(rid) + pprint(api_response) +except ApiException as e: + print "Exception when calling QuotaReportsApi->get_report_about: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rid** | **str**| | + +### Return type + +[**ReportAbout**](ReportAbout.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RemotesupportApi.md b/docs/RemotesupportApi.md new file mode 100644 index 000000000..c9dcff2c4 --- /dev/null +++ b/docs/RemotesupportApi.md @@ -0,0 +1,105 @@ +# isi_sdk.RemotesupportApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_remotesupport_connectemc**](RemotesupportApi.md#get_remotesupport_connectemc) | **GET** /platform/1/remotesupport/connectemc | +[**update_remotesupport_connectemc**](RemotesupportApi.md#update_remotesupport_connectemc) | **PUT** /platform/1/remotesupport/connectemc | + + +# **get_remotesupport_connectemc** +> RemotesupportConnectemc get_remotesupport_connectemc() + + + +List all settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.RemotesupportApi() + +try: + api_response = api_instance.get_remotesupport_connectemc() + pprint(api_response) +except ApiException as e: + print "Exception when calling RemotesupportApi->get_remotesupport_connectemc: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**RemotesupportConnectemc**](RemotesupportConnectemc.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_remotesupport_connectemc** +> update_remotesupport_connectemc(remotesupport_connectemc) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.RemotesupportApi() +remotesupport_connectemc = isi_sdk.RemotesupportConnectemcConnectemc() # RemotesupportConnectemcConnectemc | + +try: + api_instance.update_remotesupport_connectemc(remotesupport_connectemc) +except ApiException as e: + print "Exception when calling RemotesupportApi->update_remotesupport_connectemc: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **remotesupport_connectemc** | [**RemotesupportConnectemcConnectemc**](RemotesupportConnectemcConnectemc.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RemotesupportConnectemc.md b/docs/RemotesupportConnectemc.md new file mode 100644 index 000000000..2718c6642 --- /dev/null +++ b/docs/RemotesupportConnectemc.md @@ -0,0 +1,10 @@ +# RemotesupportConnectemc + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connectemc** | [**RemotesupportConnectemcConnectemc**](RemotesupportConnectemcConnectemc.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RemotesupportConnectemcConnectemc.md b/docs/RemotesupportConnectemcConnectemc.md new file mode 100644 index 000000000..2afe2410e --- /dev/null +++ b/docs/RemotesupportConnectemcConnectemc.md @@ -0,0 +1,15 @@ +# RemotesupportConnectemcConnectemc + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email_customer_on_failure** | **bool** | Email the customer if all transmission methods fail. | [optional] +**enabled** | **bool** | Enable ConnectEMC. | [optional] +**gateway_access_pools** | **list[str]** | List of network pools that are able to connect to the ESRS gateway. Necessary to enable ConnectEMC. | [optional] +**primary_esrs_gateway** | **str** | Primary ESRS Gateway. Necessary to enable ConnectEMC. | [optional] +**secondary_esrs_gateway** | **str** | Secondary ESRS Gateway. Used if Primary is unavailable. | [optional] +**use_smtp_failover** | **bool** | Use SMPT if primary and secondary gateways are unavailable. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportAbout.md b/docs/ReportAbout.md new file mode 100644 index 000000000..145b6b96f --- /dev/null +++ b/docs/ReportAbout.md @@ -0,0 +1,10 @@ +# ReportAbout + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[ReportAboutReport]**](ReportAboutReport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportAboutReport.md b/docs/ReportAboutReport.md new file mode 100644 index 000000000..92e6a1b32 --- /dev/null +++ b/docs/ReportAboutReport.md @@ -0,0 +1,13 @@ +# ReportAboutReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**generated** | **str** | Whether report was manually requested (live) or scheduled. | +**id** | **str** | The system ID given to the report. | +**time** | **int** | Unix epoch time the report was taken. | +**type** | **str** | Whether this is a summary or detail report. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportSubreport.md b/docs/ReportSubreport.md new file mode 100644 index 000000000..9bf462cf3 --- /dev/null +++ b/docs/ReportSubreport.md @@ -0,0 +1,95 @@ +# ReportSubreport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | The action to be taken by this job. | +**ads_streams_replicated** | **int** | The number of ads streams replicated by this job. | +**block_specs_replicated** | **int** | The number of block specs replicated by this job. | +**bytes_recoverable** | **int** | The number of bytes recoverable by this job. | +**bytes_transferred** | **int** | The number of bytes that have been transferred by this job. | +**char_specs_replicated** | **int** | The number of char specs replicated by this job. | +**corrected_lins** | **int** | The number of LINs corrected by this job. | +**dead_node** | **bool** | This field is true if the node running this job is dead. | +**directories_replicated** | **int** | The number of directories replicated. | +**dirs_changed** | **int** | The number of directories changed by this job. | +**dirs_deleted** | **int** | The number of directories deleted by this job. | +**dirs_moved** | **int** | The number of directories moved by this job. | +**dirs_new** | **int** | The number of directories created by this job. | +**duration** | **int** | The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. | +**end_time** | **int** | The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. | +**error** | **str** | The primary error message for this job. | +**error_checksum_files_skipped** | **int** | The number of files with checksum errors skipped by this job. | +**error_io_files_skipped** | **int** | The number of files with io errors skipped by this job. | +**error_net_files_skipped** | **int** | The number of files with network errors skipped by this job. | +**errors** | **list[str]** | A list of error messages for this job. | +**failed_chunks** | **int** | Tyhe number of data chunks that failed transmission. | +**fifos_replicated** | **int** | The number of fifos replicated by this job. | +**file_data_bytes** | **int** | The number of bytes transferred that belong to files. | +**files_changed** | **int** | The number of files changed by this job. | +**files_linked** | **int** | The number of files linked by this job. | +**files_new** | **int** | The number of files created by this job. | +**files_selected** | **int** | The number of files selected by this job. | +**files_transferred** | **int** | The number of files transferred by this job. | +**files_unlinked** | **int** | The number of files unlinked by this job. | +**files_with_ads_replicated** | **int** | The number of files with ads replicated by this job. | +**flipped_lins** | **int** | The number of LINs flipped by this job. | +**hard_links_replicated** | **int** | The number of hard links replicated by this job. | +**hash_exceptions_fixed** | **int** | The number of hash exceptions fixed by this job. | +**hash_exceptions_found** | **int** | The number of hash exceptions found by this job. | +**id** | **str** | A unique identifier for this object. | +**job_id** | **int** | The ID of the job. | +**lins_total** | **int** | The number of LINs transferred by this job. | +**network_bytes_to_source** | **int** | The total number of bytes sent to the source by this job. | +**network_bytes_to_target** | **int** | The total number of bytes sent to the target by this job. | +**new_files_replicated** | **int** | The number of new files replicated by this job. | +**num_retransmitted_files** | **int** | The number of files that have been retransmitted by this job. | +**phases** | [**list[ReportSubreportPhase]**](ReportSubreportPhase.md) | Data for each phase of this job. | +**policy** | [**ReportSubreportPolicy**](ReportSubreportPolicy.md) | | +**policy_action** | **str** | This is the action the policy is configured to perform. | +**policy_id** | **str** | The ID of the policy. | +**policy_name** | **str** | The name of the policy. | +**regular_files_replicated** | **int** | The number of regular files replicated by this job. | +**resynced_lins** | **int** | The number of LINs resynched by this job. | +**retransmitted_files** | **list[str]** | The files that have been retransmitted by this job. | +**retry** | **int** | The number of times the job has been retried. | +**running_chunks** | **int** | The number of data chunks currently being transmitted. | +**sockets_replicated** | **int** | The number of sockets replicated by this job. | +**source_bytes_recovered** | **int** | The number of bytes recovered on the source. | +**source_directories_created** | **int** | The number of directories created on the source. | +**source_directories_deleted** | **int** | The number of directories deleted on the source. | +**source_directories_linked** | **int** | The number of directories linked on the source. | +**source_directories_unlinked** | **int** | The number of directories unlinked on the source. | +**source_directories_visited** | **int** | The number of directories visited on the source. | +**source_files_deleted** | **int** | The number of files deleted on the source. | +**source_files_linked** | **int** | The number of files linked on the source. | +**source_files_unlinked** | **int** | The number of files unlinked on the source. | +**sparse_data_bytes** | **int** | The number of sparse data bytes transferred by this job. | +**start_time** | **int** | The time the job started in unix epoch seconds. The field is null if the job hasn't started. | +**state** | **str** | The state of the job. | +**succeeded_chunks** | **int** | The number of data chunks that have been transmitted successfully. | +**symlinks_replicated** | **int** | The number of symlinks replicated by this job. | +**sync_type** | **str** | The type of sync being performed by this job. | +**target_bytes_recovered** | **int** | The number of bytes recovered on the target. | +**target_directories_created** | **int** | The number of directories created on the target. | +**target_directories_deleted** | **int** | The number of directories deleted on the target. | +**target_directories_linked** | **int** | The number of directories linked on the target. | +**target_directories_unlinked** | **int** | The number of directories unlinked on the target. | +**target_files_deleted** | **int** | The number of files deleted on the target. | +**target_files_linked** | **int** | The number of files linked on the target. | +**target_files_unlinked** | **int** | The number of files unlinked on the target. | +**target_snapshots** | **list[str]** | The target snapshots created by this job. | +**total_chunks** | **int** | The total number of data chunks transmitted by this job. | +**total_data_bytes** | **int** | The total number of bytes transferred by this job. | +**total_files** | **int** | The number of files affected by this job. | +**total_network_bytes** | **int** | The total number of bytes sent over the network by this job. | +**total_phases** | **int** | The total number of phases for this job. | +**unchanged_data_bytes** | **int** | The number of bytes unchanged by this job. | +**up_to_date_files_skipped** | **int** | The number of up-to-date files skipped by this job. | +**updated_files_replicated** | **int** | The number of updated files replicated by this job. | +**user_conflict_files_skipped** | **int** | The number of files with user conflicts skipped by this job. | +**warnings** | **list[str]** | A list of warning messages for this job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportSubreportPhase.md b/docs/ReportSubreportPhase.md new file mode 100644 index 000000000..09aa01fa9 --- /dev/null +++ b/docs/ReportSubreportPhase.md @@ -0,0 +1,12 @@ +# ReportSubreportPhase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**end_time** | **int** | The time the job ended this phase. | [optional] +**phase** | **str** | The phase that the job was in. | [optional] +**start_time** | **int** | The time the job began this phase. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportSubreportPolicy.md b/docs/ReportSubreportPolicy.md new file mode 100644 index 000000000..ff79b64e0 --- /dev/null +++ b/docs/ReportSubreportPolicy.md @@ -0,0 +1,17 @@ +# ReportSubreportPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. | [optional] +**file_matching_pattern** | [**ReportSubreportPolicyFileMatchingPattern**](ReportSubreportPolicyFileMatchingPattern.md) | A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. | [optional] +**name** | **str** | User-assigned name of this sync policy. | [optional] +**source_exclude_directories** | **list[str]** | Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. | [optional] +**source_include_directories** | **list[str]** | Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. | [optional] +**source_root_path** | **str** | The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. | [optional] +**target_host** | **str** | Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. | [optional] +**target_path** | **str** | Absolute filesystem path on the target cluster for the sync destination. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportSubreportPolicyFileMatchingPattern.md b/docs/ReportSubreportPolicyFileMatchingPattern.md new file mode 100644 index 000000000..60942f427 --- /dev/null +++ b/docs/ReportSubreportPolicyFileMatchingPattern.md @@ -0,0 +1,10 @@ +# ReportSubreportPolicyFileMatchingPattern + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**or_criteria** | [**list[ReportSubreportPolicyFileMatchingPatternOrCriteriaItem]**](ReportSubreportPolicyFileMatchingPatternOrCriteriaItem.md) | An array containing objects with \"and_criteria\" properties, each set of and_criteria will be logically OR'ed together to create the full file matching pattern. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportSubreportPolicyFileMatchingPatternOrCriteriaItem.md b/docs/ReportSubreportPolicyFileMatchingPatternOrCriteriaItem.md new file mode 100644 index 000000000..295e6e59e --- /dev/null +++ b/docs/ReportSubreportPolicyFileMatchingPatternOrCriteriaItem.md @@ -0,0 +1,10 @@ +# ReportSubreportPolicyFileMatchingPatternOrCriteriaItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**and_criteria** | [**list[ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem]**](ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md) | An array containing individual file criterion objects each describing one criterion. These are logically AND'ed together to form a set of criteria. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md b/docs/ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md new file mode 100644 index 000000000..7a1348bc0 --- /dev/null +++ b/docs/ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem.md @@ -0,0 +1,16 @@ +# ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute_exists** | **bool** | For \"custom_attribute\" type criteria. The file will match as long as the attribute named by \"field\" exists. Default is true. | [optional] +**case_sensitive** | **bool** | If true, the value comparison will be case sensitive. Default is true. | [optional] +**field** | **str** | The name of the file attribute to match on (only required if this is a custom_attribute type criterion). Default is an empty string \"\". | [optional] +**operator** | **str** | How to compare the specified attribute of each file to the specified value. | [optional] +**type** | **str** | The type of this criterion, that is, which file attribute to match on. | +**value** | **str** | The value to compare the specified attribute of each file to. | [optional] +**whole_word** | **bool** | If true, the attribute must match the entire word. Default is true. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportSubreports.md b/docs/ReportSubreports.md new file mode 100644 index 000000000..a3d1031e0 --- /dev/null +++ b/docs/ReportSubreports.md @@ -0,0 +1,10 @@ +# ReportSubreports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subreports** | [**list[ReportSubreport]**](ReportSubreport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportSubreportsExtended.md b/docs/ReportSubreportsExtended.md new file mode 100644 index 000000000..22928f8cf --- /dev/null +++ b/docs/ReportSubreportsExtended.md @@ -0,0 +1,12 @@ +# ReportSubreportsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subreports** | [**list[ReportSubreport]**](ReportSubreport.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsReportSubreports.md b/docs/ReportsReportSubreports.md new file mode 100644 index 000000000..637666018 --- /dev/null +++ b/docs/ReportsReportSubreports.md @@ -0,0 +1,10 @@ +# ReportsReportSubreports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subreports** | [**list[ReportsReportSubreportsSubreport]**](ReportsReportSubreportsSubreport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsReportSubreportsExtended.md b/docs/ReportsReportSubreportsExtended.md new file mode 100644 index 000000000..01c355e00 --- /dev/null +++ b/docs/ReportsReportSubreportsExtended.md @@ -0,0 +1,12 @@ +# ReportsReportSubreportsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subreports** | [**list[ReportsReportSubreportsSubreport]**](ReportsReportSubreportsSubreport.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsReportSubreportsSubreport.md b/docs/ReportsReportSubreportsSubreport.md new file mode 100644 index 000000000..540013bdc --- /dev/null +++ b/docs/ReportsReportSubreportsSubreport.md @@ -0,0 +1,95 @@ +# ReportsReportSubreportsSubreport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | The action to be taken by this job. | +**ads_streams_replicated** | **int** | The number of ads streams replicated by this job. | +**block_specs_replicated** | **int** | The number of block specs replicated by this job. | +**bytes_recoverable** | **int** | The number of bytes recoverable by this job. | +**bytes_transferred** | **int** | The number of bytes that have been transferred by this job. | +**char_specs_replicated** | **int** | The number of char specs replicated by this job. | +**corrected_lins** | **int** | The number of LINs corrected by this job. | +**dead_node** | **bool** | This field is true if the node running this job is dead. | +**directories_replicated** | **int** | The number of directories replicated. | +**dirs_changed** | **int** | The number of directories changed by this job. | +**dirs_deleted** | **int** | The number of directories deleted by this job. | +**dirs_moved** | **int** | The number of directories moved by this job. | +**dirs_new** | **int** | The number of directories created by this job. | +**duration** | **int** | The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. | +**end_time** | **int** | The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. | +**error** | **str** | The primary error message for this job. | +**error_checksum_files_skipped** | **int** | The number of files with checksum errors skipped by this job. | +**error_io_files_skipped** | **int** | The number of files with io errors skipped by this job. | +**error_net_files_skipped** | **int** | The number of files with network errors skipped by this job. | +**errors** | **list[str]** | A list of error messages for this job. | +**failed_chunks** | **int** | Tyhe number of data chunks that failed transmission. | +**fifos_replicated** | **int** | The number of fifos replicated by this job. | +**file_data_bytes** | **int** | The number of bytes transferred that belong to files. | +**files_changed** | **int** | The number of files changed by this job. | +**files_linked** | **int** | The number of files linked by this job. | +**files_new** | **int** | The number of files created by this job. | +**files_selected** | **int** | The number of files selected by this job. | +**files_transferred** | **int** | The number of files transferred by this job. | +**files_unlinked** | **int** | The number of files unlinked by this job. | +**files_with_ads_replicated** | **int** | The number of files with ads replicated by this job. | +**flipped_lins** | **int** | The number of LINs flipped by this job. | +**hard_links_replicated** | **int** | The number of hard links replicated by this job. | +**hash_exceptions_fixed** | **int** | The number of hash exceptions fixed by this job. | +**hash_exceptions_found** | **int** | The number of hash exceptions found by this job. | +**id** | **str** | A unique identifier for this object. | +**job_id** | **int** | The ID of the job. | +**lins_total** | **int** | The number of LINs transferred by this job. | +**network_bytes_to_source** | **int** | The total number of bytes sent to the source by this job. | +**network_bytes_to_target** | **int** | The total number of bytes sent to the target by this job. | +**new_files_replicated** | **int** | The number of new files replicated by this job. | +**num_retransmitted_files** | **int** | The number of files that have been retransmitted by this job. | +**phases** | [**list[ReportSubreportPhase]**](ReportSubreportPhase.md) | Data for each phase of this job. | +**policy_id** | **str** | The ID of the policy. | +**policy_name** | **str** | The name of the policy. | +**regular_files_replicated** | **int** | The number of regular files replicated by this job. | +**resynced_lins** | **int** | The number of LINs resynched by this job. | +**retransmitted_files** | **list[str]** | The files that have been retransmitted by this job. | +**retry** | **int** | The number of times the job has been retried. | +**running_chunks** | **int** | The number of data chunks currently being transmitted. | +**sockets_replicated** | **int** | The number of sockets replicated by this job. | +**source_bytes_recovered** | **int** | The number of bytes recovered on the source. | +**source_directories_created** | **int** | The number of directories created on the source. | +**source_directories_deleted** | **int** | The number of directories deleted on the source. | +**source_directories_linked** | **int** | The number of directories linked on the source. | +**source_directories_unlinked** | **int** | The number of directories unlinked on the source. | +**source_directories_visited** | **int** | The number of directories visited on the source. | +**source_files_deleted** | **int** | The number of files deleted on the source. | +**source_files_linked** | **int** | The number of files linked on the source. | +**source_files_unlinked** | **int** | The number of files unlinked on the source. | +**source_host** | **str** | Hostname or IP address of sync source cluster. | +**sparse_data_bytes** | **int** | The number of sparse data bytes transferred by this job. | +**start_time** | **int** | The time the job started in unix epoch seconds. The field is null if the job hasn't started. | +**state** | **str** | The state of the job. | +**succeeded_chunks** | **int** | The number of data chunks that have been transmitted successfully. | +**symlinks_replicated** | **int** | The number of symlinks replicated by this job. | +**sync_type** | **str** | The type of sync being performed by this job. | +**target_bytes_recovered** | **int** | The number of bytes recovered on the target. | +**target_directories_created** | **int** | The number of directories created on the target. | +**target_directories_deleted** | **int** | The number of directories deleted on the target. | +**target_directories_linked** | **int** | The number of directories linked on the target. | +**target_directories_unlinked** | **int** | The number of directories unlinked on the target. | +**target_files_deleted** | **int** | The number of files deleted on the target. | +**target_files_linked** | **int** | The number of files linked on the target. | +**target_files_unlinked** | **int** | The number of files unlinked on the target. | +**target_path** | **str** | Absolute filesystem path on the target cluster for the sync destination. | +**target_snapshots** | **list[str]** | The target snapshots created by this job. | +**total_chunks** | **int** | The total number of data chunks transmitted by this job. | +**total_data_bytes** | **int** | The total number of bytes transferred by this job. | +**total_files** | **int** | The number of files affected by this job. | +**total_network_bytes** | **int** | The total number of bytes sent over the network by this job. | +**total_phases** | **int** | The total number of phases for this job. | +**unchanged_data_bytes** | **int** | The number of bytes unchanged by this job. | +**up_to_date_files_skipped** | **int** | The number of up-to-date files skipped by this job. | +**updated_files_replicated** | **int** | The number of updated files replicated by this job. | +**user_conflict_files_skipped** | **int** | The number of files with user conflicts skipped by this job. | +**warnings** | **list[str]** | A list of warning messages for this job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsScans.md b/docs/ReportsScans.md new file mode 100644 index 000000000..91c53a499 --- /dev/null +++ b/docs/ReportsScans.md @@ -0,0 +1,10 @@ +# ReportsScans + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[ReportsScansReport]**](ReportsScansReport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsScansExtended.md b/docs/ReportsScansExtended.md new file mode 100644 index 000000000..fcdd41a55 --- /dev/null +++ b/docs/ReportsScansExtended.md @@ -0,0 +1,12 @@ +# ReportsScansExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[ReportsScansReport]**](ReportsScansReport.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsScansReport.md b/docs/ReportsScansReport.md new file mode 100644 index 000000000..9f0648e86 --- /dev/null +++ b/docs/ReportsScansReport.md @@ -0,0 +1,20 @@ +# ReportsScansReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bytes_sent** | **int** | The number of bytes sent to the virus definition server to be scanned. | [optional] +**duration** | **int** | The length of time the job ran for. | [optional] +**end** | **int** | The time the job ended. | [optional] +**files** | **int** | The number of file scanned. | [optional] +**id** | **str** | A unique identifier for the report. | [optional] +**infections** | **int** | The number of infections found. | [optional] +**job_id** | **int** | The ID of the job that ran the policy. If the scan was manually run on a single file, this field will be null. | [optional] +**policy_id** | **str** | The id of the policy that this scan job executed. | [optional] +**size** | **int** | The cumulative size of the file scanned. | [optional] +**start** | **int** | The time the job started. | [optional] +**status** | **str** | The state of the job. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsThreats.md b/docs/ReportsThreats.md new file mode 100644 index 000000000..610bc83ee --- /dev/null +++ b/docs/ReportsThreats.md @@ -0,0 +1,10 @@ +# ReportsThreats + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[ReportsThreatsReport]**](ReportsThreatsReport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsThreatsExtended.md b/docs/ReportsThreatsExtended.md new file mode 100644 index 000000000..462516db6 --- /dev/null +++ b/docs/ReportsThreatsExtended.md @@ -0,0 +1,12 @@ +# ReportsThreatsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[ReportsThreatsReport]**](ReportsThreatsReport.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsThreatsReport.md b/docs/ReportsThreatsReport.md new file mode 100644 index 000000000..8a66b870a --- /dev/null +++ b/docs/ReportsThreatsReport.md @@ -0,0 +1,16 @@ +# ReportsThreatsReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file** | **str** | The file that contained the threat. | [optional] +**id** | **str** | A unique identifier for the report. | [optional] +**policy_id** | **str** | The id of the policy that found this threat. | [optional] +**remediation** | **str** | The action that was taken to remediate the threat. | [optional] +**scan_id** | **str** | The id of the scan report this threat is associated with. | [optional] +**threat** | **str** | A description of the threat that was found. | [optional] +**time** | **int** | The time that the threat was found, in Unix epoch seconds. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultDirectoriesTotalUsage.md b/docs/ResultDirectoriesTotalUsage.md new file mode 100644 index 000000000..d54f28177 --- /dev/null +++ b/docs/ResultDirectoriesTotalUsage.md @@ -0,0 +1,19 @@ +# ResultDirectoriesTotalUsage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ads_cnt** | **int** | Number of alternate data streams. | +**dir_cnt** | **int** | Number of directories. | +**file_cnt** | **int** | Number of files. | +**lin** | **int** | Logical inode number. | +**log_size_sum** | **int** | Logical size directory in bytes. | +**log_size_sum_overflow** | **int** | Logical size sum of overflow in bytes. | +**name** | **str** | Name of directory. | +**other_cnt** | **int** | Other count. | +**parent** | **int** | Parent directory inode. | +**phys_size_sum** | **int** | Physical size directory in bytes. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultHistogram.md b/docs/ResultHistogram.md new file mode 100644 index 000000000..831c0b374 --- /dev/null +++ b/docs/ResultHistogram.md @@ -0,0 +1,13 @@ +# ResultHistogram + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**atime_enabled** | **bool** | Access time enabled. | +**attribute_count** | **int** | User attribute count. | +**begin_time** | **int** | Unix Epoch time of start of results collection job. | +**histogram** | [**list[ResultHistogramHistogramItem]**](ResultHistogramHistogramItem.md) | Histogram data of specified file count parameter. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultHistogramHistogramItem.md b/docs/ResultHistogramHistogramItem.md new file mode 100644 index 000000000..ed8c0a21a --- /dev/null +++ b/docs/ResultHistogramHistogramItem.md @@ -0,0 +1,11 @@ +# ResultHistogramHistogramItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bucket** | **int** | Bucket for holding file counts within a range. | +**value** | **int** | Number of files within the bucket. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultTopDirs.md b/docs/ResultTopDirs.md new file mode 100644 index 000000000..33a4f7e62 --- /dev/null +++ b/docs/ResultTopDirs.md @@ -0,0 +1,14 @@ +# ResultTopDirs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**change** | **int** | Change in directory ranking from result set comparison. | [optional] +**dir_atime_enabled** | **bool** | Directory access time enabled. | +**dirs** | [**list[ResultTopDirsDir]**](ResultTopDirsDir.md) | Directory listing. | +**top_n_max** | **int** | Limit on number of top results. | +**total_count** | **int** | Total count of directory results. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultTopDirsDir.md b/docs/ResultTopDirsDir.md new file mode 100644 index 000000000..fc4617436 --- /dev/null +++ b/docs/ResultTopDirsDir.md @@ -0,0 +1,13 @@ +# ResultTopDirsDir + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**atime** | **int** | Directory access time | +**btime** | **int** | Directory creation begin time. | +**ctime** | **int** | Unix inode change time. | +**path** | **str** | Relative directory path under /ifs/. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultTopFiles.md b/docs/ResultTopFiles.md new file mode 100644 index 000000000..402123267 --- /dev/null +++ b/docs/ResultTopFiles.md @@ -0,0 +1,15 @@ +# ResultTopFiles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**atime_enabled** | **bool** | Access time enabled. | +**change** | **int** | Change in file ranking from result set comparison. | [optional] +**dir_atime_enabled** | **bool** | Directory access time enabled. | +**files** | [**list[ResultTopFilesFile]**](ResultTopFilesFile.md) | Files listing. | +**top_n_max** | **int** | Limit on number of top results. | +**total_count** | **int** | Total count of file results. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultTopFilesFile.md b/docs/ResultTopFilesFile.md new file mode 100644 index 000000000..5519d1d9d --- /dev/null +++ b/docs/ResultTopFilesFile.md @@ -0,0 +1,15 @@ +# ResultTopFilesFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**atime** | **int** | File access time. | +**btime** | **int** | File creation begin time. | +**ctime** | **int** | Unix inode change time. | +**log_size** | **int** | Logical file size in bytes. | +**path** | **str** | Relative file path under /ifs/. | +**phys_size** | **int** | Physical file size in bytes. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RolePrivileges.md b/docs/RolePrivileges.md new file mode 100644 index 000000000..c86164234 --- /dev/null +++ b/docs/RolePrivileges.md @@ -0,0 +1,11 @@ +# RolePrivileges + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**privileges** | [**list[AuthIdNtokenPrivilegeItem]**](AuthIdNtokenPrivilegeItem.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsAccessTime.md b/docs/SettingsAccessTime.md new file mode 100644 index 000000000..a887bd034 --- /dev/null +++ b/docs/SettingsAccessTime.md @@ -0,0 +1,10 @@ +# SettingsAccessTime + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**SettingsAccessTimeSettings**](SettingsAccessTimeSettings.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsAccessTimeExtended.md b/docs/SettingsAccessTimeExtended.md new file mode 100644 index 000000000..953fc1cb2 --- /dev/null +++ b/docs/SettingsAccessTimeExtended.md @@ -0,0 +1,11 @@ +# SettingsAccessTimeExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Enable access time tracking. | [optional] +**precision** | **int** | Access time tracked on each cluster file accurate to this number of seconds. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsAccessTimeSettings.md b/docs/SettingsAccessTimeSettings.md new file mode 100644 index 000000000..b5c074c9e --- /dev/null +++ b/docs/SettingsAccessTimeSettings.md @@ -0,0 +1,11 @@ +# SettingsAccessTimeSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Enable access time tracking. | +**precision** | **int** | Access time tracked in seconds for each cluster file if enabled. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsAcls.md b/docs/SettingsAcls.md new file mode 100644 index 000000000..a735e4da9 --- /dev/null +++ b/docs/SettingsAcls.md @@ -0,0 +1,10 @@ +# SettingsAcls + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**acl_policy_settings** | [**SettingsAclsAclPolicySettings**](SettingsAclsAclPolicySettings.md) | ACL policies settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsAclsAclPolicySettings.md b/docs/SettingsAclsAclPolicySettings.md new file mode 100644 index 000000000..5004d945d --- /dev/null +++ b/docs/SettingsAclsAclPolicySettings.md @@ -0,0 +1,23 @@ +# SettingsAclsAclPolicySettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access** | **str** | Access checks (chmod, chown). | [optional] +**calcmode** | **str** | Displayed mode bits. | [optional] +**calcmode_group** | **str** | Approximate group mode bits when ACL exists. | [optional] +**calcmode_owner** | **str** | Approximate owner mode bits when ACL exists. | [optional] +**chmod** | **str** | chmod on files with existing ACLs. | [optional] +**chmod_007** | **str** | chmod (007) on files with existing ACLs. | [optional] +**chmod_inheritable** | **str** | ACLs created on directories by UNIX chmod. | [optional] +**chown** | **str** | chown/chgrp on files with existing ACLs. | [optional] +**create_over_smb** | **str** | ACL creation over SMB. | [optional] +**dos_attr** | **str** | Read only DOS attribute. | [optional] +**group_owner_inheritance** | **str** | Group owner inheritance. | [optional] +**rwx** | **str** | Treatment of 'rwx' permissions. | [optional] +**synthetic_denies** | **str** | Synthetic 'deny' ACEs. | [optional] +**utimes** | **str** | Access check (utimes) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsGlobal.md b/docs/SettingsGlobal.md new file mode 100644 index 000000000..8ff0e56a0 --- /dev/null +++ b/docs/SettingsGlobal.md @@ -0,0 +1,10 @@ +# SettingsGlobal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**global_settings** | [**SettingsGlobalGlobalSettings**](SettingsGlobalGlobalSettings.md) | Specifies the properties for global authentication settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsGlobalExtended.md b/docs/SettingsGlobalExtended.md new file mode 100644 index 000000000..5ab5f992a --- /dev/null +++ b/docs/SettingsGlobalExtended.md @@ -0,0 +1,10 @@ +# SettingsGlobalExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**SettingsGlobalSettings**](SettingsGlobalSettings.md) | Settings for Audit. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsGlobalGlobalSettings.md b/docs/SettingsGlobalGlobalSettings.md new file mode 100644 index 000000000..24c72cc06 --- /dev/null +++ b/docs/SettingsGlobalGlobalSettings.md @@ -0,0 +1,35 @@ +# SettingsGlobalGlobalSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alloc_retries** | **int** | Specifies the number of times to retry an ID allocation before failing. | [optional] +**gid_range_enabled** | **bool** | If true, allocates GIDs from a fixed range. | [optional] +**gid_range_max** | **int** | Specifies the ending number for a fixed range from which GIDs are allocated. | [optional] +**gid_range_min** | **int** | Specifies the starting number for a fixed range from which GIDs are allocated. | [optional] +**gid_range_next** | **int** | Specifies the next GID to allocate. | [optional] +**group_uid** | **int** | Specifies the user iD for a group when requested by the kernel. | [optional] +**load_providers** | **list[str]** | Specifies which providers are loaded by the authentication daemon (lsassd). | [optional] +**min_mapped_rid** | **int** | Starts the RID in the local domain to map a UID and a GID. | [optional] +**null_gid** | **int** | Specifies an alternative GID when the kernel is unable to retrieve a GID for a persona. | [optional] +**null_uid** | **int** | Specifies an alternative UID when the kernel is unable to retrieve a UID for a persona. | [optional] +**on_disk_identity** | **str** | Specifies the type of identity that is stored on disk. | [optional] +**rpc_block_time** | **int** | Specifies the minimum amount of time in milliseconds to wait before performing an oprestart. | [optional] +**rpc_max_requests** | **int** | Specifies the maximum number of outstanding RPC requests. | [optional] +**rpc_timeout** | **int** | Specifies the maximum amount of time in seconds to wait for an idmap response. | [optional] +**send_ntlmv2** | **bool** | If true, sends NTLMv2 responses. | [optional] +**space_replacement** | **str** | Specifies the space replacement character. | [optional] +**system_gid_threshold** | **int** | Specifies the minimum GID to attempt to look up in the idmap database. | [optional] +**system_uid_threshold** | **int** | Specifies the minimum UID to attempt to look up in the idmap database. | [optional] +**uid_range_enabled** | **bool** | If true, allocates UIDs from a fixed range. | [optional] +**uid_range_max** | **int** | Specifies the ending number for a fixed range from which UIDs are allocated. | [optional] +**uid_range_min** | **int** | Specifies the starting number for a fixed range from which UIDs are allocated. | [optional] +**uid_range_next** | **int** | Specifies the next UID to allocate. | [optional] +**unknown_gid** | **int** | Specifies the GID for the unknown (anonymous) group. | [optional] +**unknown_uid** | **int** | Specifies the UID for the unknown (anonymous) user. | [optional] +**user_object_cache_size** | **int** | Specifies the maximum size (in bytes) of the security object cache in the authentication daemon. | [optional] +**workgroup** | **str** | Specifies the NetBIOS workgroup or domain. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsGlobalSettings.md b/docs/SettingsGlobalSettings.md new file mode 100644 index 000000000..28b148614 --- /dev/null +++ b/docs/SettingsGlobalSettings.md @@ -0,0 +1,17 @@ +# SettingsGlobalSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**audited_zones** | **list[str]** | Specifies zones that are audited when the protocol_auditing_enabled property is enabled. | [optional] +**cee_log_time** | **str** | Specifies that events past a certain date are forwarded by the audit CEE forwarder. Format these events as follows: 'Topic@YYYY-MM-DD HH:MM:SS'. | [optional] +**cee_server_uris** | **list[str]** | Specifies a list of Common Event Enabler (CEE) server URIs. Protocol audit logs are sent to these URIs for external processing. | [optional] +**config_auditing_enabled** | **bool** | Specifies whether logging for API configuration changes are enabled. | [optional] +**config_syslog_enabled** | **bool** | Specifies whether configuration audit syslog messages are forwarded. | [optional] +**hostname** | **str** | Specifies the hostname that is reported in protocol events from this cluster. | [optional] +**protocol_auditing_enabled** | **bool** | Specifies if logging for the I/O stream is enabled. | [optional] +**syslog_log_time** | **str** | Specifies that events past a specified date are forwarded by the audit syslog forwarder. Format these events as follows: 'Topic@YYYY-MM-DD HH:MM:SS' format | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5Defaults.md b/docs/SettingsKrb5Defaults.md new file mode 100644 index 000000000..0a2102f9c --- /dev/null +++ b/docs/SettingsKrb5Defaults.md @@ -0,0 +1,10 @@ +# SettingsKrb5Defaults + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**krb5_settings** | [**SettingsKrb5DefaultsKrb5Settings**](SettingsKrb5DefaultsKrb5Settings.md) | Specifies the properties for the global Kerberos authentication settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5DefaultsKrb5Settings.md b/docs/SettingsKrb5DefaultsKrb5Settings.md new file mode 100644 index 000000000..5598ae4ab --- /dev/null +++ b/docs/SettingsKrb5DefaultsKrb5Settings.md @@ -0,0 +1,13 @@ +# SettingsKrb5DefaultsKrb5Settings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**always_send_preauth** | **bool** | If true, always attempts to preauthenticate to the domain controller. | [optional] +**default_realm** | **str** | Specifies the realm for unqualified names. | [optional] +**dns_lookup_kdc** | **bool** | If true, find KDCs through the DNS. | [optional] +**dns_lookup_realm** | **bool** | If true, find realm names through the DNS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5Domain.md b/docs/SettingsKrb5Domain.md new file mode 100644 index 000000000..2a7e156de --- /dev/null +++ b/docs/SettingsKrb5Domain.md @@ -0,0 +1,10 @@ +# SettingsKrb5Domain + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**realm** | **str** | Specifies the name of the realm. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5DomainCreateParams.md b/docs/SettingsKrb5DomainCreateParams.md new file mode 100644 index 000000000..f6195f58f --- /dev/null +++ b/docs/SettingsKrb5DomainCreateParams.md @@ -0,0 +1,11 @@ +# SettingsKrb5DomainCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**realm** | **str** | Specifies the name of the realm. | [optional] +**domain** | **str** | Specifies the name of the domain. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5Domains.md b/docs/SettingsKrb5Domains.md new file mode 100644 index 000000000..f5e97bcb5 --- /dev/null +++ b/docs/SettingsKrb5Domains.md @@ -0,0 +1,10 @@ +# SettingsKrb5Domains + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | [**list[SettingsKrb5DomainsDomainItem]**](SettingsKrb5DomainsDomainItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5DomainsDomainItem.md b/docs/SettingsKrb5DomainsDomainItem.md new file mode 100644 index 000000000..1920fc3a4 --- /dev/null +++ b/docs/SettingsKrb5DomainsDomainItem.md @@ -0,0 +1,12 @@ +# SettingsKrb5DomainsDomainItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | Specifies the name of the domain. | [optional] +**id** | **str** | ID of the domain | [optional] +**realm** | **str** | Specifies the name of the realm. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5Realm.md b/docs/SettingsKrb5Realm.md new file mode 100644 index 000000000..992253752 --- /dev/null +++ b/docs/SettingsKrb5Realm.md @@ -0,0 +1,13 @@ +# SettingsKrb5Realm + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_server** | **str** | Specifies the administrative server hostname. | [optional] +**default_domain** | **str** | Specifies the default domain mapped to the realm. | [optional] +**is_default_realm** | **bool** | If true, indicates that the realm is the default. | [optional] +**kdc** | **list[str]** | Specifies the list of KDC hostnames. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5RealmCreateParams.md b/docs/SettingsKrb5RealmCreateParams.md new file mode 100644 index 000000000..da2ee62ed --- /dev/null +++ b/docs/SettingsKrb5RealmCreateParams.md @@ -0,0 +1,14 @@ +# SettingsKrb5RealmCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_server** | **str** | Specifies the administrative server hostname. | [optional] +**default_domain** | **str** | Specifies the default domain mapped to the realm. | [optional] +**is_default_realm** | **bool** | If true, indicates that the realm is the default. | [optional] +**kdc** | **list[str]** | Specifies the list of KDC hostnames. | [optional] +**realm** | **str** | Specifies the name of the realm. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5Realms.md b/docs/SettingsKrb5Realms.md new file mode 100644 index 000000000..0d58c06dd --- /dev/null +++ b/docs/SettingsKrb5Realms.md @@ -0,0 +1,10 @@ +# SettingsKrb5Realms + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**realm** | [**list[SettingsKrb5RealmsRealmItem]**](SettingsKrb5RealmsRealmItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsKrb5RealmsRealmItem.md b/docs/SettingsKrb5RealmsRealmItem.md new file mode 100644 index 000000000..f9d048458 --- /dev/null +++ b/docs/SettingsKrb5RealmsRealmItem.md @@ -0,0 +1,16 @@ +# SettingsKrb5RealmsRealmItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_server** | **str** | Specifies the administrative server hostname. | [optional] +**default_domain** | **str** | Specifies the default domain mapped to the realm. | [optional] +**id** | **str** | ID of realm | [optional] +**is_default_realm** | **bool** | If true, indicates that the realm is the default. | [optional] +**is_joined** | **bool** | If true, indicates that the realm is joined. | [optional] +**kdc** | **list[str]** | Specifies the list of KDC hostnames. | [optional] +**realm** | **str** | Specifies the name of the realm. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMapping.md b/docs/SettingsMapping.md new file mode 100644 index 000000000..9e2421466 --- /dev/null +++ b/docs/SettingsMapping.md @@ -0,0 +1,10 @@ +# SettingsMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mapping_settings** | [**SettingsMappingMappingSettings**](SettingsMappingMappingSettings.md) | Specifies the properties for global authentication setting. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMappingExtended.md b/docs/SettingsMappingExtended.md new file mode 100644 index 000000000..0698ac773 --- /dev/null +++ b/docs/SettingsMappingExtended.md @@ -0,0 +1,12 @@ +# SettingsMappingExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | The FQDN of the source domain to map. | +**mapping** | **str** | The FQDN of destination domain to map to. | +**type** | **str** | The authentication provider type. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMappingMappingSettings.md b/docs/SettingsMappingMappingSettings.md new file mode 100644 index 000000000..93baa7c87 --- /dev/null +++ b/docs/SettingsMappingMappingSettings.md @@ -0,0 +1,18 @@ +# SettingsMappingMappingSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cache_entry_expiry** | **int** | Specifies the cache expiry in seconds of the idmapper. | [optional] +**gid_range_enabled** | **bool** | If true, allocates GIDs from a fixed range. | [optional] +**gid_range_max** | **int** | Specifies the ending number for a fixed range from which GIDs are allocated. | [optional] +**gid_range_min** | **int** | Specifies the starting number for a fixed range from which GIDs are allocated. | [optional] +**gid_range_next** | **int** | Specifies the next GID to allocate. | [optional] +**uid_range_enabled** | **bool** | If true, allocates UIDs from a fixed range. | [optional] +**uid_range_max** | **int** | Specifies the ending number for a fixed range from which UIDs are allocated. | [optional] +**uid_range_min** | **int** | Specifies the starting number for a fixed range from which UIDs are allocated. | [optional] +**uid_range_next** | **int** | Specifies the next UID to allocate. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMappings.md b/docs/SettingsMappings.md new file mode 100644 index 000000000..2b6b85ab9 --- /dev/null +++ b/docs/SettingsMappings.md @@ -0,0 +1,10 @@ +# SettingsMappings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mappings** | [**list[SettingsMappingExtended]**](SettingsMappingExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsNotification.md b/docs/SettingsNotification.md new file mode 100644 index 000000000..d0fda16e5 --- /dev/null +++ b/docs/SettingsNotification.md @@ -0,0 +1,18 @@ +# SettingsNotification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_alert** | **bool** | Send alert when rule matches. | +**action_email_address** | **str** | Email a specific email address when rule matches. | +**action_email_owner** | **bool** | Email quota domain owner when rule matches. | +**condition** | **str** | The condition detected. | +**email_template** | **str** | Path of optional /ifs template file used for email actions. | +**holdoff** | **int** | Time to wait between detections for rules triggered by user actions. | +**id** | **str** | The system ID given to the rule. | +**schedule** | **str** | Schedule for rules that repeatedly notify. | +**threshold** | **str** | The quota threshold detected. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsNotificationCreateParams.md b/docs/SettingsNotificationCreateParams.md new file mode 100644 index 000000000..743d55407 --- /dev/null +++ b/docs/SettingsNotificationCreateParams.md @@ -0,0 +1,17 @@ +# SettingsNotificationCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_alert** | **bool** | Send alert when rule matches. | [optional] +**action_email_address** | **str** | Email a specific email address when rule matches. | [optional] +**action_email_owner** | **bool** | Email quota domain owner when rule matches. | [optional] +**condition** | **str** | The condition detected. | +**email_template** | **str** | Path of optional /ifs template file used for email actions. | [optional] +**holdoff** | **int** | Time to wait between detections for rules triggered by user actions. | [optional] +**schedule** | **str** | Schedule for rules that repeatedly notify. | [optional] +**threshold** | **str** | The quota threshold detected. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsNotifications.md b/docs/SettingsNotifications.md new file mode 100644 index 000000000..a06e0e156 --- /dev/null +++ b/docs/SettingsNotifications.md @@ -0,0 +1,10 @@ +# SettingsNotifications + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | [**list[SettingsNotification]**](SettingsNotification.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsNotificationsExtended.md b/docs/SettingsNotificationsExtended.md new file mode 100644 index 000000000..1ba006f8c --- /dev/null +++ b/docs/SettingsNotificationsExtended.md @@ -0,0 +1,11 @@ +# SettingsNotificationsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | [**list[SettingsNotification]**](SettingsNotification.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsReportingEulaItem.md b/docs/SettingsReportingEulaItem.md new file mode 100644 index 000000000..b5db0a2ee --- /dev/null +++ b/docs/SettingsReportingEulaItem.md @@ -0,0 +1,11 @@ +# SettingsReportingEulaItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accepted** | **bool** | Indicates whether the telemetry collection warning has been acknowledged | [optional] +**body** | **str** | The body of the telemetry collection warning | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsReports.md b/docs/SettingsReports.md new file mode 100644 index 000000000..c5c510d5b --- /dev/null +++ b/docs/SettingsReports.md @@ -0,0 +1,10 @@ +# SettingsReports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**SettingsReportsSettings**](SettingsReportsSettings.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsReportsSettings.md b/docs/SettingsReportsSettings.md new file mode 100644 index 000000000..59dd3b9c0 --- /dev/null +++ b/docs/SettingsReportsSettings.md @@ -0,0 +1,14 @@ +# SettingsReportsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**live_dir** | **str** | The directory on /ifs where manual or live reports will be placed. | +**live_retain** | **int** | The number of manual reports to keep. | +**schedule** | **str** | The isidate schedule used to generate reports. | +**scheduled_dir** | **str** | The directory on /ifs where schedule reports will be placed. | +**scheduled_retain** | **int** | The number of scheduled reports to keep. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbLogLevel.md b/docs/SmbLogLevel.md new file mode 100644 index 000000000..81529e8e8 --- /dev/null +++ b/docs/SmbLogLevel.md @@ -0,0 +1,10 @@ +# SmbLogLevel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | **str** | Valid SMB logging levels | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbLogLevelFilter.md b/docs/SmbLogLevelFilter.md new file mode 100644 index 000000000..bb3b03ff9 --- /dev/null +++ b/docs/SmbLogLevelFilter.md @@ -0,0 +1,12 @@ +# SmbLogLevelFilter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_addrs** | **list[str]** | Array of client IP addresses to filter against. | [optional] +**level** | **str** | Logging level of the filter. | +**ops** | **list[str]** | Array of SMB operations to filter against. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbLogLevelFilters.md b/docs/SmbLogLevelFilters.md new file mode 100644 index 000000000..f881080b1 --- /dev/null +++ b/docs/SmbLogLevelFilters.md @@ -0,0 +1,10 @@ +# SmbLogLevelFilters + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filters** | [**list[SmbLogLevelFiltersFilter]**](SmbLogLevelFiltersFilter.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbLogLevelFiltersExtended.md b/docs/SmbLogLevelFiltersExtended.md new file mode 100644 index 000000000..525a17a40 --- /dev/null +++ b/docs/SmbLogLevelFiltersExtended.md @@ -0,0 +1,12 @@ +# SmbLogLevelFiltersExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filters** | [**list[SmbLogLevelFiltersFilter]**](SmbLogLevelFiltersFilter.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbLogLevelFiltersFilter.md b/docs/SmbLogLevelFiltersFilter.md new file mode 100644 index 000000000..0c83f856b --- /dev/null +++ b/docs/SmbLogLevelFiltersFilter.md @@ -0,0 +1,13 @@ +# SmbLogLevelFiltersFilter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Unique ID of the log filter. | [optional] +**ip_addrs** | **list[str]** | Array of client IP addresses to filter against. | [optional] +**level** | **str** | Logging level of the filter. | +**ops** | **list[str]** | Array of SMB operations to filter against. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbOpenfile.md b/docs/SmbOpenfile.md new file mode 100644 index 000000000..50d6e6640 --- /dev/null +++ b/docs/SmbOpenfile.md @@ -0,0 +1,14 @@ +# SmbOpenfile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file** | **str** | Path of file within /ifs. | +**id** | **int** | The file ID. | +**locks** | **int** | Number of locks user holds on file. | +**permissions** | **list[str]** | The user's permissions on file. | +**user** | **str** | User holding file open. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbOpenfiles.md b/docs/SmbOpenfiles.md new file mode 100644 index 000000000..cd62e35f3 --- /dev/null +++ b/docs/SmbOpenfiles.md @@ -0,0 +1,12 @@ +# SmbOpenfiles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**openfiles** | [**list[SmbOpenfile]**](SmbOpenfile.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSession.md b/docs/SmbSession.md new file mode 100644 index 000000000..103e42ca4 --- /dev/null +++ b/docs/SmbSession.md @@ -0,0 +1,18 @@ +# SmbSession + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_time** | **int** | Number of seconds since session start. | +**client_type** | **str** | Client type. | +**computer** | **str** | Client internet address. | +**encryption** | **bool** | True if session is encrypted. | +**guest_login** | **bool** | True for guest logins. | +**id** | **int** | The session ID. | +**idle_time** | **int** | Number of seconds since last client operation. | +**openfiles** | **int** | Number of files open by client. | +**user** | **str** | Local user name. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSessions.md b/docs/SmbSessions.md new file mode 100644 index 000000000..a1b6904eb --- /dev/null +++ b/docs/SmbSessions.md @@ -0,0 +1,12 @@ +# SmbSessions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**sessions** | [**list[SmbSession]**](SmbSession.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSettingsGlobal.md b/docs/SmbSettingsGlobal.md new file mode 100644 index 000000000..4bc73d8ed --- /dev/null +++ b/docs/SmbSettingsGlobal.md @@ -0,0 +1,10 @@ +# SmbSettingsGlobal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**SmbSettingsGlobalSettings**](SmbSettingsGlobalSettings.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSettingsGlobalSettings.md b/docs/SmbSettingsGlobalSettings.md new file mode 100644 index 000000000..fe4d83f48 --- /dev/null +++ b/docs/SmbSettingsGlobalSettings.md @@ -0,0 +1,31 @@ +# SmbSettingsGlobalSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_based_share_enum** | **bool** | Only enumerate files and folders the requesting user has access to. | [optional] +**audit_fileshare** | **str** | Specify level of file share audit events to log. | [optional] +**audit_global_sacl** | [**list[SmbSettingsGlobalSettingsAuditGlobalSaclItem]**](SmbSettingsGlobalSettingsAuditGlobalSaclItem.md) | Specifies a list of permissions to audit. | [optional] +**audit_logon** | **str** | Specify the level of logon audit events to log. | [optional] +**dot_snap_accessible_child** | **bool** | Allow access to .snapshot directories in share subdirectories. | [optional] +**dot_snap_accessible_root** | **bool** | Allow access to the .snapshot directory in the root of the share. | [optional] +**dot_snap_visible_child** | **bool** | Show .snapshot directories in share subdirectories. | [optional] +**dot_snap_visible_root** | **bool** | Show the .snapshot directory in the root of a share. | [optional] +**enable_security_signatures** | **bool** | Indicates whether the server supports signed SMB packets. | [optional] +**guest_user** | **str** | Specifies the fully-qualified user to use for guest access. | [optional] +**ignore_eas** | **bool** | Specify whether to ignore EAs on files. | [optional] +**onefs_cpu_multiplier** | **int** | Specify the number of OneFS driver worker threads per CPU. | [optional] +**onefs_num_workers** | **int** | Set the maximum number of OneFS driver worker threads. | [optional] +**require_security_signatures** | **bool** | Indicates whether the server requires signed SMB packets. | [optional] +**server_side_copy** | **bool** | Enable Server Side Copy. | [optional] +**server_string** | **str** | Provides a description of the server. | [optional] +**service** | **bool** | Specify whether service is enabled. | [optional] +**srv_cpu_multiplier** | **int** | Specify the number of SRV service worker threads per CPU. | [optional] +**srv_num_workers** | **int** | Set the maximum number of SRV service worker threads. | [optional] +**support_multichannel** | **bool** | Support multichannel. | [optional] +**support_netbios** | **bool** | Support NetBIOS. | [optional] +**support_smb2** | **bool** | Support the SMB2 protocol on the server. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSettingsGlobalSettingsAuditGlobalSaclItem.md b/docs/SmbSettingsGlobalSettingsAuditGlobalSaclItem.md new file mode 100644 index 000000000..aa8f0be26 --- /dev/null +++ b/docs/SmbSettingsGlobalSettingsAuditGlobalSaclItem.md @@ -0,0 +1,11 @@ +# SmbSettingsGlobalSettingsAuditGlobalSaclItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flags** | **str** | Determines if audit is performed on success or failure. | +**permission** | **list[str]** | Specifies the array of filesystem rights that are governed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSettingsShare.md b/docs/SmbSettingsShare.md new file mode 100644 index 000000000..3bd3b17e4 --- /dev/null +++ b/docs/SmbSettingsShare.md @@ -0,0 +1,10 @@ +# SmbSettingsShare + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**SmbSettingsShareSettings**](SmbSettingsShareSettings.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSettingsShareSettings.md b/docs/SmbSettingsShareSettings.md new file mode 100644 index 000000000..f33e6de99 --- /dev/null +++ b/docs/SmbSettingsShareSettings.md @@ -0,0 +1,37 @@ +# SmbSettingsShareSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_based_enumeration** | **bool** | Only enumerate files and folders the requesting user has access to. | [optional] +**access_based_enumeration_root_only** | **bool** | Access-based enumeration on only the root directory of the share. | [optional] +**allow_delete_readonly** | **bool** | Allow deletion of read-only files in the share. | [optional] +**allow_execute_always** | **bool** | Allows users to execute files they have read rights for. | [optional] +**ca_timeout** | **int** | Persistent open timeout for the share. | [optional] +**ca_write_integrity** | **str** | Specify the level of write-integrity on continuously available shares. | [optional] +**change_notify** | **str** | Specify level of change notification alerts on the share. | [optional] +**create_permissions** | **str** | Set the create permissions for new files and directories in share. | [optional] +**csc_policy** | **str** | Client-side caching policy for the shares. | [optional] +**directory_create_mask** | **int** | Unix umask or mode bits. | [optional] +**directory_create_mode** | **int** | Unix umask or mode bits. | [optional] +**file_create_mask** | **int** | Unix umask or mode bits. | [optional] +**file_create_mode** | **int** | Unix umask or mode bits. | [optional] +**file_filter_extensions** | **list[str]** | Specifies the list of file extensions. | [optional] +**file_filter_type** | **str** | Specifies if filter list is for deny or allow. Default is deny. | [optional] +**file_filtering_enabled** | **bool** | Enables file filtering on the share. | [optional] +**hide_dot_files** | **bool** | Hide files and directories that begin with a period '.'. | [optional] +**host_acl** | **list[str]** | An ACL expressing which hosts are allowed access. A deny clause must be the final entry. | [optional] +**impersonate_guest** | **str** | Specify the condition in which user access is done as the guest account. | [optional] +**impersonate_user** | **str** | User account to be used as guest account. | [optional] +**mangle_byte_start** | **int** | Specifies the wchar_t starting point for automatic byte mangling. | [optional] +**mangle_map** | **list[str]** | Character mangle map. | [optional] +**ntfs_acl_support** | **bool** | Support NTFS ACLs on files and directories. | [optional] +**oplocks** | **bool** | Allow oplock requests. | [optional] +**strict_ca_lockout** | **bool** | Specifies if persistent opens would do strict lockout on the share. | [optional] +**strict_flush** | **bool** | Handle SMB flush operations. | [optional] +**strict_locking** | **bool** | Specifies whether byte range locks contend against SMB I/O. | [optional] +**zone** | **str** | Name of the access zone in which to update settings | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbShare.md b/docs/SmbShare.md new file mode 100644 index 000000000..af0b308db --- /dev/null +++ b/docs/SmbShare.md @@ -0,0 +1,46 @@ +# SmbShare + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_based_enumeration** | **bool** | Only enumerate files and folders the requesting user has access to. | [optional] +**access_based_enumeration_root_only** | **bool** | Access-based enumeration on only the root directory of the share. | [optional] +**allow_delete_readonly** | **bool** | Allow deletion of read-only files in the share. | [optional] +**allow_execute_always** | **bool** | Allows users to execute files they have read rights for. | [optional] +**allow_variable_expansion** | **bool** | Allow automatic expansion of variables for home directories. | [optional] +**auto_create_directory** | **bool** | Automatically create home directories. | [optional] +**browsable** | **bool** | Share is visible in net view and the browse list. | [optional] +**ca_timeout** | **int** | Persistent open timeout for the share. | [optional] +**ca_write_integrity** | **str** | Specify the level of write-integrity on continuously available shares. | [optional] +**change_notify** | **str** | Level of change notification alerts on the share. | [optional] +**create_permissions** | **str** | Create permissions for new files and directories in share. | [optional] +**csc_policy** | **str** | Client-side caching policy for the shares. | [optional] +**description** | **str** | Description for this SMB share. | [optional] +**directory_create_mask** | **int** | Directory create mask bits. | [optional] +**directory_create_mode** | **int** | Directory create mode bits. | [optional] +**file_create_mask** | **int** | File create mask bits. | [optional] +**file_create_mode** | **int** | File create mode bits. | [optional] +**file_filter_extensions** | **list[str]** | Specifies the list of file extensions. | [optional] +**file_filter_type** | **str** | Specifies if filter list is for deny or allow. Default is deny. | [optional] +**file_filtering_enabled** | **bool** | Enables file filtering on this zone. | [optional] +**hide_dot_files** | **bool** | Hide files and directories that begin with a period '.'. | [optional] +**host_acl** | **list[str]** | An ACL expressing which hosts are allowed access. A deny clause must be the final entry. | [optional] +**impersonate_guest** | **str** | Specify the condition in which user access is done as the guest account. | [optional] +**impersonate_user** | **str** | User account to be used as guest account. | [optional] +**inheritable_path_acl** | **bool** | Set the inheritable ACL on the share path. | [optional] +**mangle_byte_start** | **int** | Specifies the wchar_t starting point for automatic byte mangling. | [optional] +**mangle_map** | **list[str]** | Character mangle map. | [optional] +**name** | **str** | Share name. | [optional] +**ntfs_acl_support** | **bool** | Support NTFS ACLs on files and directories. | [optional] +**oplocks** | **bool** | Support oplocks. | [optional] +**path** | **str** | Path of share within /ifs. | [optional] +**permissions** | [**list[SmbSharePermission]**](SmbSharePermission.md) | Specifies an ordered list of permission modifications. | [optional] +**run_as_root** | [**list[GroupMember]**](GroupMember.md) | Allow account to run as root. | [optional] +**strict_ca_lockout** | **bool** | Specifies if persistent opens would do strict lockout on the share. | [optional] +**strict_flush** | **bool** | Handle SMB flush operations. | [optional] +**strict_locking** | **bool** | Specifies whether byte range locks contend against SMB I/O. | [optional] +**zone** | **str** | Name of the access zone to which to move this SMB share | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbShareCreateParams.md b/docs/SmbShareCreateParams.md new file mode 100644 index 000000000..2f3b40795 --- /dev/null +++ b/docs/SmbShareCreateParams.md @@ -0,0 +1,48 @@ +# SmbShareCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_based_enumeration** | **bool** | Only enumerate files and folders the requesting user has access to. | [optional] +**access_based_enumeration_root_only** | **bool** | Access-based enumeration on only the root directory of the share. | [optional] +**allow_delete_readonly** | **bool** | Allow deletion of read-only files in the share. | [optional] +**allow_execute_always** | **bool** | Allows users to execute files they have read rights for. | [optional] +**allow_variable_expansion** | **bool** | Allow automatic expansion of variables for home directories. | [optional] +**auto_create_directory** | **bool** | Automatically create home directories. | [optional] +**browsable** | **bool** | Share is visible in net view and the browse list. | [optional] +**ca_timeout** | **int** | Persistent open timeout for the share. | [optional] +**ca_write_integrity** | **str** | Specify the level of write-integrity on continuously available shares. | [optional] +**change_notify** | **str** | Level of change notification alerts on the share. | [optional] +**create_permissions** | **str** | Create permissions for new files and directories in share. | [optional] +**csc_policy** | **str** | Client-side caching policy for the shares. | [optional] +**description** | **str** | Description for this SMB share. | [optional] +**directory_create_mask** | **int** | Directory create mask bits. | [optional] +**directory_create_mode** | **int** | Directory create mode bits. | [optional] +**file_create_mask** | **int** | File create mask bits. | [optional] +**file_create_mode** | **int** | File create mode bits. | [optional] +**file_filter_extensions** | **list[str]** | Specifies the list of file extensions. | [optional] +**file_filter_type** | **str** | Specifies if filter list is for deny or allow. Default is deny. | [optional] +**file_filtering_enabled** | **bool** | Enables file filtering on this zone. | [optional] +**hide_dot_files** | **bool** | Hide files and directories that begin with a period '.'. | [optional] +**host_acl** | **list[str]** | An ACL expressing which hosts are allowed access. A deny clause must be the final entry. | [optional] +**impersonate_guest** | **str** | Specify the condition in which user access is done as the guest account. | [optional] +**impersonate_user** | **str** | User account to be used as guest account. | [optional] +**inheritable_path_acl** | **bool** | Set the inheritable ACL on the share path. | [optional] +**mangle_byte_start** | **int** | Specifies the wchar_t starting point for automatic byte mangling. | [optional] +**mangle_map** | **list[str]** | Character mangle map. | [optional] +**name** | **str** | Share name. | [optional] +**ntfs_acl_support** | **bool** | Support NTFS ACLs on files and directories. | [optional] +**oplocks** | **bool** | Support oplocks. | [optional] +**path** | **str** | Path of share within /ifs. | [optional] +**permissions** | [**list[SmbSharePermission]**](SmbSharePermission.md) | Specifies an ordered list of permission modifications. | [optional] +**run_as_root** | [**list[GroupMember]**](GroupMember.md) | Allow account to run as root. | [optional] +**strict_ca_lockout** | **bool** | Specifies if persistent opens would do strict lockout on the share. | [optional] +**strict_flush** | **bool** | Handle SMB flush operations. | [optional] +**strict_locking** | **bool** | Specifies whether byte range locks contend against SMB I/O. | [optional] +**zone** | **str** | Name of the access zone to which to move this SMB share | [optional] +**continuously_available** | **bool** | Specify if persistent opens are allowed on the share. | [optional] +**create_path** | **bool** | Create path if does not exist. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbShareExtended.md b/docs/SmbShareExtended.md new file mode 100644 index 000000000..f6447faed --- /dev/null +++ b/docs/SmbShareExtended.md @@ -0,0 +1,48 @@ +# SmbShareExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_based_enumeration** | **bool** | Only enumerate files and folders the requesting user has access to. | [optional] +**access_based_enumeration_root_only** | **bool** | Access-based enumeration on only the root directory of the share. | [optional] +**allow_delete_readonly** | **bool** | Allow deletion of read-only files in the share. | [optional] +**allow_execute_always** | **bool** | Allows users to execute files they have read rights for. | [optional] +**allow_variable_expansion** | **bool** | Allow automatic expansion of variables for home directories. | [optional] +**auto_create_directory** | **bool** | Automatically create home directories. | [optional] +**browsable** | **bool** | Share is visible in net view and the browse list. | [optional] +**ca_timeout** | **int** | Persistent open timeout for the share. | [optional] +**ca_write_integrity** | **str** | Specify the level of write-integrity on continuously available shares. | [optional] +**change_notify** | **str** | Level of change notification alerts on the share. | [optional] +**continuously_available** | **bool** | Specify if persistent opens are allowed on the share. | [optional] +**create_permissions** | **str** | Create permissions for new files and directories in share. | [optional] +**csc_policy** | **str** | Client-side caching policy for the shares. | [optional] +**description** | **str** | Description for this SMB share. | [optional] +**directory_create_mask** | **int** | Directory create mask bits. | [optional] +**directory_create_mode** | **int** | Directory create mode bits. | [optional] +**file_create_mask** | **int** | File create mask bits. | [optional] +**file_create_mode** | **int** | File create mode bits. | [optional] +**file_filter_extensions** | **list[str]** | Specifies the list of file extensions. | [optional] +**file_filter_type** | **str** | Specifies if filter list is for deny or allow. Default is deny. | [optional] +**file_filtering_enabled** | **bool** | Enables file filtering on this zone. | [optional] +**hide_dot_files** | **bool** | Hide files and directories that begin with a period '.'. | [optional] +**host_acl** | **list[str]** | An ACL expressing which hosts are allowed access. A deny clause must be the final entry. | [optional] +**id** | **str** | Share ID. | +**impersonate_guest** | **str** | Specify the condition in which user access is done as the guest account. | [optional] +**impersonate_user** | **str** | User account to be used as guest account. | [optional] +**inheritable_path_acl** | **bool** | Set the inheritable ACL on the share path. | [optional] +**mangle_byte_start** | **int** | Specifies the wchar_t starting point for automatic byte mangling. | [optional] +**mangle_map** | **list[str]** | Character mangle map. | [optional] +**name** | **str** | Share name. | +**ntfs_acl_support** | **bool** | Support NTFS ACLs on files and directories. | [optional] +**oplocks** | **bool** | Support oplocks. | [optional] +**path** | **str** | Path of share within /ifs. | +**permissions** | [**list[SmbSharePermission]**](SmbSharePermission.md) | Specifies an ordered list of permission modifications. | [optional] +**run_as_root** | [**list[GroupMember]**](GroupMember.md) | Allow account to run as root. | [optional] +**strict_ca_lockout** | **bool** | Specifies if persistent opens would do strict lockout on the share. | [optional] +**strict_flush** | **bool** | Handle SMB flush operations. | [optional] +**strict_locking** | **bool** | Specifies whether byte range locks contend against SMB I/O. | [optional] +**zid** | **int** | Numeric ID of the access zone which contains this SMB share | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSharePermission.md b/docs/SmbSharePermission.md new file mode 100644 index 000000000..8f239f8be --- /dev/null +++ b/docs/SmbSharePermission.md @@ -0,0 +1,12 @@ +# SmbSharePermission + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permission** | **str** | Specifies the file system rights that are allowed or denied. | +**permission_type** | **str** | Determines whether the permission is allowed or denied. | +**trustee** | [**GroupMember**](GroupMember.md) | Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbShares.md b/docs/SmbShares.md new file mode 100644 index 000000000..27c3dbf98 --- /dev/null +++ b/docs/SmbShares.md @@ -0,0 +1,10 @@ +# SmbShares + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**list[SmbShareExtended]**](SmbShareExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSharesExtended.md b/docs/SmbSharesExtended.md new file mode 100644 index 000000000..55c877268 --- /dev/null +++ b/docs/SmbSharesExtended.md @@ -0,0 +1,12 @@ +# SmbSharesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shares** | [**list[SmbShareExtended]**](SmbShareExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSharesSummary.md b/docs/SmbSharesSummary.md new file mode 100644 index 000000000..fd723a736 --- /dev/null +++ b/docs/SmbSharesSummary.md @@ -0,0 +1,10 @@ +# SmbSharesSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**SmbSharesSummarySummary**](SmbSharesSummarySummary.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SmbSharesSummarySummary.md b/docs/SmbSharesSummarySummary.md new file mode 100644 index 000000000..a7781386d --- /dev/null +++ b/docs/SmbSharesSummarySummary.md @@ -0,0 +1,10 @@ +# SmbSharesSummarySummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Total number of shares. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotAliase.md b/docs/SnapshotAliase.md new file mode 100644 index 000000000..80eac60ff --- /dev/null +++ b/docs/SnapshotAliase.md @@ -0,0 +1,11 @@ +# SnapshotAliase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The user or system supplied snapshot alias name. | [optional] +**target** | **str** | Target snapshot for this snapshot alias. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotAliaseCreateParams.md b/docs/SnapshotAliaseCreateParams.md new file mode 100644 index 000000000..6d09a29c3 --- /dev/null +++ b/docs/SnapshotAliaseCreateParams.md @@ -0,0 +1,11 @@ +# SnapshotAliaseCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The user or system supplied snapshot alias name. | [optional] +**target** | **str** | Target snapshot for this snapshot alias. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotAliaseExtended.md b/docs/SnapshotAliaseExtended.md new file mode 100644 index 000000000..d9bbd745b --- /dev/null +++ b/docs/SnapshotAliaseExtended.md @@ -0,0 +1,14 @@ +# SnapshotAliaseExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | **int** | The Unix Epoch time the snapshot alias was created. | +**id** | **int** | The system ID given to the snapshot alias. | +**name** | **str** | The user or system supplied snapshot alias name. | +**target_id** | **int** | The ID of the snapshot pointed to. | +**target_name** | **str** | The name of the snapshot pointed to. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotAliases.md b/docs/SnapshotAliases.md new file mode 100644 index 000000000..df0d3799a --- /dev/null +++ b/docs/SnapshotAliases.md @@ -0,0 +1,10 @@ +# SnapshotAliases + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aliases** | [**list[SnapshotAliaseExtended]**](SnapshotAliaseExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotAliasesExtended.md b/docs/SnapshotAliasesExtended.md new file mode 100644 index 000000000..2c1294286 --- /dev/null +++ b/docs/SnapshotAliasesExtended.md @@ -0,0 +1,12 @@ +# SnapshotAliasesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aliases** | [**list[SnapshotAliaseExtended]**](SnapshotAliaseExtended.md) | | [optional] +**resume** | **str** | Resume token value to use in subsequent calls for continuation. | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotApi.md b/docs/SnapshotApi.md new file mode 100644 index 000000000..c97183846 --- /dev/null +++ b/docs/SnapshotApi.md @@ -0,0 +1,1589 @@ +# isi_sdk.SnapshotApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_snapshot_aliase**](SnapshotApi.md#create_snapshot_aliase) | **POST** /platform/1/snapshot/aliases | +[**create_snapshot_changelist**](SnapshotApi.md#create_snapshot_changelist) | **POST** /platform/1/snapshot/changelists | +[**create_snapshot_repstate**](SnapshotApi.md#create_snapshot_repstate) | **POST** /platform/1/snapshot/repstates | +[**create_snapshot_schedule**](SnapshotApi.md#create_snapshot_schedule) | **POST** /platform/3/snapshot/schedules | +[**create_snapshot_snapshot**](SnapshotApi.md#create_snapshot_snapshot) | **POST** /platform/1/snapshot/snapshots | +[**delete_snapshot_aliase**](SnapshotApi.md#delete_snapshot_aliase) | **DELETE** /platform/1/snapshot/aliases/{SnapshotAliaseId} | +[**delete_snapshot_aliases**](SnapshotApi.md#delete_snapshot_aliases) | **DELETE** /platform/1/snapshot/aliases | +[**delete_snapshot_changelist**](SnapshotApi.md#delete_snapshot_changelist) | **DELETE** /platform/1/snapshot/changelists/{SnapshotChangelistId} | +[**delete_snapshot_repstate**](SnapshotApi.md#delete_snapshot_repstate) | **DELETE** /platform/1/snapshot/repstates/{SnapshotRepstateId} | +[**delete_snapshot_schedule**](SnapshotApi.md#delete_snapshot_schedule) | **DELETE** /platform/3/snapshot/schedules/{SnapshotScheduleId} | +[**delete_snapshot_schedules**](SnapshotApi.md#delete_snapshot_schedules) | **DELETE** /platform/3/snapshot/schedules | +[**delete_snapshot_snapshot**](SnapshotApi.md#delete_snapshot_snapshot) | **DELETE** /platform/1/snapshot/snapshots/{SnapshotSnapshotId} | +[**delete_snapshot_snapshots**](SnapshotApi.md#delete_snapshot_snapshots) | **DELETE** /platform/1/snapshot/snapshots | +[**get_snapshot_aliase**](SnapshotApi.md#get_snapshot_aliase) | **GET** /platform/1/snapshot/aliases/{SnapshotAliaseId} | +[**get_snapshot_changelist**](SnapshotApi.md#get_snapshot_changelist) | **GET** /platform/1/snapshot/changelists/{SnapshotChangelistId} | +[**get_snapshot_license**](SnapshotApi.md#get_snapshot_license) | **GET** /platform/1/snapshot/license | +[**get_snapshot_pending**](SnapshotApi.md#get_snapshot_pending) | **GET** /platform/1/snapshot/pending | +[**get_snapshot_repstate**](SnapshotApi.md#get_snapshot_repstate) | **GET** /platform/1/snapshot/repstates/{SnapshotRepstateId} | +[**get_snapshot_schedule**](SnapshotApi.md#get_snapshot_schedule) | **GET** /platform/3/snapshot/schedules/{SnapshotScheduleId} | +[**get_snapshot_settings**](SnapshotApi.md#get_snapshot_settings) | **GET** /platform/1/snapshot/settings | +[**get_snapshot_snapshot**](SnapshotApi.md#get_snapshot_snapshot) | **GET** /platform/1/snapshot/snapshots/{SnapshotSnapshotId} | +[**get_snapshot_snapshots_summary**](SnapshotApi.md#get_snapshot_snapshots_summary) | **GET** /platform/1/snapshot/snapshots-summary | +[**list_snapshot_aliases**](SnapshotApi.md#list_snapshot_aliases) | **GET** /platform/1/snapshot/aliases | +[**list_snapshot_changelists**](SnapshotApi.md#list_snapshot_changelists) | **GET** /platform/1/snapshot/changelists | +[**list_snapshot_repstates**](SnapshotApi.md#list_snapshot_repstates) | **GET** /platform/1/snapshot/repstates | +[**list_snapshot_schedules**](SnapshotApi.md#list_snapshot_schedules) | **GET** /platform/3/snapshot/schedules | +[**list_snapshot_snapshots**](SnapshotApi.md#list_snapshot_snapshots) | **GET** /platform/1/snapshot/snapshots | +[**update_snapshot_aliase**](SnapshotApi.md#update_snapshot_aliase) | **PUT** /platform/1/snapshot/aliases/{SnapshotAliaseId} | +[**update_snapshot_schedule**](SnapshotApi.md#update_snapshot_schedule) | **PUT** /platform/3/snapshot/schedules/{SnapshotScheduleId} | +[**update_snapshot_settings**](SnapshotApi.md#update_snapshot_settings) | **PUT** /platform/1/snapshot/settings | +[**update_snapshot_snapshot**](SnapshotApi.md#update_snapshot_snapshot) | **PUT** /platform/1/snapshot/snapshots/{SnapshotSnapshotId} | + + +# **create_snapshot_aliase** +> CreateSnapshotAliaseResponse create_snapshot_aliase(snapshot_aliase) + + + +Create a new snapshot alias. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_aliase = isi_sdk.SnapshotAliaseCreateParams() # SnapshotAliaseCreateParams | + +try: + api_response = api_instance.create_snapshot_aliase(snapshot_aliase) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->create_snapshot_aliase: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_aliase** | [**SnapshotAliaseCreateParams**](SnapshotAliaseCreateParams.md)| | + +### Return type + +[**CreateSnapshotAliaseResponse**](CreateSnapshotAliaseResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_snapshot_changelist** +> CreateSnapshotChangelistResponse create_snapshot_changelist(snapshot_changelist) + + + +Create a new changelist. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_changelist = isi_sdk.SnapshotChangelists() # SnapshotChangelists | + +try: + api_response = api_instance.create_snapshot_changelist(snapshot_changelist) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->create_snapshot_changelist: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_changelist** | [**SnapshotChangelists**](SnapshotChangelists.md)| | + +### Return type + +[**CreateSnapshotChangelistResponse**](CreateSnapshotChangelistResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_snapshot_repstate** +> CreateSnapshotRepstateResponse create_snapshot_repstate(snapshot_repstate) + + + +Create a new repstates. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_repstate = isi_sdk.SnapshotRepstates() # SnapshotRepstates | + +try: + api_response = api_instance.create_snapshot_repstate(snapshot_repstate) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->create_snapshot_repstate: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_repstate** | [**SnapshotRepstates**](SnapshotRepstates.md)| | + +### Return type + +[**CreateSnapshotRepstateResponse**](CreateSnapshotRepstateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_snapshot_schedule** +> CreateSnapshotScheduleResponse create_snapshot_schedule(snapshot_schedule) + + + +Create a new schedule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_schedule = isi_sdk.SnapshotSchedule() # SnapshotSchedule | + +try: + api_response = api_instance.create_snapshot_schedule(snapshot_schedule) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->create_snapshot_schedule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_schedule** | [**SnapshotSchedule**](SnapshotSchedule.md)| | + +### Return type + +[**CreateSnapshotScheduleResponse**](CreateSnapshotScheduleResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_snapshot_snapshot** +> CreateSnapshotSnapshotResponse create_snapshot_snapshot(snapshot_snapshot) + + + +Create a new snapshot. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_snapshot = isi_sdk.SnapshotSnapshotCreateParams() # SnapshotSnapshotCreateParams | + +try: + api_response = api_instance.create_snapshot_snapshot(snapshot_snapshot) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->create_snapshot_snapshot: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_snapshot** | [**SnapshotSnapshotCreateParams**](SnapshotSnapshotCreateParams.md)| | + +### Return type + +[**CreateSnapshotSnapshotResponse**](CreateSnapshotSnapshotResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_aliase** +> delete_snapshot_aliase(snapshot_aliase_id) + + + +Delete the snapshot alias + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_aliase_id = 'snapshot_aliase_id_example' # str | Delete the snapshot alias + +try: + api_instance.delete_snapshot_aliase(snapshot_aliase_id) +except ApiException as e: + print "Exception when calling SnapshotApi->delete_snapshot_aliase: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_aliase_id** | **str**| Delete the snapshot alias | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_aliases** +> delete_snapshot_aliases() + + + +Delete all or matching snapshot aliases. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() + +try: + api_instance.delete_snapshot_aliases() +except ApiException as e: + print "Exception when calling SnapshotApi->delete_snapshot_aliases: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_changelist** +> delete_snapshot_changelist(snapshot_changelist_id) + + + +Delete the specified changelist. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_changelist_id = 'snapshot_changelist_id_example' # str | Delete the specified changelist. + +try: + api_instance.delete_snapshot_changelist(snapshot_changelist_id) +except ApiException as e: + print "Exception when calling SnapshotApi->delete_snapshot_changelist: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_changelist_id** | **str**| Delete the specified changelist. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_repstate** +> delete_snapshot_repstate(snapshot_repstate_id) + + + +Delete the specified repstate. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_repstate_id = 'snapshot_repstate_id_example' # str | Delete the specified repstate. + +try: + api_instance.delete_snapshot_repstate(snapshot_repstate_id) +except ApiException as e: + print "Exception when calling SnapshotApi->delete_snapshot_repstate: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_repstate_id** | **str**| Delete the specified repstate. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_schedule** +> delete_snapshot_schedule(snapshot_schedule_id) + + + +Delete the schedule. This does not affect already created snapshots. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_schedule_id = 'snapshot_schedule_id_example' # str | Delete the schedule. This does not affect already created snapshots. + +try: + api_instance.delete_snapshot_schedule(snapshot_schedule_id) +except ApiException as e: + print "Exception when calling SnapshotApi->delete_snapshot_schedule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_schedule_id** | **str**| Delete the schedule. This does not affect already created snapshots. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_schedules** +> delete_snapshot_schedules() + + + +Delete all snapshot schedules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() + +try: + api_instance.delete_snapshot_schedules() +except ApiException as e: + print "Exception when calling SnapshotApi->delete_snapshot_schedules: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_snapshot** +> delete_snapshot_snapshot(snapshot_snapshot_id) + + + +Delete the snapshot. Deleted snapshots will be placed into a deleting state until the system can reclaim the space used by the snapshot. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_snapshot_id = 'snapshot_snapshot_id_example' # str | Delete the snapshot. Deleted snapshots will be placed into a deleting state until the system can reclaim the space used by the snapshot. + +try: + api_instance.delete_snapshot_snapshot(snapshot_snapshot_id) +except ApiException as e: + print "Exception when calling SnapshotApi->delete_snapshot_snapshot: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_snapshot_id** | **str**| Delete the snapshot. Deleted snapshots will be placed into a deleting state until the system can reclaim the space used by the snapshot. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_snapshots** +> delete_snapshot_snapshots(type=type, schedule=schedule) + + + +Delete all or matching snapshots. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +type = 'type_example' # str | Only list snapshots matching this type. (optional) +schedule = 'schedule_example' # str | Only list snapshots created by this schedule. (optional) + +try: + api_instance.delete_snapshot_snapshots(type=type, schedule=schedule) +except ApiException as e: + print "Exception when calling SnapshotApi->delete_snapshot_snapshots: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **str**| Only list snapshots matching this type. | [optional] + **schedule** | **str**| Only list snapshots created by this schedule. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_aliase** +> SnapshotAliases get_snapshot_aliase(snapshot_aliase_id) + + + +Retrieve snapshot alias information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_aliase_id = 'snapshot_aliase_id_example' # str | Retrieve snapshot alias information. + +try: + api_response = api_instance.get_snapshot_aliase(snapshot_aliase_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_aliase: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_aliase_id** | **str**| Retrieve snapshot alias information. | + +### Return type + +[**SnapshotAliases**](SnapshotAliases.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_changelist** +> SnapshotChangelists get_snapshot_changelist(snapshot_changelist_id) + + + +Retrieve basic information on a changelist. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_changelist_id = 'snapshot_changelist_id_example' # str | Retrieve basic information on a changelist. + +try: + api_response = api_instance.get_snapshot_changelist(snapshot_changelist_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_changelist: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_changelist_id** | **str**| Retrieve basic information on a changelist. | + +### Return type + +[**SnapshotChangelists**](SnapshotChangelists.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_license** +> LicenseLicense get_snapshot_license() + + + +Retrieve license information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() + +try: + api_response = api_instance.get_snapshot_license() + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_license: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**LicenseLicense**](LicenseLicense.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_pending** +> SnapshotPending get_snapshot_pending(limit=limit, begin=begin, schedule=schedule, end=end, resume=resume) + + + +Return list of snapshots to be taken. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +limit = 56 # int | Return no more than this many result at once (see resume). (optional) +begin = 56 # int | Unix Epoch time to start generating matches. Default is now. (optional) +schedule = 'schedule_example' # str | Limit output only to the named schedule. (optional) +end = 56 # int | Unix Epoch time to end generating matches. Default is forever. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_snapshot_pending(limit=limit, begin=begin, schedule=schedule, end=end, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_pending: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| Return no more than this many result at once (see resume). | [optional] + **begin** | **int**| Unix Epoch time to start generating matches. Default is now. | [optional] + **schedule** | **str**| Limit output only to the named schedule. | [optional] + **end** | **int**| Unix Epoch time to end generating matches. Default is forever. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SnapshotPending**](SnapshotPending.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_repstate** +> SnapshotRepstates get_snapshot_repstate(snapshot_repstate_id) + + + +Retrieve basic information on a repstate. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_repstate_id = 'snapshot_repstate_id_example' # str | Retrieve basic information on a repstate. + +try: + api_response = api_instance.get_snapshot_repstate(snapshot_repstate_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_repstate: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_repstate_id** | **str**| Retrieve basic information on a repstate. | + +### Return type + +[**SnapshotRepstates**](SnapshotRepstates.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_schedule** +> SnapshotSchedules get_snapshot_schedule(snapshot_schedule_id) + + + +Retrieve the schedule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_schedule_id = 'snapshot_schedule_id_example' # str | Retrieve the schedule. + +try: + api_response = api_instance.get_snapshot_schedule(snapshot_schedule_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_schedule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_schedule_id** | **str**| Retrieve the schedule. | + +### Return type + +[**SnapshotSchedules**](SnapshotSchedules.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_settings** +> SnapshotSettings get_snapshot_settings() + + + +List all settings + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() + +try: + api_response = api_instance.get_snapshot_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SnapshotSettings**](SnapshotSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_snapshot** +> SnapshotSnapshots get_snapshot_snapshot(snapshot_snapshot_id) + + + +Retrieve snapshot information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_snapshot_id = 'snapshot_snapshot_id_example' # str | Retrieve snapshot information. + +try: + api_response = api_instance.get_snapshot_snapshot(snapshot_snapshot_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_snapshot: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_snapshot_id** | **str**| Retrieve snapshot information. | + +### Return type + +[**SnapshotSnapshots**](SnapshotSnapshots.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_snapshots_summary** +> SnapshotSnapshotsSummary get_snapshot_snapshots_summary() + + + +Return summary information about snapshots. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() + +try: + api_response = api_instance.get_snapshot_snapshots_summary() + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->get_snapshot_snapshots_summary: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SnapshotSnapshotsSummary**](SnapshotSnapshotsSummary.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_snapshot_aliases** +> SnapshotAliasesExtended list_snapshot_aliases(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List all or matching snapshot aliases. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +sort = 'sort_example' # str | The field that will be used for sorting. Choices are id, name, snapshot, and created. Default is id. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_snapshot_aliases(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->list_snapshot_aliases: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. Choices are id, name, snapshot, and created. Default is id. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SnapshotAliasesExtended**](SnapshotAliasesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_snapshot_changelists** +> SnapshotChangelistsExtended list_snapshot_changelists() + + + +List all changelists. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() + +try: + api_response = api_instance.list_snapshot_changelists() + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->list_snapshot_changelists: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SnapshotChangelistsExtended**](SnapshotChangelistsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_snapshot_repstates** +> SnapshotRepstatesExtended list_snapshot_repstates() + + + +List all repstates. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() + +try: + api_response = api_instance.list_snapshot_repstates() + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->list_snapshot_repstates: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SnapshotRepstatesExtended**](SnapshotRepstatesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_snapshot_schedules** +> SnapshotSchedulesExtended list_snapshot_schedules(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List all or matching schedules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +sort = 'sort_example' # str | The field that will be used for sorting. Choices are id, name, path, pattern, schedule, duration, alias, next_run, and next_snapshot. Default is id. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_snapshot_schedules(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->list_snapshot_schedules: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. Choices are id, name, path, pattern, schedule, duration, alias, next_run, and next_snapshot. Default is id. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SnapshotSchedulesExtended**](SnapshotSchedulesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_snapshot_snapshots** +> SnapshotSnapshotsExtended list_snapshot_snapshots(sort=sort, schedule=schedule, resume=resume, state=state, limit=limit, type=type, dir=dir) + + + +List all or matching snapshots. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +sort = 'sort_example' # str | The field that will be used for sorting. Choices are id, name, path, created, expires, size, has_locks, schedule, alias_target, alias_target_name, pct_filesystem, pct_reserve, and state. Default is id. (optional) +schedule = 'schedule_example' # str | Only list snapshots created by this schedule. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +state = 'state_example' # str | Only list snapshots matching this state. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +type = 'type_example' # str | Only list snapshots matching this type. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.list_snapshot_snapshots(sort=sort, schedule=schedule, resume=resume, state=state, limit=limit, type=type, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotApi->list_snapshot_snapshots: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. Choices are id, name, path, created, expires, size, has_locks, schedule, alias_target, alias_target_name, pct_filesystem, pct_reserve, and state. Default is id. | [optional] + **schedule** | **str**| Only list snapshots created by this schedule. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **state** | **str**| Only list snapshots matching this state. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **type** | **str**| Only list snapshots matching this type. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**SnapshotSnapshotsExtended**](SnapshotSnapshotsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_snapshot_aliase** +> update_snapshot_aliase(snapshot_aliase, snapshot_aliase_id) + + + +Modify snapshot alias. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_aliase = isi_sdk.SnapshotAliase() # SnapshotAliase | +snapshot_aliase_id = 'snapshot_aliase_id_example' # str | Modify snapshot alias. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_snapshot_aliase(snapshot_aliase, snapshot_aliase_id) +except ApiException as e: + print "Exception when calling SnapshotApi->update_snapshot_aliase: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_aliase** | [**SnapshotAliase**](SnapshotAliase.md)| | + **snapshot_aliase_id** | **str**| Modify snapshot alias. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_snapshot_schedule** +> update_snapshot_schedule(snapshot_schedule, snapshot_schedule_id) + + + +Modify the schedule. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_schedule = isi_sdk.SnapshotSchedule() # SnapshotSchedule | +snapshot_schedule_id = 'snapshot_schedule_id_example' # str | Modify the schedule. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_snapshot_schedule(snapshot_schedule, snapshot_schedule_id) +except ApiException as e: + print "Exception when calling SnapshotApi->update_snapshot_schedule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_schedule** | [**SnapshotSchedule**](SnapshotSchedule.md)| | + **snapshot_schedule_id** | **str**| Modify the schedule. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_snapshot_settings** +> update_snapshot_settings(snapshot_settings) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_settings = isi_sdk.SnapshotSettingsSettings() # SnapshotSettingsSettings | + +try: + api_instance.update_snapshot_settings(snapshot_settings) +except ApiException as e: + print "Exception when calling SnapshotApi->update_snapshot_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_settings** | [**SnapshotSettingsSettings**](SnapshotSettingsSettings.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_snapshot_snapshot** +> update_snapshot_snapshot(snapshot_snapshot, snapshot_snapshot_id) + + + +Modify snapshot. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotApi() +snapshot_snapshot = isi_sdk.SnapshotSnapshot() # SnapshotSnapshot | +snapshot_snapshot_id = 'snapshot_snapshot_id_example' # str | Modify snapshot. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_snapshot_snapshot(snapshot_snapshot, snapshot_snapshot_id) +except ApiException as e: + print "Exception when calling SnapshotApi->update_snapshot_snapshot: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_snapshot** | [**SnapshotSnapshot**](SnapshotSnapshot.md)| | + **snapshot_snapshot_id** | **str**| Modify snapshot. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SnapshotChangelists.md b/docs/SnapshotChangelists.md new file mode 100644 index 000000000..4b69f0ddc --- /dev/null +++ b/docs/SnapshotChangelists.md @@ -0,0 +1,16 @@ +# SnapshotChangelists + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The system ID given to the changelist. | +**job_id** | **int** | The ID of the job which created the changelist. | +**num_entries** | **int** | Number of LIN entries in changelist. | [optional] +**root_path** | **str** | Root path of all LINs in changelist. | +**snap1** | **int** | The lower snapid used to compute the changelist. | +**snap2** | **int** | The higher snapid used to compute the changelist. | +**status** | **str** | Status of changelist. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotChangelistsApi.md b/docs/SnapshotChangelistsApi.md new file mode 100644 index 000000000..33cc11b5c --- /dev/null +++ b/docs/SnapshotChangelistsApi.md @@ -0,0 +1,112 @@ +# isi_sdk.SnapshotChangelistsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_changelist_lin**](SnapshotChangelistsApi.md#get_changelist_lin) | **GET** /platform/1/snapshot/changelists/{Changelist}/lins/{ChangelistLinId} | +[**get_changelist_lins**](SnapshotChangelistsApi.md#get_changelist_lins) | **GET** /platform/1/snapshot/changelists/{Changelist}/lins | + + +# **get_changelist_lin** +> ChangelistLins get_changelist_lin(changelist_lin_id, changelist) + + + +Get a single entry from the changelist. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotChangelistsApi() +changelist_lin_id = 56 # int | Get a single entry from the changelist. +changelist = 'changelist_example' # str | + +try: + api_response = api_instance.get_changelist_lin(changelist_lin_id, changelist) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotChangelistsApi->get_changelist_lin: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **changelist_lin_id** | **int**| Get a single entry from the changelist. | + **changelist** | **str**| | + +### Return type + +[**ChangelistLins**](ChangelistLins.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_changelist_lins** +> ChangelistLinsExtended get_changelist_lins(changelist) + + + +Get entries from a changelist. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotChangelistsApi() +changelist = 'changelist_example' # str | + +try: + api_response = api_instance.get_changelist_lins(changelist) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotChangelistsApi->get_changelist_lins: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **changelist** | **str**| | + +### Return type + +[**ChangelistLinsExtended**](ChangelistLinsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SnapshotChangelistsExtended.md b/docs/SnapshotChangelistsExtended.md new file mode 100644 index 000000000..b751e3776 --- /dev/null +++ b/docs/SnapshotChangelistsExtended.md @@ -0,0 +1,12 @@ +# SnapshotChangelistsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changelists** | [**list[SnapshotChangelists]**](SnapshotChangelists.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotLock.md b/docs/SnapshotLock.md new file mode 100644 index 000000000..414e8cdcd --- /dev/null +++ b/docs/SnapshotLock.md @@ -0,0 +1,10 @@ +# SnapshotLock + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expires** | **int** | The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotLockCreateParams.md b/docs/SnapshotLockCreateParams.md new file mode 100644 index 000000000..5605d08e4 --- /dev/null +++ b/docs/SnapshotLockCreateParams.md @@ -0,0 +1,11 @@ +# SnapshotLockCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expires** | **int** | The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. | [optional] +**comment** | **str** | Free form comment. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotLockExtended.md b/docs/SnapshotLockExtended.md new file mode 100644 index 000000000..b9d4db72e --- /dev/null +++ b/docs/SnapshotLockExtended.md @@ -0,0 +1,13 @@ +# SnapshotLockExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expires** | **int** | The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. | [optional] +**comment** | **str** | User supplied lock comment. | [optional] +**count** | **int** | Recursive lock count. | [optional] +**id** | **int** | System generated lock ID. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotLocks.md b/docs/SnapshotLocks.md new file mode 100644 index 000000000..45cf56db4 --- /dev/null +++ b/docs/SnapshotLocks.md @@ -0,0 +1,10 @@ +# SnapshotLocks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**locks** | [**list[SnapshotLockExtended]**](SnapshotLockExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotLocksExtended.md b/docs/SnapshotLocksExtended.md new file mode 100644 index 000000000..283d79567 --- /dev/null +++ b/docs/SnapshotLocksExtended.md @@ -0,0 +1,12 @@ +# SnapshotLocksExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**locks** | [**list[SnapshotLockExtended]**](SnapshotLockExtended.md) | | [optional] +**resume** | **str** | Resume token value to use in subsequent calls for continuation. | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotPending.md b/docs/SnapshotPending.md new file mode 100644 index 000000000..928b192c9 --- /dev/null +++ b/docs/SnapshotPending.md @@ -0,0 +1,11 @@ +# SnapshotPending + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pending** | [**list[SnapshotPendingPendingItem]**](SnapshotPendingPendingItem.md) | | [optional] +**resume** | **str** | Resume token value to use in subsequent calls for continuation. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotPendingPendingItem.md b/docs/SnapshotPendingPendingItem.md new file mode 100644 index 000000000..0f6b6185e --- /dev/null +++ b/docs/SnapshotPendingPendingItem.md @@ -0,0 +1,14 @@ +# SnapshotPendingPendingItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The system supplied unique ID used for sorting and paging. | +**path** | **str** | The /ifs path that will snapshotted. | +**schedule** | **str** | The name of the schedule used to create this snapshot. | +**snapshot** | **str** | The system snapshot name formed from the schedule formate. | +**time** | **int** | The Unix Epoch time the snapshot will be created. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotRepstates.md b/docs/SnapshotRepstates.md new file mode 100644 index 000000000..2f8cc6933 --- /dev/null +++ b/docs/SnapshotRepstates.md @@ -0,0 +1,12 @@ +# SnapshotRepstates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The system ID given to the repstate. | +**snap1** | **int** | The lower snapid used to compute the repstate. | +**snap2** | **int** | The higher snapid used to compute the repstate. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotRepstatesExtended.md b/docs/SnapshotRepstatesExtended.md new file mode 100644 index 000000000..081146ed4 --- /dev/null +++ b/docs/SnapshotRepstatesExtended.md @@ -0,0 +1,12 @@ +# SnapshotRepstatesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**repstates** | [**list[SnapshotRepstates]**](SnapshotRepstates.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSchedule.md b/docs/SnapshotSchedule.md new file mode 100644 index 000000000..4234c3a91 --- /dev/null +++ b/docs/SnapshotSchedule.md @@ -0,0 +1,15 @@ +# SnapshotSchedule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | **str** | Alias name to create for each snapshot. | [optional] +**duration** | **int** | Time in seconds added to creation time to construction expiration time. | [optional] +**name** | **str** | The schedule name. | [optional] +**path** | **str** | The /ifs path snapshotted. | [optional] +**pattern** | **str** | Pattern expanded with strftime to create snapshot names. | [optional] +**schedule** | **str** | The isidate compatible natural language description of the schedule. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotScheduleExtended.md b/docs/SnapshotScheduleExtended.md new file mode 100644 index 000000000..33b66b867 --- /dev/null +++ b/docs/SnapshotScheduleExtended.md @@ -0,0 +1,18 @@ +# SnapshotScheduleExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | **str** | Alias name to create for each snapshot. | [optional] +**duration** | **int** | Time in seconds added to creation time to construction expiration time. | [optional] +**name** | **str** | The schedule name. | [optional] +**path** | **str** | The /ifs path snapshotted. | [optional] +**pattern** | **str** | Pattern expanded with strftime to create snapshot names. | [optional] +**schedule** | **str** | The isidate compatible natural language description of the schedule. | [optional] +**id** | **int** | The system ID given to the schedule. | [optional] +**next_run** | **int** | Unix Epoch time of next snapshot to be created. | [optional] +**next_snapshot** | **str** | Formatted name (see pattern) of next snapshot to be created. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSchedules.md b/docs/SnapshotSchedules.md new file mode 100644 index 000000000..49541c69d --- /dev/null +++ b/docs/SnapshotSchedules.md @@ -0,0 +1,10 @@ +# SnapshotSchedules + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**schedules** | [**list[SnapshotScheduleExtended]**](SnapshotScheduleExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSchedulesExtended.md b/docs/SnapshotSchedulesExtended.md new file mode 100644 index 000000000..5e94ee1e5 --- /dev/null +++ b/docs/SnapshotSchedulesExtended.md @@ -0,0 +1,12 @@ +# SnapshotSchedulesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**schedules** | [**list[SnapshotScheduleExtended]**](SnapshotScheduleExtended.md) | | [optional] +**resume** | **str** | Resume token value to use in subsequent calls for continuation. | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSettings.md b/docs/SnapshotSettings.md new file mode 100644 index 000000000..cf26659bc --- /dev/null +++ b/docs/SnapshotSettings.md @@ -0,0 +1,10 @@ +# SnapshotSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**SnapshotSettingsSettings**](SnapshotSettingsSettings.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSettingsSettings.md b/docs/SnapshotSettingsSettings.md new file mode 100644 index 000000000..5e29525e5 --- /dev/null +++ b/docs/SnapshotSettingsSettings.md @@ -0,0 +1,23 @@ +# SnapshotSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autocreate** | **bool** | True if the scheduled snapshot creation services is on. | +**autodelete** | **bool** | True if the scheduled snapshot deletion services is on. | +**global_visible_accessible** | **bool** | Global switch for other accessible and visible settings. | +**local_root_accessible** | **bool** | True if root .snapshot directory is accessible locally. | +**local_root_visible** | **bool** | True if root .snapshot directory is visible locally. | +**local_subdir_accessible** | **bool** | True if sub-directory .snapshot directory is accessible locally. | +**nfs_root_accessible** | **bool** | True if root .snapshot directory is accessible over NFS. | +**nfs_root_visible** | **bool** | True if root .snapshot directory is visible over NFS. | +**nfs_subdir_accessible** | **bool** | True if sub-directory .snapshot directory is accessible over NFS. | +**reserve** | **float** | Percentage of space to reserve for snapshots. | +**service** | **bool** | True if the system allows snapshot creation. | +**smb_root_accessible** | **bool** | True if root .snapshot directory is accessible over SMB. | +**smb_root_visible** | **bool** | True if root .snapshot directory is visible over SMB. | +**smb_subdir_accessible** | **bool** | True if sub-directory .snapshot directory is accessible over SMB. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSnapshot.md b/docs/SnapshotSnapshot.md new file mode 100644 index 000000000..6e232f88b --- /dev/null +++ b/docs/SnapshotSnapshot.md @@ -0,0 +1,12 @@ +# SnapshotSnapshot + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | **str** | Alias name to create for this snapshot. If null, remove any alias. | [optional] +**expires** | **int** | The Unix Epoch time the snapshot will expire and be eligible for automatic deletion. | [optional] +**name** | **str** | The user or system supplied snapshot name. This will be null for snapshots pending delete. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSnapshotCreateParams.md b/docs/SnapshotSnapshotCreateParams.md new file mode 100644 index 000000000..c31fd4667 --- /dev/null +++ b/docs/SnapshotSnapshotCreateParams.md @@ -0,0 +1,13 @@ +# SnapshotSnapshotCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | **str** | Alias name to create for this snapshot. If null, remove any alias. | [optional] +**expires** | **int** | The Unix Epoch time the snapshot will expire and be eligible for automatic deletion. | [optional] +**name** | **str** | The user or system supplied snapshot name. This will be null for snapshots pending delete. | [optional] +**path** | **str** | The /ifs path snapshotted. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSnapshotExtended.md b/docs/SnapshotSnapshotExtended.md new file mode 100644 index 000000000..70a5b6cdd --- /dev/null +++ b/docs/SnapshotSnapshotExtended.md @@ -0,0 +1,24 @@ +# SnapshotSnapshotExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alias** | **str** | Alias name to create for this snapshot. If null, remove any alias. | [optional] +**expires** | **int** | The Unix Epoch time the snapshot will expire and be eligible for automatic deletion. | [optional] +**name** | **str** | The user or system supplied snapshot name. This will be null for snapshots pending delete. | [optional] +**created** | **int** | The Unix Epoch time the snapshot was created. | +**has_locks** | **bool** | True if the snapshot has one or more locks present see, see the locks subresource of a snapshot for a list of locks. | +**id** | **int** | The system ID given to the snapshot. This is useful for tracking the status of delete pending snapshots. | +**path** | **str** | The /ifs path snapshotted. | +**pct_filesystem** | **float** | Percentage of /ifs used for storing this snapshot. | +**pct_reserve** | **float** | Percentage of configured snapshot reserved used for storing this snapshot. | +**schedule** | **str** | The name of the schedule used to create this snapshot, if applicable. | +**shadow_bytes** | **int** | The amount of shadow bytes referred to by this snapshot. | +**size** | **int** | The amount of storage in bytes used to store this snapshot. | +**state** | **str** | Snapshot state. | +**target_id** | **int** | The ID of the snapshot pointed to if this is an alias. | +**target_name** | **str** | The name of the snapshot pointed to if this is an alias. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSnapshots.md b/docs/SnapshotSnapshots.md new file mode 100644 index 000000000..003282078 --- /dev/null +++ b/docs/SnapshotSnapshots.md @@ -0,0 +1,10 @@ +# SnapshotSnapshots + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**snapshots** | [**list[SnapshotSnapshotExtended]**](SnapshotSnapshotExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSnapshotsApi.md b/docs/SnapshotSnapshotsApi.md new file mode 100644 index 000000000..151c72902 --- /dev/null +++ b/docs/SnapshotSnapshotsApi.md @@ -0,0 +1,329 @@ +# isi_sdk.SnapshotSnapshotsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_snapshot_lock**](SnapshotSnapshotsApi.md#create_snapshot_lock) | **POST** /platform/1/snapshot/snapshots/{Sid}/locks | +[**delete_snapshot_lock**](SnapshotSnapshotsApi.md#delete_snapshot_lock) | **DELETE** /platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId} | +[**delete_snapshot_locks**](SnapshotSnapshotsApi.md#delete_snapshot_locks) | **DELETE** /platform/1/snapshot/snapshots/{Sid}/locks | +[**get_snapshot_lock**](SnapshotSnapshotsApi.md#get_snapshot_lock) | **GET** /platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId} | +[**list_snapshot_locks**](SnapshotSnapshotsApi.md#list_snapshot_locks) | **GET** /platform/1/snapshot/snapshots/{Sid}/locks | +[**update_snapshot_lock**](SnapshotSnapshotsApi.md#update_snapshot_lock) | **PUT** /platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId} | + + +# **create_snapshot_lock** +> CreateSnapshotLockResponse create_snapshot_lock(snapshot_lock, sid) + + + +Create a new lock on this snapshot. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotSnapshotsApi() +snapshot_lock = isi_sdk.SnapshotLockCreateParams() # SnapshotLockCreateParams | +sid = 'sid_example' # str | + +try: + api_response = api_instance.create_snapshot_lock(snapshot_lock, sid) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotSnapshotsApi->create_snapshot_lock: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_lock** | [**SnapshotLockCreateParams**](SnapshotLockCreateParams.md)| | + **sid** | **str**| | + +### Return type + +[**CreateSnapshotLockResponse**](CreateSnapshotLockResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_lock** +> delete_snapshot_lock(snapshot_lock_id, sid) + + + +Delete the snapshot lock. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotSnapshotsApi() +snapshot_lock_id = 'snapshot_lock_id_example' # str | Delete the snapshot lock. +sid = 'sid_example' # str | + +try: + api_instance.delete_snapshot_lock(snapshot_lock_id, sid) +except ApiException as e: + print "Exception when calling SnapshotSnapshotsApi->delete_snapshot_lock: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_lock_id** | **str**| Delete the snapshot lock. | + **sid** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_snapshot_locks** +> delete_snapshot_locks(sid) + + + +Delete all locks. Will try to drain count of recursively held locks so that the snapshot can be deleted. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotSnapshotsApi() +sid = 'sid_example' # str | + +try: + api_instance.delete_snapshot_locks(sid) +except ApiException as e: + print "Exception when calling SnapshotSnapshotsApi->delete_snapshot_locks: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sid** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_snapshot_lock** +> SnapshotLocks get_snapshot_lock(snapshot_lock_id, sid) + + + +Retrieve lock information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotSnapshotsApi() +snapshot_lock_id = 'snapshot_lock_id_example' # str | Retrieve lock information. +sid = 'sid_example' # str | + +try: + api_response = api_instance.get_snapshot_lock(snapshot_lock_id, sid) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotSnapshotsApi->get_snapshot_lock: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_lock_id** | **str**| Retrieve lock information. | + **sid** | **str**| | + +### Return type + +[**SnapshotLocks**](SnapshotLocks.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_snapshot_locks** +> SnapshotLocksExtended list_snapshot_locks(sid, sort=sort, limit=limit, dir=dir, resume=resume) + + + +List all locks. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotSnapshotsApi() +sid = 'sid_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. Choices are id, expires, and comment. Default is id. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_snapshot_locks(sid, sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling SnapshotSnapshotsApi->list_snapshot_locks: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sid** | **str**| | + **sort** | **str**| The field that will be used for sorting. Choices are id, expires, and comment. Default is id. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SnapshotLocksExtended**](SnapshotLocksExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_snapshot_lock** +> update_snapshot_lock(snapshot_lock, snapshot_lock_id, sid) + + + +Modify lock. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SnapshotSnapshotsApi() +snapshot_lock = isi_sdk.SnapshotLock() # SnapshotLock | +snapshot_lock_id = 'snapshot_lock_id_example' # str | Modify lock. All input fields are optional, but one or more must be supplied. +sid = 'sid_example' # str | + +try: + api_instance.update_snapshot_lock(snapshot_lock, snapshot_lock_id, sid) +except ApiException as e: + print "Exception when calling SnapshotSnapshotsApi->update_snapshot_lock: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshot_lock** | [**SnapshotLock**](SnapshotLock.md)| | + **snapshot_lock_id** | **str**| Modify lock. All input fields are optional, but one or more must be supplied. | + **sid** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SnapshotSnapshotsExtended.md b/docs/SnapshotSnapshotsExtended.md new file mode 100644 index 000000000..34ce4a061 --- /dev/null +++ b/docs/SnapshotSnapshotsExtended.md @@ -0,0 +1,12 @@ +# SnapshotSnapshotsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**snapshots** | [**list[SnapshotSnapshotExtended]**](SnapshotSnapshotExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSnapshotsSummary.md b/docs/SnapshotSnapshotsSummary.md new file mode 100644 index 000000000..aef348a00 --- /dev/null +++ b/docs/SnapshotSnapshotsSummary.md @@ -0,0 +1,10 @@ +# SnapshotSnapshotsSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**SnapshotSnapshotsSummarySummary**](SnapshotSnapshotsSummarySummary.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSnapshotsSummarySummary.md b/docs/SnapshotSnapshotsSummarySummary.md new file mode 100644 index 000000000..0287368ee --- /dev/null +++ b/docs/SnapshotSnapshotsSummarySummary.md @@ -0,0 +1,17 @@ +# SnapshotSnapshotsSummarySummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_count** | **int** | Total number of active snapshots. | +**active_size** | **int** | Sum of sizes of active snapshots. | +**aliases_count** | **int** | Total number of snapshot aliases. | +**count** | **int** | Total number of snapshots. | +**deleting_count** | **int** | Total number of delete-pending snapshots. | +**deleting_size** | **int** | Sum of sizes of delete-pending snapshots. | +**shadow_bytes** | **int** | Sum of shadow bytes of all snapshots. | +**size** | **int** | Sum of sizes in bytes of all snapshots. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnmpSettings.md b/docs/SnmpSettings.md new file mode 100644 index 000000000..f033ded6c --- /dev/null +++ b/docs/SnmpSettings.md @@ -0,0 +1,10 @@ +# SnmpSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**SnmpSettingsSettings**](SnmpSettingsSettings.md) | SNMP settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnmpSettingsExtended.md b/docs/SnmpSettingsExtended.md new file mode 100644 index 000000000..3fc3a1878 --- /dev/null +++ b/docs/SnmpSettingsExtended.md @@ -0,0 +1,17 @@ +# SnmpSettingsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read_only_community** | **str** | The read-only community name. @DEFAULT reverts this field to its default value. | [optional] +**service** | **bool** | Whether the SNMP service is enabled. | [optional] +**snmp_v1_v2c_access** | **bool** | Whether SNMP v1 and v2c protocols are enabled. @DEFAULT reverts this field to its default value. | [optional] +**snmp_v3_access** | **bool** | Whether SNMP v3 is enabled. @DEFAULT reverts this field to its default value. | [optional] +**snmp_v3_password** | **str** | This field allows a client to change the SNMP v3 password. There is always a password set. @DEFAULT reverts this field to its default value. | [optional] +**snmp_v3_read_only_user** | **str** | The read-only user for SNMP v3 read requests. @DEFAULT reverts this field to its default value. | [optional] +**system_contact** | **str** | Contact information for the system owner. This must be a valid email address. @DEFAULT reverts this field to its default value. | [optional] +**system_location** | **str** | A location name for the SNMP system. @DEFAULT reverts this field to its default value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnmpSettingsSettings.md b/docs/SnmpSettingsSettings.md new file mode 100644 index 000000000..300e74120 --- /dev/null +++ b/docs/SnmpSettingsSettings.md @@ -0,0 +1,16 @@ +# SnmpSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**read_only_community** | **str** | The read-only community name. @DEFAULT reverts this field to its default value. | [optional] +**service** | **bool** | Whether the SNMP service is enabled. | [optional] +**snmp_v1_v2c_access** | **bool** | Whether SNMP v1 and v2c protocols are enabled. @DEFAULT reverts this field to its default value. | [optional] +**snmp_v3_access** | **bool** | Whether SNMP v3 is enabled. @DEFAULT reverts this field to its default value. | [optional] +**snmp_v3_read_only_user** | **str** | The read-only user for SNMP v3 read requests. @DEFAULT reverts this field to its default value. | [optional] +**system_contact** | **str** | Contact information for the system owner. This must be a valid email address. @DEFAULT reverts this field to its default value. | [optional] +**system_location** | **str** | A location name for the SNMP system. @DEFAULT reverts this field to its default value. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md new file mode 100644 index 000000000..413c26a80 --- /dev/null +++ b/docs/StatisticsApi.md @@ -0,0 +1,679 @@ +# isi_sdk.StatisticsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_statistics_current**](StatisticsApi.md#get_statistics_current) | **GET** /platform/1/statistics/current | +[**get_statistics_history**](StatisticsApi.md#get_statistics_history) | **GET** /platform/1/statistics/history | +[**get_statistics_key**](StatisticsApi.md#get_statistics_key) | **GET** /platform/1/statistics/keys/{StatisticsKeyId} | +[**get_statistics_keys**](StatisticsApi.md#get_statistics_keys) | **GET** /platform/1/statistics/keys | +[**get_statistics_operations**](StatisticsApi.md#get_statistics_operations) | **GET** /platform/3/statistics/operations | +[**get_statistics_protocols**](StatisticsApi.md#get_statistics_protocols) | **GET** /platform/1/statistics/protocols | +[**get_summary_client**](StatisticsApi.md#get_summary_client) | **GET** /platform/3/statistics/summary/client | +[**get_summary_drive**](StatisticsApi.md#get_summary_drive) | **GET** /platform/3/statistics/summary/drive | +[**get_summary_heat**](StatisticsApi.md#get_summary_heat) | **GET** /platform/3/statistics/summary/heat | +[**get_summary_protocol**](StatisticsApi.md#get_summary_protocol) | **GET** /platform/3/statistics/summary/protocol | +[**get_summary_system**](StatisticsApi.md#get_summary_system) | **GET** /platform/3/statistics/summary/system | + + +# **get_statistics_current** +> StatisticsCurrent get_statistics_current(timeout=timeout, keys=keys, devid=devid, substr=substr, key=key, degraded=degraded, expand_clientid=expand_clientid) + + + +Retrieve stats. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +timeout = 56 # int | Time in seconds to wait for results from remote nodes. (optional) +keys = ['keys_example'] # list[str] | Multiple key names. May request matching keys or request 'all' keys. Can be comma separated list or can be used more than one time to make queries for multiple keys. May be used in conjunction with 'substr'. Also works with 'key' arguments. (optional) +devid = ['devid_example'] # list[str] | Node devid to query. Either an or \"all\". Can be used more than one time to query multiple nodes. \"all\" queries all up nodes. 0 means query the local node. For \"cluster\" scoped keys, in any devid including 0 can be used. (optional) +substr = true # bool | Used in conjunction with the 'keys' argument, alters the behavior of keys. Makes the 'keys' arg perform a partial match. Defaults to false. (optional) +key = ['key_example'] # list[str] | One key name. Can be used more than one time to query multiple keys. Also works with 'keys' arguments. (optional) +degraded = true # bool | If true, try to continue even if some stats are unavailable. In this case, errors will be present in the per-key returned data. (optional) +expand_clientid = true # bool | If true, use name resolution to expand client addresses and other IDs. (optional) + +try: + api_response = api_instance.get_statistics_current(timeout=timeout, keys=keys, devid=devid, substr=substr, key=key, degraded=degraded, expand_clientid=expand_clientid) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_statistics_current: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **timeout** | **int**| Time in seconds to wait for results from remote nodes. | [optional] + **keys** | [**list[str]**](str.md)| Multiple key names. May request matching keys or request 'all' keys. Can be comma separated list or can be used more than one time to make queries for multiple keys. May be used in conjunction with 'substr'. Also works with 'key' arguments. | [optional] + **devid** | [**list[str]**](str.md)| Node devid to query. Either an <integer> or \"all\". Can be used more than one time to query multiple nodes. \"all\" queries all up nodes. 0 means query the local node. For \"cluster\" scoped keys, in any devid including 0 can be used. | [optional] + **substr** | **bool**| Used in conjunction with the 'keys' argument, alters the behavior of keys. Makes the 'keys' arg perform a partial match. Defaults to false. | [optional] + **key** | [**list[str]**](str.md)| One key name. Can be used more than one time to query multiple keys. Also works with 'keys' arguments. | [optional] + **degraded** | **bool**| If true, try to continue even if some stats are unavailable. In this case, errors will be present in the per-key returned data. | [optional] + **expand_clientid** | **bool**| If true, use name resolution to expand client addresses and other IDs. | [optional] + +### Return type + +[**StatisticsCurrent**](StatisticsCurrent.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_statistics_history** +> StatisticsHistory get_statistics_history(begin=begin, interval=interval, end=end, timeout=timeout, substr=substr, keys=keys, devid=devid, memory_only=memory_only, key=key, degraded=degraded, resolution=resolution, expand_clientid=expand_clientid) + + + +Retrieve stats. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +begin = 56 # int | Earliest time (Unix epoch seconds) of interest. Negative times are interpreted as relative (before) now. (optional) +interval = 56 # int | Minimum sampling interval time in seconds. If native statistics are higher resolution, data will be down-sampled. (optional) +end = 56 # int | Latest time (Unix epoch seconds) of interest. Negative times are interpreted as relative (before) now. If not supplied, use now as the end time. (optional) +timeout = 56 # int | Time in seconds to wait for results from remote nodes. (optional) +substr = true # bool | Used in conjunction with the 'keys' argument, alters the behavior of keys. Makes the 'keys' arg perform a partial match. Defaults to false. (optional) +keys = ['keys_example'] # list[str] | Multiple key names. May request matching keys or request 'all' keys. Can be comma separated list or can be used more than one time to make queries for multiple keys. May be used in conjunction with 'substr'. Also works with 'key' arguments. (optional) +devid = ['devid_example'] # list[str] | Node devid to query. Either an or \"all\". Can be used more than one time to query multiple nodes. \"all\" queries all up nodes. 0 means query the local node. For \"cluster\" scoped keys, in any devid including 0 can be used. (optional) +memory_only = true # bool | Only use statistics sources that reside in memory (faster, but with less retention). (optional) +key = ['key_example'] # list[str] | One key name. Can be used more than one time to query multiple keys. Also works with 'keys' arguments. (optional) +degraded = true # bool | If true, try to continue even if some stats are unavailable. In this case, errors will be present in the per-key returned data. (optional) +resolution = 56 # int | Synonymous with 'interval', if supplied supersedes interval. (optional) +expand_clientid = true # bool | If true, use name resolution to expand client addresses and other IDs. (optional) + +try: + api_response = api_instance.get_statistics_history(begin=begin, interval=interval, end=end, timeout=timeout, substr=substr, keys=keys, devid=devid, memory_only=memory_only, key=key, degraded=degraded, resolution=resolution, expand_clientid=expand_clientid) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_statistics_history: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **begin** | **int**| Earliest time (Unix epoch seconds) of interest. Negative times are interpreted as relative (before) now. | [optional] + **interval** | **int**| Minimum sampling interval time in seconds. If native statistics are higher resolution, data will be down-sampled. | [optional] + **end** | **int**| Latest time (Unix epoch seconds) of interest. Negative times are interpreted as relative (before) now. If not supplied, use now as the end time. | [optional] + **timeout** | **int**| Time in seconds to wait for results from remote nodes. | [optional] + **substr** | **bool**| Used in conjunction with the 'keys' argument, alters the behavior of keys. Makes the 'keys' arg perform a partial match. Defaults to false. | [optional] + **keys** | [**list[str]**](str.md)| Multiple key names. May request matching keys or request 'all' keys. Can be comma separated list or can be used more than one time to make queries for multiple keys. May be used in conjunction with 'substr'. Also works with 'key' arguments. | [optional] + **devid** | [**list[str]**](str.md)| Node devid to query. Either an <integer> or \"all\". Can be used more than one time to query multiple nodes. \"all\" queries all up nodes. 0 means query the local node. For \"cluster\" scoped keys, in any devid including 0 can be used. | [optional] + **memory_only** | **bool**| Only use statistics sources that reside in memory (faster, but with less retention). | [optional] + **key** | [**list[str]**](str.md)| One key name. Can be used more than one time to query multiple keys. Also works with 'keys' arguments. | [optional] + **degraded** | **bool**| If true, try to continue even if some stats are unavailable. In this case, errors will be present in the per-key returned data. | [optional] + **resolution** | **int**| Synonymous with 'interval', if supplied supersedes interval. | [optional] + **expand_clientid** | **bool**| If true, use name resolution to expand client addresses and other IDs. | [optional] + +### Return type + +[**StatisticsHistory**](StatisticsHistory.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_statistics_key** +> StatisticsKeys get_statistics_key(statistics_key_id) + + + +List key meta-data. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +statistics_key_id = 'statistics_key_id_example' # str | List key meta-data. + +try: + api_response = api_instance.get_statistics_key(statistics_key_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_statistics_key: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **statistics_key_id** | **str**| List key meta-data. | + +### Return type + +[**StatisticsKeys**](StatisticsKeys.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_statistics_keys** +> StatisticsKeysExtended get_statistics_keys(count=count, limit=limit, queryable=queryable, resume=resume) + + + +List meta-data for matching keys. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +count = true # bool | Only count matching keys, do not return meta-data. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +queryable = true # bool | Only list keys that can/cannot be queries. Default is true. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_statistics_keys(count=count, limit=limit, queryable=queryable, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_statistics_keys: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **count** | **bool**| Only count matching keys, do not return meta-data. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **queryable** | **bool**| Only list keys that can/cannot be queries. Default is true. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**StatisticsKeysExtended**](StatisticsKeysExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_statistics_operations** +> StatisticsOperations get_statistics_operations() + + + +Retrieve operations list. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() + +try: + api_response = api_instance.get_statistics_operations() + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_statistics_operations: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**StatisticsOperations**](StatisticsOperations.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_statistics_protocols** +> StatisticsProtocols get_statistics_protocols() + + + +Retrieve protocol list. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() + +try: + api_response = api_instance.get_statistics_protocols() + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_statistics_protocols: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**StatisticsProtocols**](StatisticsProtocols.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_summary_client** +> SummaryClient get_summary_client(sort=sort, totalby=totalby, user_names=user_names, numeric=numeric, local_names=local_names, user_ids=user_ids, classes=classes, timeout=timeout, local_addrs=local_addrs, degraded=degraded, remote_addrs=remote_addrs, remote_names=remote_names, nodes=nodes, protocols=protocols) + + + + + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +sort = 'sort_example' # str | { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. (optional) +totalby = 'totalby_example' # str | A comma separated list specifying what should be unique. node|protocol|class|local_addr|local_name|remote_addr|remote_name|user_id|user_name|devid (optional) +user_names = 'user_names_example' # str | A comma seperated list. Only report statistics for operations requested by users with resolved names enumerated. (optional) +numeric = true # bool | Whether to convert hostnames or usernames to their human readable form. False by default. (optional) +local_names = 'local_names_example' # str | A comma seperated list. Only report statistics for operations handled by the local hosts with resolved names enumerated. (optional) +user_ids = 'user_ids_example' # str | A comma seperated list. Only report statistics for operations requested by users with numeric UIDs enumerated. (optional) +classes = 'classes_example' # str | Specify class(es) for which statistics should be reported. Default is all supported classes. (optional) +timeout = 56 # int | Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. (optional) +local_addrs = 'local_addrs_example' # str | A comma seperated list. Only report statistics for operations handled by the local hosts with dotted-quad IP addresses enumerated. (optional) +degraded = true # bool | Continue to report if some nodes do not respond. (optional) +remote_addrs = 'remote_addrs_example' # str | A comma seperated list. Only report statistics for operations requested by the remote clients with dotted-quad IP addresses enumerated. (optional) +remote_names = 'remote_names_example' # str | A comma seperated list. Only report statistics for operations requested by the remote clients with resolved names enumerated. (optional) +nodes = 'nodes_example' # str | A comma seperated list. Specify node(s) for which statistics should be reported. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate local. (optional) +protocols = 'protocols_example' # str | A comma seperated list of the protocol(s) you wish to return. Default is 'all' of the folowing: nfs3|smb1|nlm|ftp|http|siq|iscsi|smb2|nfs4|papi|jobd|irp|lsass_in|lsass_out|hdfs|internal|external (optional) + +try: + api_response = api_instance.get_summary_client(sort=sort, totalby=totalby, user_names=user_names, numeric=numeric, local_names=local_names, user_ids=user_ids, classes=classes, timeout=timeout, local_addrs=local_addrs, degraded=degraded, remote_addrs=remote_addrs, remote_names=remote_names, nodes=nodes, protocols=protocols) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_summary_client: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. | [optional] + **totalby** | **str**| A comma separated list specifying what should be unique. node|protocol|class|local_addr|local_name|remote_addr|remote_name|user_id|user_name|devid | [optional] + **user_names** | **str**| A comma seperated list. Only report statistics for operations requested by users with resolved names enumerated. | [optional] + **numeric** | **bool**| Whether to convert hostnames or usernames to their human readable form. False by default. | [optional] + **local_names** | **str**| A comma seperated list. Only report statistics for operations handled by the local hosts with resolved names enumerated. | [optional] + **user_ids** | **str**| A comma seperated list. Only report statistics for operations requested by users with numeric UIDs enumerated. | [optional] + **classes** | **str**| Specify class(es) for which statistics should be reported. Default is all supported classes. | [optional] + **timeout** | **int**| Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. | [optional] + **local_addrs** | **str**| A comma seperated list. Only report statistics for operations handled by the local hosts with dotted-quad IP addresses enumerated. | [optional] + **degraded** | **bool**| Continue to report if some nodes do not respond. | [optional] + **remote_addrs** | **str**| A comma seperated list. Only report statistics for operations requested by the remote clients with dotted-quad IP addresses enumerated. | [optional] + **remote_names** | **str**| A comma seperated list. Only report statistics for operations requested by the remote clients with resolved names enumerated. | [optional] + **nodes** | **str**| A comma seperated list. Specify node(s) for which statistics should be reported. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate local. | [optional] + **protocols** | **str**| A comma seperated list of the protocol(s) you wish to return. Default is 'all' of the folowing: nfs3|smb1|nlm|ftp|http|siq|iscsi|smb2|nfs4|papi|jobd|irp|lsass_in|lsass_out|hdfs|internal|external | [optional] + +### Return type + +[**SummaryClient**](SummaryClient.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_summary_drive** +> SummaryDrive get_summary_drive(sort=sort, degraded=degraded, type=type, nodes=nodes, timeout=timeout) + + + + + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +sort = 'sort_example' # str | { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. (optional) +degraded = true # bool | Continue to report if some nodes do not respond. (optional) +type = 'type_example' # str | Specify drive type(s) for which statistics should be reported. (optional) +nodes = 'nodes_example' # str | Specify node(s) for which statistics should be reported. A comma separated set of numbers. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate only the local node. (optional) +timeout = 56 # int | Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. (optional) + +try: + api_response = api_instance.get_summary_drive(sort=sort, degraded=degraded, type=type, nodes=nodes, timeout=timeout) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_summary_drive: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. | [optional] + **degraded** | **bool**| Continue to report if some nodes do not respond. | [optional] + **type** | **str**| Specify drive type(s) for which statistics should be reported. | [optional] + **nodes** | **str**| Specify node(s) for which statistics should be reported. A comma separated set of numbers. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate only the local node. | [optional] + **timeout** | **int**| Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. | [optional] + +### Return type + +[**SummaryDrive**](SummaryDrive.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_summary_heat** +> SummaryHeat get_summary_heat(sort=sort, convertlin=convertlin, totalby=totalby, pathdepth=pathdepth, numeric=numeric, events=events, maxpath=maxpath, classes=classes, timeout=timeout, nodes=nodes, degraded=degraded) + + + +File heat map, i.e. rate of file operations, and the type of operation listed by path/lin(s). + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +sort = 'sort_example' # str | { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. (optional) +convertlin = true # bool | Convert lin to hex. Defaults to true. (optional) +totalby = 'totalby_example' # str | Aggregate per specified fields(s). Defaults to none. (optional) +pathdepth = 56 # int | Squash paths to this directory depth. Defaults to none, ie. the paths are not limited (Subject to the system limits.) (optional) +numeric = true # bool | Whether to convert hostnames or usernames to their human readable form. False by default. (optional) +events = 'events_example' # str | Only report specified event types(s). A comma separated list of events. Defaults to all supported events. See [...]/platform/3/statistics/summary/filters/events for a complete list. (optional) +maxpath = 56 # int | Maximum bytes allocated for looking up a path. An ASCII character is 1 byte (It may be more for other types of encoding). The default is 1024 bytes. Zero (0) means unlimited (Subject to the system limits.) (optional) +classes = 'classes_example' # str | Specify class(es) for which statistics should be reported. Default is all supported classes. See [...]/platform/3/statistics/summary/filters/classes for a complete list. (optional) +timeout = 56 # int | Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. (optional) +nodes = 'nodes_example' # str | Specify node(s) for which statistics should be reported. A comma separated set of numbers. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate only the local node. (optional) +degraded = true # bool | Continue to report if some nodes do not respond. (optional) + +try: + api_response = api_instance.get_summary_heat(sort=sort, convertlin=convertlin, totalby=totalby, pathdepth=pathdepth, numeric=numeric, events=events, maxpath=maxpath, classes=classes, timeout=timeout, nodes=nodes, degraded=degraded) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_summary_heat: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. | [optional] + **convertlin** | **bool**| Convert lin to hex. Defaults to true. | [optional] + **totalby** | **str**| Aggregate per specified fields(s). Defaults to none. | [optional] + **pathdepth** | **int**| Squash paths to this directory depth. Defaults to none, ie. the paths are not limited (Subject to the system limits.) | [optional] + **numeric** | **bool**| Whether to convert hostnames or usernames to their human readable form. False by default. | [optional] + **events** | **str**| Only report specified event types(s). A comma separated list of events. Defaults to all supported events. See [...]/platform/3/statistics/summary/filters/events for a complete list. | [optional] + **maxpath** | **int**| Maximum bytes allocated for looking up a path. An ASCII character is 1 byte (It may be more for other types of encoding). The default is 1024 bytes. Zero (0) means unlimited (Subject to the system limits.) | [optional] + **classes** | **str**| Specify class(es) for which statistics should be reported. Default is all supported classes. See [...]/platform/3/statistics/summary/filters/classes for a complete list. | [optional] + **timeout** | **int**| Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. | [optional] + **nodes** | **str**| Specify node(s) for which statistics should be reported. A comma separated set of numbers. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate only the local node. | [optional] + **degraded** | **bool**| Continue to report if some nodes do not respond. | [optional] + +### Return type + +[**SummaryHeat**](SummaryHeat.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_summary_protocol** +> SummaryProtocol get_summary_protocol(operations=operations, sort=sort, protocol=protocol, totalby=totalby, zero=zero, classes=classes, timeout=timeout, degraded=degraded, nodes=nodes) + + + + + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +operations = 'operations_example' # str | Specify operation(s) for which statistics should be reported. Default is all operations. See isi-statistics man page for complete listing of operations. (optional) +sort = 'sort_example' # str | { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. (optional) +protocol = 'protocol_example' # str | Specify protocol(s) for which statistics should be reported. Default is all external protocols. (optional) +totalby = 'totalby_example' # str | Aggregate per specified fields(s). Defaults to none. (optional) +zero = true # bool | Show table entries with no values. (optional) +classes = 'classes_example' # str | Specify class(es) for which statistics should be reported. Default is all supported classes. See [...]/platform/3/statistics/summary/filters/classes for a complete list. (optional) +timeout = 56 # int | Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. (optional) +degraded = true # bool | Continue to report if some nodes do not respond. (optional) +nodes = 'nodes_example' # str | Specify node(s) for which statistics should be reported. A comma separated set of numbers. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate only the local node. (optional) + +try: + api_response = api_instance.get_summary_protocol(operations=operations, sort=sort, protocol=protocol, totalby=totalby, zero=zero, classes=classes, timeout=timeout, degraded=degraded, nodes=nodes) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_summary_protocol: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **operations** | **str**| Specify operation(s) for which statistics should be reported. Default is all operations. See isi-statistics man page for complete listing of operations. | [optional] + **sort** | **str**| { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. | [optional] + **protocol** | **str**| Specify protocol(s) for which statistics should be reported. Default is all external protocols. | [optional] + **totalby** | **str**| Aggregate per specified fields(s). Defaults to none. | [optional] + **zero** | **bool**| Show table entries with no values. | [optional] + **classes** | **str**| Specify class(es) for which statistics should be reported. Default is all supported classes. See [...]/platform/3/statistics/summary/filters/classes for a complete list. | [optional] + **timeout** | **int**| Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. | [optional] + **degraded** | **bool**| Continue to report if some nodes do not respond. | [optional] + **nodes** | **str**| Specify node(s) for which statistics should be reported. A comma separated set of numbers. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate only the local node. | [optional] + +### Return type + +[**SummaryProtocol**](SummaryProtocol.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_summary_system** +> SummarySystem get_summary_system(sort=sort, oprates=oprates, degraded=degraded, nodes=nodes, timeout=timeout) + + + + + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StatisticsApi() +sort = 'sort_example' # str | { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. (optional) +oprates = true # bool | Display protocol operation rate statistics rather than the default throughput statistics. (optional) +degraded = true # bool | Continue to report if some nodes do not respond. (optional) +nodes = 'nodes_example' # str | Specify node(s) for which statistics should be reported. A comma separated set of numbers. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate only the local node. (optional) +timeout = 56 # int | Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. (optional) + +try: + api_response = api_instance.get_summary_system(sort=sort, oprates=oprates, degraded=degraded, nodes=nodes, timeout=timeout) + pprint(api_response) +except ApiException as e: + print "Exception when calling StatisticsApi->get_summary_system: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| { drive_id | type | xfers_in | bytes_in | xfer_size_in | xfers_out | bytes_out | xfer_size_out | access_latency | access_slow | iosched_latency | iosched_queue | busy | used_bytes_percent | used_inodes } Sort data by the specified comma-separated field(s). Prepend 'asc:' or 'desc:' to a field to change the sort direction. | [optional] + **oprates** | **bool**| Display protocol operation rate statistics rather than the default throughput statistics. | [optional] + **degraded** | **bool**| Continue to report if some nodes do not respond. | [optional] + **nodes** | **str**| Specify node(s) for which statistics should be reported. A comma separated set of numbers. Default is 'all'. Zero (0) should be passed in as the sole argument to indicate only the local node. | [optional] + **timeout** | **int**| Timeout remote commands after NUM seconds, where NUM is the integer passed to the argument. | [optional] + +### Return type + +[**SummarySystem**](SummarySystem.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/StatisticsCurrent.md b/docs/StatisticsCurrent.md new file mode 100644 index 000000000..5cc22f32e --- /dev/null +++ b/docs/StatisticsCurrent.md @@ -0,0 +1,10 @@ +# StatisticsCurrent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stats** | [**list[StatisticsCurrentStat]**](StatisticsCurrentStat.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsCurrentStat.md b/docs/StatisticsCurrentStat.md new file mode 100644 index 000000000..8246a6686 --- /dev/null +++ b/docs/StatisticsCurrentStat.md @@ -0,0 +1,15 @@ +# StatisticsCurrentStat + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devid** | **int** | Devid of node of statistic or 0 for cluster scoped statistics. | +**error** | **str** | Key specific error string, if applicable. | +**error_code** | **int** | Key specific error number, if applicable. | +**key** | **str** | Key name of statistic. | +**time** | **int** | Unix Epoch time in seconds that statistic was collected. | +**value** | **str** | Key dependent value. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsHistory.md b/docs/StatisticsHistory.md new file mode 100644 index 000000000..abf8bb452 --- /dev/null +++ b/docs/StatisticsHistory.md @@ -0,0 +1,10 @@ +# StatisticsHistory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stats** | [**list[StatisticsHistoryStat]**](StatisticsHistoryStat.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsHistoryStat.md b/docs/StatisticsHistoryStat.md new file mode 100644 index 000000000..e11eec7d7 --- /dev/null +++ b/docs/StatisticsHistoryStat.md @@ -0,0 +1,14 @@ +# StatisticsHistoryStat + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devid** | **int** | Devid of node of statistic or 0 for cluster scoped statistics. | +**error** | **str** | Key specific error string, if applicable. | +**error_code** | **int** | Key specific error number, if applicable. | +**key** | **str** | Key name of statistic. | +**values** | [**list[StatisticsHistoryStatValue]**](StatisticsHistoryStatValue.md) | Time-series values. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsHistoryStatValue.md b/docs/StatisticsHistoryStatValue.md new file mode 100644 index 000000000..0674825c7 --- /dev/null +++ b/docs/StatisticsHistoryStatValue.md @@ -0,0 +1,11 @@ +# StatisticsHistoryStatValue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **int** | Unix Epoch time in seconds that statistic was collected. | +**value** | **str** | Key dependent value. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsKey.md b/docs/StatisticsKey.md new file mode 100644 index 000000000..39180aa78 --- /dev/null +++ b/docs/StatisticsKey.md @@ -0,0 +1,20 @@ +# StatisticsKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregation_type** | **str** | Type of aggregation used in down-sampling. | +**base_name** | **str** | Name of key this keys is derived from, if any. | +**default_cache_time** | **int** | Default time in seconds system will used cached values. | +**description** | **str** | Description of statistics key. | +**key** | **str** | Key name. | +**policies** | [**list[StatisticsKeyPolicy]**](StatisticsKeyPolicy.md) | List of effective history policies for key. | +**policy_cache_time** | **int** | Configured time in seconds system will used cached values. | +**real_name** | **str** | Name of real key if this is an alias. | +**scope** | **str** | Scope of key. | +**type** | **str** | Data type of key values. | +**units** | **str** | Units of key values. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsKeyPolicy.md b/docs/StatisticsKeyPolicy.md new file mode 100644 index 000000000..64f6db444 --- /dev/null +++ b/docs/StatisticsKeyPolicy.md @@ -0,0 +1,12 @@ +# StatisticsKeyPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interval** | **int** | Time between samples in seconds. | +**persistent** | **bool** | If true, history is persisted. | +**retention** | **int** | Time in seconds to keep data. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsKeys.md b/docs/StatisticsKeys.md new file mode 100644 index 000000000..ad46157a3 --- /dev/null +++ b/docs/StatisticsKeys.md @@ -0,0 +1,10 @@ +# StatisticsKeys + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keys** | [**list[StatisticsKey]**](StatisticsKey.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsKeysExtended.md b/docs/StatisticsKeysExtended.md new file mode 100644 index 000000000..92fa562b2 --- /dev/null +++ b/docs/StatisticsKeysExtended.md @@ -0,0 +1,12 @@ +# StatisticsKeysExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keys** | [**list[StatisticsKey]**](StatisticsKey.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsOperation.md b/docs/StatisticsOperation.md new file mode 100644 index 000000000..9ff3c3359 --- /dev/null +++ b/docs/StatisticsOperation.md @@ -0,0 +1,9 @@ +# StatisticsOperation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsOperations.md b/docs/StatisticsOperations.md new file mode 100644 index 000000000..dbfca93ba --- /dev/null +++ b/docs/StatisticsOperations.md @@ -0,0 +1,10 @@ +# StatisticsOperations + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operations** | [**list[StatisticsOperation]**](StatisticsOperation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsProtocol.md b/docs/StatisticsProtocol.md new file mode 100644 index 000000000..6b7d1aeac --- /dev/null +++ b/docs/StatisticsProtocol.md @@ -0,0 +1,11 @@ +# StatisticsProtocol + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Abbreviated name of protocol. | +**type** | **str** | External protocols are customer facing, internal protocols expose metrics for internal OneFS systems. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StatisticsProtocols.md b/docs/StatisticsProtocols.md new file mode 100644 index 000000000..c21c701af --- /dev/null +++ b/docs/StatisticsProtocols.md @@ -0,0 +1,10 @@ +# StatisticsProtocols + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**protocols** | [**list[StatisticsProtocol]**](StatisticsProtocol.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolApi.md b/docs/StoragepoolApi.md new file mode 100644 index 000000000..1422a41ed --- /dev/null +++ b/docs/StoragepoolApi.md @@ -0,0 +1,1389 @@ +# isi_sdk.StoragepoolApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_compatibilities_class_active_item**](StoragepoolApi.md#create_compatibilities_class_active_item) | **POST** /platform/1/storagepool/compatibilities/class/active | +[**create_compatibilities_ssd_active_item**](StoragepoolApi.md#create_compatibilities_ssd_active_item) | **POST** /platform/3/storagepool/compatibilities/ssd/active | +[**create_storagepool_nodepool**](StoragepoolApi.md#create_storagepool_nodepool) | **POST** /platform/3/storagepool/nodepools | +[**create_storagepool_tier**](StoragepoolApi.md#create_storagepool_tier) | **POST** /platform/1/storagepool/tiers | +[**delete_compatibilities_class_active_by_id**](StoragepoolApi.md#delete_compatibilities_class_active_by_id) | **DELETE** /platform/1/storagepool/compatibilities/class/active/{CompatibilitiesClassActiveId} | +[**delete_compatibilities_ssd_active_by_id**](StoragepoolApi.md#delete_compatibilities_ssd_active_by_id) | **DELETE** /platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId} | +[**delete_storagepool_nodepool**](StoragepoolApi.md#delete_storagepool_nodepool) | **DELETE** /platform/3/storagepool/nodepools/{StoragepoolNodepoolId} | +[**delete_storagepool_tier**](StoragepoolApi.md#delete_storagepool_tier) | **DELETE** /platform/1/storagepool/tiers/{StoragepoolTierId} | +[**delete_storagepool_tiers**](StoragepoolApi.md#delete_storagepool_tiers) | **DELETE** /platform/1/storagepool/tiers | +[**get_compatibilities_class_active_by_id**](StoragepoolApi.md#get_compatibilities_class_active_by_id) | **GET** /platform/1/storagepool/compatibilities/class/active/{CompatibilitiesClassActiveId} | +[**get_compatibilities_class_available**](StoragepoolApi.md#get_compatibilities_class_available) | **GET** /platform/1/storagepool/compatibilities/class/available | +[**get_compatibilities_ssd_active_by_id**](StoragepoolApi.md#get_compatibilities_ssd_active_by_id) | **GET** /platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId} | +[**get_compatibilities_ssd_available**](StoragepoolApi.md#get_compatibilities_ssd_available) | **GET** /platform/1/storagepool/compatibilities/ssd/available | +[**get_storagepool_nodepool**](StoragepoolApi.md#get_storagepool_nodepool) | **GET** /platform/3/storagepool/nodepools/{StoragepoolNodepoolId} | +[**get_storagepool_settings**](StoragepoolApi.md#get_storagepool_settings) | **GET** /platform/1/storagepool/settings | +[**get_storagepool_status**](StoragepoolApi.md#get_storagepool_status) | **GET** /platform/1/storagepool/status | +[**get_storagepool_storagepools**](StoragepoolApi.md#get_storagepool_storagepools) | **GET** /platform/3/storagepool/storagepools | +[**get_storagepool_suggested_protection_nid**](StoragepoolApi.md#get_storagepool_suggested_protection_nid) | **GET** /platform/3/storagepool/suggested-protection/{StoragepoolSuggestedProtectionNid} | +[**get_storagepool_tier**](StoragepoolApi.md#get_storagepool_tier) | **GET** /platform/1/storagepool/tiers/{StoragepoolTierId} | +[**get_storagepool_unprovisioned**](StoragepoolApi.md#get_storagepool_unprovisioned) | **GET** /platform/1/storagepool/unprovisioned | +[**list_compatibilities_class_active**](StoragepoolApi.md#list_compatibilities_class_active) | **GET** /platform/1/storagepool/compatibilities/class/active | +[**list_compatibilities_ssd_active**](StoragepoolApi.md#list_compatibilities_ssd_active) | **GET** /platform/3/storagepool/compatibilities/ssd/active | +[**list_storagepool_nodepools**](StoragepoolApi.md#list_storagepool_nodepools) | **GET** /platform/3/storagepool/nodepools | +[**list_storagepool_tiers**](StoragepoolApi.md#list_storagepool_tiers) | **GET** /platform/1/storagepool/tiers | +[**update_compatibilities_ssd_active_by_id**](StoragepoolApi.md#update_compatibilities_ssd_active_by_id) | **PUT** /platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId} | +[**update_storagepool_nodepool**](StoragepoolApi.md#update_storagepool_nodepool) | **PUT** /platform/3/storagepool/nodepools/{StoragepoolNodepoolId} | +[**update_storagepool_settings**](StoragepoolApi.md#update_storagepool_settings) | **PUT** /platform/1/storagepool/settings | +[**update_storagepool_tier**](StoragepoolApi.md#update_storagepool_tier) | **PUT** /platform/1/storagepool/tiers/{StoragepoolTierId} | + + +# **create_compatibilities_class_active_item** +> CreateCompatibilitiesClassActiveItemResponse create_compatibilities_class_active_item(compatibilities_class_active_item) + + + +Create a new compatibility + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +compatibilities_class_active_item = isi_sdk.CompatibilitiesClassActiveItem() # CompatibilitiesClassActiveItem | + +try: + api_response = api_instance.create_compatibilities_class_active_item(compatibilities_class_active_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->create_compatibilities_class_active_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **compatibilities_class_active_item** | [**CompatibilitiesClassActiveItem**](CompatibilitiesClassActiveItem.md)| | + +### Return type + +[**CreateCompatibilitiesClassActiveItemResponse**](CreateCompatibilitiesClassActiveItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_compatibilities_ssd_active_item** +> CreateCompatibilitiesClassActiveItemResponse create_compatibilities_ssd_active_item(compatibilities_ssd_active_item) + + + +Create a new ssd compatibility + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +compatibilities_ssd_active_item = isi_sdk.CompatibilitiesSsdActiveItem() # CompatibilitiesSsdActiveItem | + +try: + api_response = api_instance.create_compatibilities_ssd_active_item(compatibilities_ssd_active_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->create_compatibilities_ssd_active_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **compatibilities_ssd_active_item** | [**CompatibilitiesSsdActiveItem**](CompatibilitiesSsdActiveItem.md)| | + +### Return type + +[**CreateCompatibilitiesClassActiveItemResponse**](CreateCompatibilitiesClassActiveItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_storagepool_nodepool** +> CreateStoragepoolTierResponse create_storagepool_nodepool(storagepool_nodepool) + + + +Create a new node pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_nodepool = isi_sdk.StoragepoolNodepool() # StoragepoolNodepool | + +try: + api_response = api_instance.create_storagepool_nodepool(storagepool_nodepool) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->create_storagepool_nodepool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_nodepool** | [**StoragepoolNodepool**](StoragepoolNodepool.md)| | + +### Return type + +[**CreateStoragepoolTierResponse**](CreateStoragepoolTierResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_storagepool_tier** +> CreateStoragepoolTierResponse create_storagepool_tier(storagepool_tier) + + + +Create a new tier. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_tier = isi_sdk.StoragepoolTier() # StoragepoolTier | + +try: + api_response = api_instance.create_storagepool_tier(storagepool_tier) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->create_storagepool_tier: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_tier** | [**StoragepoolTier**](StoragepoolTier.md)| | + +### Return type + +[**CreateStoragepoolTierResponse**](CreateStoragepoolTierResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_compatibilities_class_active_by_id** +> delete_compatibilities_class_active_by_id(compatibilities_class_active_id) + + + +Delete an active compatibility by id + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +compatibilities_class_active_id = 'compatibilities_class_active_id_example' # str | Delete an active compatibility by id + +try: + api_instance.delete_compatibilities_class_active_by_id(compatibilities_class_active_id) +except ApiException as e: + print "Exception when calling StoragepoolApi->delete_compatibilities_class_active_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **compatibilities_class_active_id** | **str**| Delete an active compatibility by id | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_compatibilities_ssd_active_by_id** +> delete_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id) + + + +Delete an active ssd compatibility by id + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +compatibilities_ssd_active_id = 'compatibilities_ssd_active_id_example' # str | Delete an active ssd compatibility by id + +try: + api_instance.delete_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id) +except ApiException as e: + print "Exception when calling StoragepoolApi->delete_compatibilities_ssd_active_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **compatibilities_ssd_active_id** | **str**| Delete an active ssd compatibility by id | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_storagepool_nodepool** +> delete_storagepool_nodepool(storagepool_nodepool_id) + + + +Delete node pool. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_nodepool_id = 'storagepool_nodepool_id_example' # str | Delete node pool. + +try: + api_instance.delete_storagepool_nodepool(storagepool_nodepool_id) +except ApiException as e: + print "Exception when calling StoragepoolApi->delete_storagepool_nodepool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_nodepool_id** | **str**| Delete node pool. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_storagepool_tier** +> delete_storagepool_tier(storagepool_tier_id) + + + +Delete tier. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_tier_id = 'storagepool_tier_id_example' # str | Delete tier. + +try: + api_instance.delete_storagepool_tier(storagepool_tier_id) +except ApiException as e: + print "Exception when calling StoragepoolApi->delete_storagepool_tier: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_tier_id** | **str**| Delete tier. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_storagepool_tiers** +> delete_storagepool_tiers() + + + +Delete all tiers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_instance.delete_storagepool_tiers() +except ApiException as e: + print "Exception when calling StoragepoolApi->delete_storagepool_tiers: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_compatibilities_class_active_by_id** +> CompatibilitiesClassActive get_compatibilities_class_active_by_id(compatibilities_class_active_id) + + + +Get an active compatibilities by id + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +compatibilities_class_active_id = 'compatibilities_class_active_id_example' # str | Get an active compatibilities by id + +try: + api_response = api_instance.get_compatibilities_class_active_by_id(compatibilities_class_active_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_compatibilities_class_active_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **compatibilities_class_active_id** | **str**| Get an active compatibilities by id | + +### Return type + +[**CompatibilitiesClassActive**](CompatibilitiesClassActive.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_compatibilities_class_available** +> CompatibilitiesClassAvailable get_compatibilities_class_available() + + + +Get a list of available compatibilities + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.get_compatibilities_class_available() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_compatibilities_class_available: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CompatibilitiesClassAvailable**](CompatibilitiesClassAvailable.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_compatibilities_ssd_active_by_id** +> CompatibilitiesSsdActive get_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id) + + + +Get a active ssd compatibilities by id + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +compatibilities_ssd_active_id = 'compatibilities_ssd_active_id_example' # str | Get a active ssd compatibilities by id + +try: + api_response = api_instance.get_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_compatibilities_ssd_active_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **compatibilities_ssd_active_id** | **str**| Get a active ssd compatibilities by id | + +### Return type + +[**CompatibilitiesSsdActive**](CompatibilitiesSsdActive.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_compatibilities_ssd_available** +> CompatibilitiesSsdAvailable get_compatibilities_ssd_available() + + + +Get a list of available ssd compatibilities + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.get_compatibilities_ssd_available() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_compatibilities_ssd_available: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CompatibilitiesSsdAvailable**](CompatibilitiesSsdAvailable.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_storagepool_nodepool** +> StoragepoolNodepools get_storagepool_nodepool(storagepool_nodepool_id) + + + +Retrieve node pool information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_nodepool_id = 'storagepool_nodepool_id_example' # str | Retrieve node pool information. + +try: + api_response = api_instance.get_storagepool_nodepool(storagepool_nodepool_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_storagepool_nodepool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_nodepool_id** | **str**| Retrieve node pool information. | + +### Return type + +[**StoragepoolNodepools**](StoragepoolNodepools.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_storagepool_settings** +> StoragepoolSettings get_storagepool_settings() + + + +List all settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.get_storagepool_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_storagepool_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**StoragepoolSettings**](StoragepoolSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_storagepool_status** +> StoragepoolStatus get_storagepool_status() + + + +List any health conditions detected. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.get_storagepool_status() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_storagepool_status: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**StoragepoolStatus**](StoragepoolStatus.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_storagepool_storagepools** +> StoragepoolStoragepools get_storagepool_storagepools() + + + +List all storage pools. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.get_storagepool_storagepools() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_storagepool_storagepools: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**StoragepoolStoragepools**](StoragepoolStoragepools.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_storagepool_suggested_protection_nid** +> StoragepoolSuggestedProtection get_storagepool_suggested_protection_nid(storagepool_suggested_protection_nid) + + + +Retrieve the suggested protection policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_suggested_protection_nid = 'storagepool_suggested_protection_nid_example' # str | Retrieve the suggested protection policy. + +try: + api_response = api_instance.get_storagepool_suggested_protection_nid(storagepool_suggested_protection_nid) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_storagepool_suggested_protection_nid: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_suggested_protection_nid** | **str**| Retrieve the suggested protection policy. | + +### Return type + +[**StoragepoolSuggestedProtection**](StoragepoolSuggestedProtection.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_storagepool_tier** +> StoragepoolTiers get_storagepool_tier(storagepool_tier_id) + + + +Retrieve tier information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_tier_id = 'storagepool_tier_id_example' # str | Retrieve tier information. + +try: + api_response = api_instance.get_storagepool_tier(storagepool_tier_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_storagepool_tier: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_tier_id** | **str**| Retrieve tier information. | + +### Return type + +[**StoragepoolTiers**](StoragepoolTiers.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_storagepool_unprovisioned** +> StoragepoolUnprovisioned get_storagepool_unprovisioned() + + + +Get the unprovisioned nodes and drives + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.get_storagepool_unprovisioned() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->get_storagepool_unprovisioned: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**StoragepoolUnprovisioned**](StoragepoolUnprovisioned.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_compatibilities_class_active** +> CompatibilitiesClassActiveExtended list_compatibilities_class_active() + + + +Get a list of active compatibilities + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.list_compatibilities_class_active() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->list_compatibilities_class_active: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CompatibilitiesClassActiveExtended**](CompatibilitiesClassActiveExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_compatibilities_ssd_active** +> CompatibilitiesSsdActiveExtended list_compatibilities_ssd_active() + + + +Get a list of active ssd compatibilities + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.list_compatibilities_ssd_active() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->list_compatibilities_ssd_active: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CompatibilitiesSsdActiveExtended**](CompatibilitiesSsdActiveExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_storagepool_nodepools** +> StoragepoolNodepoolsExtended list_storagepool_nodepools() + + + +List all node pools. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.list_storagepool_nodepools() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->list_storagepool_nodepools: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**StoragepoolNodepoolsExtended**](StoragepoolNodepoolsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_storagepool_tiers** +> StoragepoolTiersExtended list_storagepool_tiers() + + + +List all tiers. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() + +try: + api_response = api_instance.list_storagepool_tiers() + pprint(api_response) +except ApiException as e: + print "Exception when calling StoragepoolApi->list_storagepool_tiers: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**StoragepoolTiersExtended**](StoragepoolTiersExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_compatibilities_ssd_active_by_id** +> update_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id_params, compatibilities_ssd_active_id) + + + +Modify an ssd compatibility by id + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +compatibilities_ssd_active_id_params = isi_sdk.CompatibilitiesSsdActiveIdParams() # CompatibilitiesSsdActiveIdParams | +compatibilities_ssd_active_id = 'compatibilities_ssd_active_id_example' # str | Modify an ssd compatibility by id + +try: + api_instance.update_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id_params, compatibilities_ssd_active_id) +except ApiException as e: + print "Exception when calling StoragepoolApi->update_compatibilities_ssd_active_by_id: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **compatibilities_ssd_active_id_params** | [**CompatibilitiesSsdActiveIdParams**](CompatibilitiesSsdActiveIdParams.md)| | + **compatibilities_ssd_active_id** | **str**| Modify an ssd compatibility by id | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_storagepool_nodepool** +> update_storagepool_nodepool(storagepool_nodepool, storagepool_nodepool_id) + + + +Modify node pool. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_nodepool = isi_sdk.StoragepoolNodepool() # StoragepoolNodepool | +storagepool_nodepool_id = 'storagepool_nodepool_id_example' # str | Modify node pool. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_storagepool_nodepool(storagepool_nodepool, storagepool_nodepool_id) +except ApiException as e: + print "Exception when calling StoragepoolApi->update_storagepool_nodepool: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_nodepool** | [**StoragepoolNodepool**](StoragepoolNodepool.md)| | + **storagepool_nodepool_id** | **str**| Modify node pool. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_storagepool_settings** +> update_storagepool_settings(storagepool_settings) + + + +Modify one or more settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_settings = isi_sdk.StoragepoolSettingsExtended() # StoragepoolSettingsExtended | + +try: + api_instance.update_storagepool_settings(storagepool_settings) +except ApiException as e: + print "Exception when calling StoragepoolApi->update_storagepool_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_settings** | [**StoragepoolSettingsExtended**](StoragepoolSettingsExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_storagepool_tier** +> update_storagepool_tier(storagepool_tier, storagepool_tier_id) + + + +Modify tier. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.StoragepoolApi() +storagepool_tier = isi_sdk.StoragepoolTier() # StoragepoolTier | +storagepool_tier_id = 'storagepool_tier_id_example' # str | Modify tier. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_storagepool_tier(storagepool_tier, storagepool_tier_id) +except ApiException as e: + print "Exception when calling StoragepoolApi->update_storagepool_tier: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **storagepool_tier** | [**StoragepoolTier**](StoragepoolTier.md)| | + **storagepool_tier_id** | **str**| Modify tier. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/StoragepoolNodepool.md b/docs/StoragepoolNodepool.md new file mode 100644 index 000000000..e0321401f --- /dev/null +++ b/docs/StoragepoolNodepool.md @@ -0,0 +1,14 @@ +# StoragepoolNodepool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**l3** | **bool** | Use SSDs in this node pool for L3 cache. | [optional] +**lnns** | **list[int]** | The nodes that are part of this node pool. | [optional] +**name** | **str** | The node pool name. | [optional] +**protection_policy** | **str** | The node pool protection policy. | [optional] +**tier** | **str** | The name or ID of the node pool's tier, if it is in a tier. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolNodepoolExtended.md b/docs/StoragepoolNodepoolExtended.md new file mode 100644 index 000000000..169c3f0fd --- /dev/null +++ b/docs/StoragepoolNodepoolExtended.md @@ -0,0 +1,19 @@ +# StoragepoolNodepoolExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**l3** | **bool** | Use SSDs in this node pool for L3 cache. | [optional] +**lnns** | **list[int]** | The nodes that are part of this node pool. | [optional] +**name** | **str** | The node pool name. | [optional] +**protection_policy** | **str** | The node pool protection policy. | [optional] +**tier** | **str** | The name or ID of the node pool's tier, if it is in a tier. | [optional] +**can_enable_l3** | **bool** | Indicates if enabling L3 is possible. L3 cannot be enabled if there are unprovisioned drives. | +**id** | **int** | The system ID given to the node pool. | +**l3_status** | **str** | 'storage' if the 'l3' option is disabled. If the l3 option is enabled, 'migrating' if any SSDs in this node pool have not yet been migrated to L3. If all SSDs have been migrated, 'l3'. | +**manual** | **bool** | Whether or not the node pool is manually managed. | +**usage** | [**StoragepoolTierUsage**](StoragepoolTierUsage.md) | Total pool usage. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolNodepools.md b/docs/StoragepoolNodepools.md new file mode 100644 index 000000000..5f8bb88eb --- /dev/null +++ b/docs/StoragepoolNodepools.md @@ -0,0 +1,10 @@ +# StoragepoolNodepools + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodepools** | [**list[StoragepoolNodepoolExtended]**](StoragepoolNodepoolExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolNodepoolsExtended.md b/docs/StoragepoolNodepoolsExtended.md new file mode 100644 index 000000000..c18969d8b --- /dev/null +++ b/docs/StoragepoolNodepoolsExtended.md @@ -0,0 +1,11 @@ +# StoragepoolNodepoolsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodepools** | [**list[StoragepoolNodepoolExtended]**](StoragepoolNodepoolExtended.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolSettings.md b/docs/StoragepoolSettings.md new file mode 100644 index 000000000..835b57c27 --- /dev/null +++ b/docs/StoragepoolSettings.md @@ -0,0 +1,10 @@ +# StoragepoolSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**StoragepoolSettingsSettings**](StoragepoolSettingsSettings.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolSettingsExtended.md b/docs/StoragepoolSettingsExtended.md new file mode 100644 index 000000000..8ca6179ee --- /dev/null +++ b/docs/StoragepoolSettingsExtended.md @@ -0,0 +1,20 @@ +# StoragepoolSettingsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**automatically_manage_io_optimization** | **str** | Automatically manage IO optimization settings on files. | [optional] +**automatically_manage_protection** | **str** | Automatically manage protection settings on files. | [optional] +**global_namespace_acceleration_enabled** | **bool** | Optimize namespace operations by storing metadata on SSDs. | [optional] +**protect_directories_one_level_higher** | **bool** | Automatically add additional protection level to all directories. | [optional] +**spillover_enabled** | **bool** | Spill writes into other pools as needed. | [optional] +**spillover_target** | [**StoragepoolSettingsSpilloverTarget**](StoragepoolSettingsSpilloverTarget.md) | Target pool for spilled writes. | [optional] +**ssd_l3_cache_default_enabled** | **bool** | The L3 Cache default enabled state. This specifies whether L3 Cache should be enabled on new node pools | [optional] +**virtual_hot_spare_deny_writes** | **bool** | Deny writes into reserved virtual hot spare space. | [optional] +**virtual_hot_spare_hide_spare** | **bool** | Hide reserved virtual hot spare space from free space counts. | [optional] +**virtual_hot_spare_limit_drives** | **int** | The number of drives to reserve for the virtual hot spare, from 0-4. | [optional] +**virtual_hot_spare_limit_percent** | **int** | The percent space to reserve for the virtual hot spare, from 0-20. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolSettingsSettings.md b/docs/StoragepoolSettingsSettings.md new file mode 100644 index 000000000..97609c546 --- /dev/null +++ b/docs/StoragepoolSettingsSettings.md @@ -0,0 +1,21 @@ +# StoragepoolSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**automatically_manage_io_optimization** | **str** | Automatically manage IO optimization settings on files. | +**automatically_manage_protection** | **str** | Automatically manage protection settings on files. | +**global_namespace_acceleration_enabled** | **bool** | Optimize namespace operations by storing metadata on SSDs. | +**global_namespace_acceleration_state** | **str** | Whether or not namespace operation optimizations are currently in effect. | +**protect_directories_one_level_higher** | **bool** | Automatically add additional protection level to all directories. | +**spillover_enabled** | **bool** | Spill writes into other pools as needed. | +**spillover_target** | [**StoragepoolSettingsSettingsSpilloverTarget**](StoragepoolSettingsSettingsSpilloverTarget.md) | Target pool for spilled writes. | +**ssd_l3_cache_default_enabled** | **bool** | The L3 Cache default enabled state. This specifies whether L3 Cache should be enabled on new node pools. | +**virtual_hot_spare_deny_writes** | **bool** | Deny writes into reserved virtual hot spare space. | +**virtual_hot_spare_hide_spare** | **bool** | Hide reserved virtual hot spare space from free space counts. | +**virtual_hot_spare_limit_drives** | **int** | The number of drives to reserve for the virtual hot spare, from 0-4. | +**virtual_hot_spare_limit_percent** | **int** | The percent space to reserve for the virtual hot spare, from 0-20. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolSettingsSettingsSpilloverTarget.md b/docs/StoragepoolSettingsSettingsSpilloverTarget.md new file mode 100644 index 000000000..0aa5e9ff1 --- /dev/null +++ b/docs/StoragepoolSettingsSettingsSpilloverTarget.md @@ -0,0 +1,12 @@ +# StoragepoolSettingsSettingsSpilloverTarget + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Target pool ID if target specified, otherwise null. | +**name** | **str** | Target pool name if target specified, otherwise null. | +**type** | **str** | Type of target pool. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolSettingsSpilloverTarget.md b/docs/StoragepoolSettingsSpilloverTarget.md new file mode 100644 index 000000000..8a5363329 --- /dev/null +++ b/docs/StoragepoolSettingsSpilloverTarget.md @@ -0,0 +1,11 @@ +# StoragepoolSettingsSpilloverTarget + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name_or_id** | **int** | Target pool ID if target specified, otherwise null. | [optional] +**type** | **str** | Type of target pool. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolStatus.md b/docs/StoragepoolStatus.md new file mode 100644 index 000000000..fdbaad241 --- /dev/null +++ b/docs/StoragepoolStatus.md @@ -0,0 +1,11 @@ +# StoragepoolStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**unhealthy** | [**list[StoragepoolStatusUnhealthyItem]**](StoragepoolStatusUnhealthyItem.md) | Disk pools which are currently unhealthy. | +**unprovisioned** | [**list[StoragepoolStatusUnprovisionedItem]**](StoragepoolStatusUnprovisionedItem.md) | Drives which are not currently provisioned into a disk pool. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolStatusUnhealthyItem.md b/docs/StoragepoolStatusUnhealthyItem.md new file mode 100644 index 000000000..d043cc475 --- /dev/null +++ b/docs/StoragepoolStatusUnhealthyItem.md @@ -0,0 +1,12 @@ +# StoragepoolStatusUnhealthyItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**affected** | [**list[StoragepoolStatusUnhealthyItemAffectedItem]**](StoragepoolStatusUnhealthyItemAffectedItem.md) | The affected nodes and/or drives. | +**diskpool** | [**StoragepoolStatusUnhealthyItemDiskpool**](StoragepoolStatusUnhealthyItemDiskpool.md) | | [optional] +**health_flags** | **list[str]** | An array of containing any health issues with this pool. If the pool is healthy, the list is empty. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolStatusUnhealthyItemAffectedItem.md b/docs/StoragepoolStatusUnhealthyItemAffectedItem.md new file mode 100644 index 000000000..96b196556 --- /dev/null +++ b/docs/StoragepoolStatusUnhealthyItemAffectedItem.md @@ -0,0 +1,14 @@ +# StoragepoolStatusUnhealthyItemAffectedItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device** | **int** | The logical node number or drive identifier. | +**down** | **bool** | Whether or not the device is currently down. | +**restriping** | **bool** | Whether or not the device is currently being repaired. | +**smartfailed** | **bool** | Whether or not the device is currently smartfailed. | +**type** | **str** | The type of affected device. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolStatusUnhealthyItemDiskpool.md b/docs/StoragepoolStatusUnhealthyItemDiskpool.md new file mode 100644 index 000000000..eb3055238 --- /dev/null +++ b/docs/StoragepoolStatusUnhealthyItemDiskpool.md @@ -0,0 +1,15 @@ +# StoragepoolStatusUnhealthyItemDiskpool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**drives** | [**list[StoragepoolStatusUnprovisionedItem]**](StoragepoolStatusUnprovisionedItem.md) | The drives that are part of this disk pool. | +**id** | **int** | The system ID given to the disk pool. | +**name** | **str** | The disk pool name. | +**nodepool_id** | **int** | The system ID of the disk pool's node pool, if it is in a node pool. | +**protection_policy** | **str** | The protection policy for the disk pool. | +**ssd_drives** | [**list[StoragepoolStatusUnprovisionedItem]**](StoragepoolStatusUnprovisionedItem.md) | The SSDs that are part of this disk pool. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolStatusUnprovisionedItem.md b/docs/StoragepoolStatusUnprovisionedItem.md new file mode 100644 index 000000000..588b935b7 --- /dev/null +++ b/docs/StoragepoolStatusUnprovisionedItem.md @@ -0,0 +1,11 @@ +# StoragepoolStatusUnprovisionedItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bay** | **int** | The drive bay number. | +**lnn** | **int** | The node the drive is on. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolStoragepool.md b/docs/StoragepoolStoragepool.md new file mode 100644 index 000000000..bf9d2c19e --- /dev/null +++ b/docs/StoragepoolStoragepool.md @@ -0,0 +1,20 @@ +# StoragepoolStoragepool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**can_enable_l3** | **bool** | Indicates if enabling L3 is possible. L3 cannot be enabled if there are unprovisioned drives. | +**children** | **list[str]** | The names or IDs of the pool's children. | [optional] +**id** | **int** | The system ID given to the pool. | +**l3** | **bool** | Use SSDs in this node pool for L3 cache. | +**l3_status** | **str** | 'storage' if the 'l3' option is disabled. If the l3 option is enabled, 'migrating' if any SSDs in this node pool have not yet been migrated to L3. If all SSDs have been migrated, 'l3'. | +**lnns** | **list[int]** | The nodes that are part of this pool. | +**manual** | **bool** | Whether or not the node pool is manually managed. | [optional] +**name** | **str** | The pool name. | +**protection_policy** | **str** | The underlying protection policy. | [optional] +**type** | **str** | The pool type. | +**usage** | [**StoragepoolTierUsage**](StoragepoolTierUsage.md) | Total pool usage. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolStoragepools.md b/docs/StoragepoolStoragepools.md new file mode 100644 index 000000000..8cf37c92b --- /dev/null +++ b/docs/StoragepoolStoragepools.md @@ -0,0 +1,11 @@ +# StoragepoolStoragepools + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storagepools** | [**list[StoragepoolStoragepool]**](StoragepoolStoragepool.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolSuggestedProtection.md b/docs/StoragepoolSuggestedProtection.md new file mode 100644 index 000000000..91d89c449 --- /dev/null +++ b/docs/StoragepoolSuggestedProtection.md @@ -0,0 +1,10 @@ +# StoragepoolSuggestedProtection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suggested_protection** | [**list[StoragepoolSuggestedProtectionSuggestedProtectionItem]**](StoragepoolSuggestedProtectionSuggestedProtectionItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolSuggestedProtectionSuggestedProtectionItem.md b/docs/StoragepoolSuggestedProtectionSuggestedProtectionItem.md new file mode 100644 index 000000000..ee5f775e9 --- /dev/null +++ b/docs/StoragepoolSuggestedProtectionSuggestedProtectionItem.md @@ -0,0 +1,10 @@ +# StoragepoolSuggestedProtectionSuggestedProtectionItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suggested_protection** | **str** | The suggested protection policy. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolTier.md b/docs/StoragepoolTier.md new file mode 100644 index 000000000..28d07f66e --- /dev/null +++ b/docs/StoragepoolTier.md @@ -0,0 +1,11 @@ +# StoragepoolTier + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**children** | **list[str]** | The names or IDs of the tier's children. | [optional] +**name** | **str** | The tier name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolTierExtended.md b/docs/StoragepoolTierExtended.md new file mode 100644 index 000000000..2224c64f6 --- /dev/null +++ b/docs/StoragepoolTierExtended.md @@ -0,0 +1,14 @@ +# StoragepoolTierExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**children** | **list[str]** | The names or IDs of the tier's children. | [optional] +**name** | **str** | The tier name. | [optional] +**id** | **int** | The system ID given to the tier. | +**lnns** | **list[int]** | The nodes that are part of this tier. | +**usage** | [**StoragepoolTierUsage**](StoragepoolTierUsage.md) | Total pool usage. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolTierUsage.md b/docs/StoragepoolTierUsage.md new file mode 100644 index 000000000..539481de0 --- /dev/null +++ b/docs/StoragepoolTierUsage.md @@ -0,0 +1,17 @@ +# StoragepoolTierUsage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avail_bytes** | **str** | Available free bytes remaining in the pool when virtual hot spare is taken into account. | +**avail_ssd_bytes** | **str** | Available free bytes remaining in the pool on SSD drives when virtual hot spare is taken into account. | +**balanced** | **bool** | Whether or not the pool usage is currently balanced. | +**free_bytes** | **str** | Free bytes remaining in the pool. | +**free_ssd_bytes** | **str** | Free bytes remaining in the pool on SSD drives. | +**total_bytes** | **str** | Total bytes used in the pool. | +**total_ssd_bytes** | **str** | Total bytes used in the pool on SSD drives. | +**virtual_hot_spare_bytes** | **str** | Bytes reserved for virtual hot spare in the pool. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolTiers.md b/docs/StoragepoolTiers.md new file mode 100644 index 000000000..3957c244b --- /dev/null +++ b/docs/StoragepoolTiers.md @@ -0,0 +1,10 @@ +# StoragepoolTiers + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tiers** | [**list[StoragepoolTierExtended]**](StoragepoolTierExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolTiersExtended.md b/docs/StoragepoolTiersExtended.md new file mode 100644 index 000000000..8881bbd02 --- /dev/null +++ b/docs/StoragepoolTiersExtended.md @@ -0,0 +1,11 @@ +# StoragepoolTiersExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tiers** | [**list[StoragepoolTierExtended]**](StoragepoolTierExtended.md) | | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolUnprovisioned.md b/docs/StoragepoolUnprovisioned.md new file mode 100644 index 000000000..4785e90f6 --- /dev/null +++ b/docs/StoragepoolUnprovisioned.md @@ -0,0 +1,10 @@ +# StoragepoolUnprovisioned + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**unprovisioned** | [**list[StoragepoolUnprovisionedUnprovisionedItem]**](StoragepoolUnprovisionedUnprovisionedItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StoragepoolUnprovisionedUnprovisionedItem.md b/docs/StoragepoolUnprovisionedUnprovisionedItem.md new file mode 100644 index 000000000..5a5dfa28e --- /dev/null +++ b/docs/StoragepoolUnprovisionedUnprovisionedItem.md @@ -0,0 +1,11 @@ +# StoragepoolUnprovisionedUnprovisionedItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**drives** | [**list[StoragepoolStatusUnprovisionedItem]**](StoragepoolStatusUnprovisionedItem.md) | A list of unprovisioned drives that do not belong to an unprovisioned node. | +**lnns** | **list[int]** | A list of lnns whose drives are all unprovisioned | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubnetsSubnetPool.md b/docs/SubnetsSubnetPool.md new file mode 100644 index 000000000..12fa4c8f2 --- /dev/null +++ b/docs/SubnetsSubnetPool.md @@ -0,0 +1,25 @@ +# SubnetsSubnetPool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_zone** | **str** | Name of a valid access zone to map IP address pool to the zone. | [optional] +**aggregation_mode** | **str** | OneFS supports the following NIC aggregation modes. | [optional] +**alloc_method** | **str** | Specifies how IP address allocation is done among pool members. | [optional] +**description** | **str** | A description of the pool. | [optional] +**ifaces** | [**list[SubnetsSubnetPoolIface]**](SubnetsSubnetPoolIface.md) | List of interface members in this pool. | [optional] +**name** | **str** | The name of the pool. It must be unique throughout the given subnet.It's a required field with POST method. | [optional] +**ranges** | [**list[SubnetsSubnetPoolRange]**](SubnetsSubnetPoolRange.md) | List of IP address ranges in this pool. | [optional] +**rebalance_policy** | **str** | Rebalance policy.. | [optional] +**sc_auto_unsuspend_delay** | **int** | Time delay in seconds before a node which has been automatically unsuspended becomes usable in SmartConnect responses for pool zones. | [optional] +**sc_connect_policy** | **str** | SmartConnect client connection balancing policy. | [optional] +**sc_dns_zone** | **str** | SmartConnect zone name for the pool. | [optional] +**sc_dns_zone_aliases** | **list[str]** | List of SmartConnect zone aliases (DNS names) to the pool. | [optional] +**sc_failover_policy** | **str** | SmartConnect IP failover policy. | [optional] +**sc_subnet** | **str** | Name of SmartConnect service subnet for this pool. | [optional] +**sc_ttl** | **int** | Time to live value for SmartConnect DNS query responses in seconds. | [optional] +**static_routes** | [**list[SubnetsSubnetPoolStaticRoute]**](SubnetsSubnetPoolStaticRoute.md) | List of interface members in this pool. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubnetsSubnetPoolIface.md b/docs/SubnetsSubnetPoolIface.md new file mode 100644 index 000000000..9490df28c --- /dev/null +++ b/docs/SubnetsSubnetPoolIface.md @@ -0,0 +1,11 @@ +# SubnetsSubnetPoolIface + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**iface** | **str** | A string that defines an interface name. | [optional] +**lnn** | **int** | Logical Node Number. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubnetsSubnetPoolRange.md b/docs/SubnetsSubnetPoolRange.md new file mode 100644 index 000000000..1dd9e8149 --- /dev/null +++ b/docs/SubnetsSubnetPoolRange.md @@ -0,0 +1,11 @@ +# SubnetsSubnetPoolRange + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**high** | **str** | High IP | +**low** | **str** | Low IP | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubnetsSubnetPoolStaticRoute.md b/docs/SubnetsSubnetPoolStaticRoute.md new file mode 100644 index 000000000..367d02240 --- /dev/null +++ b/docs/SubnetsSubnetPoolStaticRoute.md @@ -0,0 +1,12 @@ +# SubnetsSubnetPoolStaticRoute + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gateway** | **str** | Address of the gateway in the format: yyy.yyy.yyy.yyy | +**prefixlen** | **int** | Prefix length in the format: nn. | +**subnet** | **str** | Network address in the format: xxx.xxx.xxx.xxx | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubnetsSubnetPools.md b/docs/SubnetsSubnetPools.md new file mode 100644 index 000000000..105150b07 --- /dev/null +++ b/docs/SubnetsSubnetPools.md @@ -0,0 +1,10 @@ +# SubnetsSubnetPools + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pools** | [**list[SubnetsSubnetPoolsPool]**](SubnetsSubnetPoolsPool.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubnetsSubnetPoolsExtended.md b/docs/SubnetsSubnetPoolsExtended.md new file mode 100644 index 000000000..dd264ac55 --- /dev/null +++ b/docs/SubnetsSubnetPoolsExtended.md @@ -0,0 +1,12 @@ +# SubnetsSubnetPoolsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pools** | [**list[SubnetsSubnetPoolsPool]**](SubnetsSubnetPoolsPool.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubnetsSubnetPoolsPool.md b/docs/SubnetsSubnetPoolsPool.md new file mode 100644 index 000000000..2e9f15732 --- /dev/null +++ b/docs/SubnetsSubnetPoolsPool.md @@ -0,0 +1,31 @@ +# SubnetsSubnetPoolsPool + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_zone** | **str** | Name of a valid access zone to map IP address pool to the zone. | +**addr_family** | **str** | IP address format. | +**aggregation_mode** | **str** | OneFS supports the following NIC aggregation modes. | +**alloc_method** | **str** | Specifies how IP address allocation is done among pool members. | +**description** | **str** | A description of the pool. | +**groupnet** | **str** | Name of the groupnet this pool belongs to. | +**id** | **str** | Unique Pool ID. | +**ifaces** | [**list[SubnetsSubnetPoolIface]**](SubnetsSubnetPoolIface.md) | List of interface members in this pool. | +**name** | **str** | The name of the pool. It must be unique throughout the given subnet.It's a required field with POST method. | +**ranges** | [**list[SubnetsSubnetPoolRange]**](SubnetsSubnetPoolRange.md) | List of IP address ranges in this pool. | +**rebalance_policy** | **str** | Rebalance policy.. | +**rules** | **list[str]** | Names of the rules in this pool. | +**sc_auto_unsuspend_delay** | **int** | Time delay in seconds before a node which has been automatically unsuspended becomes usable in SmartConnect responses for pool zones. | +**sc_connect_policy** | **str** | SmartConnect client connection balancing policy. | +**sc_dns_zone** | **str** | SmartConnect zone name for the pool. | +**sc_dns_zone_aliases** | **list[str]** | List of SmartConnect zone aliases (DNS names) to the pool. | +**sc_failover_policy** | **str** | SmartConnect IP failover policy. | +**sc_subnet** | **str** | Name of SmartConnect service subnet for this pool. | +**sc_suspended_nodes** | **list[int]** | List of LNNs showing currently suspended nodes in SmartConnect. | +**sc_ttl** | **int** | Time to live value for SmartConnect DNS query responses in seconds. | +**static_routes** | [**list[SubnetsSubnetPoolStaticRoute]**](SubnetsSubnetPoolStaticRoute.md) | List of interface members in this pool. | +**subnet** | **str** | The name of the subnet. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummaryClient.md b/docs/SummaryClient.md new file mode 100644 index 000000000..e0fc93b16 --- /dev/null +++ b/docs/SummaryClient.md @@ -0,0 +1,10 @@ +# SummaryClient + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client** | [**list[SummaryClientClientItem]**](SummaryClientClientItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummaryClientClientItem.md b/docs/SummaryClientClientItem.md new file mode 100644 index 000000000..a30729e0b --- /dev/null +++ b/docs/SummaryClientClientItem.md @@ -0,0 +1,31 @@ +# SummaryClientClientItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_class** | **str** | The class of the operation. | +**_in** | **float** | Rate of input (in bytes/second) for an operation since the last time isi statistics collected the data. | +**in_avg** | **float** | Average input (received) bytes for an operation, in bytes. | +**in_max** | **float** | Maximum input (received) bytes for an operation, in bytes. | +**in_min** | **float** | Minimum input (received) bytes for an operation, in bytes. | +**local_addr** | **str** | The IP address (in dotted-quad form) of the host receiving the operation request. | +**local_name** | **str** | The resolved text name of the LocalAddr, if resolution can be performed. | +**node** | **int** | The node on which the operation was performed. | +**num_operations** | **int** | The number of times an operation has been performed. | +**operation_rate** | **float** | The rate (in ops/second) at which an operation has been performed. | +**out** | **float** | Rate of output (in bytes/second) for an operation since the last time isi statistics collected the data. | +**out_avg** | **float** | Average output (sent) bytes for an operation, in bytes. | +**out_max** | **float** | Maximum output (sent) bytes for an operation, in bytes. | +**out_min** | **float** | Minimum output (sent) bytes for an operation, in bytes. | +**protocol** | **str** | The protocol of the operation. | +**remote_addr** | **str** | The IP address (in dotted-quad form) of the host sending the operation request. | +**remote_name** | **str** | The resolved text name of the RemoteAddr, if resolution can be performed. | +**time** | **int** | Unix Epoch time in seconds of the request. | +**time_avg** | **float** | The average elapsed time (in microseconds) taken to complete an operation. | +**time_max** | **float** | The maximum elapsed time (in microseconds) taken to complete an operation. | +**time_min** | **float** | The minimum elapsed time (in microseconds) taken to complete an operation. | +**user** | [**GroupMember**](GroupMember.md) | User issuing the operation. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummaryDrive.md b/docs/SummaryDrive.md new file mode 100644 index 000000000..e3dc4a2ea --- /dev/null +++ b/docs/SummaryDrive.md @@ -0,0 +1,10 @@ +# SummaryDrive + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**drive** | [**list[SummaryDriveDriveItem]**](SummaryDriveDriveItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummaryDriveDriveItem.md b/docs/SummaryDriveDriveItem.md new file mode 100644 index 000000000..4c3cb9017 --- /dev/null +++ b/docs/SummaryDriveDriveItem.md @@ -0,0 +1,25 @@ +# SummaryDriveDriveItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_latency** | **float** | The average operation latency. | +**access_slow** | **float** | The rate of slow (long-latency) operations. | +**busy** | **float** | The percentage of time the drive was busy. | +**bytes_in** | **float** | The rate of bytes written. | +**bytes_out** | **float** | The rate of bytes read. | +**drive_id** | **str** | Drive ID LNN:bay. | +**iosched_latency** | **float** | The average time spent in the I/O scheduler. | +**iosched_queue** | **float** | The average length of the I/O scheduler queue. | +**time** | **int** | Unix Epoch time in seconds of the request. | +**type** | **str** | The type of the drive. | +**used_bytes_percent** | **float** | The percent of blocks used on the drive. | +**used_inodes** | **float** | The number of inodes allocated on the drive. | +**xfer_size_in** | **float** | The average size of write operations. | +**xfer_size_out** | **float** | The average size of read operations. | +**xfers_in** | **float** | The rate of write operations. | +**xfers_out** | **float** | The rate of read operations. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummaryHeat.md b/docs/SummaryHeat.md new file mode 100644 index 000000000..52e85e562 --- /dev/null +++ b/docs/SummaryHeat.md @@ -0,0 +1,10 @@ +# SummaryHeat + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**heat** | [**list[SummaryHeatHeatItem]**](SummaryHeatHeatItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummaryHeatHeatItem.md b/docs/SummaryHeatHeatItem.md new file mode 100644 index 000000000..54f2bf916 --- /dev/null +++ b/docs/SummaryHeatHeatItem.md @@ -0,0 +1,17 @@ +# SummaryHeatHeatItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**class_name** | **str** | The class of operation | +**event_name** | **str** | The type of event | +**event_type** | **int** | The event type id | +**lin** | **str** | Logical inode (LIN) | +**node** | **int** | The node where this event occurred. | +**operation_rate** | **float** | Approximate operations per second for this lin. | +**path** | **str** | Canonical LIN path if known | +**time** | **int** | Unix Epoch time in seconds of the request. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummaryProtocol.md b/docs/SummaryProtocol.md new file mode 100644 index 000000000..bc495d98b --- /dev/null +++ b/docs/SummaryProtocol.md @@ -0,0 +1,10 @@ +# SummaryProtocol + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**protocol** | [**list[SummaryProtocolProtocolItem]**](SummaryProtocolProtocolItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummaryProtocolProtocolItem.md b/docs/SummaryProtocolProtocolItem.md new file mode 100644 index 000000000..d2181e312 --- /dev/null +++ b/docs/SummaryProtocolProtocolItem.md @@ -0,0 +1,30 @@ +# SummaryProtocolProtocolItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_class** | **str** | The class of the operation. | +**_in** | **float** | Rate of input (in bytes/second) for an operation since the last time isi statistics collected the data. | +**in_avg** | **float** | Average input (received) bytes for an operation, in bytes. | +**in_max** | **float** | Maximum input (received) bytes for an operation, in bytes. | +**in_min** | **float** | Minimum input (received) bytes for an operation, in bytes. | +**in_standard_dev** | **float** | Standard deviation for input (received) bytes for an operation, in bytes. | +**node** | **int** | The node on which the operation was performed. | +**operation** | **str** | The operation performed. | +**operation_count** | **int** | The number of times an operation has been performed. | +**operation_rate** | **float** | The rate (in ops/second) at which an operation has been performed. | +**out** | **float** | Rate of output (in bytes/second) for an operation since the last time isi statistics collected the data. | +**out_avg** | **float** | Average output (sent) bytes for an operation, in bytes. | +**out_max** | **float** | Maximum output (sent) bytes for an operation, in bytes. | +**out_min** | **float** | Minimum output (sent) bytes for an operation, in bytes. | +**out_standard_dev** | **float** | Standard deviation for output (received) bytes for an operation, in bytes. | +**protocol** | **str** | The protocol of the operation. | +**time** | **int** | Unix Epoch time in seconds of the request. | +**time_avg** | **float** | The average elapsed time (in microseconds) taken to complete an operation. | +**time_max** | **float** | The maximum elapsed time (in microseconds) taken to complete an operation. | +**time_min** | **float** | The minimum elapsed time (in microseconds) taken to complete an operation. | +**time_standard_dev** | **float** | The standard deviation time (in microseconds) taken to complete an operation. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummarySystem.md b/docs/SummarySystem.md new file mode 100644 index 000000000..506aa6011 --- /dev/null +++ b/docs/SummarySystem.md @@ -0,0 +1,10 @@ +# SummarySystem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**system** | [**list[SummarySystemSystemItem]**](SummarySystemSystemItem.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SummarySystemSystemItem.md b/docs/SummarySystemSystemItem.md new file mode 100644 index 000000000..6f839a119 --- /dev/null +++ b/docs/SummarySystemSystemItem.md @@ -0,0 +1,23 @@ +# SummarySystemSystemItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | **float** | The percentage CPU utilization. | +**disk_in** | **float** | Traffic to disk (in bytes/sec). | +**disk_out** | **float** | Traffic from disk (in bytes/sec). | +**ftp** | **float** | The total throughput (in bytes/sec) for FTP operations. | +**hdfs** | **float** | The total throughput (in bytes/second) for HDFS operations. | +**http** | **float** | The total throughput (in bytes/sec) for HTTP operations. | +**iscsi** | **float** | The total throughput (in bytes/sec) for ISCSI operations. | +**net_in** | **float** | Incoming network traffic (in bytes/sec) for all operations. | +**net_out** | **float** | Outgoing network traffic (in bytes/sec) for all operations. | +**nfs** | **float** | The total throughput (in bytes/sec) for NFS (NFS3 & NFS4) operations. | +**node** | **str** | Node ID/LNN, 'All' for cluster. | +**smb** | **float** | The total throughput (in bytes/sec) for SMB (SMB1 & SMB2) operations. | +**time** | **int** | Unix Epoch time in seconds of the request. | +**total** | **float** | The total throughput (in bytes/sec) for all protocols listed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SwiftAccount.md b/docs/SwiftAccount.md new file mode 100644 index 000000000..d7547000f --- /dev/null +++ b/docs/SwiftAccount.md @@ -0,0 +1,15 @@ +# SwiftAccount + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique id of swift account | [optional] +**name** | **str** | Name of Swift account | +**swiftgroup** | **str** | Group with filesystem ownership of this account | [optional] +**swiftuser** | **str** | User with filesystem ownership of this account | [optional] +**users** | **list[str]** | Users who are allowed to access Swift account | [optional] +**zone** | **str** | Name of access zone for account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SwiftAccountExtended.md b/docs/SwiftAccountExtended.md new file mode 100644 index 000000000..ce5cbd306 --- /dev/null +++ b/docs/SwiftAccountExtended.md @@ -0,0 +1,16 @@ +# SwiftAccountExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique id of swift account | [optional] +**name** | **str** | Name of Swift account | +**swiftgroup** | **str** | Group with filesystem ownership of this account | [optional] +**swiftuser** | **str** | User with filesystem ownership of this account | [optional] +**users** | **list[str]** | Users who are allowed to access Swift account | [optional] +**zone** | **str** | Name of access zone for account | [optional] +**path** | **str** | Path to root of Swift account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SwiftAccounts.md b/docs/SwiftAccounts.md new file mode 100644 index 000000000..48233486e --- /dev/null +++ b/docs/SwiftAccounts.md @@ -0,0 +1,11 @@ +# SwiftAccounts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | [**list[SwiftAccountExtended]**](SwiftAccountExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncApi.md b/docs/SyncApi.md new file mode 100644 index 000000000..ece20d081 --- /dev/null +++ b/docs/SyncApi.md @@ -0,0 +1,1701 @@ +# isi_sdk.SyncApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sync_job**](SyncApi.md#create_sync_job) | **POST** /platform/3/sync/jobs | +[**create_sync_policy**](SyncApi.md#create_sync_policy) | **POST** /platform/3/sync/policies | +[**create_sync_reports_rotate_item**](SyncApi.md#create_sync_reports_rotate_item) | **POST** /platform/1/sync/reports-rotate | +[**create_sync_rule**](SyncApi.md#create_sync_rule) | **POST** /platform/3/sync/rules | +[**delete_sync_policies**](SyncApi.md#delete_sync_policies) | **DELETE** /platform/3/sync/policies | +[**delete_sync_policy**](SyncApi.md#delete_sync_policy) | **DELETE** /platform/3/sync/policies/{SyncPolicyId} | +[**delete_sync_rule**](SyncApi.md#delete_sync_rule) | **DELETE** /platform/3/sync/rules/{SyncRuleId} | +[**delete_sync_rules**](SyncApi.md#delete_sync_rules) | **DELETE** /platform/3/sync/rules | +[**delete_target_policy**](SyncApi.md#delete_target_policy) | **DELETE** /platform/1/sync/target/policies/{TargetPolicyId} | +[**get_history_cpu**](SyncApi.md#get_history_cpu) | **GET** /platform/3/sync/history/cpu | +[**get_history_file**](SyncApi.md#get_history_file) | **GET** /platform/1/sync/history/file | +[**get_history_network**](SyncApi.md#get_history_network) | **GET** /platform/1/sync/history/network | +[**get_history_worker**](SyncApi.md#get_history_worker) | **GET** /platform/3/sync/history/worker | +[**get_sync_job**](SyncApi.md#get_sync_job) | **GET** /platform/3/sync/jobs/{SyncJobId} | +[**get_sync_license**](SyncApi.md#get_sync_license) | **GET** /platform/1/sync/license | +[**get_sync_policy**](SyncApi.md#get_sync_policy) | **GET** /platform/3/sync/policies/{SyncPolicyId} | +[**get_sync_report**](SyncApi.md#get_sync_report) | **GET** /platform/1/sync/reports/{SyncReportId} | +[**get_sync_reports**](SyncApi.md#get_sync_reports) | **GET** /platform/1/sync/reports | +[**get_sync_rule**](SyncApi.md#get_sync_rule) | **GET** /platform/3/sync/rules/{SyncRuleId} | +[**get_sync_settings**](SyncApi.md#get_sync_settings) | **GET** /platform/3/sync/settings | +[**get_target_policies**](SyncApi.md#get_target_policies) | **GET** /platform/1/sync/target/policies | +[**get_target_policy**](SyncApi.md#get_target_policy) | **GET** /platform/1/sync/target/policies/{TargetPolicyId} | +[**get_target_report**](SyncApi.md#get_target_report) | **GET** /platform/1/sync/target/reports/{TargetReportId} | +[**get_target_reports**](SyncApi.md#get_target_reports) | **GET** /platform/1/sync/target/reports | +[**list_sync_jobs**](SyncApi.md#list_sync_jobs) | **GET** /platform/3/sync/jobs | +[**list_sync_policies**](SyncApi.md#list_sync_policies) | **GET** /platform/3/sync/policies | +[**list_sync_reports_rotate**](SyncApi.md#list_sync_reports_rotate) | **GET** /platform/1/sync/reports-rotate | +[**list_sync_rules**](SyncApi.md#list_sync_rules) | **GET** /platform/3/sync/rules | +[**update_sync_job**](SyncApi.md#update_sync_job) | **PUT** /platform/3/sync/jobs/{SyncJobId} | +[**update_sync_policy**](SyncApi.md#update_sync_policy) | **PUT** /platform/3/sync/policies/{SyncPolicyId} | +[**update_sync_rule**](SyncApi.md#update_sync_rule) | **PUT** /platform/3/sync/rules/{SyncRuleId} | +[**update_sync_settings**](SyncApi.md#update_sync_settings) | **PUT** /platform/3/sync/settings | + + +# **create_sync_job** +> CreateResponse create_sync_job(sync_job) + + + +Start a SyncIQ job. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_job = isi_sdk.SyncJobCreateParams() # SyncJobCreateParams | + +try: + api_response = api_instance.create_sync_job(sync_job) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->create_sync_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_job** | [**SyncJobCreateParams**](SyncJobCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_sync_policy** +> CreateResponse create_sync_policy(sync_policy) + + + +Create a SyncIQ policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_policy = isi_sdk.SyncPolicyCreateParams() # SyncPolicyCreateParams | + +try: + api_response = api_instance.create_sync_policy(sync_policy) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->create_sync_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_policy** | [**SyncPolicyCreateParams**](SyncPolicyCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_sync_reports_rotate_item** +> CreateSyncReportsRotateItemResponse create_sync_reports_rotate_item(sync_reports_rotate_item) + + + +Rotate the records in the database(s). + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_reports_rotate_item = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_sync_reports_rotate_item(sync_reports_rotate_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->create_sync_reports_rotate_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_reports_rotate_item** | [**Empty**](Empty.md)| | + +### Return type + +[**CreateSyncReportsRotateItemResponse**](CreateSyncReportsRotateItemResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_sync_rule** +> CreateResponse create_sync_rule(sync_rule) + + + +Create a new SyncIQ performance rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_rule = isi_sdk.SyncRuleCreateParams() # SyncRuleCreateParams | + +try: + api_response = api_instance.create_sync_rule(sync_rule) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->create_sync_rule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_rule** | [**SyncRuleCreateParams**](SyncRuleCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_sync_policies** +> delete_sync_policies(local_only=local_only, force=force) + + + +Delete all SyncIQ policies. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +local_only = true # bool | Skip deleting the policy association on the target. (optional) +force = true # bool | Ignore any running jobs when preparing to delete a policy. (optional) + +try: + api_instance.delete_sync_policies(local_only=local_only, force=force) +except ApiException as e: + print "Exception when calling SyncApi->delete_sync_policies: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **local_only** | **bool**| Skip deleting the policy association on the target. | [optional] + **force** | **bool**| Ignore any running jobs when preparing to delete a policy. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_sync_policy** +> delete_sync_policy(sync_policy_id, local_only=local_only, force=force) + + + +Delete a single SyncIQ policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_policy_id = 'sync_policy_id_example' # str | Delete a single SyncIQ policy. +local_only = true # bool | Skip deleting the policy association on the target. (optional) +force = true # bool | Ignore any running jobs when preparing to delete a policy. (optional) + +try: + api_instance.delete_sync_policy(sync_policy_id, local_only=local_only, force=force) +except ApiException as e: + print "Exception when calling SyncApi->delete_sync_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_policy_id** | **str**| Delete a single SyncIQ policy. | + **local_only** | **bool**| Skip deleting the policy association on the target. | [optional] + **force** | **bool**| Ignore any running jobs when preparing to delete a policy. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_sync_rule** +> delete_sync_rule(sync_rule_id) + + + +Delete a single SyncIQ performance rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_rule_id = 'sync_rule_id_example' # str | Delete a single SyncIQ performance rule. + +try: + api_instance.delete_sync_rule(sync_rule_id) +except ApiException as e: + print "Exception when calling SyncApi->delete_sync_rule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_rule_id** | **str**| Delete a single SyncIQ performance rule. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_sync_rules** +> delete_sync_rules(type=type) + + + +Delete all SyncIQ performance rules or all rules of a specified type. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +type = 'type_example' # str | Delete all rules of the specified rule type only. (optional) + +try: + api_instance.delete_sync_rules(type=type) +except ApiException as e: + print "Exception when calling SyncApi->delete_sync_rules: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **str**| Delete all rules of the specified rule type only. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_target_policy** +> delete_target_policy(target_policy_id, force=force) + + + +Break the target association with this cluster for this policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +target_policy_id = 'target_policy_id_example' # str | Break the target association with this cluster for this policy. +force = true # bool | Ignore any running jobs when preparing to delete the policy target association. (optional) + +try: + api_instance.delete_target_policy(target_policy_id, force=force) +except ApiException as e: + print "Exception when calling SyncApi->delete_target_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **target_policy_id** | **str**| Break the target association with this cluster for this policy. | + **force** | **bool**| Ignore any running jobs when preparing to delete the policy target association. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_history_cpu** +> HistoryFile get_history_cpu(begin=begin, end=end) + + + +List cpu performance data. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +begin = 56 # int | Begin timestamp for time-series report. (optional) +end = 56 # int | End timestamp for time-series report. (optional) + +try: + api_response = api_instance.get_history_cpu(begin=begin, end=end) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_history_cpu: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **begin** | **int**| Begin timestamp for time-series report. | [optional] + **end** | **int**| End timestamp for time-series report. | [optional] + +### Return type + +[**HistoryFile**](HistoryFile.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_history_file** +> HistoryFile get_history_file(begin=begin, end=end) + + + +List file operations performance data. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +begin = 56 # int | Begin timestamp for time-series report. (optional) +end = 56 # int | End timestamp for time-series report. (optional) + +try: + api_response = api_instance.get_history_file(begin=begin, end=end) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_history_file: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **begin** | **int**| Begin timestamp for time-series report. | [optional] + **end** | **int**| End timestamp for time-series report. | [optional] + +### Return type + +[**HistoryFile**](HistoryFile.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_history_network** +> HistoryFile get_history_network(begin=begin, end=end) + + + +List network operations performance data. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +begin = 56 # int | Begin timestamp for time-series report. (optional) +end = 56 # int | End timestamp for time-series report. (optional) + +try: + api_response = api_instance.get_history_network(begin=begin, end=end) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_history_network: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **begin** | **int**| Begin timestamp for time-series report. | [optional] + **end** | **int**| End timestamp for time-series report. | [optional] + +### Return type + +[**HistoryFile**](HistoryFile.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_history_worker** +> HistoryFile get_history_worker(begin=begin, end=end) + + + +List worker performance data. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +begin = 56 # int | Begin timestamp for time-series report. (optional) +end = 56 # int | End timestamp for time-series report. (optional) + +try: + api_response = api_instance.get_history_worker(begin=begin, end=end) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_history_worker: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **begin** | **int**| Begin timestamp for time-series report. | [optional] + **end** | **int**| End timestamp for time-series report. | [optional] + +### Return type + +[**HistoryFile**](HistoryFile.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sync_job** +> SyncJobs get_sync_job(sync_job_id) + + + +View a single SyncIQ job. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_job_id = 'sync_job_id_example' # str | View a single SyncIQ job. + +try: + api_response = api_instance.get_sync_job(sync_job_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_sync_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_job_id** | **str**| View a single SyncIQ job. | + +### Return type + +[**SyncJobs**](SyncJobs.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sync_license** +> LicenseLicense get_sync_license() + + + +Retrieve license information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() + +try: + api_response = api_instance.get_sync_license() + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_sync_license: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**LicenseLicense**](LicenseLicense.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sync_policy** +> SyncPolicies get_sync_policy(sync_policy_id) + + + +View a single SyncIQ policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_policy_id = 'sync_policy_id_example' # str | View a single SyncIQ policy. + +try: + api_response = api_instance.get_sync_policy(sync_policy_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_sync_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_policy_id** | **str**| View a single SyncIQ policy. | + +### Return type + +[**SyncPolicies**](SyncPolicies.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sync_report** +> SyncReports get_sync_report(sync_report_id) + + + +View a single SyncIQ report. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_report_id = 'sync_report_id_example' # str | View a single SyncIQ report. + +try: + api_response = api_instance.get_sync_report(sync_report_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_sync_report: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_report_id** | **str**| View a single SyncIQ report. | + +### Return type + +[**SyncReports**](SyncReports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sync_reports** +> SyncReportsExtended get_sync_reports(sort=sort, resume=resume, newer_than=newer_than, policy_name=policy_name, state=state, limit=limit, reports_per_policy=reports_per_policy, dir=dir) + + + +Get a list of SyncIQ reports. By default 10 reports are returned per policy, unless otherwise specified by 'reports_per_policy'. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +newer_than = 56 # int | Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. (optional) +policy_name = 'policy_name_example' # str | Filter the returned reports to include only those with this policy name. (optional) +state = 'state_example' # str | Filter the returned reports to include only those whose jobs are in this state. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +reports_per_policy = 56 # int | If specified, only the N most recent reports will be returned per policy. If no other query args are present this argument defaults to 10. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_sync_reports(sort=sort, resume=resume, newer_than=newer_than, policy_name=policy_name, state=state, limit=limit, reports_per_policy=reports_per_policy, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_sync_reports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **newer_than** | **int**| Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. | [optional] + **policy_name** | **str**| Filter the returned reports to include only those with this policy name. | [optional] + **state** | **str**| Filter the returned reports to include only those whose jobs are in this state. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **reports_per_policy** | **int**| If specified, only the N most recent reports will be returned per policy. If no other query args are present this argument defaults to 10. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**SyncReportsExtended**](SyncReportsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sync_rule** +> SyncRules get_sync_rule(sync_rule_id) + + + +View a single SyncIQ performance rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_rule_id = 'sync_rule_id_example' # str | View a single SyncIQ performance rule. + +try: + api_response = api_instance.get_sync_rule(sync_rule_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_sync_rule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_rule_id** | **str**| View a single SyncIQ performance rule. | + +### Return type + +[**SyncRules**](SyncRules.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_sync_settings** +> SyncSettings get_sync_settings() + + + +Retrieve the global SyncIQ settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() + +try: + api_response = api_instance.get_sync_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_sync_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SyncSettings**](SyncSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_target_policies** +> TargetPoliciesExtended get_target_policies(sort=sort, target_path=target_path, limit=limit, dir=dir, resume=resume) + + + +List all SyncIQ target policies. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +target_path = 'target_path_example' # str | Filter the returned policies to include only those with this target path. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.get_target_policies(sort=sort, target_path=target_path, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_target_policies: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **target_path** | **str**| Filter the returned policies to include only those with this target path. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**TargetPoliciesExtended**](TargetPoliciesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_target_policy** +> TargetPolicies get_target_policy(target_policy_id) + + + +View a single SyncIQ target policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +target_policy_id = 'target_policy_id_example' # str | View a single SyncIQ target policy. + +try: + api_response = api_instance.get_target_policy(target_policy_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_target_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **target_policy_id** | **str**| View a single SyncIQ target policy. | + +### Return type + +[**TargetPolicies**](TargetPolicies.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_target_report** +> TargetReports get_target_report(target_report_id) + + + +View a single SyncIQ target report. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +target_report_id = 'target_report_id_example' # str | View a single SyncIQ target report. + +try: + api_response = api_instance.get_target_report(target_report_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_target_report: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **target_report_id** | **str**| View a single SyncIQ target report. | + +### Return type + +[**TargetReports**](TargetReports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_target_reports** +> TargetReportsExtended get_target_reports(sort=sort, resume=resume, newer_than=newer_than, policy_name=policy_name, state=state, limit=limit, reports_per_policy=reports_per_policy, dir=dir) + + + +Get a list of SyncIQ target reports. By default 10 reports are returned per policy, unless otherwise specified by 'reports_per_policy'. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +newer_than = 56 # int | Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. (optional) +policy_name = 'policy_name_example' # str | Filter the returned reports to include only those with this policy name. (optional) +state = 'state_example' # str | Filter the returned reports to include only those whose jobs are in this state. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +reports_per_policy = 56 # int | If specified, only the N most recent reports will be returned per policy. If no other query args are present this argument defaults to 10. (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_target_reports(sort=sort, resume=resume, newer_than=newer_than, policy_name=policy_name, state=state, limit=limit, reports_per_policy=reports_per_policy, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->get_target_reports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **newer_than** | **int**| Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. | [optional] + **policy_name** | **str**| Filter the returned reports to include only those with this policy name. | [optional] + **state** | **str**| Filter the returned reports to include only those whose jobs are in this state. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **reports_per_policy** | **int**| If specified, only the N most recent reports will be returned per policy. If no other query args are present this argument defaults to 10. | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**TargetReportsExtended**](TargetReportsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_sync_jobs** +> SyncJobsExtended list_sync_jobs(sort=sort, state=state, limit=limit, dir=dir, resume=resume) + + + +Get a list of SyncIQ jobs. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +state = 'state_example' # str | The state of the job. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_sync_jobs(sort=sort, state=state, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->list_sync_jobs: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **state** | **str**| The state of the job. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SyncJobsExtended**](SyncJobsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_sync_policies** +> SyncPoliciesExtended list_sync_policies(sort=sort, scope=scope, limit=limit, dir=dir, resume=resume) + + + +List all SyncIQ policies. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +scope = 'scope_example' # str | If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_sync_policies(sort=sort, scope=scope, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->list_sync_policies: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **scope** | **str**| If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SyncPoliciesExtended**](SyncPoliciesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_sync_reports_rotate** +> SyncReportsRotate list_sync_reports_rotate() + + + +Whether the rotation is still running or not. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() + +try: + api_response = api_instance.list_sync_reports_rotate() + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->list_sync_reports_rotate: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SyncReportsRotate**](SyncReportsRotate.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_sync_rules** +> SyncRulesExtended list_sync_rules(sort=sort, type=type, limit=limit, dir=dir, resume=resume) + + + +List all SyncIQ performance rules. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +type = 'type_example' # str | Filter the returned rules to include only those with this rule type. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_sync_rules(sort=sort, type=type, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncApi->list_sync_rules: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **type** | **str**| Filter the returned rules to include only those with this rule type. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**SyncRulesExtended**](SyncRulesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_sync_job** +> update_sync_job(sync_job, sync_job_id) + + + +Perform an action (pause, cancel, etc...) on a single job. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_job = isi_sdk.SyncJob() # SyncJob | +sync_job_id = 'sync_job_id_example' # str | Perform an action (pause, cancel, etc...) on a single job. + +try: + api_instance.update_sync_job(sync_job, sync_job_id) +except ApiException as e: + print "Exception when calling SyncApi->update_sync_job: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_job** | [**SyncJob**](SyncJob.md)| | + **sync_job_id** | **str**| Perform an action (pause, cancel, etc...) on a single job. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_sync_policy** +> update_sync_policy(sync_policy, sync_policy_id) + + + +Modify a single SyncIQ policy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_policy = isi_sdk.SyncPolicy() # SyncPolicy | +sync_policy_id = 'sync_policy_id_example' # str | Modify a single SyncIQ policy. + +try: + api_instance.update_sync_policy(sync_policy, sync_policy_id) +except ApiException as e: + print "Exception when calling SyncApi->update_sync_policy: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_policy** | [**SyncPolicy**](SyncPolicy.md)| | + **sync_policy_id** | **str**| Modify a single SyncIQ policy. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_sync_rule** +> update_sync_rule(sync_rule, sync_rule_id) + + + +Modify a single SyncIQ performance rule. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_rule = isi_sdk.SyncRule() # SyncRule | +sync_rule_id = 'sync_rule_id_example' # str | Modify a single SyncIQ performance rule. + +try: + api_instance.update_sync_rule(sync_rule, sync_rule_id) +except ApiException as e: + print "Exception when calling SyncApi->update_sync_rule: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_rule** | [**SyncRule**](SyncRule.md)| | + **sync_rule_id** | **str**| Modify a single SyncIQ performance rule. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_sync_settings** +> update_sync_settings(sync_settings) + + + +Modify the global SyncIQ settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncApi() +sync_settings = isi_sdk.SyncSettingsExtended() # SyncSettingsExtended | + +try: + api_instance.update_sync_settings(sync_settings) +except ApiException as e: + print "Exception when calling SyncApi->update_sync_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_settings** | [**SyncSettingsExtended**](SyncSettingsExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SyncJob.md b/docs/SyncJob.md new file mode 100644 index 000000000..e4b743b62 --- /dev/null +++ b/docs/SyncJob.md @@ -0,0 +1,10 @@ +# SyncJob + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | **str** | The state of the job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncJobCreateParams.md b/docs/SyncJobCreateParams.md new file mode 100644 index 000000000..72e715d1c --- /dev/null +++ b/docs/SyncJobCreateParams.md @@ -0,0 +1,14 @@ +# SyncJobCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | The action to be taken by this job. | [optional] +**id** | **str** | The ID or Name of the policy | +**log_level** | **str** | Only valid for allow_write, and allow_write_revert; specify the desired logging level, will be stored in the logs for isi_migrate, defaults to 'info'. | [optional] +**source_snapshot** | **str** | An optional snapshot to copy/sync from. | [optional] +**workers_per_node** | **int** | Only valid for allow_write, and allow_write_revert; specify the desired workers per node, defaults to 3. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncJobExtended.md b/docs/SyncJobExtended.md new file mode 100644 index 000000000..e4208c309 --- /dev/null +++ b/docs/SyncJobExtended.md @@ -0,0 +1,96 @@ +# SyncJobExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | **str** | The state of the job. | +**action** | **str** | The action to be taken by this job. | +**ads_streams_replicated** | **int** | The number of ads streams replicated by this job. | +**block_specs_replicated** | **int** | The number of block specs replicated by this job. | +**bytes_recoverable** | **int** | The number of bytes recoverable by this job. | +**bytes_transferred** | **int** | The number of bytes that have been transferred by this job. | +**char_specs_replicated** | **int** | The number of char specs replicated by this job. | +**corrected_lins** | **int** | The number of LINs corrected by this job. | +**dead_node** | **bool** | This field is true if the node running this job is dead. | +**directories_replicated** | **int** | The number of directories replicated. | +**dirs_changed** | **int** | The number of directories changed by this job. | +**dirs_deleted** | **int** | The number of directories deleted by this job. | +**dirs_moved** | **int** | The number of directories moved by this job. | +**dirs_new** | **int** | The number of directories created by this job. | +**duration** | **int** | The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. | +**end_time** | **int** | The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. | +**error** | **str** | The primary error message for this job. | +**error_checksum_files_skipped** | **int** | The number of files with checksum errors skipped by this job. | +**error_io_files_skipped** | **int** | The number of files with io errors skipped by this job. | +**error_net_files_skipped** | **int** | The number of files with network errors skipped by this job. | +**errors** | **list[str]** | A list of error messages for this job. | +**failed_chunks** | **int** | Tyhe number of data chunks that failed transmission. | +**fifos_replicated** | **int** | The number of fifos replicated by this job. | +**file_data_bytes** | **int** | The number of bytes transferred that belong to files. | +**files_changed** | **int** | The number of files changed by this job. | +**files_linked** | **int** | The number of files linked by this job. | +**files_new** | **int** | The number of files created by this job. | +**files_selected** | **int** | The number of files selected by this job. | +**files_transferred** | **int** | The number of files transferred by this job. | +**files_unlinked** | **int** | The number of files unlinked by this job. | +**files_with_ads_replicated** | **int** | The number of files with ads replicated by this job. | +**flipped_lins** | **int** | The number of LINs flipped by this job. | +**hard_links_replicated** | **int** | The number of hard links replicated by this job. | +**hash_exceptions_fixed** | **int** | The number of hash exceptions fixed by this job. | +**hash_exceptions_found** | **int** | The number of hash exceptions found by this job. | +**id** | **str** | A unique identifier for this object. | +**job_id** | **int** | The ID of the job. | +**lins_total** | **int** | The number of LINs transferred by this job. | +**network_bytes_to_source** | **int** | The total number of bytes sent to the source by this job. | +**network_bytes_to_target** | **int** | The total number of bytes sent to the target by this job. | +**new_files_replicated** | **int** | The number of new files replicated by this job. | +**num_retransmitted_files** | **int** | The number of files that have been retransmitted by this job. | +**phases** | [**list[ReportSubreportPhase]**](ReportSubreportPhase.md) | Data for each phase of this job. | +**policy** | [**ReportSubreportPolicy**](ReportSubreportPolicy.md) | The policy associated with this job, or null if there is currently no policy associated with this job (this can happen if the job is newly created and not yet fully populated in the underlying database). | +**policy_action** | **str** | This is the action the policy is configured to perform. | +**policy_id** | **str** | The ID of the policy. | +**policy_name** | **str** | The name of the policy. | +**regular_files_replicated** | **int** | The number of regular files replicated by this job. | +**resynced_lins** | **int** | The number of LINs resynched by this job. | +**retransmitted_files** | **list[str]** | The files that have been retransmitted by this job. | +**retry** | **int** | The number of times the job has been retried. | +**running_chunks** | **int** | The number of data chunks currently being transmitted. | +**sockets_replicated** | **int** | The number of sockets replicated by this job. | +**source_bytes_recovered** | **int** | The number of bytes recovered on the source. | +**source_directories_created** | **int** | The number of directories created on the source. | +**source_directories_deleted** | **int** | The number of directories deleted on the source. | +**source_directories_linked** | **int** | The number of directories linked on the source. | +**source_directories_unlinked** | **int** | The number of directories unlinked on the source. | +**source_directories_visited** | **int** | The number of directories visited on the source. | +**source_files_deleted** | **int** | The number of files deleted on the source. | +**source_files_linked** | **int** | The number of files linked on the source. | +**source_files_unlinked** | **int** | The number of files unlinked on the source. | +**sparse_data_bytes** | **int** | The number of sparse data bytes transferred by this job. | +**start_time** | **int** | The time the job started in unix epoch seconds. The field is null if the job hasn't started. | +**succeeded_chunks** | **int** | The number of data chunks that have been transmitted successfully. | +**symlinks_replicated** | **int** | The number of symlinks replicated by this job. | +**sync_type** | **str** | The type of sync being performed by this job. | +**target_bytes_recovered** | **int** | The number of bytes recovered on the target. | +**target_directories_created** | **int** | The number of directories created on the target. | +**target_directories_deleted** | **int** | The number of directories deleted on the target. | +**target_directories_linked** | **int** | The number of directories linked on the target. | +**target_directories_unlinked** | **int** | The number of directories unlinked on the target. | +**target_files_deleted** | **int** | The number of files deleted on the target. | +**target_files_linked** | **int** | The number of files linked on the target. | +**target_files_unlinked** | **int** | The number of files unlinked on the target. | +**target_snapshots** | **list[str]** | The target snapshots created by this job. | +**total_chunks** | **int** | The total number of data chunks transmitted by this job. | +**total_data_bytes** | **int** | The total number of bytes transferred by this job. | +**total_files** | **int** | The number of files affected by this job. | +**total_network_bytes** | **int** | The total number of bytes sent over the network by this job. | +**total_phases** | **int** | The total number of phases for this job. | +**unchanged_data_bytes** | **int** | The number of bytes unchanged by this job. | +**up_to_date_files_skipped** | **int** | The number of up-to-date files skipped by this job. | +**updated_files_replicated** | **int** | The number of updated files replicated by this job. | +**user_conflict_files_skipped** | **int** | The number of files with user conflicts skipped by this job. | +**warnings** | **list[str]** | A list of warning messages for this job. | +**workers** | [**list[SyncJobWorker]**](SyncJobWorker.md) | A list of workers for this job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncJobWorker.md b/docs/SyncJobWorker.md new file mode 100644 index 000000000..d1b0bb043 --- /dev/null +++ b/docs/SyncJobWorker.md @@ -0,0 +1,18 @@ +# SyncJobWorker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connected** | **bool** | Whether there is a connection between the source and target. | [optional] +**last_split** | **int** | The last time a network split occurred. | [optional] +**last_work** | **int** | The last time the worker performed work. | [optional] +**lin** | **int** | The LIN being worked on. | [optional] +**lnn** | **int** | The lnn the worker is assigned to run on. | [optional] +**process_id** | **int** | The process ID of the worker. | [optional] +**source_host** | **str** | The source host for this worker. | [optional] +**target_host** | **str** | The target host for this worker. | [optional] +**worker_id** | **int** | The ID of the worker. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncJobs.md b/docs/SyncJobs.md new file mode 100644 index 000000000..6efacbeba --- /dev/null +++ b/docs/SyncJobs.md @@ -0,0 +1,10 @@ +# SyncJobs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**list[SyncJobExtended]**](SyncJobExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncJobsExtended.md b/docs/SyncJobsExtended.md new file mode 100644 index 000000000..ae6b2e84e --- /dev/null +++ b/docs/SyncJobsExtended.md @@ -0,0 +1,12 @@ +# SyncJobsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**jobs** | [**list[SyncJobExtended]**](SyncJobExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncPolicies.md b/docs/SyncPolicies.md new file mode 100644 index 000000000..adf6ff81c --- /dev/null +++ b/docs/SyncPolicies.md @@ -0,0 +1,10 @@ +# SyncPolicies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**list[SyncPolicyExtended]**](SyncPolicyExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncPoliciesApi.md b/docs/SyncPoliciesApi.md new file mode 100644 index 000000000..6cbac23fa --- /dev/null +++ b/docs/SyncPoliciesApi.md @@ -0,0 +1,61 @@ +# isi_sdk.SyncPoliciesApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_policy_reset_item**](SyncPoliciesApi.md#create_policy_reset_item) | **POST** /platform/1/sync/policies/{Policy}/reset | + + +# **create_policy_reset_item** +> CreateResponse create_policy_reset_item(policy_reset_item, policy) + + + +Reset a SyncIQ policy incremental state and force a full sync/copy. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncPoliciesApi() +policy_reset_item = isi_sdk.Empty() # Empty | +policy = 'policy_example' # str | + +try: + api_response = api_instance.create_policy_reset_item(policy_reset_item, policy) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncPoliciesApi->create_policy_reset_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_reset_item** | [**Empty**](Empty.md)| | + **policy** | **str**| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SyncPoliciesExtended.md b/docs/SyncPoliciesExtended.md new file mode 100644 index 000000000..9e9cdea33 --- /dev/null +++ b/docs/SyncPoliciesExtended.md @@ -0,0 +1,12 @@ +# SyncPoliciesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**list[SyncPolicyExtended]**](SyncPolicyExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncPolicy.md b/docs/SyncPolicy.md new file mode 100644 index 000000000..9b5b076ee --- /dev/null +++ b/docs/SyncPolicy.md @@ -0,0 +1,55 @@ +# SyncPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accelerated_failback** | **bool** | If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. | [optional] +**action** | **str** | If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. | [optional] +**burst_mode** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. | [optional] +**changelist** | **bool** | If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. | [optional] +**check_integrity** | **bool** | If true, the sync target performs cyclic redundancy checks (CRC) on the data as it is received. | [optional] +**cloud_deep_copy** | **str** | If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. | [optional] +**conflicted** | **bool** | NOTE: This field should not be changed without the help of Isilon support. If true, the most recent run of this policy encountered an error and this policy will not start any more scheduled jobs until this field is manually set back to 'false'. | [optional] +**description** | **str** | User-assigned description of this sync policy. | [optional] +**disable_file_split** | **bool** | NOTE: This field should not be changed without the help of Isilon support. If true, the 7.2+ file splitting capability will be disabled. | [optional] +**disable_fofb** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. | [optional] +**disable_stf** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. | [optional] +**enabled** | **bool** | If true, jobs will be automatically run based on this policy, according to its schedule. | [optional] +**expected_dataloss** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. | [optional] +**file_matching_pattern** | [**ReportSubreportPolicyFileMatchingPattern**](ReportSubreportPolicyFileMatchingPattern.md) | A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. | [optional] +**force_interface** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. | [optional] +**job_delay** | **int** | If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). | [optional] +**log_level** | **str** | Severity an event must reach before it is logged. | [optional] +**log_removed_files** | **bool** | If true, the system will log any files or directories that are deleted due to a sync. | [optional] +**name** | **str** | User-assigned name of this sync policy. | [optional] +**password** | **str** | The password for the target cluster. This field is not readable. | [optional] +**priority** | **int** | Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. | [optional] +**report_max_age** | **int** | Length of time (in seconds) a policy report will be stored. | [optional] +**report_max_count** | **int** | Maximum number of policy reports that will be stored on the system. | [optional] +**restrict_target_network** | **bool** | If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. | [optional] +**rpo_alert** | **int** | If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. | [optional] +**schedule** | **str** | The schedule on which new jobs will be run for this policy. | [optional] +**skip_lookup** | **bool** | Skip DNS lookup of target IPs. | [optional] +**skip_when_source_unmodified** | **bool** | If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. | [optional] +**snapshot_sync_existing** | **bool** | If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). | [optional] +**snapshot_sync_pattern** | **str** | The naming pattern that a snapshot must match to trigger a sync when the schedule is when-snapshot-taken (default is \"*\"). | [optional] +**source_exclude_directories** | **list[str]** | Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. | [optional] +**source_include_directories** | **list[str]** | Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. | [optional] +**source_network** | [**SyncPolicySourceNetwork**](SyncPolicySourceNetwork.md) | Restricts replication policies on the local cluster to running on the specified subnet and pool. | [optional] +**source_root_path** | **str** | The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. | [optional] +**source_snapshot_archive** | **bool** | If true, archival snapshots of the source data will be taken on the source cluster before a sync. | [optional] +**source_snapshot_expiration** | **int** | The length of time in seconds to keep snapshots on the source cluster. | [optional] +**source_snapshot_pattern** | **str** | The name pattern for snapshots taken on the source cluster before a sync. | [optional] +**target_compare_initial_sync** | **bool** | If true, the target creates diffs against the original sync. | [optional] +**target_detect_modifications** | **bool** | If true, target cluster will detect if files have been changed on the target by legacy tree walk syncs. | [optional] +**target_host** | **str** | Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. | [optional] +**target_path** | **str** | Absolute filesystem path on the target cluster for the sync destination. | [optional] +**target_snapshot_alias** | **str** | The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. | [optional] +**target_snapshot_archive** | **bool** | If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. | [optional] +**target_snapshot_expiration** | **int** | The length of time in seconds to keep snapshots on the target cluster. | [optional] +**target_snapshot_pattern** | **str** | The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. | [optional] +**workers_per_node** | **int** | The number of worker threads on a node performing a sync. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncPolicyCreateParams.md b/docs/SyncPolicyCreateParams.md new file mode 100644 index 000000000..aa741e3e6 --- /dev/null +++ b/docs/SyncPolicyCreateParams.md @@ -0,0 +1,54 @@ +# SyncPolicyCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accelerated_failback** | **bool** | If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. | [optional] +**action** | **str** | If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. | +**burst_mode** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. | [optional] +**changelist** | **bool** | If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. | [optional] +**check_integrity** | **bool** | If true, the sync target performs cyclic redundancy checks (CRC) on the data as it is received. | [optional] +**cloud_deep_copy** | **str** | If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. | [optional] +**description** | **str** | User-assigned description of this sync policy. | [optional] +**disable_file_split** | **bool** | NOTE: This field should not be changed without the help of Isilon support. If true, the 7.2+ file splitting capability will be disabled. | [optional] +**disable_fofb** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. | [optional] +**disable_stf** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. | [optional] +**enabled** | **bool** | If true, jobs will be automatically run based on this policy, according to its schedule. | [optional] +**expected_dataloss** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. | [optional] +**file_matching_pattern** | [**ReportSubreportPolicyFileMatchingPattern**](ReportSubreportPolicyFileMatchingPattern.md) | A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. | [optional] +**force_interface** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. | [optional] +**job_delay** | **int** | If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). | [optional] +**log_level** | **str** | Severity an event must reach before it is logged. | [optional] +**log_removed_files** | **bool** | If true, the system will log any files or directories that are deleted due to a sync. | [optional] +**name** | **str** | User-assigned name of this sync policy. | +**password** | **str** | The password for the target cluster. This field is not readable. | [optional] +**priority** | **int** | Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. | [optional] +**report_max_age** | **int** | Length of time (in seconds) a policy report will be stored. | [optional] +**report_max_count** | **int** | Maximum number of policy reports that will be stored on the system. | [optional] +**restrict_target_network** | **bool** | If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. | [optional] +**rpo_alert** | **int** | If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. | [optional] +**schedule** | **str** | The schedule on which new jobs will be run for this policy. | [optional] +**skip_lookup** | **bool** | Skip DNS lookup of target IPs. | [optional] +**skip_when_source_unmodified** | **bool** | If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. | [optional] +**snapshot_sync_existing** | **bool** | If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). | [optional] +**snapshot_sync_pattern** | **str** | The naming pattern that a snapshot must match to trigger a sync when the schedule is when-snapshot-taken (default is \"*\"). | [optional] +**source_exclude_directories** | **list[str]** | Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. | [optional] +**source_include_directories** | **list[str]** | Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. | [optional] +**source_network** | [**SyncPolicySourceNetwork**](SyncPolicySourceNetwork.md) | Restricts replication policies on the local cluster to running on the specified subnet and pool. | [optional] +**source_root_path** | **str** | The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. | +**source_snapshot_archive** | **bool** | If true, archival snapshots of the source data will be taken on the source cluster before a sync. | [optional] +**source_snapshot_expiration** | **int** | The length of time in seconds to keep snapshots on the source cluster. | [optional] +**source_snapshot_pattern** | **str** | The name pattern for snapshots taken on the source cluster before a sync. | [optional] +**target_compare_initial_sync** | **bool** | If true, the target creates diffs against the original sync. | [optional] +**target_detect_modifications** | **bool** | If true, target cluster will detect if files have been changed on the target by legacy tree walk syncs. | [optional] +**target_host** | **str** | Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. | +**target_path** | **str** | Absolute filesystem path on the target cluster for the sync destination. | +**target_snapshot_alias** | **str** | The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. | [optional] +**target_snapshot_archive** | **bool** | If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. | [optional] +**target_snapshot_expiration** | **int** | The length of time in seconds to keep snapshots on the target cluster. | [optional] +**target_snapshot_pattern** | **str** | The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. | [optional] +**workers_per_node** | **int** | The number of worker threads on a node performing a sync. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncPolicyExtended.md b/docs/SyncPolicyExtended.md new file mode 100644 index 000000000..c4f202df3 --- /dev/null +++ b/docs/SyncPolicyExtended.md @@ -0,0 +1,61 @@ +# SyncPolicyExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accelerated_failback** | **bool** | If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. | +**action** | **str** | If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. | +**burst_mode** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. | +**changelist** | **bool** | If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. | +**check_integrity** | **bool** | If true, the sync target performs cyclic redundancy checks (CRC) on the data as it is received. | +**cloud_deep_copy** | **str** | If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. | +**conflicted** | **bool** | NOTE: This field should not be changed without the help of Isilon support. If true, the most recent run of this policy encountered an error and this policy will not start any more scheduled jobs until this field is manually set back to 'false'. | +**description** | **str** | User-assigned description of this sync policy. | +**disable_file_split** | **bool** | NOTE: This field should not be changed without the help of Isilon support. If true, the 7.2+ file splitting capability will be disabled. | +**disable_fofb** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. | +**disable_stf** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. | +**enabled** | **bool** | If true, jobs will be automatically run based on this policy, according to its schedule. | +**expected_dataloss** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. | +**file_matching_pattern** | [**ReportSubreportPolicyFileMatchingPattern**](ReportSubreportPolicyFileMatchingPattern.md) | A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. | +**force_interface** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. | +**has_sync_state** | **bool** | This field is false if the policy is in its initial sync state and true otherwise. Setting this field to false will reset the policy's sync state. | +**id** | **str** | The system ID given to this sync policy. | +**job_delay** | **int** | If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). | +**last_job_state** | **str** | This is the state of the most recent job for this policy. | +**last_started** | **int** | The most recent time a job was started for this policy. Value is null if the policy has never been run. | +**last_success** | **int** | Timestamp of last known successfully completed synchronization. Value is null if the policy has never completed successfully. | +**log_level** | **str** | Severity an event must reach before it is logged. | +**log_removed_files** | **bool** | If true, the system will log any files or directories that are deleted due to a sync. | +**name** | **str** | User-assigned name of this sync policy. | +**next_run** | **int** | This is the next time a job is scheduled to run for this policy in Unix epoch seconds. This field is null if the job is not scheduled. | +**password_set** | **bool** | Indicates if a password is set for accessing the target cluster. Password value is not shown with GET. | +**priority** | **int** | Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. | +**report_max_age** | **int** | Length of time (in seconds) a policy report will be stored. | +**report_max_count** | **int** | Maximum number of policy reports that will be stored on the system. | +**restrict_target_network** | **bool** | If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. | +**rpo_alert** | **int** | If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. | +**schedule** | **str** | The schedule on which new jobs will be run for this policy. | +**skip_lookup** | **bool** | Skip DNS lookup of target IPs. | +**skip_when_source_unmodified** | **bool** | If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. | +**snapshot_sync_existing** | **bool** | If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). | +**snapshot_sync_pattern** | **str** | The naming pattern that a snapshot must match to trigger a sync when the schedule is when-snapshot-taken (default is \"*\"). | +**source_exclude_directories** | **list[str]** | Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. | +**source_include_directories** | **list[str]** | Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. | +**source_network** | [**SyncPolicySourceNetwork**](SyncPolicySourceNetwork.md) | Restricts replication policies on the local cluster to running on the specified subnet and pool. | +**source_root_path** | **str** | The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. | +**source_snapshot_archive** | **bool** | If true, archival snapshots of the source data will be taken on the source cluster before a sync. | +**source_snapshot_expiration** | **int** | The length of time in seconds to keep snapshots on the source cluster. | +**source_snapshot_pattern** | **str** | The name pattern for snapshots taken on the source cluster before a sync. | +**target_compare_initial_sync** | **bool** | If true, the target creates diffs against the original sync. | +**target_detect_modifications** | **bool** | If true, target cluster will detect if files have been changed on the target by legacy tree walk syncs. | +**target_host** | **str** | Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. | +**target_path** | **str** | Absolute filesystem path on the target cluster for the sync destination. | +**target_snapshot_alias** | **str** | The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. | +**target_snapshot_archive** | **bool** | If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. | +**target_snapshot_expiration** | **int** | The length of time in seconds to keep snapshots on the target cluster. | +**target_snapshot_pattern** | **str** | The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. | +**workers_per_node** | **int** | The number of worker threads on a node performing a sync. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncPolicySourceNetwork.md b/docs/SyncPolicySourceNetwork.md new file mode 100644 index 000000000..018bdf662 --- /dev/null +++ b/docs/SyncPolicySourceNetwork.md @@ -0,0 +1,11 @@ +# SyncPolicySourceNetwork + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pool** | **str** | The pool to restrict replication policies to. | +**subnet** | **str** | The subnet to restrict replication policies to. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncReport.md b/docs/SyncReport.md new file mode 100644 index 000000000..ef22d4264 --- /dev/null +++ b/docs/SyncReport.md @@ -0,0 +1,96 @@ +# SyncReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | The action to be taken by this job. | +**ads_streams_replicated** | **int** | The number of ads streams replicated by this job. | +**block_specs_replicated** | **int** | The number of block specs replicated by this job. | +**bytes_recoverable** | **int** | The number of bytes recoverable by this job. | +**bytes_transferred** | **int** | The number of bytes that have been transferred by this job. | +**char_specs_replicated** | **int** | The number of char specs replicated by this job. | +**corrected_lins** | **int** | The number of LINs corrected by this job. | +**dead_node** | **bool** | This field is true if the node running this job is dead. | +**directories_replicated** | **int** | The number of directories replicated. | +**dirs_changed** | **int** | The number of directories changed by this job. | +**dirs_deleted** | **int** | The number of directories deleted by this job. | +**dirs_moved** | **int** | The number of directories moved by this job. | +**dirs_new** | **int** | The number of directories created by this job. | +**duration** | **int** | The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. | +**end_time** | **int** | The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. | +**error** | **str** | The primary error message for this job. | +**error_checksum_files_skipped** | **int** | The number of files with checksum errors skipped by this job. | +**error_io_files_skipped** | **int** | The number of files with io errors skipped by this job. | +**error_net_files_skipped** | **int** | The number of files with network errors skipped by this job. | +**errors** | **list[str]** | A list of error messages for this job. | +**failed_chunks** | **int** | Tyhe number of data chunks that failed transmission. | +**fifos_replicated** | **int** | The number of fifos replicated by this job. | +**file_data_bytes** | **int** | The number of bytes transferred that belong to files. | +**files_changed** | **int** | The number of files changed by this job. | +**files_linked** | **int** | The number of files linked by this job. | +**files_new** | **int** | The number of files created by this job. | +**files_selected** | **int** | The number of files selected by this job. | +**files_transferred** | **int** | The number of files transferred by this job. | +**files_unlinked** | **int** | The number of files unlinked by this job. | +**files_with_ads_replicated** | **int** | The number of files with ads replicated by this job. | +**flipped_lins** | **int** | The number of LINs flipped by this job. | +**hard_links_replicated** | **int** | The number of hard links replicated by this job. | +**hash_exceptions_fixed** | **int** | The number of hash exceptions fixed by this job. | +**hash_exceptions_found** | **int** | The number of hash exceptions found by this job. | +**id** | **str** | A unique identifier for this object. | +**job_id** | **int** | The ID of the job. | +**lins_total** | **int** | The number of LINs transferred by this job. | +**network_bytes_to_source** | **int** | The total number of bytes sent to the source by this job. | +**network_bytes_to_target** | **int** | The total number of bytes sent to the target by this job. | +**new_files_replicated** | **int** | The number of new files replicated by this job. | +**num_retransmitted_files** | **int** | The number of files that have been retransmitted by this job. | +**phases** | [**list[ReportSubreportPhase]**](ReportSubreportPhase.md) | Data for each phase of this job. | +**policy** | [**SyncReportPolicy**](SyncReportPolicy.md) | | +**policy_action** | **str** | This is the action the policy is configured to perform. | +**policy_id** | **str** | The ID of the policy. | +**policy_name** | **str** | The name of the policy. | +**regular_files_replicated** | **int** | The number of regular files replicated by this job. | +**resynced_lins** | **int** | The number of LINs resynched by this job. | +**retransmitted_files** | **list[str]** | The files that have been retransmitted by this job. | +**retry** | **int** | The number of times the job has been retried. | +**running_chunks** | **int** | The number of data chunks currently being transmitted. | +**sockets_replicated** | **int** | The number of sockets replicated by this job. | +**source_bytes_recovered** | **int** | The number of bytes recovered on the source. | +**source_directories_created** | **int** | The number of directories created on the source. | +**source_directories_deleted** | **int** | The number of directories deleted on the source. | +**source_directories_linked** | **int** | The number of directories linked on the source. | +**source_directories_unlinked** | **int** | The number of directories unlinked on the source. | +**source_directories_visited** | **int** | The number of directories visited on the source. | +**source_files_deleted** | **int** | The number of files deleted on the source. | +**source_files_linked** | **int** | The number of files linked on the source. | +**source_files_unlinked** | **int** | The number of files unlinked on the source. | +**sparse_data_bytes** | **int** | The number of sparse data bytes transferred by this job. | +**start_time** | **int** | The time the job started in unix epoch seconds. The field is null if the job hasn't started. | +**state** | **str** | The state of the job. | +**subreport_count** | **int** | The number of subreports that are available for this job report. | +**succeeded_chunks** | **int** | The number of data chunks that have been transmitted successfully. | +**symlinks_replicated** | **int** | The number of symlinks replicated by this job. | +**sync_type** | **str** | The type of sync being performed by this job. | +**target_bytes_recovered** | **int** | The number of bytes recovered on the target. | +**target_directories_created** | **int** | The number of directories created on the target. | +**target_directories_deleted** | **int** | The number of directories deleted on the target. | +**target_directories_linked** | **int** | The number of directories linked on the target. | +**target_directories_unlinked** | **int** | The number of directories unlinked on the target. | +**target_files_deleted** | **int** | The number of files deleted on the target. | +**target_files_linked** | **int** | The number of files linked on the target. | +**target_files_unlinked** | **int** | The number of files unlinked on the target. | +**target_snapshots** | **list[str]** | The target snapshots created by this job. | +**total_chunks** | **int** | The total number of data chunks transmitted by this job. | +**total_data_bytes** | **int** | The total number of bytes transferred by this job. | +**total_files** | **int** | The number of files affected by this job. | +**total_network_bytes** | **int** | The total number of bytes sent over the network by this job. | +**total_phases** | **int** | The total number of phases for this job. | +**unchanged_data_bytes** | **int** | The number of bytes unchanged by this job. | +**up_to_date_files_skipped** | **int** | The number of up-to-date files skipped by this job. | +**updated_files_replicated** | **int** | The number of updated files replicated by this job. | +**user_conflict_files_skipped** | **int** | The number of files with user conflicts skipped by this job. | +**warnings** | **list[str]** | A list of warning messages for this job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncReportPolicy.md b/docs/SyncReportPolicy.md new file mode 100644 index 000000000..3150f5e1e --- /dev/null +++ b/docs/SyncReportPolicy.md @@ -0,0 +1,17 @@ +# SyncReportPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. | [optional] +**file_matching_pattern** | [**ReportSubreportPolicyFileMatchingPattern**](ReportSubreportPolicyFileMatchingPattern.md) | A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. | [optional] +**name** | **str** | User-assigned name of this sync policy. | [optional] +**source_exclude_directories** | **list[str]** | Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. | [optional] +**source_include_directories** | **list[str]** | Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. | [optional] +**source_root_path** | **str** | The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. | [optional] +**target_host** | **str** | Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. | [optional] +**target_path** | **str** | Absolute filesystem path on the target cluster for the sync destination. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncReports.md b/docs/SyncReports.md new file mode 100644 index 000000000..a64fa41fb --- /dev/null +++ b/docs/SyncReports.md @@ -0,0 +1,10 @@ +# SyncReports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[SyncReport]**](SyncReport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncReportsApi.md b/docs/SyncReportsApi.md new file mode 100644 index 000000000..c9cc189fb --- /dev/null +++ b/docs/SyncReportsApi.md @@ -0,0 +1,124 @@ +# isi_sdk.SyncReportsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_report_subreport**](SyncReportsApi.md#get_report_subreport) | **GET** /platform/1/sync/reports/{Rid}/subreports/{ReportSubreportId} | +[**get_report_subreports**](SyncReportsApi.md#get_report_subreports) | **GET** /platform/1/sync/reports/{Rid}/subreports | + + +# **get_report_subreport** +> ReportSubreports get_report_subreport(report_subreport_id, rid) + + + +View a single SyncIQ subreport. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncReportsApi() +report_subreport_id = 'report_subreport_id_example' # str | View a single SyncIQ subreport. +rid = 'rid_example' # str | + +try: + api_response = api_instance.get_report_subreport(report_subreport_id, rid) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncReportsApi->get_report_subreport: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_subreport_id** | **str**| View a single SyncIQ subreport. | + **rid** | **str**| | + +### Return type + +[**ReportSubreports**](ReportSubreports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_report_subreports** +> ReportSubreportsExtended get_report_subreports(rid, sort=sort, resume=resume, newer_than=newer_than, state=state, limit=limit, dir=dir) + + + +Get a list of SyncIQ subreports for a report. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncReportsApi() +rid = 'rid_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +newer_than = 56 # int | Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. (optional) +state = 'state_example' # str | Filter the returned reports to include only those whose jobs are in this state. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_report_subreports(rid, sort=sort, resume=resume, newer_than=newer_than, state=state, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncReportsApi->get_report_subreports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rid** | **str**| | + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **newer_than** | **int**| Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. | [optional] + **state** | **str**| Filter the returned reports to include only those whose jobs are in this state. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**ReportSubreportsExtended**](ReportSubreportsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SyncReportsExtended.md b/docs/SyncReportsExtended.md new file mode 100644 index 000000000..b9605cd74 --- /dev/null +++ b/docs/SyncReportsExtended.md @@ -0,0 +1,12 @@ +# SyncReportsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[SyncReport]**](SyncReport.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncReportsRotate.md b/docs/SyncReportsRotate.md new file mode 100644 index 000000000..a64cec4d2 --- /dev/null +++ b/docs/SyncReportsRotate.md @@ -0,0 +1,11 @@ +# SyncReportsRotate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | A message about the status of the task. | +**running** | **bool** | Whether this task is running or not. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncRule.md b/docs/SyncRule.md new file mode 100644 index 000000000..3bd3a9b3e --- /dev/null +++ b/docs/SyncRule.md @@ -0,0 +1,13 @@ +# SyncRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | User-entered description of this performance rule. | [optional] +**enabled** | **bool** | Whether this performance rule is currently in effect during its specified intervals. | [optional] +**limit** | **int** | Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. | [optional] +**schedule** | [**SyncRuleSchedule**](SyncRuleSchedule.md) | A schedule defining when during a week this performance rule is in effect. If unspecified or null, the schedule will always be in effect. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncRuleCreateParams.md b/docs/SyncRuleCreateParams.md new file mode 100644 index 000000000..2f0281a83 --- /dev/null +++ b/docs/SyncRuleCreateParams.md @@ -0,0 +1,14 @@ +# SyncRuleCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | User-entered description of this performance rule. | [optional] +**enabled** | **bool** | Whether this performance rule is currently in effect during its specified intervals. | [optional] +**limit** | **int** | Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. | [optional] +**schedule** | [**SyncRuleSchedule**](SyncRuleSchedule.md) | A schedule defining when during a week this performance rule is in effect. If unspecified or null, the schedule will always be in effect. | [optional] +**type** | **str** | The type of system resource this rule limits. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncRuleExtended.md b/docs/SyncRuleExtended.md new file mode 100644 index 000000000..6e66e9ab1 --- /dev/null +++ b/docs/SyncRuleExtended.md @@ -0,0 +1,15 @@ +# SyncRuleExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | User-entered description of this performance rule. | [optional] +**enabled** | **bool** | Whether this performance rule is currently in effect during its specified intervals. | [optional] +**limit** | **int** | Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. | [optional] +**schedule** | [**SyncRuleSchedule**](SyncRuleSchedule.md) | A schedule defining when during a week this performance rule is in effect. If unspecified or null, the schedule will always be in effect. | [optional] +**id** | **str** | The system ID given to this performance rule. | [optional] +**type** | **str** | The type of system resource this rule limits. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncRuleSchedule.md b/docs/SyncRuleSchedule.md new file mode 100644 index 000000000..fbc4ded37 --- /dev/null +++ b/docs/SyncRuleSchedule.md @@ -0,0 +1,18 @@ +# SyncRuleSchedule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**begin** | **str** | Start time (inclusive) for this schedule, during its specified days. Format is \"hh:mm\" (24h format hour, and minute). A null value indicates the beginning of the day (\"00:00\"). | [optional] +**end** | **str** | End time (inclusive) for this schedule, during its specified days. Format is \"hh:mm\" (three-letter weekday name abbreviation, 24h format hour, and minute). A null value indicates the end of the day (\"23:59\"). | [optional] +**friday** | **bool** | If true, this rule is in effect on Friday. If false, or unspecified, it is not. | [optional] +**monday** | **bool** | If true, this rule is in effect on Monday. If false, or unspecified, it is not. | [optional] +**saturday** | **bool** | If true, this rule is in effect on Saturday. If false, or unspecified, it is not. | [optional] +**sunday** | **bool** | If true, this rule is in effect on Sunday. If false, or unspecified, it is not. | [optional] +**thursday** | **bool** | If true, this rule is in effect on Thursday. If false, or unspecified, it is not. | [optional] +**tuesday** | **bool** | If true, this rule is in effect on Tuesday. If false, or unspecified, it is not. | [optional] +**wednesday** | **bool** | If true, this rule is in effect on Wednesday. If false, or unspecified, it is not. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncRules.md b/docs/SyncRules.md new file mode 100644 index 000000000..8da683b0a --- /dev/null +++ b/docs/SyncRules.md @@ -0,0 +1,10 @@ +# SyncRules + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**list[SyncRuleExtended]**](SyncRuleExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncRulesExtended.md b/docs/SyncRulesExtended.md new file mode 100644 index 000000000..2d574b9bc --- /dev/null +++ b/docs/SyncRulesExtended.md @@ -0,0 +1,12 @@ +# SyncRulesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**list[SyncRuleExtended]**](SyncRuleExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | +**total** | **int** | Total number of items available. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncSettings.md b/docs/SyncSettings.md new file mode 100644 index 000000000..ab997c4e7 --- /dev/null +++ b/docs/SyncSettings.md @@ -0,0 +1,10 @@ +# SyncSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**SyncSettingsSettings**](SyncSettingsSettings.md) | Global SyncIQ settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncSettingsExtended.md b/docs/SyncSettingsExtended.md new file mode 100644 index 000000000..3e2c33e10 --- /dev/null +++ b/docs/SyncSettingsExtended.md @@ -0,0 +1,19 @@ +# SyncSettingsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**burst_memory_constraint** | **int** | The per-worker burst socket memory constraint, in bytes. | [optional] +**burst_socket_buffer_size** | **int** | The per-worker burst socket buffer coalesced data, in bytes. | [optional] +**force_interface** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Default for the \"force_interface\" property that will be applied to each new sync policy unless otherwise specified at the time of policy creation. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. | [optional] +**report_email** | **list[str]** | Email sync reports to these addresses. | [optional] +**report_max_age** | **int** | The default length of time (in seconds) a policy report will be stored. | [optional] +**report_max_count** | **int** | The default maximum number of reports to retain for a policy. | [optional] +**restrict_target_network** | **bool** | Default for the \"restrict_target_network\" property that will be applied to each new sync policy unless otherwise specified at the time of policy creation. If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. | [optional] +**rpo_alerts** | **bool** | If disabled, no RPO alerts will be generated. | [optional] +**service** | **str** | Specifies if the SyncIQ service currently on, paused, or off. If paused, all sync jobs will be paused. If turned off, all jobs will be canceled. | [optional] +**source_network** | [**SyncPolicySourceNetwork**](SyncPolicySourceNetwork.md) | Restricts replication policies on the local cluster to running on the specified subnet and pool. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncSettingsSettings.md b/docs/SyncSettingsSettings.md new file mode 100644 index 000000000..d8242493c --- /dev/null +++ b/docs/SyncSettingsSettings.md @@ -0,0 +1,20 @@ +# SyncSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**burst_memory_constraint** | **int** | The per-worker burst socket memory constraint, in bytes. | [optional] +**burst_socket_buffer_size** | **int** | The per-worker burst socket buffer coalesced data, in bytes. | [optional] +**force_interface** | **bool** | NOTE: This field should not be changed without the help of Isilon support. Default for the \"force_interface\" property that will be applied to each new sync policy unless otherwise specified at the time of policy creation. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. | [optional] +**max_concurrent_jobs** | **int** | The max concurrent jobs that SyncIQ can support. This number is based on the size of the current cluster and the current SyncIQ worker throttle rule. | [optional] +**report_email** | **list[str]** | Email sync reports to these addresses. | [optional] +**report_max_age** | **int** | The default length of time (in seconds) a policy report will be stored. | [optional] +**report_max_count** | **int** | The default maximum number of reports to retain for a policy. | [optional] +**restrict_target_network** | **bool** | Default for the \"restrict_target_network\" property that will be applied to each new sync policy unless otherwise specified at the time of policy creation. If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. | [optional] +**rpo_alerts** | **bool** | If disabled, no RPO alerts will be generated. | [optional] +**service** | **str** | Specifies if the SyncIQ service currently on, paused, or off. If paused, all sync jobs will be paused. If turned off, all jobs will be canceled. | [optional] +**source_network** | [**SyncPolicySourceNetwork**](SyncPolicySourceNetwork.md) | Restricts replication policies on the local cluster to running on the specified subnet and pool. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SyncTargetApi.md b/docs/SyncTargetApi.md new file mode 100644 index 000000000..a5a52a867 --- /dev/null +++ b/docs/SyncTargetApi.md @@ -0,0 +1,177 @@ +# isi_sdk.SyncTargetApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_policies_policy_cancel_item**](SyncTargetApi.md#create_policies_policy_cancel_item) | **POST** /platform/1/sync/target/policies/{Policy}/cancel | +[**get_reports_report_subreport**](SyncTargetApi.md#get_reports_report_subreport) | **GET** /platform/1/sync/target/reports/{Rid}/subreports/{ReportsReportSubreportId} | +[**get_reports_report_subreports**](SyncTargetApi.md#get_reports_report_subreports) | **GET** /platform/1/sync/target/reports/{Rid}/subreports | + + +# **create_policies_policy_cancel_item** +> CreateResponse create_policies_policy_cancel_item(policies_policy_cancel_item, policy) + + + +Cancel the most recent SyncIQ job for this policy from the target side. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncTargetApi() +policies_policy_cancel_item = isi_sdk.Empty() # Empty | +policy = 'policy_example' # str | + +try: + api_response = api_instance.create_policies_policy_cancel_item(policies_policy_cancel_item, policy) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncTargetApi->create_policies_policy_cancel_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_policy_cancel_item** | [**Empty**](Empty.md)| | + **policy** | **str**| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reports_report_subreport** +> ReportsReportSubreports get_reports_report_subreport(reports_report_subreport_id, rid) + + + +View a single SyncIQ target subreport. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncTargetApi() +reports_report_subreport_id = 'reports_report_subreport_id_example' # str | View a single SyncIQ target subreport. +rid = 'rid_example' # str | + +try: + api_response = api_instance.get_reports_report_subreport(reports_report_subreport_id, rid) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncTargetApi->get_reports_report_subreport: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reports_report_subreport_id** | **str**| View a single SyncIQ target subreport. | + **rid** | **str**| | + +### Return type + +[**ReportsReportSubreports**](ReportsReportSubreports.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_reports_report_subreports** +> ReportsReportSubreportsExtended get_reports_report_subreports(rid, sort=sort, resume=resume, newer_than=newer_than, state=state, limit=limit, dir=dir) + + + +Get a list of SyncIQ target subreports for a report. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.SyncTargetApi() +rid = 'rid_example' # str | +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) +newer_than = 56 # int | Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. (optional) +state = 'state_example' # str | Filter the returned reports to include only those whose jobs are in this state. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) + +try: + api_response = api_instance.get_reports_report_subreports(rid, sort=sort, resume=resume, newer_than=newer_than, state=state, limit=limit, dir=dir) + pprint(api_response) +except ApiException as e: + print "Exception when calling SyncTargetApi->get_reports_report_subreports: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rid** | **str**| | + **sort** | **str**| The field that will be used for sorting. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + **newer_than** | **int**| Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. | [optional] + **state** | **str**| Filter the returned reports to include only those whose jobs are in this state. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + +### Return type + +[**ReportsReportSubreportsExtended**](ReportsReportSubreportsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TargetPolicies.md b/docs/TargetPolicies.md new file mode 100644 index 000000000..ed68d761b --- /dev/null +++ b/docs/TargetPolicies.md @@ -0,0 +1,11 @@ +# TargetPolicies + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**list[TargetPolicy]**](TargetPolicy.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TargetPoliciesExtended.md b/docs/TargetPoliciesExtended.md new file mode 100644 index 000000000..610d713c6 --- /dev/null +++ b/docs/TargetPoliciesExtended.md @@ -0,0 +1,12 @@ +# TargetPoliciesExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**list[TargetPolicy]**](TargetPolicy.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TargetPolicy.md b/docs/TargetPolicy.md new file mode 100644 index 000000000..da9f7ad68 --- /dev/null +++ b/docs/TargetPolicy.md @@ -0,0 +1,19 @@ +# TargetPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failover_failback_state** | **str** | The condition of this policy with respect to sync failover/failback. | +**id** | **str** | The system ID given to this sync policy. | +**last_job_state** | **str** | The state of the last job run for this policy. | +**last_source_coordinator_ip** | **str** | The IP address from which a SyncIQ coordinator daemon most recently connected to this cluster to update it about the progress of a job for this policy. | +**last_update_from_source** | **int** | The last time this cluster was updated with sync information from the source cluster for this policy, in unix epoch seconds. Null if no such update has occurred yet. | +**legacy_policy** | **bool** | Was this policy defined by a OneFS version earlier than 6.0? (Pre-6.0 policies did not have the target policy concept and canceling from the target side will not be available.) | +**name** | **str** | User-assigned name of this sync policy. | +**source_cluster_guid** | **str** | Unique identifier for the source cluster. | +**source_host** | **str** | Hostname or IP address of sync source cluster. | +**target_path** | **str** | Absolute filesystem path on the target cluster for the sync destination. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TargetReport.md b/docs/TargetReport.md new file mode 100644 index 000000000..3fae3fcbe --- /dev/null +++ b/docs/TargetReport.md @@ -0,0 +1,96 @@ +# TargetReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | The action to be taken by this job. | +**ads_streams_replicated** | **int** | The number of ads streams replicated by this job. | +**block_specs_replicated** | **int** | The number of block specs replicated by this job. | +**bytes_recoverable** | **int** | The number of bytes recoverable by this job. | +**bytes_transferred** | **int** | The number of bytes that have been transferred by this job. | +**char_specs_replicated** | **int** | The number of char specs replicated by this job. | +**corrected_lins** | **int** | The number of LINs corrected by this job. | +**dead_node** | **bool** | This field is true if the node running this job is dead. | +**directories_replicated** | **int** | The number of directories replicated. | +**dirs_changed** | **int** | The number of directories changed by this job. | +**dirs_deleted** | **int** | The number of directories deleted by this job. | +**dirs_moved** | **int** | The number of directories moved by this job. | +**dirs_new** | **int** | The number of directories created by this job. | +**duration** | **int** | The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. | +**end_time** | **int** | The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. | +**error** | **str** | The primary error message for this job. | +**error_checksum_files_skipped** | **int** | The number of files with checksum errors skipped by this job. | +**error_io_files_skipped** | **int** | The number of files with io errors skipped by this job. | +**error_net_files_skipped** | **int** | The number of files with network errors skipped by this job. | +**errors** | **list[str]** | A list of error messages for this job. | +**failed_chunks** | **int** | Tyhe number of data chunks that failed transmission. | +**fifos_replicated** | **int** | The number of fifos replicated by this job. | +**file_data_bytes** | **int** | The number of bytes transferred that belong to files. | +**files_changed** | **int** | The number of files changed by this job. | +**files_linked** | **int** | The number of files linked by this job. | +**files_new** | **int** | The number of files created by this job. | +**files_selected** | **int** | The number of files selected by this job. | +**files_transferred** | **int** | The number of files transferred by this job. | +**files_unlinked** | **int** | The number of files unlinked by this job. | +**files_with_ads_replicated** | **int** | The number of files with ads replicated by this job. | +**flipped_lins** | **int** | The number of LINs flipped by this job. | +**hard_links_replicated** | **int** | The number of hard links replicated by this job. | +**hash_exceptions_fixed** | **int** | The number of hash exceptions fixed by this job. | +**hash_exceptions_found** | **int** | The number of hash exceptions found by this job. | +**id** | **str** | A unique identifier for this object. | +**job_id** | **int** | The ID of the job. | +**lins_total** | **int** | The number of LINs transferred by this job. | +**network_bytes_to_source** | **int** | The total number of bytes sent to the source by this job. | +**network_bytes_to_target** | **int** | The total number of bytes sent to the target by this job. | +**new_files_replicated** | **int** | The number of new files replicated by this job. | +**num_retransmitted_files** | **int** | The number of files that have been retransmitted by this job. | +**phases** | [**list[ReportSubreportPhase]**](ReportSubreportPhase.md) | Data for each phase of this job. | +**policy_id** | **str** | The ID of the policy. | +**policy_name** | **str** | The name of the policy. | +**regular_files_replicated** | **int** | The number of regular files replicated by this job. | +**resynced_lins** | **int** | The number of LINs resynched by this job. | +**retransmitted_files** | **list[str]** | The files that have been retransmitted by this job. | +**retry** | **int** | The number of times the job has been retried. | +**running_chunks** | **int** | The number of data chunks currently being transmitted. | +**sockets_replicated** | **int** | The number of sockets replicated by this job. | +**source_bytes_recovered** | **int** | The number of bytes recovered on the source. | +**source_directories_created** | **int** | The number of directories created on the source. | +**source_directories_deleted** | **int** | The number of directories deleted on the source. | +**source_directories_linked** | **int** | The number of directories linked on the source. | +**source_directories_unlinked** | **int** | The number of directories unlinked on the source. | +**source_directories_visited** | **int** | The number of directories visited on the source. | +**source_files_deleted** | **int** | The number of files deleted on the source. | +**source_files_linked** | **int** | The number of files linked on the source. | +**source_files_unlinked** | **int** | The number of files unlinked on the source. | +**source_host** | **str** | Hostname or IP address of sync source cluster. | +**sparse_data_bytes** | **int** | The number of sparse data bytes transferred by this job. | +**start_time** | **int** | The time the job started in unix epoch seconds. The field is null if the job hasn't started. | +**state** | **str** | The state of the job. | +**subreport_count** | **int** | The number of subreports that are available for this job report. | +**succeeded_chunks** | **int** | The number of data chunks that have been transmitted successfully. | +**symlinks_replicated** | **int** | The number of symlinks replicated by this job. | +**sync_type** | **str** | The type of sync being performed by this job. | +**target_bytes_recovered** | **int** | The number of bytes recovered on the target. | +**target_directories_created** | **int** | The number of directories created on the target. | +**target_directories_deleted** | **int** | The number of directories deleted on the target. | +**target_directories_linked** | **int** | The number of directories linked on the target. | +**target_directories_unlinked** | **int** | The number of directories unlinked on the target. | +**target_files_deleted** | **int** | The number of files deleted on the target. | +**target_files_linked** | **int** | The number of files linked on the target. | +**target_files_unlinked** | **int** | The number of files unlinked on the target. | +**target_path** | **str** | Absolute filesystem path on the target cluster for the sync destination. | +**target_snapshots** | **list[str]** | The target snapshots created by this job. | +**total_chunks** | **int** | The total number of data chunks transmitted by this job. | +**total_data_bytes** | **int** | The total number of bytes transferred by this job. | +**total_files** | **int** | The number of files affected by this job. | +**total_network_bytes** | **int** | The total number of bytes sent over the network by this job. | +**total_phases** | **int** | The total number of phases for this job. | +**unchanged_data_bytes** | **int** | The number of bytes unchanged by this job. | +**up_to_date_files_skipped** | **int** | The number of up-to-date files skipped by this job. | +**updated_files_replicated** | **int** | The number of updated files replicated by this job. | +**user_conflict_files_skipped** | **int** | The number of files with user conflicts skipped by this job. | +**warnings** | **list[str]** | A list of warning messages for this job. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TargetReports.md b/docs/TargetReports.md new file mode 100644 index 000000000..c82861ef2 --- /dev/null +++ b/docs/TargetReports.md @@ -0,0 +1,10 @@ +# TargetReports + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[TargetReport]**](TargetReport.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TargetReportsExtended.md b/docs/TargetReportsExtended.md new file mode 100644 index 000000000..e33c7c63f --- /dev/null +++ b/docs/TargetReportsExtended.md @@ -0,0 +1,12 @@ +# TargetReportsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**list[TargetReport]**](TargetReport.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TimezoneRegion.md b/docs/TimezoneRegion.md new file mode 100644 index 000000000..acd4ed90b --- /dev/null +++ b/docs/TimezoneRegion.md @@ -0,0 +1,13 @@ +# TimezoneRegion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comments** | **str** | Clarifying comments on the region or timezone. | [optional] +**id** | **str** | A unique identifier for the timezone region. | [optional] +**region** | **str** | The name of the region. | [optional] +**timezone** | [**TimezoneRegionTimezone**](TimezoneRegionTimezone.md) | A timezone. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TimezoneRegionTimezone.md b/docs/TimezoneRegionTimezone.md new file mode 100644 index 000000000..866f4bd44 --- /dev/null +++ b/docs/TimezoneRegionTimezone.md @@ -0,0 +1,11 @@ +# TimezoneRegionTimezone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**abbreviation** | **str** | The abbreviation for this timezone. | [optional] +**path** | **str** | The timezone path. This is the unique identifier for the timezone. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TimezoneRegions.md b/docs/TimezoneRegions.md new file mode 100644 index 000000000..f5ec7f1dd --- /dev/null +++ b/docs/TimezoneRegions.md @@ -0,0 +1,12 @@ +# TimezoneRegions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**regions** | [**list[TimezoneRegion]**](TimezoneRegion.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TimezoneSettings.md b/docs/TimezoneSettings.md new file mode 100644 index 000000000..4eb734576 --- /dev/null +++ b/docs/TimezoneSettings.md @@ -0,0 +1,10 @@ +# TimezoneSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**TimezoneRegionTimezone**](TimezoneRegionTimezone.md) | A timezone. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeApi.md b/docs/UpgradeApi.md new file mode 100644 index 000000000..fbc16d43d --- /dev/null +++ b/docs/UpgradeApi.md @@ -0,0 +1,813 @@ +# isi_sdk.UpgradeApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_cluster_add_remaining_node**](UpgradeApi.md#create_cluster_add_remaining_node) | **POST** /platform/3/upgrade/cluster/add_remaining_nodes | +[**create_cluster_archive_item**](UpgradeApi.md#create_cluster_archive_item) | **POST** /platform/3/upgrade/cluster/archive | +[**create_cluster_assess_item**](UpgradeApi.md#create_cluster_assess_item) | **POST** /platform/3/upgrade/cluster/assess | +[**create_cluster_commit_item**](UpgradeApi.md#create_cluster_commit_item) | **POST** /platform/3/upgrade/cluster/commit | +[**create_cluster_firmware_assess_item**](UpgradeApi.md#create_cluster_firmware_assess_item) | **POST** /platform/3/upgrade/cluster/firmware/assess | +[**create_cluster_firmware_upgrade_item**](UpgradeApi.md#create_cluster_firmware_upgrade_item) | **POST** /platform/3/upgrade/cluster/firmware/upgrade | +[**create_cluster_patch_abort_item**](UpgradeApi.md#create_cluster_patch_abort_item) | **POST** /platform/3/upgrade/cluster/patch/abort | +[**create_cluster_retry_last_action_item**](UpgradeApi.md#create_cluster_retry_last_action_item) | **POST** /platform/3/upgrade/cluster/retry_last_action | +[**create_cluster_rollback_item**](UpgradeApi.md#create_cluster_rollback_item) | **POST** /platform/3/upgrade/cluster/rollback | +[**create_cluster_upgrade_item**](UpgradeApi.md#create_cluster_upgrade_item) | **POST** /platform/3/upgrade/cluster/upgrade | +[**get_cluster_firmware_progress**](UpgradeApi.md#get_cluster_firmware_progress) | **GET** /platform/3/upgrade/cluster/firmware/progress | +[**get_cluster_firmware_status**](UpgradeApi.md#get_cluster_firmware_status) | **GET** /platform/3/upgrade/cluster/firmware/status | +[**get_cluster_node**](UpgradeApi.md#get_cluster_node) | **GET** /platform/3/upgrade/cluster/nodes/{ClusterNodeId} | +[**get_cluster_nodes**](UpgradeApi.md#get_cluster_nodes) | **GET** /platform/3/upgrade/cluster/nodes | +[**get_upgrade_cluster**](UpgradeApi.md#get_upgrade_cluster) | **GET** /platform/3/upgrade/cluster | +[**update_cluster_upgrade**](UpgradeApi.md#update_cluster_upgrade) | **PUT** /platform/3/upgrade/cluster/upgrade | + + +# **create_cluster_add_remaining_node** +> Empty create_cluster_add_remaining_node(cluster_add_remaining_node) + + + +Let system absorb any remaining or new nodes inside the existing upgrade. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_add_remaining_node = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_cluster_add_remaining_node(cluster_add_remaining_node) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_add_remaining_node: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_add_remaining_node** | [**Empty**](Empty.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_archive_item** +> Empty create_cluster_archive_item(cluster_archive_item) + + + +Start an archive of an upgrade. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_archive_item = isi_sdk.ClusterArchiveItem() # ClusterArchiveItem | + +try: + api_response = api_instance.create_cluster_archive_item(cluster_archive_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_archive_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_archive_item** | [**ClusterArchiveItem**](ClusterArchiveItem.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_assess_item** +> Empty create_cluster_assess_item(cluster_assess_item) + + + +Start upgrade assessment on cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_assess_item = isi_sdk.ClusterAssessItem() # ClusterAssessItem | + +try: + api_response = api_instance.create_cluster_assess_item(cluster_assess_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_assess_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_assess_item** | [**ClusterAssessItem**](ClusterAssessItem.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_commit_item** +> Empty create_cluster_commit_item(cluster_commit_item) + + + +Commit the upgrade of a cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_commit_item = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_cluster_commit_item(cluster_commit_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_commit_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_commit_item** | [**Empty**](Empty.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_firmware_assess_item** +> Empty create_cluster_firmware_assess_item(cluster_firmware_assess_item) + + + +Start firmware upgrade assessment on cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_firmware_assess_item = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_cluster_firmware_assess_item(cluster_firmware_assess_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_firmware_assess_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_firmware_assess_item** | [**Empty**](Empty.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_firmware_upgrade_item** +> Empty create_cluster_firmware_upgrade_item(cluster_firmware_upgrade_item) + + + +The settings necessary to start a firmware upgrade. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_firmware_upgrade_item = isi_sdk.ClusterFirmwareUpgradeItem() # ClusterFirmwareUpgradeItem | + +try: + api_response = api_instance.create_cluster_firmware_upgrade_item(cluster_firmware_upgrade_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_firmware_upgrade_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_firmware_upgrade_item** | [**ClusterFirmwareUpgradeItem**](ClusterFirmwareUpgradeItem.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_patch_abort_item** +> Empty create_cluster_patch_abort_item(cluster_patch_abort_item) + + + +Abort the previous action performed by the patch system. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_patch_abort_item = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_cluster_patch_abort_item(cluster_patch_abort_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_patch_abort_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_patch_abort_item** | [**Empty**](Empty.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_retry_last_action_item** +> Empty create_cluster_retry_last_action_item(cluster_retry_last_action_item) + + + +Retry the last upgrade action, in-case the previous attempt failed. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_retry_last_action_item = isi_sdk.ClusterRetryLastActionItem() # ClusterRetryLastActionItem | + +try: + api_response = api_instance.create_cluster_retry_last_action_item(cluster_retry_last_action_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_retry_last_action_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_retry_last_action_item** | [**ClusterRetryLastActionItem**](ClusterRetryLastActionItem.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_rollback_item** +> Empty create_cluster_rollback_item(cluster_rollback_item) + + + +Rollback the upgrade of a cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_rollback_item = isi_sdk.Empty() # Empty | + +try: + api_response = api_instance.create_cluster_rollback_item(cluster_rollback_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_rollback_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_rollback_item** | [**Empty**](Empty.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_cluster_upgrade_item** +> Empty create_cluster_upgrade_item(cluster_upgrade_item) + + + +The settings necessary to start an upgrade. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_upgrade_item = isi_sdk.ClusterUpgradeItem() # ClusterUpgradeItem | + +try: + api_response = api_instance.create_cluster_upgrade_item(cluster_upgrade_item) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->create_cluster_upgrade_item: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_upgrade_item** | [**ClusterUpgradeItem**](ClusterUpgradeItem.md)| | + +### Return type + +[**Empty**](Empty.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_firmware_progress** +> ClusterFirmwareProgress get_cluster_firmware_progress() + + + +Cluster wide firmware upgrade status info. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() + +try: + api_response = api_instance.get_cluster_firmware_progress() + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->get_cluster_firmware_progress: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterFirmwareProgress**](ClusterFirmwareProgress.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_firmware_status** +> ClusterFirmwareStatus get_cluster_firmware_status(devices=devices, package=package) + + + +The firmware status for the cluster. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +devices = true # bool | Show devices. If false, this returns an empty list. Default is false. (optional) +package = true # bool | Show package. If false, this returns an empty list.Default is false. (optional) + +try: + api_response = api_instance.get_cluster_firmware_status(devices=devices, package=package) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->get_cluster_firmware_status: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **devices** | **bool**| Show devices. If false, this returns an empty list. Default is false. | [optional] + **package** | **bool**| Show package. If false, this returns an empty list.Default is false. | [optional] + +### Return type + +[**ClusterFirmwareStatus**](ClusterFirmwareStatus.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_node** +> ClusterNodesExtended get_cluster_node(cluster_node_id) + + + +The node details useful during an upgrade or assessment. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_node_id = 56 # int | The node details useful during an upgrade or assessment. + +try: + api_response = api_instance.get_cluster_node(cluster_node_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->get_cluster_node: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_node_id** | **int**| The node details useful during an upgrade or assessment. | + +### Return type + +[**ClusterNodesExtended**](ClusterNodesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_cluster_nodes** +> ClusterNodesExtended get_cluster_nodes() + + + +View information about nodes during an upgrade, rollback, or pre-upgrade assessment. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() + +try: + api_response = api_instance.get_cluster_nodes() + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->get_cluster_nodes: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ClusterNodesExtended**](ClusterNodesExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_upgrade_cluster** +> UpgradeCluster get_upgrade_cluster() + + + +Cluster wide upgrade status info. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() + +try: + api_response = api_instance.get_upgrade_cluster() + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeApi->get_upgrade_cluster: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UpgradeCluster**](UpgradeCluster.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_cluster_upgrade** +> update_cluster_upgrade(cluster_upgrade) + + + +Add nodes to a running upgrade. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeApi() +cluster_upgrade = isi_sdk.ClusterUpgrade() # ClusterUpgrade | + +try: + api_instance.update_cluster_upgrade(cluster_upgrade) +except ApiException as e: + print "Exception when calling UpgradeApi->update_cluster_upgrade: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_upgrade** | [**ClusterUpgrade**](ClusterUpgrade.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/UpgradeCluster.md b/docs/UpgradeCluster.md new file mode 100644 index 000000000..175ed6bdb --- /dev/null +++ b/docs/UpgradeCluster.md @@ -0,0 +1,19 @@ +# UpgradeCluster + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster_overview** | [**UpgradeClusterClusterOverview**](UpgradeClusterClusterOverview.md) | The cluster overview of an upgrade process. | [optional] +**cluster_state** | **str** | The different states of an upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'partially upgraded', 'upgrading', 'rolling back', 'assessing', 'error' | [optional] +**finish_time** | **str** | The time when a rollback, assessment or upgrade has finished completely. Use ISO 8601 standard. Null if the cluster_state is not 'upgraded'. | [optional] +**install_image_path** | **str** | The location (path) of the upgrade image which must be within /ifs. Null if the cluster_state is 'committed' or 'upgraded.' | [optional] +**onefs_version_current** | [**ClusterNodesOnefsVersion**](ClusterNodesOnefsVersion.md) | The current OneFS version before upgrade. | [optional] +**onefs_version_upgrade** | [**ClusterNodesOnefsVersion**](ClusterNodesOnefsVersion.md) | The OneFS version the user is attempting to upgrade to. Null if the cluster_state is 'committed' or 'assessing.' | [optional] +**patch_action** | **str** | The most recent patch action performed. | [optional] +**patch_name** | **str** | The patch with the most recent patch action. | [optional] +**start_time** | **str** | The time when an upgrade, rollback, or assessment was started. Use ISO 8601 standard. Null if the cluster_state is 'committed' or 'partially upgraded.' | [optional] +**upgrade_settings** | [**UpgradeClusterUpgradeSettings**](UpgradeClusterUpgradeSettings.md) | The settings neccessary when starting an upgrade. Null if the cluster_state is not 'upgrading' or 'partially upgraded.' or 'error'. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeClusterApi.md b/docs/UpgradeClusterApi.md new file mode 100644 index 000000000..e2f629af9 --- /dev/null +++ b/docs/UpgradeClusterApi.md @@ -0,0 +1,63 @@ +# isi_sdk.UpgradeClusterApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_nodes_node_firmware_status**](UpgradeClusterApi.md#get_nodes_node_firmware_status) | **GET** /platform/3/upgrade/cluster/nodes/{Lnn}/firmware/status | + + +# **get_nodes_node_firmware_status** +> NodesNodeFirmwareStatus get_nodes_node_firmware_status(lnn, devices=devices, package=package) + + + +The firmware status for the node. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.UpgradeClusterApi() +lnn = 56 # int | +devices = true # bool | Show devices. If false, this returns an empty list. Default is false. (optional) +package = true # bool | Show package. If false, this returns an empty list.Default is false. (optional) + +try: + api_response = api_instance.get_nodes_node_firmware_status(lnn, devices=devices, package=package) + pprint(api_response) +except ApiException as e: + print "Exception when calling UpgradeClusterApi->get_nodes_node_firmware_status: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **lnn** | **int**| | + **devices** | **bool**| Show devices. If false, this returns an empty list. Default is false. | [optional] + **package** | **bool**| Show package. If false, this returns an empty list.Default is false. | [optional] + +### Return type + +[**NodesNodeFirmwareStatus**](NodesNodeFirmwareStatus.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/UpgradeClusterClusterOverview.md b/docs/UpgradeClusterClusterOverview.md new file mode 100644 index 000000000..ecb7bb200 --- /dev/null +++ b/docs/UpgradeClusterClusterOverview.md @@ -0,0 +1,13 @@ +# UpgradeClusterClusterOverview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes_current** | **int** | Number of nodes running the current OneFS version. | [optional] +**nodes_total** | **int** | Total number of nodes on the cluster. | [optional] +**nodes_transitioning** | **int** | Number of nodes transitioning between OneFS versions. Null if the cluster_state is 'committed' or 'assessing.' | [optional] +**nodes_upgraded** | **int** | Number of nodes running the upgraded OneFS version. Null if the cluster_state is 'committed' or 'assessing.' | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeClusterUpgradeSettings.md b/docs/UpgradeClusterUpgradeSettings.md new file mode 100644 index 000000000..8cac28b25 --- /dev/null +++ b/docs/UpgradeClusterUpgradeSettings.md @@ -0,0 +1,11 @@ +# UpgradeClusterUpgradeSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes_to_rolling_upgrade** | **list[int]** | The nodes (to be) scheduled for upgrade ordered by queue position number. Null if the cluster_state is 'partially upgraded' or upgrade_type is 'simultaneous'. One of the following values: [<lnn-1>, <lnn-2>, ... ], 'All', null | [optional] +**upgrade_type** | **str** | The type of upgrade to perform. One of the following values: 'rolling', 'simultaneous' | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserChangePassword.md b/docs/UserChangePassword.md new file mode 100644 index 000000000..8ad991e1e --- /dev/null +++ b/docs/UserChangePassword.md @@ -0,0 +1,11 @@ +# UserChangePassword + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**new_password** | **str** | Specifies user's new password | +**old_password** | **str** | User's expired password | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserMemberOf.md b/docs/UserMemberOf.md new file mode 100644 index 000000000..6a13d5c34 --- /dev/null +++ b/docs/UserMemberOf.md @@ -0,0 +1,11 @@ +# UserMemberOf + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**member_of** | [**list[GroupMember]**](GroupMember.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormApi.md b/docs/WormApi.md new file mode 100644 index 000000000..f6dac231e --- /dev/null +++ b/docs/WormApi.md @@ -0,0 +1,316 @@ +# isi_sdk.WormApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_worm_domain**](WormApi.md#create_worm_domain) | **POST** /platform/1/worm/domains | +[**get_worm_domain**](WormApi.md#get_worm_domain) | **GET** /platform/1/worm/domains/{WormDomainId} | +[**get_worm_settings**](WormApi.md#get_worm_settings) | **GET** /platform/1/worm/settings | +[**list_worm_domains**](WormApi.md#list_worm_domains) | **GET** /platform/1/worm/domains | +[**update_worm_domain**](WormApi.md#update_worm_domain) | **PUT** /platform/1/worm/domains/{WormDomainId} | +[**update_worm_settings**](WormApi.md#update_worm_settings) | **PUT** /platform/1/worm/settings | + + +# **create_worm_domain** +> CreateWormDomainResponse create_worm_domain(worm_domain) + + + +Create a WORM domain. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.WormApi() +worm_domain = isi_sdk.WormDomainCreateParams() # WormDomainCreateParams | + +try: + api_response = api_instance.create_worm_domain(worm_domain) + pprint(api_response) +except ApiException as e: + print "Exception when calling WormApi->create_worm_domain: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **worm_domain** | [**WormDomainCreateParams**](WormDomainCreateParams.md)| | + +### Return type + +[**CreateWormDomainResponse**](CreateWormDomainResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_worm_domain** +> WormDomains get_worm_domain(worm_domain_id) + + + +View a single WORM domain. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.WormApi() +worm_domain_id = 'worm_domain_id_example' # str | View a single WORM domain. + +try: + api_response = api_instance.get_worm_domain(worm_domain_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling WormApi->get_worm_domain: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **worm_domain_id** | **str**| View a single WORM domain. | + +### Return type + +[**WormDomains**](WormDomains.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_worm_settings** +> WormSettings get_worm_settings() + + + +Get the global WORM settings. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.WormApi() + +try: + api_response = api_instance.get_worm_settings() + pprint(api_response) +except ApiException as e: + print "Exception when calling WormApi->get_worm_settings: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**WormSettings**](WormSettings.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_worm_domains** +> WormDomainsExtended list_worm_domains(sort=sort, limit=limit, dir=dir, resume=resume) + + + +List all WORM domains. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.WormApi() +sort = 'sort_example' # str | The field that will be used for sorting. (optional) +limit = 56 # int | Return no more than this many results at once (see resume). (optional) +dir = 'dir_example' # str | The direction of the sort. (optional) +resume = 'resume_example' # str | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). (optional) + +try: + api_response = api_instance.list_worm_domains(sort=sort, limit=limit, dir=dir, resume=resume) + pprint(api_response) +except ApiException as e: + print "Exception when calling WormApi->list_worm_domains: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sort** | **str**| The field that will be used for sorting. | [optional] + **limit** | **int**| Return no more than this many results at once (see resume). | [optional] + **dir** | **str**| The direction of the sort. | [optional] + **resume** | **str**| Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] + +### Return type + +[**WormDomainsExtended**](WormDomainsExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_worm_domain** +> update_worm_domain(worm_domain, worm_domain_id) + + + +Modify a single WORM domain. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.WormApi() +worm_domain = isi_sdk.WormDomain() # WormDomain | +worm_domain_id = 'worm_domain_id_example' # str | Modify a single WORM domain. + +try: + api_instance.update_worm_domain(worm_domain, worm_domain_id) +except ApiException as e: + print "Exception when calling WormApi->update_worm_domain: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **worm_domain** | [**WormDomain**](WormDomain.md)| | + **worm_domain_id** | **str**| Modify a single WORM domain. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_worm_settings** +> update_worm_settings(worm_settings) + + + +Modify the global WORM settings. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.WormApi() +worm_settings = isi_sdk.WormSettingsExtended() # WormSettingsExtended | + +try: + api_instance.update_worm_settings(worm_settings) +except ApiException as e: + print "Exception when calling WormApi->update_worm_settings: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **worm_settings** | [**WormSettingsExtended**](WormSettingsExtended.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/WormDomain.md b/docs/WormDomain.md new file mode 100644 index 000000000..289efcdac --- /dev/null +++ b/docs/WormDomain.md @@ -0,0 +1,16 @@ +# WormDomain + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autocommit_offset** | **int** | Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. | [optional] +**default_retention** | **int** | Specifies the default amount of time, in seconds, that a file in this domain will be protected for. The default retention period is applied if no retention date is manually set on the file. This parameter can also be set to 'forever', 'use_min' (which applies the 'min_retention' option), or 'use_max' (which applies the 'max_retention' option). | [optional] +**max_retention** | **int** | Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. | [optional] +**min_retention** | **int** | Specifies the minimum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a shorter retention period. If this parameter is set to null, this minimum value is not enforced. This parameter can also be set to 'forever'. | [optional] +**override_date** | **int** | Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. | [optional] +**privileged_delete** | **str** | When this value is set to 'on', files in this domain can be deleted through the privileged delete feature. If this value is set to 'disabled', privileged file deletes are permanently disabled and cannot be turned on again. | [optional] +**type** | **str** | Specifies whether the domain is an enterprise domain or a compliance domain. Compliance domains can not be created on enterprise clusters. Enterprise and compliance domains can be created on compliance clusters. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormDomainCreateParams.md b/docs/WormDomainCreateParams.md new file mode 100644 index 000000000..8879114bc --- /dev/null +++ b/docs/WormDomainCreateParams.md @@ -0,0 +1,17 @@ +# WormDomainCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autocommit_offset** | **int** | Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. | [optional] +**default_retention** | **int** | Specifies the default amount of time, in seconds, that a file in this domain will be protected for. The default retention period is applied if no retention date is manually set on the file. This parameter can also be set to 'forever', 'use_min' (which applies the 'min_retention' option), or 'use_max' (which applies the 'max_retention' option). | [optional] +**max_retention** | **int** | Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. | [optional] +**min_retention** | **int** | Specifies the minimum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a shorter retention period. If this parameter is set to null, this minimum value is not enforced. This parameter can also be set to 'forever'. | [optional] +**override_date** | **int** | Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. | [optional] +**privileged_delete** | **str** | When this value is set to 'on', files in this domain can be deleted through the privileged delete feature. If this value is set to 'disabled', privileged file deletes are permanently disabled and cannot be turned on again. | [optional] +**type** | **str** | Specifies whether the domain is an enterprise domain or a compliance domain. Compliance domains can not be created on enterprise clusters. Enterprise and compliance domains can be created on compliance clusters. | [optional] +**path** | **str** | Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormDomainExtended.md b/docs/WormDomainExtended.md new file mode 100644 index 000000000..a0d10eff6 --- /dev/null +++ b/docs/WormDomainExtended.md @@ -0,0 +1,22 @@ +# WormDomainExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autocommit_offset** | **int** | Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. | [optional] +**default_retention** | **int** | Specifies the default amount of time, in seconds, that a file in this domain will be protected for. The default retention period is applied if no retention date is manually set on the file. This parameter can also be set to 'forever', 'use_min' (which applies the 'min_retention' option), or 'use_max' (which applies the 'max_retention' option). | [optional] +**max_retention** | **int** | Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. | [optional] +**min_retention** | **int** | Specifies the minimum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a shorter retention period. If this parameter is set to null, this minimum value is not enforced. This parameter can also be set to 'forever'. | [optional] +**override_date** | **int** | Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. | [optional] +**privileged_delete** | **str** | When this value is set to 'on', files in this domain can be deleted through the privileged delete feature. If this value is set to 'disabled', privileged file deletes are permanently disabled and cannot be turned on again. | [optional] +**type** | **str** | Specifies whether the domain is an enterprise domain or a compliance domain. Compliance domains can not be created on enterprise clusters. Enterprise and compliance domains can be created on compliance clusters. | [optional] +**id** | **int** | Specifies the system-assigned ID for the protection domain. | +**incomplete** | **bool** | True if OneFS is still in the process of creating this domain and is unable to prevent files from being modified or deleted. If false, indicates that the domain is fully created and is able to prevent files from being modified or deleted. | +**lin** | **int** | Specifies the logical inode number (LIN) for the root of this domain. | +**max_modifies** | **int** | Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. | +**path** | **str** | Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. | +**total_modifies** | **int** | Specifies the number of times this domain has been modified and the number of times the attributes for the domain have changed. A SmartLock domain can be modified a fixed number of times as defined by the 'max_modifies' parameter. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormDomains.md b/docs/WormDomains.md new file mode 100644 index 000000000..b85a58559 --- /dev/null +++ b/docs/WormDomains.md @@ -0,0 +1,10 @@ +# WormDomains + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domains** | [**list[WormDomainExtended]**](WormDomainExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormDomainsExtended.md b/docs/WormDomainsExtended.md new file mode 100644 index 000000000..8e0bb5452 --- /dev/null +++ b/docs/WormDomainsExtended.md @@ -0,0 +1,12 @@ +# WormDomainsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domains** | [**list[WormDomainExtended]**](WormDomainExtended.md) | | [optional] +**resume** | **str** | Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). | [optional] +**total** | **int** | Total number of items available. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormSettings.md b/docs/WormSettings.md new file mode 100644 index 000000000..e938735ce --- /dev/null +++ b/docs/WormSettings.md @@ -0,0 +1,10 @@ +# WormSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**WormSettingsSettings**](WormSettingsSettings.md) | Specifies global SmartLock (WORM) settings. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormSettingsExtended.md b/docs/WormSettingsExtended.md new file mode 100644 index 000000000..f0e9f6520 --- /dev/null +++ b/docs/WormSettingsExtended.md @@ -0,0 +1,10 @@ +# WormSettingsExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cdate** | [**Empty**](Empty.md) | To set the compliance clock to the current system time, PUT to this resource with an empty JSON object {} for the cdate value. This cluster must be in compliance mode to set the compliance clock. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WormSettingsSettings.md b/docs/WormSettingsSettings.md new file mode 100644 index 000000000..144e7ba2a --- /dev/null +++ b/docs/WormSettingsSettings.md @@ -0,0 +1,10 @@ +# WormSettingsSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cdate** | **int** | Specifies the current time of the SmartLock compliance clock in Unix Epoch seconds. If the compliance clock is not set, this value is null. A PUT request will set the compliance clock date to the current system time. The cluster must be in compliance mode to set the compliance clock. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Zone.md b/docs/Zone.md new file mode 100644 index 000000000..1bc313003 --- /dev/null +++ b/docs/Zone.md @@ -0,0 +1,23 @@ +# Zone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alternate_system_provider** | **str** | Specifies an alternate system provider. | [optional] +**auth_providers** | **list[str]** | Specifies the list of authentication providers available on this access zone. | [optional] +**cache_entry_expiry** | **int** | Specifies amount of time in seconds to cache a user/group. | [optional] +**create_path** | **bool** | Determines if a path is created when a path does not exist. | [optional] +**force_overlap** | **bool** | Allow for overlapping base path. | [optional] +**home_directory_umask** | **int** | Specifies the permissions set on automatically created user home directories. | [optional] +**ifs_restricted** | [**list[GroupMember]**](GroupMember.md) | Specifies a list of users and groups that have read and write access to /ifs. | [optional] +**map_untrusted** | **str** | Maps untrusted domains to this NetBIOS domain during authentication. | [optional] +**name** | **str** | Specifies the access zone name. | [optional] +**netbios_name** | **str** | Specifies the NetBIOS name. | [optional] +**path** | **str** | Specifies the access zone base directory path. | [optional] +**skeleton_directory** | **str** | Specifies the skeleton directory that is used for user home directories. | [optional] +**system_provider** | **str** | Specifies the system provider for the access zone. | [optional] +**user_mapping_rules** | **list[str]** | Specifies the current ID mapping rules. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ZoneCreateParams.md b/docs/ZoneCreateParams.md new file mode 100644 index 000000000..df985b60c --- /dev/null +++ b/docs/ZoneCreateParams.md @@ -0,0 +1,24 @@ +# ZoneCreateParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alternate_system_provider** | **str** | Specifies an alternate system provider. | [optional] +**auth_providers** | **list[str]** | Specifies the list of authentication providers available on this access zone. | [optional] +**cache_entry_expiry** | **int** | Specifies amount of time in seconds to cache a user/group. | [optional] +**create_path** | **bool** | Determines if a path is created when a path does not exist. | [optional] +**force_overlap** | **bool** | Allow for overlapping base path. | [optional] +**home_directory_umask** | **int** | Specifies the permissions set on automatically created user home directories. | [optional] +**ifs_restricted** | [**list[GroupMember]**](GroupMember.md) | Specifies a list of users and groups that have read and write access to /ifs. | [optional] +**map_untrusted** | **str** | Maps untrusted domains to this NetBIOS domain during authentication. | [optional] +**name** | **str** | Specifies the access zone name. | [optional] +**netbios_name** | **str** | Specifies the NetBIOS name. | [optional] +**path** | **str** | Specifies the access zone base directory path. | [optional] +**skeleton_directory** | **str** | Specifies the skeleton directory that is used for user home directories. | [optional] +**system_provider** | **str** | Specifies the system provider for the access zone. | [optional] +**user_mapping_rules** | **list[str]** | Specifies the current ID mapping rules. | [optional] +**groupnet** | **str** | Groupnet identitier | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ZoneExtended.md b/docs/ZoneExtended.md new file mode 100644 index 000000000..1d230af41 --- /dev/null +++ b/docs/ZoneExtended.md @@ -0,0 +1,26 @@ +# ZoneExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alternate_system_provider** | **str** | Specifies an alternate system provider. | [optional] +**auth_providers** | **list[str]** | Specifies the list of authentication providers available on this access zone. | [optional] +**cache_entry_expiry** | **int** | Specifies amount of time in seconds to cache a user/group. | [optional] +**create_path** | **bool** | Determines if a path is created when a path does not exist. | [optional] +**groupnet** | **str** | Groupnet identitier | [optional] +**home_directory_umask** | **int** | Specifies the permissions set on automatically created user home directories. | [optional] +**id** | **str** | Specifies the system-assigned ID for the access zone. This value is returned when an access zone is created through the POST method | [optional] +**ifs_restricted** | [**list[GroupMember]**](GroupMember.md) | Specifies a list of users and groups that have read and write access to /ifs. | [optional] +**map_untrusted** | **str** | Maps untrusted domains to this NetBIOS domain during authentication. | [optional] +**name** | **str** | Specifies the access zone name. | [optional] +**netbios_name** | **str** | Specifies the NetBIOS name. | [optional] +**path** | **str** | Specifies the access zone base directory path. | [optional] +**skeleton_directory** | **str** | Specifies the skeleton directory that is used for user home directories. | [optional] +**system** | **bool** | True if the access zone is built-in. | [optional] +**system_provider** | **str** | Specifies the system provider for the access zone. | [optional] +**user_mapping_rules** | **list[str]** | Specifies the current ID mapping rules. | [optional] +**zone_id** | **int** | Specifies the access zone ID on the system. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Zones.md b/docs/Zones.md new file mode 100644 index 000000000..e7bcb5f27 --- /dev/null +++ b/docs/Zones.md @@ -0,0 +1,10 @@ +# Zones + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**zones** | [**list[ZoneExtended]**](ZoneExtended.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ZonesApi.md b/docs/ZonesApi.md new file mode 100644 index 000000000..2a655ebfb --- /dev/null +++ b/docs/ZonesApi.md @@ -0,0 +1,259 @@ +# isi_sdk.ZonesApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_zone**](ZonesApi.md#create_zone) | **POST** /platform/3/zones | +[**delete_zone**](ZonesApi.md#delete_zone) | **DELETE** /platform/3/zones/{ZoneId} | +[**get_zone**](ZonesApi.md#get_zone) | **GET** /platform/3/zones/{ZoneId} | +[**list_zones**](ZonesApi.md#list_zones) | **GET** /platform/3/zones | +[**update_zone**](ZonesApi.md#update_zone) | **PUT** /platform/3/zones/{ZoneId} | + + +# **create_zone** +> CreateResponse create_zone(zone) + + + +Create a new access zone. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ZonesApi() +zone = isi_sdk.ZoneCreateParams() # ZoneCreateParams | + +try: + api_response = api_instance.create_zone(zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ZonesApi->create_zone: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zone** | [**ZoneCreateParams**](ZoneCreateParams.md)| | + +### Return type + +[**CreateResponse**](CreateResponse.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_zone** +> delete_zone(zone_id) + + + +Delete the access zone. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ZonesApi() +zone_id = 56 # int | Delete the access zone. + +try: + api_instance.delete_zone(zone_id) +except ApiException as e: + print "Exception when calling ZonesApi->delete_zone: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zone_id** | **int**| Delete the access zone. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_zone** +> Zones get_zone(zone_id) + + + +Retrieve the access zone information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ZonesApi() +zone_id = 56 # int | Retrieve the access zone information. + +try: + api_response = api_instance.get_zone(zone_id) + pprint(api_response) +except ApiException as e: + print "Exception when calling ZonesApi->get_zone: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zone_id** | **int**| Retrieve the access zone information. | + +### Return type + +[**Zones**](Zones.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_zones** +> Zones list_zones() + + + +List all access zones. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ZonesApi() + +try: + api_response = api_instance.list_zones() + pprint(api_response) +except ApiException as e: + print "Exception when calling ZonesApi->list_zones: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Zones**](Zones.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_zone** +> update_zone(zone, zone_id) + + + +Modify the access zone. All input fields are optional, but one or more must be supplied. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ZonesApi() +zone = isi_sdk.Zone() # Zone | +zone_id = 56 # int | Modify the access zone. All input fields are optional, but one or more must be supplied. + +try: + api_instance.update_zone(zone, zone_id) +except ApiException as e: + print "Exception when calling ZonesApi->update_zone: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zone** | [**Zone**](Zone.md)| | + **zone_id** | **int**| Modify the access zone. All input fields are optional, but one or more must be supplied. | + +### Return type + +void (empty response body) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ZonesSummary.md b/docs/ZonesSummary.md new file mode 100644 index 000000000..b4646188a --- /dev/null +++ b/docs/ZonesSummary.md @@ -0,0 +1,10 @@ +# ZonesSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**ZonesSummarySummary**](ZonesSummarySummary.md) | The summary of a collection of objects. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ZonesSummaryApi.md b/docs/ZonesSummaryApi.md new file mode 100644 index 000000000..d93c9d138 --- /dev/null +++ b/docs/ZonesSummaryApi.md @@ -0,0 +1,106 @@ +# isi_sdk.ZonesSummaryApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_zones_summary**](ZonesSummaryApi.md#get_zones_summary) | **GET** /platform/1/zones-summary | +[**get_zones_summary_zone**](ZonesSummaryApi.md#get_zones_summary_zone) | **GET** /platform/1/zones-summary/{ZonesSummaryZone} | + + +# **get_zones_summary** +> ZonesSummaryExtended get_zones_summary() + + + +Retrieve access zone summary information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ZonesSummaryApi() + +try: + api_response = api_instance.get_zones_summary() + pprint(api_response) +except ApiException as e: + print "Exception when calling ZonesSummaryApi->get_zones_summary: %s\n" % e +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ZonesSummaryExtended**](ZonesSummaryExtended.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_zones_summary_zone** +> ZonesSummary get_zones_summary_zone(zones_summary_zone) + + + +Retrieve non-privileged access zone information. + +### Example +```python +import time +import isi_sdk +from isi_sdk.rest import ApiException +from pprint import pprint + +# Configure HTTP basic authorization: basic_auth +isi_sdk.configuration.username = 'YOUR_USERNAME' +isi_sdk.configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = isi_sdk.ZonesSummaryApi() +zones_summary_zone = 56 # int | Retrieve non-privileged access zone information. + +try: + api_response = api_instance.get_zones_summary_zone(zones_summary_zone) + pprint(api_response) +except ApiException as e: + print "Exception when calling ZonesSummaryApi->get_zones_summary_zone: %s\n" % e +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **zones_summary_zone** | **int**| Retrieve non-privileged access zone information. | + +### Return type + +[**ZonesSummary**](ZonesSummary.md) + +### Authorization + +[basic_auth](../README.md#basic_auth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ZonesSummaryExtended.md b/docs/ZonesSummaryExtended.md new file mode 100644 index 000000000..a7d2010d3 --- /dev/null +++ b/docs/ZonesSummaryExtended.md @@ -0,0 +1,10 @@ +# ZonesSummaryExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**ZonesSummarySummary**](ZonesSummarySummary.md) | The summary of a collection of objects. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ZonesSummarySummary.md b/docs/ZonesSummarySummary.md new file mode 100644 index 000000000..b29600454 --- /dev/null +++ b/docs/ZonesSummarySummary.md @@ -0,0 +1,10 @@ +# ZonesSummarySummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**path** | **str** | The zone base path | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ZonesSummarySummaryExtended.md b/docs/ZonesSummarySummaryExtended.md new file mode 100644 index 000000000..cd379fcb9 --- /dev/null +++ b/docs/ZonesSummarySummaryExtended.md @@ -0,0 +1,11 @@ +# ZonesSummarySummaryExtended + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | The count of objects in the collection | +**list** | **list[str]** | List of zone names | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 000000000..ed374619b --- /dev/null +++ b/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/isi_sdk/__init__.py b/isi_sdk/__init__.py index 8c695fb10..9f6b5825d 100644 --- a/isi_sdk/__init__.py +++ b/isi_sdk/__init__.py @@ -1,6 +1,12 @@ from __future__ import absolute_import # import models into sdk package +from .models.ads_provider_controllers import AdsProviderControllers +from .models.ads_provider_controllers_controller import AdsProviderControllersController +from .models.ads_provider_domains import AdsProviderDomains +from .models.ads_provider_domains_domain import AdsProviderDomainsDomain +from .models.ads_provider_search import AdsProviderSearch +from .models.ads_provider_search_object import AdsProviderSearchObject from .models.antivirus_policies import AntivirusPolicies from .models.antivirus_policies_extended import AntivirusPoliciesExtended from .models.antivirus_policy import AntivirusPolicy @@ -52,9 +58,9 @@ from .models.auth_users import AuthUsers from .models.auth_users_extended import AuthUsersExtended from .models.auth_wellknowns import AuthWellknowns -from .models.changelists_changelist_lins import ChangelistsChangelistLins -from .models.changelists_changelist_lins_ctime import ChangelistsChangelistLinsCtime -from .models.changelists_changelist_lins_extended import ChangelistsChangelistLinsExtended +from .models.changelist_lins import ChangelistLins +from .models.changelist_lins_ctime import ChangelistLinsCtime +from .models.changelist_lins_extended import ChangelistLinsExtended from .models.cloud_access import CloudAccess from .models.cloud_access_cluster import CloudAccessCluster from .models.cloud_access_extended import CloudAccessExtended @@ -84,6 +90,10 @@ from .models.cluster_add_node_item import ClusterAddNodeItem from .models.cluster_archive_item import ClusterArchiveItem from .models.cluster_assess_item import ClusterAssessItem +from .models.cluster_config import ClusterConfig +from .models.cluster_config_device import ClusterConfigDevice +from .models.cluster_config_onefs_version import ClusterConfigOnefsVersion +from .models.cluster_config_timezone import ClusterConfigTimezone from .models.cluster_email import ClusterEmail from .models.cluster_email_extended import ClusterEmailExtended from .models.cluster_email_settings import ClusterEmailSettings @@ -110,18 +120,21 @@ from .models.cluster_nodes_available_node import ClusterNodesAvailableNode from .models.cluster_nodes_error import ClusterNodesError from .models.cluster_nodes_extended import ClusterNodesExtended -from .models.cluster_nodes_lnn_firmware_status import ClusterNodesLnnFirmwareStatus from .models.cluster_nodes_onefs_version import ClusterNodesOnefsVersion from .models.cluster_owner import ClusterOwner from .models.cluster_patch_patche import ClusterPatchPatche from .models.cluster_retry_last_action_item import ClusterRetryLastActionItem from .models.cluster_statfs import ClusterStatfs from .models.cluster_time import ClusterTime +from .models.cluster_time_error import ClusterTimeError from .models.cluster_time_extended import ClusterTimeExtended +from .models.cluster_time_node import ClusterTimeNode from .models.cluster_timezone import ClusterTimezone from .models.cluster_timezone_extended import ClusterTimezoneExtended from .models.cluster_upgrade import ClusterUpgrade from .models.cluster_upgrade_item import ClusterUpgradeItem +from .models.cluster_version import ClusterVersion +from .models.cluster_version_node import ClusterVersionNode from .models.compatibilities_class_active import CompatibilitiesClassActive from .models.compatibilities_class_active_active_item import CompatibilitiesClassActiveActiveItem from .models.compatibilities_class_active_extended import CompatibilitiesClassActiveExtended @@ -154,10 +167,10 @@ from .models.create_response import CreateResponse from .models.create_snapshot_aliase_response import CreateSnapshotAliaseResponse from .models.create_snapshot_changelist_response import CreateSnapshotChangelistResponse +from .models.create_snapshot_lock_response import CreateSnapshotLockResponse from .models.create_snapshot_repstate_response import CreateSnapshotRepstateResponse from .models.create_snapshot_schedule_response import CreateSnapshotScheduleResponse from .models.create_snapshot_snapshot_response import CreateSnapshotSnapshotResponse -from .models.create_snapshots_sid_lock_response import CreateSnapshotsSidLockResponse from .models.create_storagepool_tier_response import CreateStoragepoolTierResponse from .models.create_sync_reports_rotate_item_response import CreateSyncReportsRotateItemResponse from .models.create_worm_domain_response import CreateWormDomainResponse @@ -173,6 +186,15 @@ from .models.dedupe_settings import DedupeSettings from .models.dedupe_settings_extended import DedupeSettingsExtended from .models.dedupe_settings_settings import DedupeSettingsSettings +from .models.drives_drive_firmware import DrivesDriveFirmware +from .models.drives_drive_firmware_node import DrivesDriveFirmwareNode +from .models.drives_drive_firmware_node_drive import DrivesDriveFirmwareNodeDrive +from .models.drives_drive_firmware_update import DrivesDriveFirmwareUpdate +from .models.drives_drive_firmware_update_item import DrivesDriveFirmwareUpdateItem +from .models.drives_drive_firmware_update_node import DrivesDriveFirmwareUpdateNode +from .models.drives_drive_firmware_update_node_status import DrivesDriveFirmwareUpdateNodeStatus +from .models.drives_drive_format_item import DrivesDriveFormatItem +from .models.drives_drive_purpose_item import DrivesDrivePurposeItem from .models.empty import Empty from .models.error import Error from .models.event_alert_condition import EventAlertCondition @@ -222,28 +244,13 @@ from .models.fsa_settings_settings import FsaSettingsSettings from .models.ftp_settings import FtpSettings from .models.ftp_settings_settings import FtpSettingsSettings -from .models.groupnets_groupnet_subnet import GroupnetsGroupnetSubnet -from .models.groupnets_groupnet_subnet_create_params import GroupnetsGroupnetSubnetCreateParams -from .models.groupnets_groupnet_subnets import GroupnetsGroupnetSubnets -from .models.groupnets_groupnet_subnets_extended import GroupnetsGroupnetSubnetsExtended -from .models.groupnets_groupnet_subnets_subnet import GroupnetsGroupnetSubnetsSubnet -from .models.groupnets_groupnet_subnets_subnet_pool import GroupnetsGroupnetSubnetsSubnetPool -from .models.groupnets_groupnet_subnets_subnet_pool_iface import GroupnetsGroupnetSubnetsSubnetPoolIface -from .models.groupnets_groupnet_subnets_subnet_pool_range import GroupnetsGroupnetSubnetsSubnetPoolRange -from .models.groupnets_groupnet_subnets_subnet_pool_static_route import GroupnetsGroupnetSubnetsSubnetPoolStaticRoute -from .models.groupnets_groupnet_subnets_subnet_pools import GroupnetsGroupnetSubnetsSubnetPools -from .models.groupnets_groupnet_subnets_subnet_pools_extended import GroupnetsGroupnetSubnetsSubnetPoolsExtended -from .models.groupnets_groupnet_subnets_subnet_pools_pool import GroupnetsGroupnetSubnetsSubnetPoolsPool -from .models.groupnets_groupnet_subnets_subnet_pools_pool_interfaces import GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfaces -from .models.groupnets_groupnet_subnets_subnet_pools_pool_interfaces_interface_item import GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfacesInterfaceItem -from .models.groupnets_groupnet_subnets_subnet_pools_pool_interfaces_interface_item_owner import GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfacesInterfaceItemOwner -from .models.groupnets_groupnet_subnets_subnet_pools_pool_rule import GroupnetsGroupnetSubnetsSubnetPoolsPoolRule -from .models.groupnets_groupnet_subnets_subnet_pools_pool_rules import GroupnetsGroupnetSubnetsSubnetPoolsPoolRules -from .models.groupnets_groupnet_subnets_subnet_pools_pool_rules_extended import GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesExtended -from .models.groupnets_groupnet_subnets_subnet_pools_pool_rules_rule import GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesRule -from .models.groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node import GroupnetsGroupnetSubnetsSubnetPoolsPoolScResumeNode -from .models.groups_group_member import GroupsGroupMember -from .models.groups_group_members import GroupsGroupMembers +from .models.group_member import GroupMember +from .models.group_members import GroupMembers +from .models.groupnet_subnet import GroupnetSubnet +from .models.groupnet_subnet_create_params import GroupnetSubnetCreateParams +from .models.groupnet_subnet_extended import GroupnetSubnetExtended +from .models.groupnet_subnets import GroupnetSubnets +from .models.groupnet_subnets_extended import GroupnetSubnetsExtended from .models.hardening_apply_item import HardeningApplyItem from .models.hardening_resolve_item import HardeningResolveItem from .models.hardening_state import HardeningState @@ -351,6 +358,7 @@ from .models.network_groupnets_extended import NetworkGroupnetsExtended from .models.network_pools import NetworkPools from .models.network_rules import NetworkRules +from .models.network_subnet import NetworkSubnet from .models.network_subnets import NetworkSubnets from .models.nfs_aliase import NfsAliase from .models.nfs_aliase_extended import NfsAliaseExtended @@ -361,6 +369,7 @@ from .models.nfs_export import NfsExport from .models.nfs_export_extended import NfsExportExtended from .models.nfs_export_map_all import NfsExportMapAll +from .models.nfs_export_map_all_secondary_groups import NfsExportMapAllSecondaryGroups from .models.nfs_exports import NfsExports from .models.nfs_exports_extended import NfsExportsExtended from .models.nfs_exports_summary import NfsExportsSummary @@ -379,57 +388,46 @@ from .models.nfs_settings_global_settings import NfsSettingsGlobalSettings from .models.nfs_settings_zone import NfsSettingsZone from .models.nfs_settings_zone_settings import NfsSettingsZoneSettings -from .models.nodes_lnn_drives import NodesLnnDrives -from .models.nodes_lnn_drives_driveid_firmware import NodesLnnDrivesDriveidFirmware -from .models.nodes_lnn_drives_driveid_firmware_node import NodesLnnDrivesDriveidFirmwareNode -from .models.nodes_lnn_drives_driveid_firmware_node_drive import NodesLnnDrivesDriveidFirmwareNodeDrive -from .models.nodes_lnn_drives_driveid_firmware_update import NodesLnnDrivesDriveidFirmwareUpdate -from .models.nodes_lnn_drives_driveid_firmware_update_item import NodesLnnDrivesDriveidFirmwareUpdateItem -from .models.nodes_lnn_drives_driveid_firmware_update_node import NodesLnnDrivesDriveidFirmwareUpdateNode -from .models.nodes_lnn_drives_driveid_firmware_update_node_status import NodesLnnDrivesDriveidFirmwareUpdateNodeStatus -from .models.nodes_lnn_drives_driveid_format_item import NodesLnnDrivesDriveidFormatItem -from .models.nodes_lnn_drives_driveid_purpose_item import NodesLnnDrivesDriveidPurposeItem -from .models.nodes_lnn_drives_node import NodesLnnDrivesNode -from .models.nodes_lnn_drives_node_drive import NodesLnnDrivesNodeDrive -from .models.nodes_lnn_drives_node_drive_firmware import NodesLnnDrivesNodeDriveFirmware -from .models.nodes_lnn_drives_purposelist import NodesLnnDrivesPurposelist -from .models.nodes_lnn_drives_purposelist_node import NodesLnnDrivesPurposelistNode -from .models.nodes_lnn_drives_purposelist_node_purpose import NodesLnnDrivesPurposelistNodePurpose -from .models.nodes_lnn_hardware import NodesLnnHardware -from .models.nodes_lnn_hardware_node import NodesLnnHardwareNode -from .models.nodes_lnn_partitions import NodesLnnPartitions -from .models.nodes_lnn_partitions_node import NodesLnnPartitionsNode -from .models.nodes_lnn_partitions_node_partition import NodesLnnPartitionsNodePartition -from .models.nodes_lnn_partitions_node_partition_statfs import NodesLnnPartitionsNodePartitionStatfs -from .models.nodes_lnn_sensors import NodesLnnSensors -from .models.nodes_lnn_sensors_node import NodesLnnSensorsNode -from .models.nodes_lnn_sensors_node_sensor import NodesLnnSensorsNodeSensor -from .models.nodes_lnn_sensors_node_sensor_value import NodesLnnSensorsNodeSensorValue -from .models.nodes_lnn_state import NodesLnnState -from .models.nodes_lnn_state_node import NodesLnnStateNode -from .models.nodes_lnn_state_node_readonly import NodesLnnStateNodeReadonly -from .models.nodes_lnn_state_node_servicelight import NodesLnnStateNodeServicelight -from .models.nodes_lnn_state_node_smartfail import NodesLnnStateNodeSmartfail -from .models.nodes_lnn_state_readonly import NodesLnnStateReadonly -from .models.nodes_lnn_state_readonly_extended import NodesLnnStateReadonlyExtended -from .models.nodes_lnn_state_readonly_node import NodesLnnStateReadonlyNode -from .models.nodes_lnn_state_servicelight import NodesLnnStateServicelight -from .models.nodes_lnn_state_servicelight_extended import NodesLnnStateServicelightExtended -from .models.nodes_lnn_state_servicelight_node import NodesLnnStateServicelightNode -from .models.nodes_lnn_state_smartfail import NodesLnnStateSmartfail -from .models.nodes_lnn_state_smartfail_extended import NodesLnnStateSmartfailExtended -from .models.nodes_lnn_state_smartfail_node import NodesLnnStateSmartfailNode -from .models.nodes_lnn_status import NodesLnnStatus -from .models.nodes_lnn_status_batterystatus import NodesLnnStatusBatterystatus -from .models.nodes_lnn_status_batterystatus_node import NodesLnnStatusBatterystatusNode -from .models.nodes_lnn_status_node import NodesLnnStatusNode -from .models.nodes_lnn_status_node_batterystatus import NodesLnnStatusNodeBatterystatus -from .models.nodes_lnn_status_node_capacity_item import NodesLnnStatusNodeCapacityItem -from .models.nodes_lnn_status_node_cpu import NodesLnnStatusNodeCpu -from .models.nodes_lnn_status_node_nvram import NodesLnnStatusNodeNvram -from .models.nodes_lnn_status_node_nvram_battery import NodesLnnStatusNodeNvramBattery -from .models.nodes_lnn_status_node_powersupplies import NodesLnnStatusNodePowersupplies -from .models.nodes_lnn_status_node_powersupplies_supply import NodesLnnStatusNodePowersuppliesSupply +from .models.node_drives import NodeDrives +from .models.node_drives_node import NodeDrivesNode +from .models.node_drives_node_drive import NodeDrivesNodeDrive +from .models.node_drives_node_drive_firmware import NodeDrivesNodeDriveFirmware +from .models.node_drives_purposelist import NodeDrivesPurposelist +from .models.node_drives_purposelist_node import NodeDrivesPurposelistNode +from .models.node_drives_purposelist_node_purpose import NodeDrivesPurposelistNodePurpose +from .models.node_hardware import NodeHardware +from .models.node_hardware_node import NodeHardwareNode +from .models.node_partitions import NodePartitions +from .models.node_partitions_node import NodePartitionsNode +from .models.node_partitions_node_partition import NodePartitionsNodePartition +from .models.node_partitions_node_partition_statfs import NodePartitionsNodePartitionStatfs +from .models.node_sensors import NodeSensors +from .models.node_sensors_node import NodeSensorsNode +from .models.node_sensors_node_sensor import NodeSensorsNodeSensor +from .models.node_sensors_node_sensor_value import NodeSensorsNodeSensorValue +from .models.node_state import NodeState +from .models.node_state_node import NodeStateNode +from .models.node_state_readonly import NodeStateReadonly +from .models.node_state_readonly_extended import NodeStateReadonlyExtended +from .models.node_state_readonly_node import NodeStateReadonlyNode +from .models.node_state_servicelight import NodeStateServicelight +from .models.node_state_servicelight_extended import NodeStateServicelightExtended +from .models.node_state_servicelight_node import NodeStateServicelightNode +from .models.node_state_smartfail import NodeStateSmartfail +from .models.node_state_smartfail_extended import NodeStateSmartfailExtended +from .models.node_state_smartfail_node import NodeStateSmartfailNode +from .models.node_status import NodeStatus +from .models.node_status_batterystatus import NodeStatusBatterystatus +from .models.node_status_batterystatus_node import NodeStatusBatterystatusNode +from .models.node_status_node import NodeStatusNode +from .models.node_status_node_batterystatus import NodeStatusNodeBatterystatus +from .models.node_status_node_capacity_item import NodeStatusNodeCapacityItem +from .models.node_status_node_cpu import NodeStatusNodeCpu +from .models.node_status_node_nvram import NodeStatusNodeNvram +from .models.node_status_node_nvram_battery import NodeStatusNodeNvramBattery +from .models.node_status_node_powersupplies import NodeStatusNodePowersupplies +from .models.node_status_node_powersupplies_supply import NodeStatusNodePowersuppliesSupply +from .models.nodes_node_firmware_status import NodesNodeFirmwareStatus from .models.ntp_server import NtpServer from .models.ntp_server_create_params import NtpServerCreateParams from .models.ntp_server_extended import NtpServerExtended @@ -437,16 +435,20 @@ from .models.ntp_servers_extended import NtpServersExtended from .models.ntp_settings import NtpSettings from .models.ntp_settings_settings import NtpSettingsSettings -from .models.providers_ad import ProvidersAd -from .models.providers_ad_create_params import ProvidersAdCreateParams -from .models.providers_ad_extended import ProvidersAdExtended +from .models.pools_pool_interfaces import PoolsPoolInterfaces +from .models.pools_pool_interfaces_interface_item import PoolsPoolInterfacesInterfaceItem +from .models.pools_pool_interfaces_interface_item_owner import PoolsPoolInterfacesInterfaceItemOwner +from .models.pools_pool_rule import PoolsPoolRule +from .models.pools_pool_rules import PoolsPoolRules +from .models.pools_pool_rules_extended import PoolsPoolRulesExtended +from .models.pools_pool_rules_rule import PoolsPoolRulesRule +from .models.pools_pool_sc_resume_node import PoolsPoolScResumeNode from .models.providers_ads import ProvidersAds -from .models.providers_ads_id_controllers import ProvidersAdsIdControllers -from .models.providers_ads_id_controllers_controller import ProvidersAdsIdControllersController -from .models.providers_ads_id_domains import ProvidersAdsIdDomains -from .models.providers_ads_id_domains_domain import ProvidersAdsIdDomainsDomain -from .models.providers_ads_id_search import ProvidersAdsIdSearch -from .models.providers_ads_id_search_object import ProvidersAdsIdSearchObject +from .models.providers_ads_ads_item import ProvidersAdsAdsItem +from .models.providers_ads_ads_item_extended import ProvidersAdsAdsItemExtended +from .models.providers_ads_extended import ProvidersAdsExtended +from .models.providers_ads_id_params import ProvidersAdsIdParams +from .models.providers_ads_item import ProvidersAdsItem from .models.providers_file import ProvidersFile from .models.providers_file_file_item import ProvidersFileFileItem from .models.providers_file_id_params import ProvidersFileIdParams @@ -464,13 +466,20 @@ from .models.providers_local import ProvidersLocal from .models.providers_local_id_params import ProvidersLocalIdParams from .models.providers_local_local_item import ProvidersLocalLocalItem -from .models.providers_ni import ProvidersNi -from .models.providers_ni_create_params import ProvidersNiCreateParams -from .models.providers_ni_extended import ProvidersNiExtended from .models.providers_nis import ProvidersNis +from .models.providers_nis_extended import ProvidersNisExtended +from .models.providers_nis_id_params import ProvidersNisIdParams +from .models.providers_nis_item import ProvidersNisItem +from .models.providers_nis_nis_item import ProvidersNisNisItem +from .models.providers_nis_nis_item_extended import ProvidersNisNisItemExtended from .models.providers_summary import ProvidersSummary from .models.providers_summary_provider_instance import ProvidersSummaryProviderInstance from .models.providers_summary_provider_instance_connection import ProvidersSummaryProviderInstanceConnection +from .models.quota_notification import QuotaNotification +from .models.quota_notification_create_params import QuotaNotificationCreateParams +from .models.quota_notification_extended import QuotaNotificationExtended +from .models.quota_notifications import QuotaNotifications +from .models.quota_notifications_extended import QuotaNotificationsExtended from .models.quota_quota import QuotaQuota from .models.quota_quota_create_params import QuotaQuotaCreateParams from .models.quota_quota_extended import QuotaQuotaExtended @@ -482,36 +491,35 @@ from .models.quota_quotas_summary import QuotaQuotasSummary from .models.quota_quotas_summary_summary import QuotaQuotasSummarySummary from .models.quota_reports import QuotaReports -from .models.quotas_qid_notification import QuotasQidNotification -from .models.quotas_qid_notification_create_params import QuotasQidNotificationCreateParams -from .models.quotas_qid_notifications import QuotasQidNotifications -from .models.quotas_qid_notifications_extended import QuotasQidNotificationsExtended -from .models.quotas_qid_notifications_notification import QuotasQidNotificationsNotification from .models.remotesupport_connectemc import RemotesupportConnectemc from .models.remotesupport_connectemc_connectemc import RemotesupportConnectemcConnectemc -from .models.reports_rid_about import ReportsRidAbout -from .models.reports_rid_about_report import ReportsRidAboutReport -from .models.reports_rid_subreports import ReportsRidSubreports -from .models.reports_rid_subreports_extended import ReportsRidSubreportsExtended -from .models.reports_rid_subreports_subreport import ReportsRidSubreportsSubreport -from .models.reports_rid_subreports_subreport_phase import ReportsRidSubreportsSubreportPhase -from .models.reports_rid_subreports_subreport_policy import ReportsRidSubreportsSubreportPolicy -from .models.reports_rid_subreports_subreport_policy_file_matching_pattern import ReportsRidSubreportsSubreportPolicyFileMatchingPattern -from .models.reports_rid_subreports_subreport_policy_file_matching_pattern_or_criteria_item import ReportsRidSubreportsSubreportPolicyFileMatchingPatternOrCriteriaItem -from .models.reports_rid_subreports_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item import ReportsRidSubreportsSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem +from .models.report_about import ReportAbout +from .models.report_about_report import ReportAboutReport +from .models.report_subreport import ReportSubreport +from .models.report_subreport_phase import ReportSubreportPhase +from .models.report_subreport_policy import ReportSubreportPolicy +from .models.report_subreport_policy_file_matching_pattern import ReportSubreportPolicyFileMatchingPattern +from .models.report_subreport_policy_file_matching_pattern_or_criteria_item import ReportSubreportPolicyFileMatchingPatternOrCriteriaItem +from .models.report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item import ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem +from .models.report_subreports import ReportSubreports +from .models.report_subreports_extended import ReportSubreportsExtended +from .models.reports_report_subreports import ReportsReportSubreports +from .models.reports_report_subreports_extended import ReportsReportSubreportsExtended +from .models.reports_report_subreports_subreport import ReportsReportSubreportsSubreport from .models.reports_scans import ReportsScans from .models.reports_scans_extended import ReportsScansExtended from .models.reports_scans_report import ReportsScansReport from .models.reports_threats import ReportsThreats from .models.reports_threats_extended import ReportsThreatsExtended from .models.reports_threats_report import ReportsThreatsReport -from .models.results_id_histogram import ResultsIdHistogram -from .models.results_id_histogram_histogram_item import ResultsIdHistogramHistogramItem -from .models.results_id_top_dirs import ResultsIdTopDirs -from .models.results_id_top_dirs_dir import ResultsIdTopDirsDir -from .models.results_id_top_files import ResultsIdTopFiles -from .models.results_id_top_files_file import ResultsIdTopFilesFile -from .models.roles_role_privileges import RolesRolePrivileges +from .models.result_directories_total_usage import ResultDirectoriesTotalUsage +from .models.result_histogram import ResultHistogram +from .models.result_histogram_histogram_item import ResultHistogramHistogramItem +from .models.result_top_dirs import ResultTopDirs +from .models.result_top_dirs_dir import ResultTopDirsDir +from .models.result_top_files import ResultTopFiles +from .models.result_top_files_file import ResultTopFilesFile +from .models.role_privileges import RolePrivileges from .models.settings_access_time import SettingsAccessTime from .models.settings_access_time_extended import SettingsAccessTimeExtended from .models.settings_access_time_settings import SettingsAccessTimeSettings @@ -532,12 +540,13 @@ from .models.settings_krb5_realms import SettingsKrb5Realms from .models.settings_krb5_realms_realm_item import SettingsKrb5RealmsRealmItem from .models.settings_mapping import SettingsMapping -from .models.settings_mapping_create_params import SettingsMappingCreateParams from .models.settings_mapping_extended import SettingsMappingExtended from .models.settings_mapping_mapping_settings import SettingsMappingMappingSettings from .models.settings_mappings import SettingsMappings from .models.settings_notification import SettingsNotification +from .models.settings_notification_create_params import SettingsNotificationCreateParams from .models.settings_notifications import SettingsNotifications +from .models.settings_notifications_extended import SettingsNotificationsExtended from .models.settings_reporting_eula_item import SettingsReportingEulaItem from .models.settings_reports import SettingsReports from .models.settings_reports_settings import SettingsReportsSettings @@ -570,6 +579,11 @@ from .models.snapshot_aliases_extended import SnapshotAliasesExtended from .models.snapshot_changelists import SnapshotChangelists from .models.snapshot_changelists_extended import SnapshotChangelistsExtended +from .models.snapshot_lock import SnapshotLock +from .models.snapshot_lock_create_params import SnapshotLockCreateParams +from .models.snapshot_lock_extended import SnapshotLockExtended +from .models.snapshot_locks import SnapshotLocks +from .models.snapshot_locks_extended import SnapshotLocksExtended from .models.snapshot_pending import SnapshotPending from .models.snapshot_pending_pending_item import SnapshotPendingPendingItem from .models.snapshot_repstates import SnapshotRepstates @@ -587,11 +601,6 @@ from .models.snapshot_snapshots_extended import SnapshotSnapshotsExtended from .models.snapshot_snapshots_summary import SnapshotSnapshotsSummary from .models.snapshot_snapshots_summary_summary import SnapshotSnapshotsSummarySummary -from .models.snapshots_sid_lock import SnapshotsSidLock -from .models.snapshots_sid_lock_create_params import SnapshotsSidLockCreateParams -from .models.snapshots_sid_locks import SnapshotsSidLocks -from .models.snapshots_sid_locks_extended import SnapshotsSidLocksExtended -from .models.snapshots_sid_locks_lock import SnapshotsSidLocksLock from .models.snmp_settings import SnmpSettings from .models.snmp_settings_extended import SnmpSettingsExtended from .models.snmp_settings_settings import SnmpSettingsSettings @@ -633,6 +642,13 @@ from .models.storagepool_tiers_extended import StoragepoolTiersExtended from .models.storagepool_unprovisioned import StoragepoolUnprovisioned from .models.storagepool_unprovisioned_unprovisioned_item import StoragepoolUnprovisionedUnprovisionedItem +from .models.subnets_subnet_pool import SubnetsSubnetPool +from .models.subnets_subnet_pool_iface import SubnetsSubnetPoolIface +from .models.subnets_subnet_pool_range import SubnetsSubnetPoolRange +from .models.subnets_subnet_pool_static_route import SubnetsSubnetPoolStaticRoute +from .models.subnets_subnet_pools import SubnetsSubnetPools +from .models.subnets_subnet_pools_extended import SubnetsSubnetPoolsExtended +from .models.subnets_subnet_pools_pool import SubnetsSubnetPoolsPool from .models.summary_client import SummaryClient from .models.summary_client_client_item import SummaryClientClientItem from .models.summary_drive import SummaryDrive @@ -678,9 +694,6 @@ from .models.target_report import TargetReport from .models.target_reports import TargetReports from .models.target_reports_extended import TargetReportsExtended -from .models.target_reports_rid_subreports import TargetReportsRidSubreports -from .models.target_reports_rid_subreports_extended import TargetReportsRidSubreportsExtended -from .models.target_reports_rid_subreports_subreport import TargetReportsRidSubreportsSubreport from .models.timezone_region import TimezoneRegion from .models.timezone_region_timezone import TimezoneRegionTimezone from .models.timezone_regions import TimezoneRegions @@ -688,8 +701,8 @@ from .models.upgrade_cluster import UpgradeCluster from .models.upgrade_cluster_cluster_overview import UpgradeClusterClusterOverview from .models.upgrade_cluster_upgrade_settings import UpgradeClusterUpgradeSettings -from .models.users_user_change_password import UsersUserChangePassword -from .models.users_user_member_of import UsersUserMemberOf +from .models.user_change_password import UserChangePassword +from .models.user_member_of import UserMemberOf from .models.worm_domain import WormDomain from .models.worm_domain_create_params import WormDomainCreateParams from .models.worm_domain_extended import WormDomainExtended @@ -706,38 +719,54 @@ from .models.zones_summary_extended import ZonesSummaryExtended from .models.zones_summary_summary import ZonesSummarySummary from .models.zones_summary_summary_extended import ZonesSummarySummaryExtended -from .models.nfs_export_map_all_secondary_groups import NfsExportMapAllSecondaryGroups # import apis into sdk package -from .apis.protocols_api import ProtocolsApi -from .apis.license_api import LicenseApi -from .apis.upgrade_api import UpgradeApi -from .apis.zones_api import ZonesApi -from .apis.hardening_api import HardeningApi -from .apis.fsa_api import FsaApi -from .apis.storagepool_api import StoragepoolApi +from .apis.antivirus_api import AntivirusApi +from .apis.audit_api import AuditApi from .apis.auth_api import AuthApi -from .apis.network_api import NetworkApi -from .apis.worm_api import WormApi -from .apis.hardware_api import HardwareApi +from .apis.auth_groups_api import AuthGroupsApi +from .apis.auth_providers_api import AuthProvidersApi +from .apis.auth_roles_api import AuthRolesApi +from .apis.auth_users_api import AuthUsersApi +from .apis.cloud_api import CloudApi +from .apis.cluster_api import ClusterApi +from .apis.cluster_nodes_api import ClusterNodesApi +from .apis.debug_api import DebugApi +from .apis.dedupe_api import DedupeApi +from .apis.event_api import EventApi +from .apis.file_filter_api import FileFilterApi +from .apis.filepool_api import FilepoolApi from .apis.filesystem_api import FilesystemApi +from .apis.fsa_api import FsaApi +from .apis.fsa_results_api import FsaResultsApi +from .apis.hardening_api import HardeningApi +from .apis.hardware_api import HardwareApi from .apis.job_api import JobApi -from .apis.sync_api import SyncApi -from .apis.file_filter_api import FileFilterApi -from .apis.debug_api import DebugApi -from .apis.cluster_api import ClusterApi +from .apis.license_api import LicenseApi from .apis.local_api import LocalApi -from .apis.antivirus_api import AntivirusApi -from .apis.statistics_api import StatisticsApi -from .apis.zones_summary_api import ZonesSummaryApi -from .apis.dedupe_api import DedupeApi -from .apis.audit_api import AuditApi -from .apis.snapshot_api import SnapshotApi +from .apis.network_api import NetworkApi +from .apis.network_groupnets_api import NetworkGroupnetsApi +from .apis.network_groupnets_subnets_api import NetworkGroupnetsSubnetsApi +from .apis.protocols_api import ProtocolsApi +from .apis.protocols_hdfs_api import ProtocolsHdfsApi from .apis.quota_api import QuotaApi -from .apis.filepool_api import FilepoolApi -from .apis.cloud_api import CloudApi +from .apis.quota_quotas_api import QuotaQuotasApi +from .apis.quota_reports_api import QuotaReportsApi from .apis.remotesupport_api import RemotesupportApi -from .apis.event_api import EventApi +from .apis.snapshot_api import SnapshotApi +from .apis.snapshot_changelists_api import SnapshotChangelistsApi +from .apis.snapshot_snapshots_api import SnapshotSnapshotsApi +from .apis.statistics_api import StatisticsApi +from .apis.storagepool_api import StoragepoolApi +from .apis.sync_api import SyncApi +from .apis.sync_policies_api import SyncPoliciesApi +from .apis.sync_reports_api import SyncReportsApi +from .apis.sync_target_api import SyncTargetApi +from .apis.upgrade_api import UpgradeApi +from .apis.upgrade_cluster_api import UpgradeClusterApi +from .apis.worm_api import WormApi +from .apis.zones_api import ZonesApi +from .apis.zones_summary_api import ZonesSummaryApi # import ApiClient from .api_client import ApiClient diff --git a/isi_sdk/api_client.py b/isi_sdk/api_client.py index 63740a087..5d5a5fccc 100644 --- a/isi_sdk/api_client.py +++ b/isi_sdk/api_client.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -81,7 +81,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None): self.host = host self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Python-Swagger/1.0.0' + self.user_agent = 'Swagger-Codegen/1.0.0/python' @property def user_agent(self): @@ -371,7 +371,8 @@ def request(self, method, url, query_params=None, headers=None, elif method == "DELETE": return self.rest_client.DELETE(url, query_params=query_params, - headers=headers) + headers=headers, + body=body) else: raise ValueError( "http method must be `GET`, `HEAD`," @@ -386,22 +387,23 @@ def prepare_post_parameters(self, post_params=None, files=None): :param files: File parameters. :return: Form parameters with files. """ - params = {} + params = [] if post_params: - params.update(post_params) + params = post_params if files: for k, v in iteritems(files): if not v: continue - - with open(v, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = mimetypes.\ - guess_type(filename)[0] or 'application/octet-stream' - params[k] = tuple([filename, filedata, mimetype]) + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = mimetypes.\ + guess_type(filename)[0] or 'application/octet-stream' + params.append(tuple([k, tuple([filename, filedata, mimetype])])) return params diff --git a/isi_sdk/apis/__init__.py b/isi_sdk/apis/__init__.py index 3c9666bc8..52f8da048 100644 --- a/isi_sdk/apis/__init__.py +++ b/isi_sdk/apis/__init__.py @@ -1,32 +1,49 @@ from __future__ import absolute_import # import apis into api package -from .protocols_api import ProtocolsApi -from .license_api import LicenseApi -from .upgrade_api import UpgradeApi -from .zones_api import ZonesApi -from .hardening_api import HardeningApi -from .fsa_api import FsaApi -from .storagepool_api import StoragepoolApi +from .antivirus_api import AntivirusApi +from .audit_api import AuditApi from .auth_api import AuthApi -from .network_api import NetworkApi -from .worm_api import WormApi -from .hardware_api import HardwareApi +from .auth_groups_api import AuthGroupsApi +from .auth_providers_api import AuthProvidersApi +from .auth_roles_api import AuthRolesApi +from .auth_users_api import AuthUsersApi +from .cloud_api import CloudApi +from .cluster_api import ClusterApi +from .cluster_nodes_api import ClusterNodesApi +from .debug_api import DebugApi +from .dedupe_api import DedupeApi +from .event_api import EventApi +from .file_filter_api import FileFilterApi +from .filepool_api import FilepoolApi from .filesystem_api import FilesystemApi +from .fsa_api import FsaApi +from .fsa_results_api import FsaResultsApi +from .hardening_api import HardeningApi +from .hardware_api import HardwareApi from .job_api import JobApi -from .sync_api import SyncApi -from .file_filter_api import FileFilterApi -from .debug_api import DebugApi -from .cluster_api import ClusterApi +from .license_api import LicenseApi from .local_api import LocalApi -from .antivirus_api import AntivirusApi -from .statistics_api import StatisticsApi -from .zones_summary_api import ZonesSummaryApi -from .dedupe_api import DedupeApi -from .audit_api import AuditApi -from .snapshot_api import SnapshotApi +from .network_api import NetworkApi +from .network_groupnets_api import NetworkGroupnetsApi +from .network_groupnets_subnets_api import NetworkGroupnetsSubnetsApi +from .protocols_api import ProtocolsApi +from .protocols_hdfs_api import ProtocolsHdfsApi from .quota_api import QuotaApi -from .filepool_api import FilepoolApi -from .cloud_api import CloudApi +from .quota_quotas_api import QuotaQuotasApi +from .quota_reports_api import QuotaReportsApi from .remotesupport_api import RemotesupportApi -from .event_api import EventApi +from .snapshot_api import SnapshotApi +from .snapshot_changelists_api import SnapshotChangelistsApi +from .snapshot_snapshots_api import SnapshotSnapshotsApi +from .statistics_api import StatisticsApi +from .storagepool_api import StoragepoolApi +from .sync_api import SyncApi +from .sync_policies_api import SyncPoliciesApi +from .sync_reports_api import SyncReportsApi +from .sync_target_api import SyncTargetApi +from .upgrade_api import UpgradeApi +from .upgrade_cluster_api import UpgradeClusterApi +from .worm_api import WormApi +from .zones_api import ZonesApi +from .zones_summary_api import ZonesSummaryApi diff --git a/isi_sdk/apis/antivirus_api.py b/isi_sdk/apis/antivirus_api.py index d69f76bba..aacba0cdc 100644 --- a/isi_sdk/apis/antivirus_api.py +++ b/isi_sdk/apis/antivirus_api.py @@ -2,7 +2,7 @@ """ AntivirusApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,91 +46,6 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_antivirus_policies(self, **kwargs): - """ - - List antivirus scan policies. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_antivirus_policies(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: AntivirusPoliciesExtended - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['sort', 'limit', 'dir', 'resume'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_antivirus_policies" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/3/antivirus/policies'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='AntivirusPoliciesExtended', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def create_antivirus_policy(self, antivirus_policy, **kwargs): """ @@ -168,17 +84,16 @@ def create_antivirus_policy(self, antivirus_policy, **kwargs): if ('antivirus_policy' not in params) or (params['antivirus_policy'] is None): raise ValueError("Missing the required parameter `antivirus_policy` when calling `create_antivirus_policy`") - resource_path = '/platform/3/antivirus/policies'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/antivirus/policies'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'antivirus_policy' in params: @@ -197,22 +112,22 @@ def create_antivirus_policy(self, antivirus_policy, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_antivirus_policies(self, **kwargs): + def create_antivirus_scan_item(self, antivirus_scan_item, **kwargs): """ - Delete all antivirus scan policies. + Manually scan a file. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -220,16 +135,17 @@ def delete_antivirus_policies(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_antivirus_policies(callback=callback_function) + >>> thread = api.create_antivirus_scan_item(antivirus_scan_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param AntivirusScanItem antivirus_scan_item: (required) + :return: CreateAntivirusScanItemResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['antivirus_scan_item'] all_params.append('callback') params = locals() @@ -237,25 +153,29 @@ def delete_antivirus_policies(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_antivirus_policies" % key + " to method create_antivirus_scan_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'antivirus_scan_item' is set + if ('antivirus_scan_item' not in params) or (params['antivirus_scan_item'] is None): + raise ValueError("Missing the required parameter `antivirus_scan_item` when calling `create_antivirus_scan_item`") - resource_path = '/platform/3/antivirus/policies'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/antivirus/scan'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'antivirus_scan_item' in params: + body_params = params['antivirus_scan_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -270,22 +190,22 @@ def delete_antivirus_policies(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateAntivirusScanItemResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_antivirus_policy(self, antivirus_policy_id, **kwargs): + def create_antivirus_server(self, antivirus_server, **kwargs): """ - Retrieve one antivirus scan policy. + Create new antivirus servers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -293,17 +213,17 @@ def get_antivirus_policy(self, antivirus_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_antivirus_policy(antivirus_policy_id, callback=callback_function) + >>> thread = api.create_antivirus_server(antivirus_server, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str antivirus_policy_id: Retrieve one antivirus scan policy. (required) - :return: AntivirusPolicies + :param AntivirusServer antivirus_server: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_policy_id'] + all_params = ['antivirus_server'] all_params.append('callback') params = locals() @@ -311,30 +231,29 @@ def get_antivirus_policy(self, antivirus_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_antivirus_policy" % key + " to method create_antivirus_server" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_policy_id' is set - if ('antivirus_policy_id' not in params) or (params['antivirus_policy_id'] is None): - raise ValueError("Missing the required parameter `antivirus_policy_id` when calling `get_antivirus_policy`") + # verify the required parameter 'antivirus_server' is set + if ('antivirus_server' not in params) or (params['antivirus_server'] is None): + raise ValueError("Missing the required parameter `antivirus_server` when calling `create_antivirus_server`") - resource_path = '/platform/3/antivirus/policies/{AntivirusPolicyId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/antivirus/servers'.replace('{format}', 'json') path_params = {} - if 'antivirus_policy_id' in params: - path_params['AntivirusPolicyId'] = params['antivirus_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'antivirus_server' in params: + body_params = params['antivirus_server'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -349,22 +268,22 @@ def get_antivirus_policy(self, antivirus_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AntivirusPolicies', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_antivirus_policy(self, antivirus_policy, antivirus_policy_id, **kwargs): + def delete_antivirus_policies(self, **kwargs): """ - Modify an antivirus scan policy. + Delete all antivirus scan policies. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -372,18 +291,16 @@ def update_antivirus_policy(self, antivirus_policy, antivirus_policy_id, **kwarg >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_antivirus_policy(antivirus_policy, antivirus_policy_id, callback=callback_function) + >>> thread = api.delete_antivirus_policies(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AntivirusPolicy antivirus_policy: (required) - :param str antivirus_policy_id: Modify an antivirus scan policy. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_policy', 'antivirus_policy_id'] + all_params = [] all_params.append('callback') params = locals() @@ -391,35 +308,24 @@ def update_antivirus_policy(self, antivirus_policy, antivirus_policy_id, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_antivirus_policy" % key + " to method delete_antivirus_policies" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_policy' is set - if ('antivirus_policy' not in params) or (params['antivirus_policy'] is None): - raise ValueError("Missing the required parameter `antivirus_policy` when calling `update_antivirus_policy`") - # verify the required parameter 'antivirus_policy_id' is set - if ('antivirus_policy_id' not in params) or (params['antivirus_policy_id'] is None): - raise ValueError("Missing the required parameter `antivirus_policy_id` when calling `update_antivirus_policy`") - resource_path = '/platform/3/antivirus/policies/{AntivirusPolicyId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/antivirus/policies'.replace('{format}', 'json') path_params = {} - if 'antivirus_policy_id' in params: - path_params['AntivirusPolicyId'] = params['antivirus_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'antivirus_policy' in params: - body_params = params['antivirus_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -434,13 +340,13 @@ def update_antivirus_policy(self, antivirus_policy, antivirus_policy_id, **kwarg # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) @@ -484,9 +390,8 @@ def delete_antivirus_policy(self, antivirus_policy_id, **kwargs): if ('antivirus_policy_id' not in params) or (params['antivirus_policy_id'] is None): raise ValueError("Missing the required parameter `antivirus_policy_id` when calling `delete_antivirus_policy`") - resource_path = '/platform/3/antivirus/policies/{AntivirusPolicyId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/antivirus/policies/{AntivirusPolicyId}'.replace('{format}', 'json') path_params = {} if 'antivirus_policy_id' in params: path_params['AntivirusPolicyId'] = params['antivirus_policy_id'] @@ -495,8 +400,8 @@ def delete_antivirus_policy(self, antivirus_policy_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -513,22 +418,22 @@ def delete_antivirus_policy(self, antivirus_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_antivirus_quarantine_path(self, antivirus_quarantine_path, **kwargs): + def delete_antivirus_server(self, antivirus_server_id, **kwargs): """ - Retrieve the quarantine status of the file at the specified path. + Delete an antivirus server entry. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -536,17 +441,17 @@ def get_antivirus_quarantine_path(self, antivirus_quarantine_path, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_antivirus_quarantine_path(antivirus_quarantine_path, callback=callback_function) + >>> thread = api.delete_antivirus_server(antivirus_server_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str antivirus_quarantine_path: Retrieve the quarantine status of the file at the specified path. (required) - :return: AntivirusQuarantine + :param str antivirus_server_id: Delete an antivirus server entry. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_quarantine_path'] + all_params = ['antivirus_server_id'] all_params.append('callback') params = locals() @@ -554,28 +459,27 @@ def get_antivirus_quarantine_path(self, antivirus_quarantine_path, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_antivirus_quarantine_path" % key + " to method delete_antivirus_server" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_quarantine_path' is set - if ('antivirus_quarantine_path' not in params) or (params['antivirus_quarantine_path'] is None): - raise ValueError("Missing the required parameter `antivirus_quarantine_path` when calling `get_antivirus_quarantine_path`") + # verify the required parameter 'antivirus_server_id' is set + if ('antivirus_server_id' not in params) or (params['antivirus_server_id'] is None): + raise ValueError("Missing the required parameter `antivirus_server_id` when calling `delete_antivirus_server`") - resource_path = '/platform/3/antivirus/quarantine/{AntivirusQuarantinePath}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/antivirus/servers/{AntivirusServerId}'.replace('{format}', 'json') path_params = {} - if 'antivirus_quarantine_path' in params: - path_params['AntivirusQuarantinePath'] = params['antivirus_quarantine_path'] + if 'antivirus_server_id' in params: + path_params['AntivirusServerId'] = params['antivirus_server_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -592,22 +496,22 @@ def get_antivirus_quarantine_path(self, antivirus_quarantine_path, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AntivirusQuarantine', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_antivirus_quarantine_path(self, antivirus_quarantine_path_params, antivirus_quarantine_path, **kwargs): + def delete_antivirus_servers(self, **kwargs): """ - Set the quarantine status of the file at the specified path. Use either an empty object {} in the request body or {\"quarantined\":true} to quarantine the file, and {\"quarantined\":false} to unquarantine the file. + Delete all antivirus servers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -615,18 +519,16 @@ def update_antivirus_quarantine_path(self, antivirus_quarantine_path_params, ant >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_antivirus_quarantine_path(antivirus_quarantine_path_params, antivirus_quarantine_path, callback=callback_function) + >>> thread = api.delete_antivirus_servers(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AntivirusQuarantinePathParams antivirus_quarantine_path_params: (required) - :param str antivirus_quarantine_path: Set the quarantine status of the file at the specified path. Use either an empty object {} in the request body or {\"quarantined\":true} to quarantine the file, and {\"quarantined\":false} to unquarantine the file. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_quarantine_path_params', 'antivirus_quarantine_path'] + all_params = [] all_params.append('callback') params = locals() @@ -634,35 +536,24 @@ def update_antivirus_quarantine_path(self, antivirus_quarantine_path_params, ant if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_antivirus_quarantine_path" % key + " to method delete_antivirus_servers" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_quarantine_path_params' is set - if ('antivirus_quarantine_path_params' not in params) or (params['antivirus_quarantine_path_params'] is None): - raise ValueError("Missing the required parameter `antivirus_quarantine_path_params` when calling `update_antivirus_quarantine_path`") - # verify the required parameter 'antivirus_quarantine_path' is set - if ('antivirus_quarantine_path' not in params) or (params['antivirus_quarantine_path'] is None): - raise ValueError("Missing the required parameter `antivirus_quarantine_path` when calling `update_antivirus_quarantine_path`") - resource_path = '/platform/3/antivirus/quarantine/{AntivirusQuarantinePath}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/antivirus/servers'.replace('{format}', 'json') path_params = {} - if 'antivirus_quarantine_path' in params: - path_params['AntivirusQuarantinePath'] = params['antivirus_quarantine_path'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'antivirus_quarantine_path_params' in params: - body_params = params['antivirus_quarantine_path_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -677,22 +568,22 @@ def update_antivirus_quarantine_path(self, antivirus_quarantine_path_params, ant # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_reports_scans(self, **kwargs): + def delete_reports_scan(self, reports_scan_id, **kwargs): """ - List antivirus scan reports. + Delete one antivirus scan report, and all of its associated threat reports. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -700,22 +591,17 @@ def get_reports_scans(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_reports_scans(callback=callback_function) + >>> thread = api.delete_reports_scan(reports_scan_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str status: If present, only scan reports with this status will be returned. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str policy_id: If present, only reports for scans associated with this policy will be returned. - :return: ReportsScansExtended + :param str reports_scan_id: Delete one antivirus scan report, and all of its associated threat reports. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'status', 'resume', 'limit', 'dir', 'policy_id'] + all_params = ['reports_scan_id'] all_params.append('callback') params = locals() @@ -723,35 +609,27 @@ def get_reports_scans(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_reports_scans" % key + " to method delete_reports_scan" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'reports_scan_id' is set + if ('reports_scan_id' not in params) or (params['reports_scan_id'] is None): + raise ValueError("Missing the required parameter `reports_scan_id` when calling `delete_reports_scan`") - resource_path = '/platform/3/antivirus/reports/scans'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/antivirus/reports/scans/{ReportsScanId}'.replace('{format}', 'json') path_params = {} + if 'reports_scan_id' in params: + path_params['ReportsScanId'] = params['reports_scan_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'status' in params: - query_params['status'] = params['status'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'policy_id' in params: - query_params['policy_id'] = params['policy_id'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -768,14 +646,14 @@ def get_reports_scans(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ReportsScansExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -815,9 +693,8 @@ def delete_reports_scans(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/antivirus/reports/scans'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/antivirus/reports/scans'.replace('{format}', 'json') path_params = {} query_params = {} @@ -826,8 +703,8 @@ def delete_reports_scans(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -844,22 +721,22 @@ def delete_reports_scans(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_reports_scan(self, reports_scan_id, **kwargs): + def get_antivirus_policy(self, antivirus_policy_id, **kwargs): """ - Retrieve one antivirus scan report. + Retrieve one antivirus scan policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -867,17 +744,17 @@ def get_reports_scan(self, reports_scan_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_reports_scan(reports_scan_id, callback=callback_function) + >>> thread = api.get_antivirus_policy(antivirus_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str reports_scan_id: Retrieve one antivirus scan report. (required) - :return: ReportsScans + :param str antivirus_policy_id: Retrieve one antivirus scan policy. (required) + :return: AntivirusPolicies If the method is called asynchronously, returns the request thread. """ - all_params = ['reports_scan_id'] + all_params = ['antivirus_policy_id'] all_params.append('callback') params = locals() @@ -885,28 +762,27 @@ def get_reports_scan(self, reports_scan_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_reports_scan" % key + " to method get_antivirus_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'reports_scan_id' is set - if ('reports_scan_id' not in params) or (params['reports_scan_id'] is None): - raise ValueError("Missing the required parameter `reports_scan_id` when calling `get_reports_scan`") + # verify the required parameter 'antivirus_policy_id' is set + if ('antivirus_policy_id' not in params) or (params['antivirus_policy_id'] is None): + raise ValueError("Missing the required parameter `antivirus_policy_id` when calling `get_antivirus_policy`") - resource_path = '/platform/3/antivirus/reports/scans/{ReportsScanId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/antivirus/policies/{AntivirusPolicyId}'.replace('{format}', 'json') path_params = {} - if 'reports_scan_id' in params: - path_params['ReportsScanId'] = params['reports_scan_id'] + if 'antivirus_policy_id' in params: + path_params['AntivirusPolicyId'] = params['antivirus_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -923,22 +799,22 @@ def get_reports_scan(self, reports_scan_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ReportsScans', + files=local_var_files, + response_type='AntivirusPolicies', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_reports_scan(self, reports_scan_id, **kwargs): + def get_antivirus_quarantine_path(self, antivirus_quarantine_path, **kwargs): """ - Delete one antivirus scan report, and all of its associated threat reports. + Retrieve the quarantine status of the file at the specified path. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -946,17 +822,17 @@ def delete_reports_scan(self, reports_scan_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_reports_scan(reports_scan_id, callback=callback_function) + >>> thread = api.get_antivirus_quarantine_path(antivirus_quarantine_path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str reports_scan_id: Delete one antivirus scan report, and all of its associated threat reports. (required) - :return: None + :param str antivirus_quarantine_path: Retrieve the quarantine status of the file at the specified path. (required) + :return: AntivirusQuarantine If the method is called asynchronously, returns the request thread. """ - all_params = ['reports_scan_id'] + all_params = ['antivirus_quarantine_path'] all_params.append('callback') params = locals() @@ -964,28 +840,27 @@ def delete_reports_scan(self, reports_scan_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_reports_scan" % key + " to method get_antivirus_quarantine_path" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'reports_scan_id' is set - if ('reports_scan_id' not in params) or (params['reports_scan_id'] is None): - raise ValueError("Missing the required parameter `reports_scan_id` when calling `delete_reports_scan`") + # verify the required parameter 'antivirus_quarantine_path' is set + if ('antivirus_quarantine_path' not in params) or (params['antivirus_quarantine_path'] is None): + raise ValueError("Missing the required parameter `antivirus_quarantine_path` when calling `get_antivirus_quarantine_path`") - resource_path = '/platform/3/antivirus/reports/scans/{ReportsScanId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/antivirus/quarantine/{AntivirusQuarantinePath}'.replace('{format}', 'json') path_params = {} - if 'reports_scan_id' in params: - path_params['ReportsScanId'] = params['reports_scan_id'] + if 'antivirus_quarantine_path' in params: + path_params['AntivirusQuarantinePath'] = params['antivirus_quarantine_path'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1002,22 +877,22 @@ def delete_reports_scan(self, reports_scan_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='AntivirusQuarantine', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_reports_threats(self, **kwargs): + def get_antivirus_server(self, antivirus_server_id, **kwargs): """ - List antivirus threat reports. + Retrieve one antivirus server entry. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1025,23 +900,17 @@ def get_reports_threats(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_reports_threats(callback=callback_function) + >>> thread = api.get_antivirus_server(antivirus_server_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str scan_id: If present, only returns threat reports associated with the given scan report. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int limit: Return no more than this many results at once (see resume). - :param str file: If present, only returns threat reports for the given file. - :param str remediation: If present, only returns threat reports with the given remediation. - :param str dir: The direction of the sort. - :return: ReportsThreatsExtended + :param str antivirus_server_id: Retrieve one antivirus server entry. (required) + :return: AntivirusServers If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'scan_id', 'resume', 'limit', 'file', 'remediation', 'dir'] + all_params = ['antivirus_server_id'] all_params.append('callback') params = locals() @@ -1049,37 +918,27 @@ def get_reports_threats(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_reports_threats" % key + " to method get_antivirus_server" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'antivirus_server_id' is set + if ('antivirus_server_id' not in params) or (params['antivirus_server_id'] is None): + raise ValueError("Missing the required parameter `antivirus_server_id` when calling `get_antivirus_server`") - resource_path = '/platform/3/antivirus/reports/threats'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/antivirus/servers/{AntivirusServerId}'.replace('{format}', 'json') path_params = {} + if 'antivirus_server_id' in params: + path_params['AntivirusServerId'] = params['antivirus_server_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'scan_id' in params: - query_params['scan_id'] = params['scan_id'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'file' in params: - query_params['file'] = params['file'] - if 'remediation' in params: - query_params['remediation'] = params['remediation'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1096,22 +955,22 @@ def get_reports_threats(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ReportsThreatsExtended', + files=local_var_files, + response_type='AntivirusServers', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_reports_threat(self, reports_threat_id, **kwargs): + def get_antivirus_settings(self, **kwargs): """ - Retrieve one antivirus threat report. + Retrieve the Antivirus settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1119,17 +978,16 @@ def get_reports_threat(self, reports_threat_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_reports_threat(reports_threat_id, callback=callback_function) + >>> thread = api.get_antivirus_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str reports_threat_id: Retrieve one antivirus threat report. (required) - :return: ReportsThreats + :return: AntivirusSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['reports_threat_id'] + all_params = [] all_params.append('callback') params = locals() @@ -1137,28 +995,22 @@ def get_reports_threat(self, reports_threat_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_reports_threat" % key + " to method get_antivirus_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'reports_threat_id' is set - if ('reports_threat_id' not in params) or (params['reports_threat_id'] is None): - raise ValueError("Missing the required parameter `reports_threat_id` when calling `get_reports_threat`") - resource_path = '/platform/3/antivirus/reports/threats/{ReportsThreatId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/antivirus/settings'.replace('{format}', 'json') path_params = {} - if 'reports_threat_id' in params: - path_params['ReportsThreatId'] = params['reports_threat_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1175,22 +1027,22 @@ def get_reports_threat(self, reports_threat_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ReportsThreats', + files=local_var_files, + response_type='AntivirusSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_antivirus_scan_item(self, antivirus_scan_item, **kwargs): + def get_reports_scan(self, reports_scan_id, **kwargs): """ - Manually scan a file. + Retrieve one antivirus scan report. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1198,17 +1050,17 @@ def create_antivirus_scan_item(self, antivirus_scan_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_antivirus_scan_item(antivirus_scan_item, callback=callback_function) + >>> thread = api.get_reports_scan(reports_scan_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AntivirusScanItem antivirus_scan_item: (required) - :return: CreateAntivirusScanItemResponse + :param str reports_scan_id: Retrieve one antivirus scan report. (required) + :return: ReportsScans If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_scan_item'] + all_params = ['reports_scan_id'] all_params.append('callback') params = locals() @@ -1216,30 +1068,29 @@ def create_antivirus_scan_item(self, antivirus_scan_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_antivirus_scan_item" % key + " to method get_reports_scan" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_scan_item' is set - if ('antivirus_scan_item' not in params) or (params['antivirus_scan_item'] is None): - raise ValueError("Missing the required parameter `antivirus_scan_item` when calling `create_antivirus_scan_item`") + # verify the required parameter 'reports_scan_id' is set + if ('reports_scan_id' not in params) or (params['reports_scan_id'] is None): + raise ValueError("Missing the required parameter `reports_scan_id` when calling `get_reports_scan`") - resource_path = '/platform/3/antivirus/scan'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/antivirus/reports/scans/{ReportsScanId}'.replace('{format}', 'json') path_params = {} + if 'reports_scan_id' in params: + path_params['ReportsScanId'] = params['reports_scan_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'antivirus_scan_item' in params: - body_params = params['antivirus_scan_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1254,22 +1105,22 @@ def create_antivirus_scan_item(self, antivirus_scan_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateAntivirusScanItemResponse', + files=local_var_files, + response_type='ReportsScans', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_antivirus_servers(self, **kwargs): + def get_reports_scans(self, **kwargs): """ - List antivirus servers. + List antivirus scan reports. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1277,20 +1128,22 @@ def list_antivirus_servers(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_antivirus_servers(callback=callback_function) + >>> thread = api.get_reports_scans(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str sort: The field that will be used for sorting. + :param str status: If present, only scan reports with this status will be returned. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). :param int limit: Return no more than this many results at once (see resume). :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: AntivirusServersExtended + :param str policy_id: If present, only reports for scans associated with this policy will be returned. + :return: ReportsScansExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = ['sort', 'status', 'resume', 'limit', 'dir', 'policy_id'] all_params.append('callback') params = locals() @@ -1298,31 +1151,36 @@ def list_antivirus_servers(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_antivirus_servers" % key + " to method get_reports_scans" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/antivirus/servers'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_reports_scans`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/antivirus/reports/scans'.replace('{format}', 'json') path_params = {} query_params = {} if 'sort' in params: query_params['sort'] = params['sort'] + if 'status' in params: + query_params['status'] = params['status'] + if 'resume' in params: + query_params['resume'] = params['resume'] if 'limit' in params: query_params['limit'] = params['limit'] if 'dir' in params: query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] + if 'policy_id' in params: + query_params['policy_id'] = params['policy_id'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1339,22 +1197,22 @@ def list_antivirus_servers(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AntivirusServersExtended', + files=local_var_files, + response_type='ReportsScansExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_antivirus_server(self, antivirus_server, **kwargs): + def get_reports_threat(self, reports_threat_id, **kwargs): """ - Create new antivirus servers. + Retrieve one antivirus threat report. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1362,17 +1220,17 @@ def create_antivirus_server(self, antivirus_server, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_antivirus_server(antivirus_server, callback=callback_function) + >>> thread = api.get_reports_threat(reports_threat_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AntivirusServer antivirus_server: (required) - :return: CreateResponse + :param str reports_threat_id: Retrieve one antivirus threat report. (required) + :return: ReportsThreats If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_server'] + all_params = ['reports_threat_id'] all_params.append('callback') params = locals() @@ -1380,30 +1238,29 @@ def create_antivirus_server(self, antivirus_server, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_antivirus_server" % key + " to method get_reports_threat" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_server' is set - if ('antivirus_server' not in params) or (params['antivirus_server'] is None): - raise ValueError("Missing the required parameter `antivirus_server` when calling `create_antivirus_server`") + # verify the required parameter 'reports_threat_id' is set + if ('reports_threat_id' not in params) or (params['reports_threat_id'] is None): + raise ValueError("Missing the required parameter `reports_threat_id` when calling `get_reports_threat`") - resource_path = '/platform/3/antivirus/servers'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/antivirus/reports/threats/{ReportsThreatId}'.replace('{format}', 'json') path_params = {} + if 'reports_threat_id' in params: + path_params['ReportsThreatId'] = params['reports_threat_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'antivirus_server' in params: - body_params = params['antivirus_server'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1418,22 +1275,22 @@ def create_antivirus_server(self, antivirus_server, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='ReportsThreats', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_antivirus_servers(self, **kwargs): + def get_reports_threats(self, **kwargs): """ - Delete all antivirus servers. + List antivirus threat reports. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1441,16 +1298,23 @@ def delete_antivirus_servers(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_antivirus_servers(callback=callback_function) + >>> thread = api.get_reports_threats(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str sort: The field that will be used for sorting. + :param str scan_id: If present, only returns threat reports associated with the given scan report. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int limit: Return no more than this many results at once (see resume). + :param str file: If present, only returns threat reports for the given file. + :param str remediation: If present, only returns threat reports with the given remediation. + :param str dir: The direction of the sort. + :return: ReportsThreatsExtended If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['sort', 'scan_id', 'resume', 'limit', 'file', 'remediation', 'dir'] all_params.append('callback') params = locals() @@ -1458,23 +1322,124 @@ def delete_antivirus_servers(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_antivirus_servers" % key + " to method get_reports_threats" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/antivirus/servers'.replace('{format}', 'json') - method = 'DELETE' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_reports_threats`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/3/antivirus/reports/threats'.replace('{format}', 'json') + path_params = {} + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'scan_id' in params: + query_params['scan_id'] = params['scan_id'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'file' in params: + query_params['file'] = params['file'] + if 'remediation' in params: + query_params['remediation'] = params['remediation'] + if 'dir' in params: + query_params['dir'] = params['dir'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportsThreatsExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_antivirus_policies(self, **kwargs): + """ + + List antivirus scan policies. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_antivirus_policies(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: AntivirusPoliciesExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['sort', 'limit', 'dir', 'resume'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_antivirus_policies" % key + ) + params[key] = val + del params['kwargs'] + + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_antivirus_policies`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/3/antivirus/policies'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1491,22 +1456,22 @@ def delete_antivirus_servers(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='AntivirusPoliciesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_antivirus_server(self, antivirus_server_id, **kwargs): + def list_antivirus_servers(self, **kwargs): """ - Retrieve one antivirus server entry. + List antivirus servers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1514,17 +1479,20 @@ def get_antivirus_server(self, antivirus_server_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_antivirus_server(antivirus_server_id, callback=callback_function) + >>> thread = api.list_antivirus_servers(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str antivirus_server_id: Retrieve one antivirus server entry. (required) - :return: AntivirusServers + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: AntivirusServersExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_server_id'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -1532,28 +1500,32 @@ def get_antivirus_server(self, antivirus_server_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_antivirus_server" % key + " to method list_antivirus_servers" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_server_id' is set - if ('antivirus_server_id' not in params) or (params['antivirus_server_id'] is None): - raise ValueError("Missing the required parameter `antivirus_server_id` when calling `get_antivirus_server`") - resource_path = '/platform/3/antivirus/servers/{AntivirusServerId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_antivirus_servers`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/antivirus/servers'.replace('{format}', 'json') path_params = {} - if 'antivirus_server_id' in params: - path_params['AntivirusServerId'] = params['antivirus_server_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1570,22 +1542,22 @@ def get_antivirus_server(self, antivirus_server_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AntivirusServers', + files=local_var_files, + response_type='AntivirusServersExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_antivirus_server(self, antivirus_server, antivirus_server_id, **kwargs): + def update_antivirus_policy(self, antivirus_policy, antivirus_policy_id, **kwargs): """ - Modify an antivirus server entry. + Modify an antivirus scan policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1593,18 +1565,18 @@ def update_antivirus_server(self, antivirus_server, antivirus_server_id, **kwarg >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_antivirus_server(antivirus_server, antivirus_server_id, callback=callback_function) + >>> thread = api.update_antivirus_policy(antivirus_policy, antivirus_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AntivirusServer antivirus_server: (required) - :param str antivirus_server_id: Modify an antivirus server entry. (required) + :param AntivirusPolicy antivirus_policy: (required) + :param str antivirus_policy_id: Modify an antivirus scan policy. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_server', 'antivirus_server_id'] + all_params = ['antivirus_policy', 'antivirus_policy_id'] all_params.append('callback') params = locals() @@ -1612,35 +1584,34 @@ def update_antivirus_server(self, antivirus_server, antivirus_server_id, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_antivirus_server" % key + " to method update_antivirus_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_server' is set - if ('antivirus_server' not in params) or (params['antivirus_server'] is None): - raise ValueError("Missing the required parameter `antivirus_server` when calling `update_antivirus_server`") - # verify the required parameter 'antivirus_server_id' is set - if ('antivirus_server_id' not in params) or (params['antivirus_server_id'] is None): - raise ValueError("Missing the required parameter `antivirus_server_id` when calling `update_antivirus_server`") + # verify the required parameter 'antivirus_policy' is set + if ('antivirus_policy' not in params) or (params['antivirus_policy'] is None): + raise ValueError("Missing the required parameter `antivirus_policy` when calling `update_antivirus_policy`") + # verify the required parameter 'antivirus_policy_id' is set + if ('antivirus_policy_id' not in params) or (params['antivirus_policy_id'] is None): + raise ValueError("Missing the required parameter `antivirus_policy_id` when calling `update_antivirus_policy`") - resource_path = '/platform/3/antivirus/servers/{AntivirusServerId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/antivirus/policies/{AntivirusPolicyId}'.replace('{format}', 'json') path_params = {} - if 'antivirus_server_id' in params: - path_params['AntivirusServerId'] = params['antivirus_server_id'] + if 'antivirus_policy_id' in params: + path_params['AntivirusPolicyId'] = params['antivirus_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'antivirus_server' in params: - body_params = params['antivirus_server'] + if 'antivirus_policy' in params: + body_params = params['antivirus_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1655,22 +1626,22 @@ def update_antivirus_server(self, antivirus_server, antivirus_server_id, **kwarg # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_antivirus_server(self, antivirus_server_id, **kwargs): + def update_antivirus_quarantine_path(self, antivirus_quarantine_path_params, antivirus_quarantine_path, **kwargs): """ - Delete an antivirus server entry. + Set the quarantine status of the file at the specified path. Use either an empty object {} in the request body or {\"quarantined\":true} to quarantine the file, and {\"quarantined\":false} to unquarantine the file. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1678,17 +1649,18 @@ def delete_antivirus_server(self, antivirus_server_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_antivirus_server(antivirus_server_id, callback=callback_function) + >>> thread = api.update_antivirus_quarantine_path(antivirus_quarantine_path_params, antivirus_quarantine_path, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str antivirus_server_id: Delete an antivirus server entry. (required) + :param AntivirusQuarantinePathParams antivirus_quarantine_path_params: (required) + :param str antivirus_quarantine_path: Set the quarantine status of the file at the specified path. Use either an empty object {} in the request body or {\"quarantined\":true} to quarantine the file, and {\"quarantined\":false} to unquarantine the file. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['antivirus_server_id'] + all_params = ['antivirus_quarantine_path_params', 'antivirus_quarantine_path'] all_params.append('callback') params = locals() @@ -1696,30 +1668,34 @@ def delete_antivirus_server(self, antivirus_server_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_antivirus_server" % key + " to method update_antivirus_quarantine_path" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'antivirus_server_id' is set - if ('antivirus_server_id' not in params) or (params['antivirus_server_id'] is None): - raise ValueError("Missing the required parameter `antivirus_server_id` when calling `delete_antivirus_server`") + # verify the required parameter 'antivirus_quarantine_path_params' is set + if ('antivirus_quarantine_path_params' not in params) or (params['antivirus_quarantine_path_params'] is None): + raise ValueError("Missing the required parameter `antivirus_quarantine_path_params` when calling `update_antivirus_quarantine_path`") + # verify the required parameter 'antivirus_quarantine_path' is set + if ('antivirus_quarantine_path' not in params) or (params['antivirus_quarantine_path'] is None): + raise ValueError("Missing the required parameter `antivirus_quarantine_path` when calling `update_antivirus_quarantine_path`") - resource_path = '/platform/3/antivirus/servers/{AntivirusServerId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/antivirus/quarantine/{AntivirusQuarantinePath}'.replace('{format}', 'json') path_params = {} - if 'antivirus_server_id' in params: - path_params['AntivirusServerId'] = params['antivirus_server_id'] + if 'antivirus_quarantine_path' in params: + path_params['AntivirusQuarantinePath'] = params['antivirus_quarantine_path'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'antivirus_quarantine_path_params' in params: + body_params = params['antivirus_quarantine_path_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1734,22 +1710,22 @@ def delete_antivirus_server(self, antivirus_server_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_antivirus_settings(self, **kwargs): + def update_antivirus_server(self, antivirus_server, antivirus_server_id, **kwargs): """ - Retrieve the Antivirus settings. + Modify an antivirus server entry. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1757,16 +1733,18 @@ def get_antivirus_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_antivirus_settings(callback=callback_function) + >>> thread = api.update_antivirus_server(antivirus_server, antivirus_server_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: AntivirusSettings + :param AntivirusServer antivirus_server: (required) + :param str antivirus_server_id: Modify an antivirus server entry. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['antivirus_server', 'antivirus_server_id'] all_params.append('callback') params = locals() @@ -1774,25 +1752,34 @@ def get_antivirus_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_antivirus_settings" % key + " to method update_antivirus_server" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'antivirus_server' is set + if ('antivirus_server' not in params) or (params['antivirus_server'] is None): + raise ValueError("Missing the required parameter `antivirus_server` when calling `update_antivirus_server`") + # verify the required parameter 'antivirus_server_id' is set + if ('antivirus_server_id' not in params) or (params['antivirus_server_id'] is None): + raise ValueError("Missing the required parameter `antivirus_server_id` when calling `update_antivirus_server`") - resource_path = '/platform/3/antivirus/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/antivirus/servers/{AntivirusServerId}'.replace('{format}', 'json') path_params = {} + if 'antivirus_server_id' in params: + path_params['AntivirusServerId'] = params['antivirus_server_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'antivirus_server' in params: + body_params = params['antivirus_server'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1807,14 +1794,14 @@ def get_antivirus_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AntivirusSettings', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1857,17 +1844,16 @@ def update_antivirus_settings(self, antivirus_settings, **kwargs): if ('antivirus_settings' not in params) or (params['antivirus_settings'] is None): raise ValueError("Missing the required parameter `antivirus_settings` when calling `update_antivirus_settings`") - resource_path = '/platform/3/antivirus/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/antivirus/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'antivirus_settings' in params: @@ -1886,13 +1872,13 @@ def update_antivirus_settings(self, antivirus_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/audit_api.py b/isi_sdk/apis/audit_api.py index d847782b7..86899b87e 100644 --- a/isi_sdk/apis/audit_api.py +++ b/isi_sdk/apis/audit_api.py @@ -2,7 +2,7 @@ """ AuditApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_audit_topics(self, **kwargs): + def create_audit_topic(self, audit_topic, **kwargs): """ - Retrieve a list of audit topics. + Create a new audit topic. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def list_audit_topics(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_audit_topics(callback=callback_function) + >>> thread = api.create_audit_topic(audit_topic, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: AuditTopicsExtended + :param AuditTopicCreateParams audit_topic: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['audit_topic'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def list_audit_topics(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_audit_topics" % key + " to method create_audit_topic" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'audit_topic' is set + if ('audit_topic' not in params) or (params['audit_topic'] is None): + raise ValueError("Missing the required parameter `audit_topic` when calling `create_audit_topic`") - resource_path = '/platform/1/audit/topics'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/audit/topics'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'audit_topic' in params: + body_params = params['audit_topic'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def list_audit_topics(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuditTopicsExtended', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_audit_topic(self, audit_topic, **kwargs): + def delete_audit_topic(self, audit_topic_id, **kwargs): """ - Create a new audit topic. + Delete the audit topic. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,17 @@ def create_audit_topic(self, audit_topic, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_audit_topic(audit_topic, callback=callback_function) + >>> thread = api.delete_audit_topic(audit_topic_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AuditTopicCreateParams audit_topic: (required) - :return: CreateResponse + :param str audit_topic_id: Delete the audit topic. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['audit_topic'] + all_params = ['audit_topic_id'] all_params.append('callback') params = locals() @@ -147,30 +153,29 @@ def create_audit_topic(self, audit_topic, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_audit_topic" % key + " to method delete_audit_topic" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'audit_topic' is set - if ('audit_topic' not in params) or (params['audit_topic'] is None): - raise ValueError("Missing the required parameter `audit_topic` when calling `create_audit_topic`") + # verify the required parameter 'audit_topic_id' is set + if ('audit_topic_id' not in params) or (params['audit_topic_id'] is None): + raise ValueError("Missing the required parameter `audit_topic_id` when calling `delete_audit_topic`") - resource_path = '/platform/1/audit/topics'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/audit/topics/{AuditTopicId}'.replace('{format}', 'json') path_params = {} + if 'audit_topic_id' in params: + path_params['AuditTopicId'] = params['audit_topic_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'audit_topic' in params: - body_params = params['audit_topic'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,22 +190,22 @@ def create_audit_topic(self, audit_topic, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_audit_topic(self, audit_topic_id, **kwargs): + def get_audit_settings(self, **kwargs): """ - Retrieve the audit topic information. + View per-Access Zone Audit settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -208,17 +213,17 @@ def get_audit_topic(self, audit_topic_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_audit_topic(audit_topic_id, callback=callback_function) + >>> thread = api.get_audit_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str audit_topic_id: Retrieve the audit topic information. (required) - :return: AuditTopics + :param str zone: Access zone which contains audit settings. + :return: AuditSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['audit_topic_id'] + all_params = ['zone'] all_params.append('callback') params = locals() @@ -226,28 +231,24 @@ def get_audit_topic(self, audit_topic_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_audit_topic" % key + " to method get_audit_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'audit_topic_id' is set - if ('audit_topic_id' not in params) or (params['audit_topic_id'] is None): - raise ValueError("Missing the required parameter `audit_topic_id` when calling `get_audit_topic`") - resource_path = '/platform/1/audit/topics/{AuditTopicId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/audit/settings'.replace('{format}', 'json') path_params = {} - if 'audit_topic_id' in params: - path_params['AuditTopicId'] = params['audit_topic_id'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -264,22 +265,22 @@ def get_audit_topic(self, audit_topic_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuditTopics', + files=local_var_files, + response_type='AuditSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_audit_topic(self, audit_topic, audit_topic_id, **kwargs): + def get_audit_topic(self, audit_topic_id, **kwargs): """ - Modify the audit topic. + Retrieve the audit topic information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -287,18 +288,17 @@ def update_audit_topic(self, audit_topic, audit_topic_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_audit_topic(audit_topic, audit_topic_id, callback=callback_function) + >>> thread = api.get_audit_topic(audit_topic_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AuditTopic audit_topic: (required) - :param str audit_topic_id: Modify the audit topic. (required) - :return: None + :param str audit_topic_id: Retrieve the audit topic information. (required) + :return: AuditTopics If the method is called asynchronously, returns the request thread. """ - all_params = ['audit_topic', 'audit_topic_id'] + all_params = ['audit_topic_id'] all_params.append('callback') params = locals() @@ -306,21 +306,17 @@ def update_audit_topic(self, audit_topic, audit_topic_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_audit_topic" % key + " to method get_audit_topic" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'audit_topic' is set - if ('audit_topic' not in params) or (params['audit_topic'] is None): - raise ValueError("Missing the required parameter `audit_topic` when calling `update_audit_topic`") # verify the required parameter 'audit_topic_id' is set if ('audit_topic_id' not in params) or (params['audit_topic_id'] is None): - raise ValueError("Missing the required parameter `audit_topic_id` when calling `update_audit_topic`") + raise ValueError("Missing the required parameter `audit_topic_id` when calling `get_audit_topic`") - resource_path = '/platform/1/audit/topics/{AuditTopicId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/audit/topics/{AuditTopicId}'.replace('{format}', 'json') path_params = {} if 'audit_topic_id' in params: path_params['AuditTopicId'] = params['audit_topic_id'] @@ -329,12 +325,10 @@ def update_audit_topic(self, audit_topic, audit_topic_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'audit_topic' in params: - body_params = params['audit_topic'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -349,22 +343,22 @@ def update_audit_topic(self, audit_topic, audit_topic_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='AuditTopics', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_audit_topic(self, audit_topic_id, **kwargs): + def get_settings_global(self, **kwargs): """ - Delete the audit topic. + View Global Audit settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -372,17 +366,16 @@ def delete_audit_topic(self, audit_topic_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_audit_topic(audit_topic_id, callback=callback_function) + >>> thread = api.get_settings_global(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str audit_topic_id: Delete the audit topic. (required) - :return: None + :return: SettingsGlobalExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['audit_topic_id'] + all_params = [] all_params.append('callback') params = locals() @@ -390,28 +383,22 @@ def delete_audit_topic(self, audit_topic_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_audit_topic" % key + " to method get_settings_global" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'audit_topic_id' is set - if ('audit_topic_id' not in params) or (params['audit_topic_id'] is None): - raise ValueError("Missing the required parameter `audit_topic_id` when calling `delete_audit_topic`") - resource_path = '/platform/1/audit/topics/{AuditTopicId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/audit/settings/global'.replace('{format}', 'json') path_params = {} - if 'audit_topic_id' in params: - path_params['AuditTopicId'] = params['audit_topic_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -428,22 +415,22 @@ def delete_audit_topic(self, audit_topic_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SettingsGlobalExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_audit_settings(self, **kwargs): + def list_audit_topics(self, **kwargs): """ - View per-Access Zone Audit settings. + Retrieve a list of audit topics. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -451,17 +438,16 @@ def get_audit_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_audit_settings(callback=callback_function) + >>> thread = api.list_audit_topics(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str zone: Access zone which contains audit settings. - :return: AuditSettings + :return: AuditTopicsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['zone'] + all_params = [] all_params.append('callback') params = locals() @@ -469,25 +455,22 @@ def get_audit_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_audit_settings" % key + " to method list_audit_topics" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/audit/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/audit/topics'.replace('{format}', 'json') path_params = {} query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -504,14 +487,14 @@ def get_audit_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuditSettings', + files=local_var_files, + response_type='AuditTopicsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -555,9 +538,8 @@ def update_audit_settings(self, audit_settings, **kwargs): if ('audit_settings' not in params) or (params['audit_settings'] is None): raise ValueError("Missing the required parameter `audit_settings` when calling `update_audit_settings`") - resource_path = '/platform/3/audit/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/audit/settings'.replace('{format}', 'json') path_params = {} query_params = {} @@ -566,8 +548,8 @@ def update_audit_settings(self, audit_settings, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'audit_settings' in params: @@ -586,22 +568,22 @@ def update_audit_settings(self, audit_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_global(self, **kwargs): + def update_audit_topic(self, audit_topic, audit_topic_id, **kwargs): """ - View Global Audit settings. + Modify the audit topic. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -609,16 +591,18 @@ def get_settings_global(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_settings_global(callback=callback_function) + >>> thread = api.update_audit_topic(audit_topic, audit_topic_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SettingsGlobalExtended + :param AuditTopic audit_topic: (required) + :param str audit_topic_id: Modify the audit topic. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['audit_topic', 'audit_topic_id'] all_params.append('callback') params = locals() @@ -626,25 +610,34 @@ def get_settings_global(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_settings_global" % key + " to method update_audit_topic" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'audit_topic' is set + if ('audit_topic' not in params) or (params['audit_topic'] is None): + raise ValueError("Missing the required parameter `audit_topic` when calling `update_audit_topic`") + # verify the required parameter 'audit_topic_id' is set + if ('audit_topic_id' not in params) or (params['audit_topic_id'] is None): + raise ValueError("Missing the required parameter `audit_topic_id` when calling `update_audit_topic`") - resource_path = '/platform/3/audit/settings/global'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/audit/topics/{AuditTopicId}'.replace('{format}', 'json') path_params = {} + if 'audit_topic_id' in params: + path_params['AuditTopicId'] = params['audit_topic_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'audit_topic' in params: + body_params = params['audit_topic'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -659,14 +652,14 @@ def get_settings_global(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsGlobalExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -709,17 +702,16 @@ def update_settings_global(self, settings_global, **kwargs): if ('settings_global' not in params) or (params['settings_global'] is None): raise ValueError("Missing the required parameter `settings_global` when calling `update_settings_global`") - resource_path = '/platform/3/audit/settings/global'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/audit/settings/global'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'settings_global' in params: @@ -738,13 +730,13 @@ def update_settings_global(self, settings_global, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/auth_api.py b/isi_sdk/apis/auth_api.py index 75863fa0f..5d7af0eb6 100644 --- a/isi_sdk/apis/auth_api.py +++ b/isi_sdk/apis/auth_api.py @@ -2,7 +2,7 @@ """ AuthApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,194 +46,6 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_auth_access_user(self, auth_access_user, **kwargs): - """ - - Determine user's access rights to a file - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_auth_access_user(auth_access_user, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str auth_access_user: Determine user's access rights to a file (required) - :param str path: Path to the file. Must be within /ifs. - :param str zone: Access zone the user is in. - :param bool numeric: Show the user's numeric identifier. - :return: AuthAccess - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['auth_access_user', 'path', 'zone', 'numeric'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_auth_access_user" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'auth_access_user' is set - if ('auth_access_user' not in params) or (params['auth_access_user'] is None): - raise ValueError("Missing the required parameter `auth_access_user` when calling `get_auth_access_user`") - - resource_path = '/platform/1/auth/access/{AuthAccessUser}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'auth_access_user' in params: - path_params['AuthAccessUser'] = params['auth_access_user'] - - query_params = {} - if 'path' in params: - query_params['path'] = params['path'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'numeric' in params: - query_params['numeric'] = params['numeric'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='AuthAccess', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def list_auth_groups(self, **kwargs): - """ - - List all groups. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_auth_groups(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str domain: Filter groups by domain. - :param str zone: Filter groups by zone. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param bool cached: If true, only return cached objects. - :param bool resolve_names: Resolve names of personas. - :param str filter: Filter groups by name prefix. - :param int limit: Return no more than this many results at once (see resume). - :param str provider: Filter groups by provider. - :param bool query_member_of: Enumerate all groups that a group is a member of. - :return: AuthGroupsExtended - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['domain', 'zone', 'resume', 'cached', 'resolve_names', 'filter', 'limit', 'provider', 'query_member_of'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_auth_groups" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/auth/groups'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - if 'domain' in params: - query_params['domain'] = params['domain'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'cached' in params: - query_params['cached'] = params['cached'] - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'filter' in params: - query_params['filter'] = params['filter'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'provider' in params: - query_params['provider'] = params['provider'] - if 'query_member_of' in params: - query_params['query_member_of'] = params['query_member_of'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='AuthGroupsExtended', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def create_auth_group(self, auth_group, **kwargs): """ @@ -273,9 +86,8 @@ def create_auth_group(self, auth_group, **kwargs): if ('auth_group' not in params) or (params['auth_group'] is None): raise ValueError("Missing the required parameter `auth_group` when calling `create_auth_group`") - resource_path = '/platform/1/auth/groups'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/groups'.replace('{format}', 'json') path_params = {} query_params = {} @@ -286,8 +98,8 @@ def create_auth_group(self, auth_group, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'auth_group' in params: @@ -306,22 +118,22 @@ def create_auth_group(self, auth_group, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_auth_groups(self, **kwargs): + def create_auth_refresh_item(self, auth_refresh_item, **kwargs): """ - Flush the groups cache. + Refresh the authentication service configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -329,19 +141,17 @@ def delete_auth_groups(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_auth_groups(callback=callback_function) + >>> thread = api.create_auth_refresh_item(auth_refresh_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param bool cached: If true, only flush cached objects. - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. - :return: None + :param Empty auth_refresh_item: (required) + :return: CreateAuthRefreshItemResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['cached', 'zone', 'provider'] + all_params = ['auth_refresh_item'] all_params.append('callback') params = locals() @@ -349,1673 +159,29 @@ def delete_auth_groups(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_auth_groups" % key + " to method create_auth_refresh_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'auth_refresh_item' is set + if ('auth_refresh_item' not in params) or (params['auth_refresh_item'] is None): + raise ValueError("Missing the required parameter `auth_refresh_item` when calling `create_auth_refresh_item`") - resource_path = '/platform/1/auth/groups'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - - query_params = {} - if 'cached' in params: - query_params['cached'] = params['cached'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_auth_group(self, auth_group_id, **kwargs): - """ - - Retrieve the group information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_auth_group(auth_group_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str auth_group_id: Retrieve the group information. (required) - :param bool cached: If true, only return cached objects. - :param bool resolve_names: Resolve names of personas. - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. - :return: AuthGroups - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['auth_group_id', 'cached', 'resolve_names', 'zone', 'provider'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_auth_group" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'auth_group_id' is set - if ('auth_group_id' not in params) or (params['auth_group_id'] is None): - raise ValueError("Missing the required parameter `auth_group_id` when calling `get_auth_group`") - - resource_path = '/platform/1/auth/groups/{AuthGroupId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'auth_group_id' in params: - path_params['AuthGroupId'] = params['auth_group_id'] - - query_params = {} - if 'cached' in params: - query_params['cached'] = params['cached'] - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='AuthGroups', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_auth_group(self, auth_group, auth_group_id, **kwargs): - """ - - Modify the group. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_auth_group(auth_group, auth_group_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param AuthGroup auth_group: (required) - :param str auth_group_id: Modify the group. (required) - :param str zone: Optional zone. - :param str provider: Optional provider type. - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['auth_group', 'auth_group_id', 'zone', 'provider'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_auth_group" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'auth_group' is set - if ('auth_group' not in params) or (params['auth_group'] is None): - raise ValueError("Missing the required parameter `auth_group` when calling `update_auth_group`") - # verify the required parameter 'auth_group_id' is set - if ('auth_group_id' not in params) or (params['auth_group_id'] is None): - raise ValueError("Missing the required parameter `auth_group_id` when calling `update_auth_group`") - - resource_path = '/platform/1/auth/groups/{AuthGroupId}'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'auth_group_id' in params: - path_params['AuthGroupId'] = params['auth_group_id'] - - query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'auth_group' in params: - body_params = params['auth_group'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_auth_group(self, auth_group_id, **kwargs): - """ - - Delete the group. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_auth_group(auth_group_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str auth_group_id: Delete the group. (required) - :param bool cached: If true, flush the group from the cache. - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['auth_group_id', 'cached', 'zone', 'provider'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_auth_group" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'auth_group_id' is set - if ('auth_group_id' not in params) or (params['auth_group_id'] is None): - raise ValueError("Missing the required parameter `auth_group_id` when calling `delete_auth_group`") - - resource_path = '/platform/1/auth/groups/{AuthGroupId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'auth_group_id' in params: - path_params['AuthGroupId'] = params['auth_group_id'] - - query_params = {} - if 'cached' in params: - query_params['cached'] = params['cached'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def list_groups_group_members(self, group, **kwargs): - """ - - List all the members of the group. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_groups_group_members(group, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str group: (required) - :param bool resolve_names: Resolve names of personas. - :param int limit: Return no more than this many results at once (see resume). - :param str zone: Filter group members by zone. - :param str provider: Filter group members by provider. - :return: GroupsGroupMembers - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['group', 'resolve_names', 'limit', 'zone', 'provider'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_groups_group_members" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `list_groups_group_members`") - - resource_path = '/platform/1/auth/groups/{Group}/members'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'group' in params: - path_params['Group'] = params['group'] - - query_params = {} - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='GroupsGroupMembers', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_groups_group_member(self, groups_group_member, group, **kwargs): - """ - - Add a member to the group. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_groups_group_member(groups_group_member, group, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param GroupsGroupMember groups_group_member: (required) - :param str group: (required) - :param str zone: Filter group members by zone. - :param str provider: Filter group members by provider. - :return: CreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groups_group_member', 'group', 'zone', 'provider'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_groups_group_member" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groups_group_member' is set - if ('groups_group_member' not in params) or (params['groups_group_member'] is None): - raise ValueError("Missing the required parameter `groups_group_member` when calling `create_groups_group_member`") - # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `create_groups_group_member`") - - resource_path = '/platform/1/auth/groups/{Group}/members'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'group' in params: - path_params['Group'] = params['group'] - - query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groups_group_member' in params: - body_params = params['groups_group_member'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='CreateResponse', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_groups_group_member(self, groups_group_member_id, group, **kwargs): - """ - - Remove the member from the group. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_groups_group_member(groups_group_member_id, group, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groups_group_member_id: Remove the member from the group. (required) - :param str group: (required) - :param str zone: Filter group members by zone. - :param str provider: Filter group members by provider. - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groups_group_member_id', 'group', 'zone', 'provider'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_groups_group_member" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groups_group_member_id' is set - if ('groups_group_member_id' not in params) or (params['groups_group_member_id'] is None): - raise ValueError("Missing the required parameter `groups_group_member_id` when calling `delete_groups_group_member`") - # verify the required parameter 'group' is set - if ('group' not in params) or (params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `delete_groups_group_member`") - - resource_path = '/platform/1/auth/groups/{Group}/members/{GroupsGroupMemberId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'groups_group_member_id' in params: - path_params['GroupsGroupMemberId'] = params['groups_group_member_id'] - if 'group' in params: - path_params['Group'] = params['group'] - - query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_auth_id(self, **kwargs): - """ - - Retrieve the current security token. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_auth_id(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: AuthId - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_auth_id" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/auth/id'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='AuthId', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_mapping_identity(self, mapping_identity, **kwargs): - """ - - Manually set or modify a mapping between two personae. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_mapping_identity(mapping_identity, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param MappingIdentityCreateParams mapping_identity: (required) - :param bool _2way: Create a bi-directional mapping from source to target and target to source. - :param str zone: Optional zone. - :param bool replace: Replace existing mappings. - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['mapping_identity', '_2way', 'zone', 'replace'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_mapping_identity" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'mapping_identity' is set - if ('mapping_identity' not in params) or (params['mapping_identity'] is None): - raise ValueError("Missing the required parameter `mapping_identity` when calling `create_mapping_identity`") - - resource_path = '/platform/1/auth/mapping/identities'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if '_2way' in params: - query_params['2way'] = params['_2way'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'replace' in params: - query_params['replace'] = params['replace'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'mapping_identity' in params: - body_params = params['mapping_identity'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_mapping_identities(self, **kwargs): - """ - - Flush the entire idmap cache. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_mapping_identities(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str filter: Filter to apply when deleting identity mappings. - :param str zone: Optional zone. - :param bool remove: Delete mapping instead of flush mapping cache. - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['filter', 'zone', 'remove'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_mapping_identities" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/auth/mapping/identities'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - - query_params = {} - if 'filter' in params: - query_params['filter'] = params['filter'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'remove' in params: - query_params['remove'] = params['remove'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_mapping_identity(self, mapping_identity_id, **kwargs): - """ - - Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_mapping_identity(mapping_identity_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str mapping_identity_id: Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. (required) - :param bool nocreate: Idmap should attempt to create missing identity mappings. - :param str zone: Optional zone. - :return: MappingIdentities - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['mapping_identity_id', 'nocreate', 'zone'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_mapping_identity" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'mapping_identity_id' is set - if ('mapping_identity_id' not in params) or (params['mapping_identity_id'] is None): - raise ValueError("Missing the required parameter `mapping_identity_id` when calling `get_mapping_identity`") - - resource_path = '/platform/1/auth/mapping/identities/{MappingIdentityId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'mapping_identity_id' in params: - path_params['MappingIdentityId'] = params['mapping_identity_id'] - - query_params = {} - if 'nocreate' in params: - query_params['nocreate'] = params['nocreate'] - if 'zone' in params: - query_params['zone'] = params['zone'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='MappingIdentities', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_mapping_identity_1(self, mapping_identity, **kwargs): - """ - - Manually set or modify a mapping between two personae. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_mapping_identity_1(mapping_identity, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param Empty mapping_identity: (required) - :param str type: Desired mapping target to fetch/generate. - :param str zone: Optional zone. - :return: MappingIdentities - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['mapping_identity', 'type', 'zone'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_mapping_identity_1" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'mapping_identity' is set - if ('mapping_identity' not in params) or (params['mapping_identity'] is None): - raise ValueError("Missing the required parameter `mapping_identity` when calling `create_mapping_identity_1`") - - resource_path = '/platform/1/auth/mapping/identities/{MappingIdentityId}'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'type' in params: - query_params['type'] = params['type'] - if 'zone' in params: - query_params['zone'] = params['zone'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'mapping_identity' in params: - body_params = params['mapping_identity'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='MappingIdentities', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_mapping_identity(self, mapping_identity_id, **kwargs): - """ - - Flush the entire idmap cache. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_mapping_identity(mapping_identity_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str mapping_identity_id: Flush the entire idmap cache. (required) - :param str zone: Optional zone. - :param bool _2way: Delete the bi-directional mapping from source to target and target to source. - :param str target: Target identity persona. - :param bool remove: Delete mapping instead of flush mapping from cache. - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['mapping_identity_id', 'zone', '_2way', 'target', 'remove'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_mapping_identity" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'mapping_identity_id' is set - if ('mapping_identity_id' not in params) or (params['mapping_identity_id'] is None): - raise ValueError("Missing the required parameter `mapping_identity_id` when calling `delete_mapping_identity`") - - resource_path = '/platform/1/auth/mapping/identities/{MappingIdentityId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'mapping_identity_id' in params: - path_params['MappingIdentityId'] = params['mapping_identity_id'] - - query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if '_2way' in params: - query_params['2way'] = params['_2way'] - if 'target' in params: - query_params['target'] = params['target'] - if 'remove' in params: - query_params['remove'] = params['remove'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_mapping_users_lookup(self, **kwargs): - """ - - Retrieve the user information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_mapping_users_lookup(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int primary_gid: The user's primary group ID. - :param int uid: The user ID. - :param str zone: The zone the user belongs to. - :param list[int] gid: The IDs of the groups that the user belongs to. - :param str user: The user name. - :param str kerberos_principal: The Kerberos principal name, of the form user@realm. - :return: MappingUsersLookup - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['primary_gid', 'uid', 'zone', 'gid', 'user', 'kerberos_principal'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_mapping_users_lookup" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/auth/mapping/users/lookup'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - if 'primary_gid' in params: - query_params['primary_gid'] = params['primary_gid'] - if 'uid' in params: - query_params['uid'] = params['uid'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'gid' in params: - query_params['gid'] = params['gid'] - if 'user' in params: - query_params['user'] = params['user'] - if 'kerberos_principal' in params: - query_params['kerberos_principal'] = params['kerberos_principal'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='MappingUsersLookup', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_mapping_users_rules(self, **kwargs): - """ - - Retrieve the user mapping rules. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_mapping_users_rules(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str zone: The zone to which the user mapping applies. - :return: MappingUsersRules - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['zone'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_mapping_users_rules" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/auth/mapping/users/rules'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='MappingUsersRules', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_mapping_users_rules(self, mapping_users_rules, **kwargs): - """ - - Modify the user mapping rules. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_mapping_users_rules(mapping_users_rules, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param MappingUsersRulesRules mapping_users_rules: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['mapping_users_rules'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_mapping_users_rules" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'mapping_users_rules' is set - if ('mapping_users_rules' not in params) or (params['mapping_users_rules'] is None): - raise ValueError("Missing the required parameter `mapping_users_rules` when calling `update_mapping_users_rules`") - - resource_path = '/platform/1/auth/mapping/users/rules'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'mapping_users_rules' in params: - body_params = params['mapping_users_rules'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_auth_netgroup(self, auth_netgroup_id, **kwargs): - """ - - Retrieve the user information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_auth_netgroup(auth_netgroup_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str auth_netgroup_id: Retrieve the user information. (required) - :param bool ignore_errors: Ignore netgroup errors. - :param bool recursive: Perform recursive search. - :param str zone: Filter users by zone. - :param str provider: Filter users by provider. - :return: AuthNetgroups - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['auth_netgroup_id', 'ignore_errors', 'recursive', 'zone', 'provider'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_auth_netgroup" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'auth_netgroup_id' is set - if ('auth_netgroup_id' not in params) or (params['auth_netgroup_id'] is None): - raise ValueError("Missing the required parameter `auth_netgroup_id` when calling `get_auth_netgroup`") - - resource_path = '/platform/1/auth/netgroups/{AuthNetgroupId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'auth_netgroup_id' in params: - path_params['AuthNetgroupId'] = params['auth_netgroup_id'] - - query_params = {} - if 'ignore_errors' in params: - query_params['ignore_errors'] = params['ignore_errors'] - if 'recursive' in params: - query_params['recursive'] = params['recursive'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='AuthNetgroups', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_auth_privileges(self, **kwargs): - """ - - List all privileges. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_auth_privileges(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: AuthPrivileges - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_auth_privileges" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/auth/privileges'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='AuthPrivileges', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_providers_ads_id_controllers(self, id, **kwargs): - """ - - List all ADS controllers. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_providers_ads_id_controllers(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :return: ProvidersAdsIdControllers - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_providers_ads_id_controllers" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_providers_ads_id_controllers`") - - resource_path = '/platform/1/auth/providers/ads/{Id}/controllers'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'id' in params: - path_params['Id'] = params['id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='ProvidersAdsIdControllers', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_providers_ads_id_search(self, id, **kwargs): - """ - - Retrieve search results. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_providers_ads_id_search(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :param str domain: The domain to search in. - :param str description: The user or group description to search for. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param bool search_users: If true, search for users. - :param str filter: The LDAP filter to apply to the search. - :param int limit: Return no more than this many results at once (see resume). - :param str user: The user name for the domain if untrusted. - :param str password: The password for the domain if untrusted. - :param bool search_groups: If true, search for groups. - :return: ProvidersAdsIdSearch - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'domain', 'description', 'resume', 'search_users', 'filter', 'limit', 'user', 'password', 'search_groups'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_providers_ads_id_search" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_providers_ads_id_search`") - - resource_path = '/platform/1/auth/providers/ads/{Id}/search'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/refresh'.replace('{format}', 'json') path_params = {} - if 'id' in params: - path_params['Id'] = params['id'] query_params = {} - if 'domain' in params: - query_params['domain'] = params['domain'] - if 'description' in params: - query_params['description'] = params['description'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'search_users' in params: - query_params['search_users'] = params['search_users'] - if 'filter' in params: - query_params['filter'] = params['filter'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'user' in params: - query_params['user'] = params['user'] - if 'password' in params: - query_params['password'] = params['password'] - if 'search_groups' in params: - query_params['search_groups'] = params['search_groups'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'auth_refresh_item' in params: + body_params = params['auth_refresh_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2030,22 +196,22 @@ def get_providers_ads_id_search(self, id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersAdsIdSearch', + files=local_var_files, + response_type='CreateAuthRefreshItemResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_providers_file(self, **kwargs): + def create_auth_role(self, auth_role, **kwargs): """ - List all file providers. + Create a new role. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2053,17 +219,17 @@ def list_providers_file(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_providers_file(callback=callback_function) + >>> thread = api.create_auth_role(auth_role, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersFile + :param AuthRole auth_role: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['scope'] + all_params = ['auth_role'] all_params.append('callback') params = locals() @@ -2071,27 +237,29 @@ def list_providers_file(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_providers_file" % key + " to method create_auth_role" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'auth_role' is set + if ('auth_role' not in params) or (params['auth_role'] is None): + raise ValueError("Missing the required parameter `auth_role` when calling `create_auth_role`") - resource_path = '/platform/1/auth/providers/file'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/roles'.replace('{format}', 'json') path_params = {} query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'auth_role' in params: + body_params = params['auth_role'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2106,22 +274,22 @@ def list_providers_file(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersFile', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_providers_file_item(self, providers_file_item, **kwargs): + def create_auth_user(self, auth_user, **kwargs): """ - Create a new file provider. + Create a new user. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2129,17 +297,19 @@ def create_providers_file_item(self, providers_file_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_providers_file_item(providers_file_item, callback=callback_function) + >>> thread = api.create_auth_user(auth_user, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersFileIdParams providers_file_item: (required) + :param AuthUserCreateParams auth_user: (required) + :param str zone: Optional zone. + :param str provider: Optional provider type. :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_file_item'] + all_params = ['auth_user', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -2147,30 +317,33 @@ def create_providers_file_item(self, providers_file_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_providers_file_item" % key + " to method create_auth_user" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_file_item' is set - if ('providers_file_item' not in params) or (params['providers_file_item'] is None): - raise ValueError("Missing the required parameter `providers_file_item` when calling `create_providers_file_item`") + # verify the required parameter 'auth_user' is set + if ('auth_user' not in params) or (params['auth_user'] is None): + raise ValueError("Missing the required parameter `auth_user` when calling `create_auth_user`") - resource_path = '/platform/1/auth/providers/file'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/users'.replace('{format}', 'json') path_params = {} query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_file_item' in params: - body_params = params['providers_file_item'] + if 'auth_user' in params: + body_params = params['auth_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2185,22 +358,22 @@ def create_providers_file_item(self, providers_file_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_file_id(self, providers_file_id, **kwargs): + def create_mapping_identity(self, mapping_identity, **kwargs): """ - Retrieve the file provider. + Manually set or modify a mapping between two personae. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2208,18 +381,20 @@ def get_providers_file_id(self, providers_file_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_file_id(providers_file_id, callback=callback_function) + >>> thread = api.create_mapping_identity(mapping_identity, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_file_id: Retrieve the file provider. (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersFile + :param MappingIdentityCreateParams mapping_identity: (required) + :param bool _2way: Create a bi-directional mapping from source to target and target to source. + :param str zone: Optional zone. + :param bool replace: Replace existing mappings. + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_file_id', 'scope'] + all_params = ['mapping_identity', '_2way', 'zone', 'replace'] all_params.append('callback') params = locals() @@ -2227,32 +402,35 @@ def get_providers_file_id(self, providers_file_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_file_id" % key + " to method create_mapping_identity" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_file_id' is set - if ('providers_file_id' not in params) or (params['providers_file_id'] is None): - raise ValueError("Missing the required parameter `providers_file_id` when calling `get_providers_file_id`") + # verify the required parameter 'mapping_identity' is set + if ('mapping_identity' not in params) or (params['mapping_identity'] is None): + raise ValueError("Missing the required parameter `mapping_identity` when calling `create_mapping_identity`") - resource_path = '/platform/1/auth/providers/file/{ProvidersFileId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/mapping/identities'.replace('{format}', 'json') path_params = {} - if 'providers_file_id' in params: - path_params['ProvidersFileId'] = params['providers_file_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] + if '_2way' in params: + query_params['2way'] = params['_2way'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'replace' in params: + query_params['replace'] = params['replace'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'mapping_identity' in params: + body_params = params['mapping_identity'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2267,22 +445,22 @@ def get_providers_file_id(self, providers_file_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersFile', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_providers_file_id(self, providers_file_id_params, providers_file_id, **kwargs): + def create_mapping_identity_0(self, mapping_identity, **kwargs): """ - Modify the file provider. + Manually set or modify a mapping between two personae. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2290,18 +468,19 @@ def update_providers_file_id(self, providers_file_id_params, providers_file_id, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_providers_file_id(providers_file_id_params, providers_file_id, callback=callback_function) + >>> thread = api.create_mapping_identity_0(mapping_identity, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersFileIdParams providers_file_id_params: (required) - :param str providers_file_id: Modify the file provider. (required) - :return: None + :param Empty mapping_identity: (required) + :param str type: Desired mapping target to fetch/generate. + :param str zone: Optional zone. + :return: MappingIdentities If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_file_id_params', 'providers_file_id'] + all_params = ['mapping_identity', 'type', 'zone'] all_params.append('callback') params = locals() @@ -2309,35 +488,33 @@ def update_providers_file_id(self, providers_file_id_params, providers_file_id, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_providers_file_id" % key + " to method create_mapping_identity_0" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_file_id_params' is set - if ('providers_file_id_params' not in params) or (params['providers_file_id_params'] is None): - raise ValueError("Missing the required parameter `providers_file_id_params` when calling `update_providers_file_id`") - # verify the required parameter 'providers_file_id' is set - if ('providers_file_id' not in params) or (params['providers_file_id'] is None): - raise ValueError("Missing the required parameter `providers_file_id` when calling `update_providers_file_id`") + # verify the required parameter 'mapping_identity' is set + if ('mapping_identity' not in params) or (params['mapping_identity'] is None): + raise ValueError("Missing the required parameter `mapping_identity` when calling `create_mapping_identity_0`") - resource_path = '/platform/1/auth/providers/file/{ProvidersFileId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/mapping/identities/{MappingIdentityId}'.replace('{format}', 'json') path_params = {} - if 'providers_file_id' in params: - path_params['ProvidersFileId'] = params['providers_file_id'] query_params = {} + if 'type' in params: + query_params['type'] = params['type'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_file_id_params' in params: - body_params = params['providers_file_id_params'] + if 'mapping_identity' in params: + body_params = params['mapping_identity'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2352,22 +529,22 @@ def update_providers_file_id(self, providers_file_id_params, providers_file_id, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='MappingIdentities', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_providers_file_id(self, providers_file_id, **kwargs): + def create_providers_ads_item(self, providers_ads_item, **kwargs): """ - Delete the file provider. + Create a new ADS provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2375,17 +552,17 @@ def delete_providers_file_id(self, providers_file_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_providers_file_id(providers_file_id, callback=callback_function) + >>> thread = api.create_providers_ads_item(providers_ads_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_file_id: Delete the file provider. (required) - :return: None + :param ProvidersAdsItem providers_ads_item: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_file_id'] + all_params = ['providers_ads_item'] all_params.append('callback') params = locals() @@ -2393,30 +570,29 @@ def delete_providers_file_id(self, providers_file_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_providers_file_id" % key + " to method create_providers_ads_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_file_id' is set - if ('providers_file_id' not in params) or (params['providers_file_id'] is None): - raise ValueError("Missing the required parameter `providers_file_id` when calling `delete_providers_file_id`") + # verify the required parameter 'providers_ads_item' is set + if ('providers_ads_item' not in params) or (params['providers_ads_item'] is None): + raise ValueError("Missing the required parameter `providers_ads_item` when calling `create_providers_ads_item`") - resource_path = '/platform/1/auth/providers/file/{ProvidersFileId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/auth/providers/ads'.replace('{format}', 'json') path_params = {} - if 'providers_file_id' in params: - path_params['ProvidersFileId'] = params['providers_file_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'providers_ads_item' in params: + body_params = params['providers_ads_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2431,22 +607,22 @@ def delete_providers_file_id(self, providers_file_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_local(self, **kwargs): + def create_providers_file_item(self, providers_file_item, **kwargs): """ - List all local providers. + Create a new file provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2454,17 +630,17 @@ def get_providers_local(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_local(callback=callback_function) + >>> thread = api.create_providers_file_item(providers_file_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersLocal + :param ProvidersFileIdParams providers_file_item: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['scope'] + all_params = ['providers_file_item'] all_params.append('callback') params = locals() @@ -2472,27 +648,29 @@ def get_providers_local(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_local" % key + " to method create_providers_file_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'providers_file_item' is set + if ('providers_file_item' not in params) or (params['providers_file_item'] is None): + raise ValueError("Missing the required parameter `providers_file_item` when calling `create_providers_file_item`") - resource_path = '/platform/1/auth/providers/local'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/providers/file'.replace('{format}', 'json') path_params = {} query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'providers_file_item' in params: + body_params = params['providers_file_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2507,22 +685,22 @@ def get_providers_local(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersLocal', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_local_id(self, providers_local_id, **kwargs): + def create_providers_krb5_item(self, providers_krb5_item, **kwargs): """ - Retrieve the local provider. + Create a new KRB5 provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2530,18 +708,17 @@ def get_providers_local_id(self, providers_local_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_local_id(providers_local_id, callback=callback_function) + >>> thread = api.create_providers_krb5_item(providers_krb5_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_local_id: Retrieve the local provider. (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersLocal + :param ProvidersKrb5Item providers_krb5_item: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_local_id', 'scope'] + all_params = ['providers_krb5_item'] all_params.append('callback') params = locals() @@ -2549,32 +726,29 @@ def get_providers_local_id(self, providers_local_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_local_id" % key + " to method create_providers_krb5_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_local_id' is set - if ('providers_local_id' not in params) or (params['providers_local_id'] is None): - raise ValueError("Missing the required parameter `providers_local_id` when calling `get_providers_local_id`") + # verify the required parameter 'providers_krb5_item' is set + if ('providers_krb5_item' not in params) or (params['providers_krb5_item'] is None): + raise ValueError("Missing the required parameter `providers_krb5_item` when calling `create_providers_krb5_item`") - resource_path = '/platform/1/auth/providers/local/{ProvidersLocalId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/providers/krb5'.replace('{format}', 'json') path_params = {} - if 'providers_local_id' in params: - path_params['ProvidersLocalId'] = params['providers_local_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'providers_krb5_item' in params: + body_params = params['providers_krb5_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2589,22 +763,22 @@ def get_providers_local_id(self, providers_local_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersLocal', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_providers_local_id(self, providers_local_id_params, providers_local_id, **kwargs): + def create_providers_ldap_item(self, providers_ldap_item, **kwargs): """ - Modify the local provider. + Create a new LDAP provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2612,18 +786,17 @@ def update_providers_local_id(self, providers_local_id_params, providers_local_i >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_providers_local_id(providers_local_id_params, providers_local_id, callback=callback_function) + >>> thread = api.create_providers_ldap_item(providers_ldap_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersLocalIdParams providers_local_id_params: (required) - :param str providers_local_id: Modify the local provider. (required) - :return: None + :param ProvidersLdapItem providers_ldap_item: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_local_id_params', 'providers_local_id'] + all_params = ['providers_ldap_item'] all_params.append('callback') params = locals() @@ -2631,35 +804,29 @@ def update_providers_local_id(self, providers_local_id_params, providers_local_i if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_providers_local_id" % key + " to method create_providers_ldap_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_local_id_params' is set - if ('providers_local_id_params' not in params) or (params['providers_local_id_params'] is None): - raise ValueError("Missing the required parameter `providers_local_id_params` when calling `update_providers_local_id`") - # verify the required parameter 'providers_local_id' is set - if ('providers_local_id' not in params) or (params['providers_local_id'] is None): - raise ValueError("Missing the required parameter `providers_local_id` when calling `update_providers_local_id`") + # verify the required parameter 'providers_ldap_item' is set + if ('providers_ldap_item' not in params) or (params['providers_ldap_item'] is None): + raise ValueError("Missing the required parameter `providers_ldap_item` when calling `create_providers_ldap_item`") - resource_path = '/platform/1/auth/providers/local/{ProvidersLocalId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/auth/providers/ldap'.replace('{format}', 'json') path_params = {} - if 'providers_local_id' in params: - path_params['ProvidersLocalId'] = params['providers_local_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_local_id_params' in params: - body_params = params['providers_local_id_params'] + if 'providers_ldap_item' in params: + body_params = params['providers_ldap_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2674,22 +841,22 @@ def update_providers_local_id(self, providers_local_id_params, providers_local_i # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_providers_local_id(self, providers_local_id, **kwargs): + def create_providers_nis_item(self, providers_nis_item, **kwargs): """ - Delete the local provider. + Create a new NIS provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2697,17 +864,17 @@ def delete_providers_local_id(self, providers_local_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_providers_local_id(providers_local_id, callback=callback_function) + >>> thread = api.create_providers_nis_item(providers_nis_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_local_id: Delete the local provider. (required) - :return: None + :param ProvidersNisItem providers_nis_item: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_local_id'] + all_params = ['providers_nis_item'] all_params.append('callback') params = locals() @@ -2715,30 +882,29 @@ def delete_providers_local_id(self, providers_local_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_providers_local_id" % key + " to method create_providers_nis_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_local_id' is set - if ('providers_local_id' not in params) or (params['providers_local_id'] is None): - raise ValueError("Missing the required parameter `providers_local_id` when calling `delete_providers_local_id`") + # verify the required parameter 'providers_nis_item' is set + if ('providers_nis_item' not in params) or (params['providers_nis_item'] is None): + raise ValueError("Missing the required parameter `providers_nis_item` when calling `create_providers_nis_item`") - resource_path = '/platform/1/auth/providers/local/{ProvidersLocalId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/auth/providers/nis'.replace('{format}', 'json') path_params = {} - if 'providers_local_id' in params: - path_params['ProvidersLocalId'] = params['providers_local_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'providers_nis_item' in params: + body_params = params['providers_nis_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2753,22 +919,22 @@ def delete_providers_local_id(self, providers_local_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_auth_roles(self, **kwargs): + def create_settings_krb5_domain(self, settings_krb5_domain, **kwargs): """ - List all roles. + Create a new krb5 domain. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2776,19 +942,17 @@ def list_auth_roles(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_auth_roles(callback=callback_function) + >>> thread = api.create_settings_krb5_domain(settings_krb5_domain, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param bool resolve_names: Filter users by zone. - :param str dir: The direction of the sort. - :return: AuthRolesExtended + :param SettingsKrb5DomainCreateParams settings_krb5_domain: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'resolve_names', 'dir'] + all_params = ['settings_krb5_domain'] all_params.append('callback') params = locals() @@ -2796,31 +960,29 @@ def list_auth_roles(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_auth_roles" % key + " to method create_settings_krb5_domain" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'settings_krb5_domain' is set + if ('settings_krb5_domain' not in params) or (params['settings_krb5_domain'] is None): + raise ValueError("Missing the required parameter `settings_krb5_domain` when calling `create_settings_krb5_domain`") - resource_path = '/platform/1/auth/roles'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/settings/krb5/domains'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'settings_krb5_domain' in params: + body_params = params['settings_krb5_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2835,22 +997,22 @@ def list_auth_roles(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuthRolesExtended', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_auth_role(self, auth_role, **kwargs): + def create_settings_krb5_realm(self, settings_krb5_realm, **kwargs): """ - Create a new role. + Create a new krb5 realm. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2858,17 +1020,17 @@ def create_auth_role(self, auth_role, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_auth_role(auth_role, callback=callback_function) + >>> thread = api.create_settings_krb5_realm(settings_krb5_realm, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AuthRole auth_role: (required) + :param SettingsKrb5RealmCreateParams settings_krb5_realm: (required) :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_role'] + all_params = ['settings_krb5_realm'] all_params.append('callback') params = locals() @@ -2876,30 +1038,29 @@ def create_auth_role(self, auth_role, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_auth_role" % key + " to method create_settings_krb5_realm" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_role' is set - if ('auth_role' not in params) or (params['auth_role'] is None): - raise ValueError("Missing the required parameter `auth_role` when calling `create_auth_role`") + # verify the required parameter 'settings_krb5_realm' is set + if ('settings_krb5_realm' not in params) or (params['settings_krb5_realm'] is None): + raise ValueError("Missing the required parameter `settings_krb5_realm` when calling `create_settings_krb5_realm`") - resource_path = '/platform/1/auth/roles'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/settings/krb5/realms'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'auth_role' in params: - body_params = params['auth_role'] + if 'settings_krb5_realm' in params: + body_params = params['settings_krb5_realm'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2914,22 +1075,22 @@ def create_auth_role(self, auth_role, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_auth_role(self, auth_role_id, **kwargs): + def delete_auth_group(self, auth_group_id, **kwargs): """ - Retrieve the role information. + Delete the group. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2937,18 +1098,20 @@ def get_auth_role(self, auth_role_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_auth_role(auth_role_id, callback=callback_function) + >>> thread = api.delete_auth_group(auth_group_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str auth_role_id: Retrieve the role information. (required) - :param bool resolve_names: Resolve names of personas. - :return: AuthRoles + :param str auth_group_id: Delete the group. (required) + :param bool cached: If true, flush the group from the cache. + :param str zone: Filter groups by zone. + :param str provider: Filter groups by provider. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_role_id', 'resolve_names'] + all_params = ['auth_group_id', 'cached', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -2956,30 +1119,33 @@ def get_auth_role(self, auth_role_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_auth_role" % key + " to method delete_auth_group" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_role_id' is set - if ('auth_role_id' not in params) or (params['auth_role_id'] is None): - raise ValueError("Missing the required parameter `auth_role_id` when calling `get_auth_role`") + # verify the required parameter 'auth_group_id' is set + if ('auth_group_id' not in params) or (params['auth_group_id'] is None): + raise ValueError("Missing the required parameter `auth_group_id` when calling `delete_auth_group`") - resource_path = '/platform/1/auth/roles/{AuthRoleId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/groups/{AuthGroupId}'.replace('{format}', 'json') path_params = {} - if 'auth_role_id' in params: - path_params['AuthRoleId'] = params['auth_role_id'] + if 'auth_group_id' in params: + path_params['AuthGroupId'] = params['auth_group_id'] query_params = {} - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] + if 'cached' in params: + query_params['cached'] = params['cached'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2996,22 +1162,22 @@ def get_auth_role(self, auth_role_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuthRoles', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_auth_role(self, auth_role, auth_role_id, **kwargs): + def delete_auth_groups(self, **kwargs): """ - Modify the role. + Flush the groups cache. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3019,18 +1185,19 @@ def update_auth_role(self, auth_role, auth_role_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_auth_role(auth_role, auth_role_id, callback=callback_function) + >>> thread = api.delete_auth_groups(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AuthRole auth_role: (required) - :param str auth_role_id: Modify the role. (required) + :param bool cached: If true, only flush cached objects. + :param str zone: Filter groups by zone. + :param str provider: Filter groups by provider. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_role', 'auth_role_id'] + all_params = ['cached', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -3038,35 +1205,30 @@ def update_auth_role(self, auth_role, auth_role_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_auth_role" % key + " to method delete_auth_groups" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_role' is set - if ('auth_role' not in params) or (params['auth_role'] is None): - raise ValueError("Missing the required parameter `auth_role` when calling `update_auth_role`") - # verify the required parameter 'auth_role_id' is set - if ('auth_role_id' not in params) or (params['auth_role_id'] is None): - raise ValueError("Missing the required parameter `auth_role_id` when calling `update_auth_role`") - resource_path = '/platform/1/auth/roles/{AuthRoleId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/groups'.replace('{format}', 'json') path_params = {} - if 'auth_role_id' in params: - path_params['AuthRoleId'] = params['auth_role_id'] query_params = {} + if 'cached' in params: + query_params['cached'] = params['cached'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'auth_role' in params: - body_params = params['auth_role'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3081,13 +1243,13 @@ def update_auth_role(self, auth_role, auth_role_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) @@ -3131,9 +1293,8 @@ def delete_auth_role(self, auth_role_id, **kwargs): if ('auth_role_id' not in params) or (params['auth_role_id'] is None): raise ValueError("Missing the required parameter `auth_role_id` when calling `delete_auth_role`") - resource_path = '/platform/1/auth/roles/{AuthRoleId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/roles/{AuthRoleId}'.replace('{format}', 'json') path_params = {} if 'auth_role_id' in params: path_params['AuthRoleId'] = params['auth_role_id'] @@ -3142,8 +1303,8 @@ def delete_auth_role(self, auth_role_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3160,22 +1321,22 @@ def delete_auth_role(self, auth_role_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_roles_role_members(self, role, **kwargs): + def delete_auth_user(self, auth_user_id, **kwargs): """ - List all the members of the role. + Delete the user. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3183,18 +1344,20 @@ def list_roles_role_members(self, role, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_roles_role_members(role, callback=callback_function) + >>> thread = api.delete_auth_user(auth_user_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str role: (required) - :param bool resolve_names: Resolve names of personas. - :return: GroupsGroupMembers + :param str auth_user_id: Delete the user. (required) + :param bool cached: If true, flush the user from the cache. + :param str zone: Filter users by zone. + :param str provider: Filter users by provider. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['role', 'resolve_names'] + all_params = ['auth_user_id', 'cached', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -3202,30 +1365,33 @@ def list_roles_role_members(self, role, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_roles_role_members" % key + " to method delete_auth_user" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'role' is set - if ('role' not in params) or (params['role'] is None): - raise ValueError("Missing the required parameter `role` when calling `list_roles_role_members`") + # verify the required parameter 'auth_user_id' is set + if ('auth_user_id' not in params) or (params['auth_user_id'] is None): + raise ValueError("Missing the required parameter `auth_user_id` when calling `delete_auth_user`") - resource_path = '/platform/1/auth/roles/{Role}/members'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/users/{AuthUserId}'.replace('{format}', 'json') path_params = {} - if 'role' in params: - path_params['Role'] = params['role'] + if 'auth_user_id' in params: + path_params['AuthUserId'] = params['auth_user_id'] query_params = {} - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] + if 'cached' in params: + query_params['cached'] = params['cached'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3242,22 +1408,22 @@ def list_roles_role_members(self, role, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='GroupsGroupMembers', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_roles_role_member(self, roles_role_member, role, **kwargs): + def delete_auth_users(self, **kwargs): """ - Add a member to the role. + Flush the users cache. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3265,18 +1431,19 @@ def create_roles_role_member(self, roles_role_member, role, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_roles_role_member(roles_role_member, role, callback=callback_function) + >>> thread = api.delete_auth_users(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param GroupsGroupMember roles_role_member: (required) - :param str role: (required) - :return: CreateResponse + :param bool cached: If true, only flush cached objects. + :param str zone: Filter users by zone. + :param str provider: Filter users by provider. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['roles_role_member', 'role'] + all_params = ['cached', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -3284,35 +1451,30 @@ def create_roles_role_member(self, roles_role_member, role, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_roles_role_member" % key + " to method delete_auth_users" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'roles_role_member' is set - if ('roles_role_member' not in params) or (params['roles_role_member'] is None): - raise ValueError("Missing the required parameter `roles_role_member` when calling `create_roles_role_member`") - # verify the required parameter 'role' is set - if ('role' not in params) or (params['role'] is None): - raise ValueError("Missing the required parameter `role` when calling `create_roles_role_member`") - resource_path = '/platform/1/auth/roles/{Role}/members'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/users'.replace('{format}', 'json') path_params = {} - if 'role' in params: - path_params['Role'] = params['role'] query_params = {} + if 'cached' in params: + query_params['cached'] = params['cached'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'roles_role_member' in params: - body_params = params['roles_role_member'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3327,22 +1489,22 @@ def create_roles_role_member(self, roles_role_member, role, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_roles_role_member(self, roles_role_member_id, role, **kwargs): + def delete_mapping_identities(self, **kwargs): """ - Remove a member from the role. + Flush the entire idmap cache. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3350,18 +1512,19 @@ def delete_roles_role_member(self, roles_role_member_id, role, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_roles_role_member(roles_role_member_id, role, callback=callback_function) + >>> thread = api.delete_mapping_identities(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str roles_role_member_id: Remove a member from the role. (required) - :param str role: (required) + :param str filter: Filter to apply when deleting identity mappings. + :param str zone: Optional zone. + :param bool remove: Delete mapping instead of flush mapping cache. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['roles_role_member_id', 'role'] + all_params = ['filter', 'zone', 'remove'] all_params.append('callback') params = locals() @@ -3369,33 +1532,28 @@ def delete_roles_role_member(self, roles_role_member_id, role, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_roles_role_member" % key + " to method delete_mapping_identities" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'roles_role_member_id' is set - if ('roles_role_member_id' not in params) or (params['roles_role_member_id'] is None): - raise ValueError("Missing the required parameter `roles_role_member_id` when calling `delete_roles_role_member`") - # verify the required parameter 'role' is set - if ('role' not in params) or (params['role'] is None): - raise ValueError("Missing the required parameter `role` when calling `delete_roles_role_member`") - resource_path = '/platform/1/auth/roles/{Role}/members/{RolesRoleMemberId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/mapping/identities'.replace('{format}', 'json') path_params = {} - if 'roles_role_member_id' in params: - path_params['RolesRoleMemberId'] = params['roles_role_member_id'] - if 'role' in params: - path_params['Role'] = params['role'] query_params = {} + if 'filter' in params: + query_params['filter'] = params['filter'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'remove' in params: + query_params['remove'] = params['remove'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3412,22 +1570,22 @@ def delete_roles_role_member(self, roles_role_member_id, role, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_roles_role_privileges(self, role, **kwargs): + def delete_mapping_identity(self, mapping_identity_id, **kwargs): """ - List all privileges in the role. + Flush the entire idmap cache. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3435,17 +1593,21 @@ def list_roles_role_privileges(self, role, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_roles_role_privileges(role, callback=callback_function) + >>> thread = api.delete_mapping_identity(mapping_identity_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str role: (required) - :return: RolesRolePrivileges + :param str mapping_identity_id: Flush the entire idmap cache. (required) + :param str zone: Optional zone. + :param bool _2way: Delete the bi-directional mapping from source to target and target to source. + :param str target: Target identity persona. + :param bool remove: Delete mapping instead of flush mapping from cache. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['role'] + all_params = ['mapping_identity_id', 'zone', '_2way', 'target', 'remove'] all_params.append('callback') params = locals() @@ -3453,28 +1615,35 @@ def list_roles_role_privileges(self, role, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_roles_role_privileges" % key + " to method delete_mapping_identity" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'role' is set - if ('role' not in params) or (params['role'] is None): - raise ValueError("Missing the required parameter `role` when calling `list_roles_role_privileges`") + # verify the required parameter 'mapping_identity_id' is set + if ('mapping_identity_id' not in params) or (params['mapping_identity_id'] is None): + raise ValueError("Missing the required parameter `mapping_identity_id` when calling `delete_mapping_identity`") - resource_path = '/platform/1/auth/roles/{Role}/privileges'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/mapping/identities/{MappingIdentityId}'.replace('{format}', 'json') path_params = {} - if 'role' in params: - path_params['Role'] = params['role'] + if 'mapping_identity_id' in params: + path_params['MappingIdentityId'] = params['mapping_identity_id'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + if '_2way' in params: + query_params['2way'] = params['_2way'] + if 'target' in params: + query_params['target'] = params['target'] + if 'remove' in params: + query_params['remove'] = params['remove'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3491,22 +1660,22 @@ def list_roles_role_privileges(self, role, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='RolesRolePrivileges', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_roles_role_privilege(self, roles_role_privilege, role, **kwargs): + def delete_providers_ads_by_id(self, providers_ads_id, **kwargs): """ - Add a privilege to the role. + Delete the ADS provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3514,18 +1683,17 @@ def create_roles_role_privilege(self, roles_role_privilege, role, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_roles_role_privilege(roles_role_privilege, role, callback=callback_function) + >>> thread = api.delete_providers_ads_by_id(providers_ads_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AuthIdNtokenPrivilegeItem roles_role_privilege: (required) - :param str role: (required) - :return: CreateResponse + :param str providers_ads_id: Delete the ADS provider. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['roles_role_privilege', 'role'] + all_params = ['providers_ads_id'] all_params.append('callback') params = locals() @@ -3533,35 +1701,29 @@ def create_roles_role_privilege(self, roles_role_privilege, role, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_roles_role_privilege" % key + " to method delete_providers_ads_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'roles_role_privilege' is set - if ('roles_role_privilege' not in params) or (params['roles_role_privilege'] is None): - raise ValueError("Missing the required parameter `roles_role_privilege` when calling `create_roles_role_privilege`") - # verify the required parameter 'role' is set - if ('role' not in params) or (params['role'] is None): - raise ValueError("Missing the required parameter `role` when calling `create_roles_role_privilege`") + # verify the required parameter 'providers_ads_id' is set + if ('providers_ads_id' not in params) or (params['providers_ads_id'] is None): + raise ValueError("Missing the required parameter `providers_ads_id` when calling `delete_providers_ads_by_id`") - resource_path = '/platform/1/auth/roles/{Role}/privileges'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/auth/providers/ads/{ProvidersAdsId}'.replace('{format}', 'json') path_params = {} - if 'role' in params: - path_params['Role'] = params['role'] + if 'providers_ads_id' in params: + path_params['ProvidersAdsId'] = params['providers_ads_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'roles_role_privilege' in params: - body_params = params['roles_role_privilege'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3576,22 +1738,22 @@ def create_roles_role_privilege(self, roles_role_privilege, role, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_roles_role_privilege(self, roles_role_privilege_id, role, **kwargs): + def delete_providers_file_by_id(self, providers_file_id, **kwargs): """ - Remove a privilege from a role. + Delete the file provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3599,18 +1761,17 @@ def delete_roles_role_privilege(self, roles_role_privilege_id, role, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_roles_role_privilege(roles_role_privilege_id, role, callback=callback_function) + >>> thread = api.delete_providers_file_by_id(providers_file_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str roles_role_privilege_id: Remove a privilege from a role. (required) - :param str role: (required) + :param str providers_file_id: Delete the file provider. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['roles_role_privilege_id', 'role'] + all_params = ['providers_file_id'] all_params.append('callback') params = locals() @@ -3618,33 +1779,27 @@ def delete_roles_role_privilege(self, roles_role_privilege_id, role, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_roles_role_privilege" % key + " to method delete_providers_file_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'roles_role_privilege_id' is set - if ('roles_role_privilege_id' not in params) or (params['roles_role_privilege_id'] is None): - raise ValueError("Missing the required parameter `roles_role_privilege_id` when calling `delete_roles_role_privilege`") - # verify the required parameter 'role' is set - if ('role' not in params) or (params['role'] is None): - raise ValueError("Missing the required parameter `role` when calling `delete_roles_role_privilege`") + # verify the required parameter 'providers_file_id' is set + if ('providers_file_id' not in params) or (params['providers_file_id'] is None): + raise ValueError("Missing the required parameter `providers_file_id` when calling `delete_providers_file_by_id`") - resource_path = '/platform/1/auth/roles/{Role}/privileges/{RolesRolePrivilegeId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/providers/file/{ProvidersFileId}'.replace('{format}', 'json') path_params = {} - if 'roles_role_privilege_id' in params: - path_params['RolesRolePrivilegeId'] = params['roles_role_privilege_id'] - if 'role' in params: - path_params['Role'] = params['role'] + if 'providers_file_id' in params: + path_params['ProvidersFileId'] = params['providers_file_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3661,22 +1816,22 @@ def delete_roles_role_privilege(self, roles_role_privilege_id, role, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_global(self, **kwargs): + def delete_providers_krb5_by_id(self, providers_krb5_id, **kwargs): """ - Retrieve the global settings. + Delete the KRB5 provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3684,18 +1839,17 @@ def get_settings_global(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_settings_global(callback=callback_function) + >>> thread = api.delete_providers_krb5_by_id(providers_krb5_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :param str zone: Zone which contains any per-zone settings. - :return: SettingsGlobal + :param str providers_krb5_id: Delete the KRB5 provider. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['scope', 'zone'] + all_params = ['providers_krb5_id'] all_params.append('callback') params = locals() @@ -3703,27 +1857,27 @@ def get_settings_global(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_settings_global" % key + " to method delete_providers_krb5_by_id" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'providers_krb5_id' is set + if ('providers_krb5_id' not in params) or (params['providers_krb5_id'] is None): + raise ValueError("Missing the required parameter `providers_krb5_id` when calling `delete_providers_krb5_by_id`") - resource_path = '/platform/1/auth/settings/global'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/providers/krb5/{ProvidersKrb5Id}'.replace('{format}', 'json') path_params = {} + if 'providers_krb5_id' in params: + path_params['ProvidersKrb5Id'] = params['providers_krb5_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3740,22 +1894,22 @@ def get_settings_global(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsGlobal', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_settings_global(self, settings_global, **kwargs): + def delete_providers_ldap_by_id(self, providers_ldap_id, **kwargs): """ - Modify the global settings. + Delete the LDAP provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3763,18 +1917,17 @@ def update_settings_global(self, settings_global, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_settings_global(settings_global, callback=callback_function) + >>> thread = api.delete_providers_ldap_by_id(providers_ldap_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsGlobalGlobalSettings settings_global: (required) - :param str zone: Zone which contains any per-zone settings. + :param str providers_ldap_id: Delete the LDAP provider. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_global', 'zone'] + all_params = ['providers_ldap_id'] all_params.append('callback') params = locals() @@ -3782,32 +1935,29 @@ def update_settings_global(self, settings_global, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_settings_global" % key + " to method delete_providers_ldap_by_id" % key ) params[key] = val - del params['kwargs'] - - # verify the required parameter 'settings_global' is set - if ('settings_global' not in params) or (params['settings_global'] is None): - raise ValueError("Missing the required parameter `settings_global` when calling `update_settings_global`") + del params['kwargs'] - resource_path = '/platform/1/auth/settings/global'.replace('{format}', 'json') - method = 'PUT' + # verify the required parameter 'providers_ldap_id' is set + if ('providers_ldap_id' not in params) or (params['providers_ldap_id'] is None): + raise ValueError("Missing the required parameter `providers_ldap_id` when calling `delete_providers_ldap_by_id`") + + resource_path = '/platform/3/auth/providers/ldap/{ProvidersLdapId}'.replace('{format}', 'json') path_params = {} + if 'providers_ldap_id' in params: + path_params['ProvidersLdapId'] = params['providers_ldap_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_global' in params: - body_params = params['settings_global'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3822,22 +1972,22 @@ def update_settings_global(self, settings_global, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_krb5_defaults(self, **kwargs): + def delete_providers_local_by_id(self, providers_local_id, **kwargs): """ - Retrieve the krb5 settings. + Delete the local provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3845,16 +1995,17 @@ def get_settings_krb5_defaults(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_settings_krb5_defaults(callback=callback_function) + >>> thread = api.delete_providers_local_by_id(providers_local_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SettingsKrb5Defaults + :param str providers_local_id: Delete the local provider. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['providers_local_id'] all_params.append('callback') params = locals() @@ -3862,23 +2013,27 @@ def get_settings_krb5_defaults(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_settings_krb5_defaults" % key + " to method delete_providers_local_by_id" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'providers_local_id' is set + if ('providers_local_id' not in params) or (params['providers_local_id'] is None): + raise ValueError("Missing the required parameter `providers_local_id` when calling `delete_providers_local_by_id`") - resource_path = '/platform/1/auth/settings/krb5/defaults'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/providers/local/{ProvidersLocalId}'.replace('{format}', 'json') path_params = {} + if 'providers_local_id' in params: + path_params['ProvidersLocalId'] = params['providers_local_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3895,22 +2050,22 @@ def get_settings_krb5_defaults(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsKrb5Defaults', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_settings_krb5_defaults(self, settings_krb5_defaults, **kwargs): + def delete_providers_nis_by_id(self, providers_nis_id, **kwargs): """ - Modify the krb5 settings. + Delete the NIS provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3918,17 +2073,17 @@ def update_settings_krb5_defaults(self, settings_krb5_defaults, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_settings_krb5_defaults(settings_krb5_defaults, callback=callback_function) + >>> thread = api.delete_providers_nis_by_id(providers_nis_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsKrb5DefaultsKrb5Settings settings_krb5_defaults: (required) + :param str providers_nis_id: Delete the NIS provider. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_defaults'] + all_params = ['providers_nis_id'] all_params.append('callback') params = locals() @@ -3936,30 +2091,29 @@ def update_settings_krb5_defaults(self, settings_krb5_defaults, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_settings_krb5_defaults" % key + " to method delete_providers_nis_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_defaults' is set - if ('settings_krb5_defaults' not in params) or (params['settings_krb5_defaults'] is None): - raise ValueError("Missing the required parameter `settings_krb5_defaults` when calling `update_settings_krb5_defaults`") + # verify the required parameter 'providers_nis_id' is set + if ('providers_nis_id' not in params) or (params['providers_nis_id'] is None): + raise ValueError("Missing the required parameter `providers_nis_id` when calling `delete_providers_nis_by_id`") - resource_path = '/platform/1/auth/settings/krb5/defaults'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/auth/providers/nis/{ProvidersNisId}'.replace('{format}', 'json') path_params = {} + if 'providers_nis_id' in params: + path_params['ProvidersNisId'] = params['providers_nis_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_krb5_defaults' in params: - body_params = params['settings_krb5_defaults'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3974,22 +2128,22 @@ def update_settings_krb5_defaults(self, settings_krb5_defaults, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_settings_krb5_domains(self, **kwargs): + def delete_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): """ - Retrieve the krb5 settings for domains. + Remove a krb5 domain. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3997,16 +2151,17 @@ def list_settings_krb5_domains(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_settings_krb5_domains(callback=callback_function) + >>> thread = api.delete_settings_krb5_domain(settings_krb5_domain_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SettingsKrb5Domains + :param str settings_krb5_domain_id: Remove a krb5 domain. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['settings_krb5_domain_id'] all_params.append('callback') params = locals() @@ -4014,23 +2169,27 @@ def list_settings_krb5_domains(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_settings_krb5_domains" % key + " to method delete_settings_krb5_domain" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'settings_krb5_domain_id' is set + if ('settings_krb5_domain_id' not in params) or (params['settings_krb5_domain_id'] is None): + raise ValueError("Missing the required parameter `settings_krb5_domain_id` when calling `delete_settings_krb5_domain`") - resource_path = '/platform/1/auth/settings/krb5/domains'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId}'.replace('{format}', 'json') path_params = {} + if 'settings_krb5_domain_id' in params: + path_params['SettingsKrb5DomainId'] = params['settings_krb5_domain_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4047,22 +2206,22 @@ def list_settings_krb5_domains(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsKrb5Domains', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_settings_krb5_domain(self, settings_krb5_domain, **kwargs): + def delete_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): """ - Create a new krb5 domain. + Remove a realm. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4070,17 +2229,17 @@ def create_settings_krb5_domain(self, settings_krb5_domain, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_settings_krb5_domain(settings_krb5_domain, callback=callback_function) + >>> thread = api.delete_settings_krb5_realm(settings_krb5_realm_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsKrb5DomainCreateParams settings_krb5_domain: (required) - :return: CreateResponse + :param str settings_krb5_realm_id: Remove a realm. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_domain'] + all_params = ['settings_krb5_realm_id'] all_params.append('callback') params = locals() @@ -4088,30 +2247,29 @@ def create_settings_krb5_domain(self, settings_krb5_domain, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_settings_krb5_domain" % key + " to method delete_settings_krb5_realm" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_domain' is set - if ('settings_krb5_domain' not in params) or (params['settings_krb5_domain'] is None): - raise ValueError("Missing the required parameter `settings_krb5_domain` when calling `create_settings_krb5_domain`") + # verify the required parameter 'settings_krb5_realm_id' is set + if ('settings_krb5_realm_id' not in params) or (params['settings_krb5_realm_id'] is None): + raise ValueError("Missing the required parameter `settings_krb5_realm_id` when calling `delete_settings_krb5_realm`") - resource_path = '/platform/1/auth/settings/krb5/domains'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId}'.replace('{format}', 'json') path_params = {} + if 'settings_krb5_realm_id' in params: + path_params['SettingsKrb5RealmId'] = params['settings_krb5_realm_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_krb5_domain' in params: - body_params = params['settings_krb5_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4126,22 +2284,22 @@ def create_settings_krb5_domain(self, settings_krb5_domain, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): + def get_auth_access_user(self, auth_access_user, **kwargs): """ - View the krb5 domain settings. + Determine user's access rights to a file This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4149,17 +2307,20 @@ def get_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_settings_krb5_domain(settings_krb5_domain_id, callback=callback_function) + >>> thread = api.get_auth_access_user(auth_access_user, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str settings_krb5_domain_id: View the krb5 domain settings. (required) - :return: SettingsKrb5Domains + :param str auth_access_user: Determine user's access rights to a file (required) + :param str path: Path to the file. Must be within /ifs. + :param str zone: Access zone the user is in. + :param bool numeric: Show the user's numeric identifier. + :return: AuthAccess If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_domain_id'] + all_params = ['auth_access_user', 'path', 'zone', 'numeric'] all_params.append('callback') params = locals() @@ -4167,28 +2328,33 @@ def get_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_settings_krb5_domain" % key + " to method get_auth_access_user" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_domain_id' is set - if ('settings_krb5_domain_id' not in params) or (params['settings_krb5_domain_id'] is None): - raise ValueError("Missing the required parameter `settings_krb5_domain_id` when calling `get_settings_krb5_domain`") + # verify the required parameter 'auth_access_user' is set + if ('auth_access_user' not in params) or (params['auth_access_user'] is None): + raise ValueError("Missing the required parameter `auth_access_user` when calling `get_auth_access_user`") - resource_path = '/platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/access/{AuthAccessUser}'.replace('{format}', 'json') path_params = {} - if 'settings_krb5_domain_id' in params: - path_params['SettingsKrb5DomainId'] = params['settings_krb5_domain_id'] + if 'auth_access_user' in params: + path_params['AuthAccessUser'] = params['auth_access_user'] query_params = {} + if 'path' in params: + query_params['path'] = params['path'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'numeric' in params: + query_params['numeric'] = params['numeric'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4205,22 +2371,22 @@ def get_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsKrb5Domains', + files=local_var_files, + response_type='AuthAccess', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_settings_krb5_domain(self, settings_krb5_domain, settings_krb5_domain_id, **kwargs): + def get_auth_group(self, auth_group_id, **kwargs): """ - Modify the krb5 domain settings. + Retrieve the group information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4228,18 +2394,21 @@ def update_settings_krb5_domain(self, settings_krb5_domain, settings_krb5_domain >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_settings_krb5_domain(settings_krb5_domain, settings_krb5_domain_id, callback=callback_function) + >>> thread = api.get_auth_group(auth_group_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsKrb5Domain settings_krb5_domain: (required) - :param str settings_krb5_domain_id: Modify the krb5 domain settings. (required) - :return: None + :param str auth_group_id: Retrieve the group information. (required) + :param bool cached: If true, only return cached objects. + :param bool resolve_names: Resolve names of personas. + :param str zone: Filter groups by zone. + :param str provider: Filter groups by provider. + :return: AuthGroups If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_domain', 'settings_krb5_domain_id'] + all_params = ['auth_group_id', 'cached', 'resolve_names', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -4247,35 +2416,37 @@ def update_settings_krb5_domain(self, settings_krb5_domain, settings_krb5_domain if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_settings_krb5_domain" % key + " to method get_auth_group" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_domain' is set - if ('settings_krb5_domain' not in params) or (params['settings_krb5_domain'] is None): - raise ValueError("Missing the required parameter `settings_krb5_domain` when calling `update_settings_krb5_domain`") - # verify the required parameter 'settings_krb5_domain_id' is set - if ('settings_krb5_domain_id' not in params) or (params['settings_krb5_domain_id'] is None): - raise ValueError("Missing the required parameter `settings_krb5_domain_id` when calling `update_settings_krb5_domain`") + # verify the required parameter 'auth_group_id' is set + if ('auth_group_id' not in params) or (params['auth_group_id'] is None): + raise ValueError("Missing the required parameter `auth_group_id` when calling `get_auth_group`") - resource_path = '/platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/groups/{AuthGroupId}'.replace('{format}', 'json') path_params = {} - if 'settings_krb5_domain_id' in params: - path_params['SettingsKrb5DomainId'] = params['settings_krb5_domain_id'] + if 'auth_group_id' in params: + path_params['AuthGroupId'] = params['auth_group_id'] query_params = {} + if 'cached' in params: + query_params['cached'] = params['cached'] + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_krb5_domain' in params: - body_params = params['settings_krb5_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4290,22 +2461,22 @@ def update_settings_krb5_domain(self, settings_krb5_domain, settings_krb5_domain # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='AuthGroups', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): + def get_auth_id(self, **kwargs): """ - Remove a krb5 domain. + Retrieve the current security token. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4313,17 +2484,16 @@ def delete_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_settings_krb5_domain(settings_krb5_domain_id, callback=callback_function) + >>> thread = api.get_auth_id(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str settings_krb5_domain_id: Remove a krb5 domain. (required) - :return: None + :return: AuthId If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_domain_id'] + all_params = [] all_params.append('callback') params = locals() @@ -4331,28 +2501,22 @@ def delete_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_settings_krb5_domain" % key + " to method get_auth_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_domain_id' is set - if ('settings_krb5_domain_id' not in params) or (params['settings_krb5_domain_id'] is None): - raise ValueError("Missing the required parameter `settings_krb5_domain_id` when calling `delete_settings_krb5_domain`") - resource_path = '/platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/id'.replace('{format}', 'json') path_params = {} - if 'settings_krb5_domain_id' in params: - path_params['SettingsKrb5DomainId'] = params['settings_krb5_domain_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4369,22 +2533,22 @@ def delete_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='AuthId', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_settings_krb5_realms(self, **kwargs): + def get_auth_log_level(self, **kwargs): """ - Retrieve the krb5 settings for realms. + Get the current authentications service and netlogon logging level. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4392,11 +2556,11 @@ def list_settings_krb5_realms(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_settings_krb5_realms(callback=callback_function) + >>> thread = api.get_auth_log_level(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SettingsKrb5Realms + :return: AuthLogLevel If the method is called asynchronously, returns the request thread. """ @@ -4409,23 +2573,22 @@ def list_settings_krb5_realms(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_settings_krb5_realms" % key + " to method get_auth_log_level" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/auth/settings/krb5/realms'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/log-level'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4442,22 +2605,22 @@ def list_settings_krb5_realms(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsKrb5Realms', + files=local_var_files, + response_type='AuthLogLevel', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_settings_krb5_realm(self, settings_krb5_realm, **kwargs): + def get_auth_netgroup(self, auth_netgroup_id, **kwargs): """ - Create a new krb5 realm. + Retrieve the user information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4465,17 +2628,21 @@ def create_settings_krb5_realm(self, settings_krb5_realm, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_settings_krb5_realm(settings_krb5_realm, callback=callback_function) + >>> thread = api.get_auth_netgroup(auth_netgroup_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsKrb5RealmCreateParams settings_krb5_realm: (required) - :return: CreateResponse + :param str auth_netgroup_id: Retrieve the user information. (required) + :param bool ignore_errors: Ignore netgroup errors. + :param bool recursive: Perform recursive search. + :param str zone: Filter users by zone. + :param str provider: Filter users by provider. + :return: AuthNetgroups If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_realm'] + all_params = ['auth_netgroup_id', 'ignore_errors', 'recursive', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -4483,30 +2650,37 @@ def create_settings_krb5_realm(self, settings_krb5_realm, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_settings_krb5_realm" % key + " to method get_auth_netgroup" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_realm' is set - if ('settings_krb5_realm' not in params) or (params['settings_krb5_realm'] is None): - raise ValueError("Missing the required parameter `settings_krb5_realm` when calling `create_settings_krb5_realm`") + # verify the required parameter 'auth_netgroup_id' is set + if ('auth_netgroup_id' not in params) or (params['auth_netgroup_id'] is None): + raise ValueError("Missing the required parameter `auth_netgroup_id` when calling `get_auth_netgroup`") - resource_path = '/platform/1/auth/settings/krb5/realms'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/netgroups/{AuthNetgroupId}'.replace('{format}', 'json') path_params = {} + if 'auth_netgroup_id' in params: + path_params['AuthNetgroupId'] = params['auth_netgroup_id'] query_params = {} + if 'ignore_errors' in params: + query_params['ignore_errors'] = params['ignore_errors'] + if 'recursive' in params: + query_params['recursive'] = params['recursive'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_krb5_realm' in params: - body_params = params['settings_krb5_realm'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4521,22 +2695,22 @@ def create_settings_krb5_realm(self, settings_krb5_realm, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='AuthNetgroups', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): + def get_auth_privileges(self, **kwargs): """ - Retrieve the krb5 settings for realms. + List all privileges. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4544,17 +2718,16 @@ def get_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_settings_krb5_realm(settings_krb5_realm_id, callback=callback_function) + >>> thread = api.get_auth_privileges(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str settings_krb5_realm_id: Retrieve the krb5 settings for realms. (required) - :return: SettingsKrb5Realms + :return: AuthPrivileges If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_realm_id'] + all_params = [] all_params.append('callback') params = locals() @@ -4562,28 +2735,22 @@ def get_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_settings_krb5_realm" % key + " to method get_auth_privileges" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_realm_id' is set - if ('settings_krb5_realm_id' not in params) or (params['settings_krb5_realm_id'] is None): - raise ValueError("Missing the required parameter `settings_krb5_realm_id` when calling `get_settings_krb5_realm`") - resource_path = '/platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/privileges'.replace('{format}', 'json') path_params = {} - if 'settings_krb5_realm_id' in params: - path_params['SettingsKrb5RealmId'] = params['settings_krb5_realm_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4600,22 +2767,22 @@ def get_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsKrb5Realms', + files=local_var_files, + response_type='AuthPrivileges', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_settings_krb5_realm(self, settings_krb5_realm, settings_krb5_realm_id, **kwargs): + def get_auth_role(self, auth_role_id, **kwargs): """ - Modify the krb5 realm settings. + Retrieve the role information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4623,18 +2790,18 @@ def update_settings_krb5_realm(self, settings_krb5_realm, settings_krb5_realm_id >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_settings_krb5_realm(settings_krb5_realm, settings_krb5_realm_id, callback=callback_function) + >>> thread = api.get_auth_role(auth_role_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsKrb5Realm settings_krb5_realm: (required) - :param str settings_krb5_realm_id: Modify the krb5 realm settings. (required) - :return: None + :param str auth_role_id: Retrieve the role information. (required) + :param bool resolve_names: Resolve names of personas. + :return: AuthRoles If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_realm', 'settings_krb5_realm_id'] + all_params = ['auth_role_id', 'resolve_names'] all_params.append('callback') params = locals() @@ -4642,35 +2809,31 @@ def update_settings_krb5_realm(self, settings_krb5_realm, settings_krb5_realm_id if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_settings_krb5_realm" % key + " to method get_auth_role" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_realm' is set - if ('settings_krb5_realm' not in params) or (params['settings_krb5_realm'] is None): - raise ValueError("Missing the required parameter `settings_krb5_realm` when calling `update_settings_krb5_realm`") - # verify the required parameter 'settings_krb5_realm_id' is set - if ('settings_krb5_realm_id' not in params) or (params['settings_krb5_realm_id'] is None): - raise ValueError("Missing the required parameter `settings_krb5_realm_id` when calling `update_settings_krb5_realm`") + # verify the required parameter 'auth_role_id' is set + if ('auth_role_id' not in params) or (params['auth_role_id'] is None): + raise ValueError("Missing the required parameter `auth_role_id` when calling `get_auth_role`") - resource_path = '/platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/roles/{AuthRoleId}'.replace('{format}', 'json') path_params = {} - if 'settings_krb5_realm_id' in params: - path_params['SettingsKrb5RealmId'] = params['settings_krb5_realm_id'] + if 'auth_role_id' in params: + path_params['AuthRoleId'] = params['auth_role_id'] query_params = {} + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_krb5_realm' in params: - body_params = params['settings_krb5_realm'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4685,22 +2848,22 @@ def update_settings_krb5_realm(self, settings_krb5_realm, settings_krb5_realm_id # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='AuthRoles', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): + def get_auth_shells(self, **kwargs): """ - Remove a realm. + List all shells. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4708,17 +2871,16 @@ def delete_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_settings_krb5_realm(settings_krb5_realm_id, callback=callback_function) + >>> thread = api.get_auth_shells(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str settings_krb5_realm_id: Remove a realm. (required) - :return: None + :return: AuthShells If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_krb5_realm_id'] + all_params = [] all_params.append('callback') params = locals() @@ -4726,28 +2888,22 @@ def delete_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_settings_krb5_realm" % key + " to method get_auth_shells" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_krb5_realm_id' is set - if ('settings_krb5_realm_id' not in params) or (params['settings_krb5_realm_id'] is None): - raise ValueError("Missing the required parameter `settings_krb5_realm_id` when calling `delete_settings_krb5_realm`") - resource_path = '/platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/shells'.replace('{format}', 'json') path_params = {} - if 'settings_krb5_realm_id' in params: - path_params['SettingsKrb5RealmId'] = params['settings_krb5_realm_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4764,22 +2920,22 @@ def delete_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='AuthShells', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_mapping(self, **kwargs): + def get_auth_user(self, auth_user_id, **kwargs): """ - Retrieve the mapping settings. + Retrieve the user information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4787,18 +2943,21 @@ def get_settings_mapping(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_settings_mapping(callback=callback_function) + >>> thread = api.get_auth_user(auth_user_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :param str zone: Access zone which contains mapping settings. - :return: SettingsMapping + :param str auth_user_id: Retrieve the user information. (required) + :param bool cached: If true, only return cached objects. + :param bool resolve_names: Resolve names of personas. + :param str zone: Filter users by zone. + :param str provider: Filter users by provider. + :return: AuthUsers If the method is called asynchronously, returns the request thread. """ - all_params = ['scope', 'zone'] + all_params = ['auth_user_id', 'cached', 'resolve_names', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -4806,27 +2965,35 @@ def get_settings_mapping(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_settings_mapping" % key + " to method get_auth_user" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'auth_user_id' is set + if ('auth_user_id' not in params) or (params['auth_user_id'] is None): + raise ValueError("Missing the required parameter `auth_user_id` when calling `get_auth_user`") - resource_path = '/platform/1/auth/settings/mapping'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/users/{AuthUserId}'.replace('{format}', 'json') path_params = {} + if 'auth_user_id' in params: + path_params['AuthUserId'] = params['auth_user_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] + if 'cached' in params: + query_params['cached'] = params['cached'] + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] if 'zone' in params: query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4843,22 +3010,22 @@ def get_settings_mapping(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsMapping', + files=local_var_files, + response_type='AuthUsers', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_settings_mapping(self, settings_mapping, **kwargs): + def get_auth_wellknown(self, auth_wellknown_id, **kwargs): """ - Modify the mapping settings. + Retrieve the wellknown persona. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4866,18 +3033,18 @@ def update_settings_mapping(self, settings_mapping, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_settings_mapping(settings_mapping, callback=callback_function) + >>> thread = api.get_auth_wellknown(auth_wellknown_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsMappingMappingSettings settings_mapping: (required) - :param str zone: Access zone which contains mapping settings. - :return: None + :param str auth_wellknown_id: Retrieve the wellknown persona. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: AuthWellknowns If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_mapping', 'zone'] + all_params = ['auth_wellknown_id', 'scope'] all_params.append('callback') params = locals() @@ -4885,32 +3052,31 @@ def update_settings_mapping(self, settings_mapping, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_settings_mapping" % key + " to method get_auth_wellknown" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_mapping' is set - if ('settings_mapping' not in params) or (params['settings_mapping'] is None): - raise ValueError("Missing the required parameter `settings_mapping` when calling `update_settings_mapping`") + # verify the required parameter 'auth_wellknown_id' is set + if ('auth_wellknown_id' not in params) or (params['auth_wellknown_id'] is None): + raise ValueError("Missing the required parameter `auth_wellknown_id` when calling `get_auth_wellknown`") - resource_path = '/platform/1/auth/settings/mapping'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/wellknowns/{AuthWellknownId}'.replace('{format}', 'json') path_params = {} + if 'auth_wellknown_id' in params: + path_params['AuthWellknownId'] = params['auth_wellknown_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_mapping' in params: - body_params = params['settings_mapping'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4925,22 +3091,22 @@ def update_settings_mapping(self, settings_mapping, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='AuthWellknowns', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_auth_shells(self, **kwargs): + def get_auth_wellknowns(self, **kwargs): """ - List all shells. + List all wellknown personas. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4948,11 +3114,11 @@ def get_auth_shells(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_auth_shells(callback=callback_function) + >>> thread = api.get_auth_wellknowns(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: AuthShells + :return: AuthWellknowns If the method is called asynchronously, returns the request thread. """ @@ -4965,23 +3131,22 @@ def get_auth_shells(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_auth_shells" % key + " to method get_auth_wellknowns" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/auth/shells'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/wellknowns'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4998,22 +3163,22 @@ def get_auth_shells(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuthShells', + files=local_var_files, + response_type='AuthWellknowns', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_auth_users(self, **kwargs): + def get_mapping_dump(self, **kwargs): """ - List all users. + Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5021,25 +3186,18 @@ def list_auth_users(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_auth_users(callback=callback_function) + >>> thread = api.get_mapping_dump(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str domain: Filter users by domain. - :param str zone: Filter users by zone. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param bool cached: If true, only return cached objects. - :param bool resolve_names: Resolve names of personas. - :param str filter: Filter users by name prefix. - :param int limit: Return no more than this many results at once (see resume). - :param str provider: Filter users by provider. - :param bool query_member_of: Enumerate all users that a group is a member of. - :return: AuthUsersExtended + :param bool nocreate: Idmap should attempt to create missing identity mappings. + :param str zone: Optional zone. + :return: MappingDump If the method is called asynchronously, returns the request thread. """ - all_params = ['domain', 'zone', 'resume', 'cached', 'resolve_names', 'filter', 'limit', 'provider', 'query_member_of'] + all_params = ['nocreate', 'zone'] all_params.append('callback') params = locals() @@ -5047,41 +3205,26 @@ def list_auth_users(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_auth_users" % key + " to method get_mapping_dump" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/auth/users'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/mapping/dump'.replace('{format}', 'json') path_params = {} query_params = {} - if 'domain' in params: - query_params['domain'] = params['domain'] + if 'nocreate' in params: + query_params['nocreate'] = params['nocreate'] if 'zone' in params: query_params['zone'] = params['zone'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'cached' in params: - query_params['cached'] = params['cached'] - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'filter' in params: - query_params['filter'] = params['filter'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'provider' in params: - query_params['provider'] = params['provider'] - if 'query_member_of' in params: - query_params['query_member_of'] = params['query_member_of'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5098,22 +3241,22 @@ def list_auth_users(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuthUsersExtended', + files=local_var_files, + response_type='MappingDump', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_auth_user(self, auth_user, **kwargs): + def get_mapping_identity(self, mapping_identity_id, **kwargs): """ - Create a new user. + Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5121,19 +3264,19 @@ def create_auth_user(self, auth_user, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_auth_user(auth_user, callback=callback_function) + >>> thread = api.get_mapping_identity(mapping_identity_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AuthUserCreateParams auth_user: (required) + :param str mapping_identity_id: Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. (required) + :param bool nocreate: Idmap should attempt to create missing identity mappings. :param str zone: Optional zone. - :param str provider: Optional provider type. - :return: CreateResponse + :return: MappingIdentities If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_user', 'zone', 'provider'] + all_params = ['mapping_identity_id', 'nocreate', 'zone'] all_params.append('callback') params = locals() @@ -5141,34 +3284,33 @@ def create_auth_user(self, auth_user, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_auth_user" % key + " to method get_mapping_identity" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_user' is set - if ('auth_user' not in params) or (params['auth_user'] is None): - raise ValueError("Missing the required parameter `auth_user` when calling `create_auth_user`") + # verify the required parameter 'mapping_identity_id' is set + if ('mapping_identity_id' not in params) or (params['mapping_identity_id'] is None): + raise ValueError("Missing the required parameter `mapping_identity_id` when calling `get_mapping_identity`") - resource_path = '/platform/1/auth/users'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/mapping/identities/{MappingIdentityId}'.replace('{format}', 'json') path_params = {} + if 'mapping_identity_id' in params: + path_params['MappingIdentityId'] = params['mapping_identity_id'] query_params = {} + if 'nocreate' in params: + query_params['nocreate'] = params['nocreate'] if 'zone' in params: query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'auth_user' in params: - body_params = params['auth_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5183,22 +3325,22 @@ def create_auth_user(self, auth_user, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='MappingIdentities', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_auth_users(self, **kwargs): + def get_mapping_users_lookup(self, **kwargs): """ - Flush the users cache. + Retrieve the user information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5206,19 +3348,22 @@ def delete_auth_users(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_auth_users(callback=callback_function) + >>> thread = api.get_mapping_users_lookup(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param bool cached: If true, only flush cached objects. - :param str zone: Filter users by zone. - :param str provider: Filter users by provider. - :return: None + :param int primary_gid: The user's primary group ID. + :param int uid: The user ID. + :param str zone: The zone the user belongs to. + :param list[int] gid: The IDs of the groups that the user belongs to. + :param str user: The user name. + :param str kerberos_principal: The Kerberos principal name, of the form user@realm. + :return: MappingUsersLookup If the method is called asynchronously, returns the request thread. """ - all_params = ['cached', 'zone', 'provider'] + all_params = ['primary_gid', 'uid', 'zone', 'gid', 'user', 'kerberos_principal'] all_params.append('callback') params = locals() @@ -5226,29 +3371,34 @@ def delete_auth_users(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_auth_users" % key + " to method get_mapping_users_lookup" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/auth/users'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/mapping/users/lookup'.replace('{format}', 'json') path_params = {} query_params = {} - if 'cached' in params: - query_params['cached'] = params['cached'] + if 'primary_gid' in params: + query_params['primary_gid'] = params['primary_gid'] + if 'uid' in params: + query_params['uid'] = params['uid'] if 'zone' in params: query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] + if 'gid' in params: + query_params['gid'] = params['gid'] + if 'user' in params: + query_params['user'] = params['user'] + if 'kerberos_principal' in params: + query_params['kerberos_principal'] = params['kerberos_principal'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5265,22 +3415,22 @@ def delete_auth_users(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='MappingUsersLookup', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_auth_user(self, auth_user_id, **kwargs): + def get_mapping_users_rules(self, **kwargs): """ - Retrieve the user information. + Retrieve the user mapping rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5288,21 +3438,17 @@ def get_auth_user(self, auth_user_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_auth_user(auth_user_id, callback=callback_function) + >>> thread = api.get_mapping_users_rules(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str auth_user_id: Retrieve the user information. (required) - :param bool cached: If true, only return cached objects. - :param bool resolve_names: Resolve names of personas. - :param str zone: Filter users by zone. - :param str provider: Filter users by provider. - :return: AuthUsers + :param str zone: The zone to which the user mapping applies. + :return: MappingUsersRules If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_user_id', 'cached', 'resolve_names', 'zone', 'provider'] + all_params = ['zone'] all_params.append('callback') params = locals() @@ -5310,36 +3456,24 @@ def get_auth_user(self, auth_user_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_auth_user" % key + " to method get_mapping_users_rules" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_user_id' is set - if ('auth_user_id' not in params) or (params['auth_user_id'] is None): - raise ValueError("Missing the required parameter `auth_user_id` when calling `get_auth_user`") - resource_path = '/platform/1/auth/users/{AuthUserId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/mapping/users/rules'.replace('{format}', 'json') path_params = {} - if 'auth_user_id' in params: - path_params['AuthUserId'] = params['auth_user_id'] query_params = {} - if 'cached' in params: - query_params['cached'] = params['cached'] - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] if 'zone' in params: query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5356,22 +3490,22 @@ def get_auth_user(self, auth_user_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuthUsers', + files=local_var_files, + response_type='MappingUsersRules', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_auth_user(self, auth_user, auth_user_id, **kwargs): + def get_providers_ads_by_id(self, providers_ads_id, **kwargs): """ - Modify the user. + Retrieve the ADS provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5379,20 +3513,18 @@ def update_auth_user(self, auth_user, auth_user_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_auth_user(auth_user, auth_user_id, callback=callback_function) + >>> thread = api.get_providers_ads_by_id(providers_ads_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AuthUser auth_user: (required) - :param str auth_user_id: Modify the user. (required) - :param str zone: Optional zone. - :param str provider: Optional provider type. - :return: None + :param str providers_ads_id: Retrieve the ADS provider. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersAds If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_user', 'auth_user_id', 'zone', 'provider'] + all_params = ['providers_ads_id', 'scope'] all_params.append('callback') params = locals() @@ -5400,39 +3532,31 @@ def update_auth_user(self, auth_user, auth_user_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_auth_user" % key + " to method get_providers_ads_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_user' is set - if ('auth_user' not in params) or (params['auth_user'] is None): - raise ValueError("Missing the required parameter `auth_user` when calling `update_auth_user`") - # verify the required parameter 'auth_user_id' is set - if ('auth_user_id' not in params) or (params['auth_user_id'] is None): - raise ValueError("Missing the required parameter `auth_user_id` when calling `update_auth_user`") + # verify the required parameter 'providers_ads_id' is set + if ('providers_ads_id' not in params) or (params['providers_ads_id'] is None): + raise ValueError("Missing the required parameter `providers_ads_id` when calling `get_providers_ads_by_id`") - resource_path = '/platform/1/auth/users/{AuthUserId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/auth/providers/ads/{ProvidersAdsId}'.replace('{format}', 'json') path_params = {} - if 'auth_user_id' in params: - path_params['AuthUserId'] = params['auth_user_id'] + if 'providers_ads_id' in params: + path_params['ProvidersAdsId'] = params['providers_ads_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'auth_user' in params: - body_params = params['auth_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5447,22 +3571,22 @@ def update_auth_user(self, auth_user, auth_user_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ProvidersAds', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_auth_user(self, auth_user_id, **kwargs): + def get_providers_file_by_id(self, providers_file_id, **kwargs): """ - Delete the user. + Retrieve the file provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5470,20 +3594,18 @@ def delete_auth_user(self, auth_user_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_auth_user(auth_user_id, callback=callback_function) + >>> thread = api.get_providers_file_by_id(providers_file_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str auth_user_id: Delete the user. (required) - :param bool cached: If true, flush the user from the cache. - :param str zone: Filter users by zone. - :param str provider: Filter users by provider. - :return: None + :param str providers_file_id: Retrieve the file provider. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersFile If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_user_id', 'cached', 'zone', 'provider'] + all_params = ['providers_file_id', 'scope'] all_params.append('callback') params = locals() @@ -5491,34 +3613,29 @@ def delete_auth_user(self, auth_user_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_auth_user" % key + " to method get_providers_file_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_user_id' is set - if ('auth_user_id' not in params) or (params['auth_user_id'] is None): - raise ValueError("Missing the required parameter `auth_user_id` when calling `delete_auth_user`") + # verify the required parameter 'providers_file_id' is set + if ('providers_file_id' not in params) or (params['providers_file_id'] is None): + raise ValueError("Missing the required parameter `providers_file_id` when calling `get_providers_file_by_id`") - resource_path = '/platform/1/auth/users/{AuthUserId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/providers/file/{ProvidersFileId}'.replace('{format}', 'json') path_params = {} - if 'auth_user_id' in params: - path_params['AuthUserId'] = params['auth_user_id'] + if 'providers_file_id' in params: + path_params['ProvidersFileId'] = params['providers_file_id'] query_params = {} - if 'cached' in params: - query_params['cached'] = params['cached'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5535,22 +3652,22 @@ def delete_auth_user(self, auth_user_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ProvidersFile', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_users_user_change_password(self, users_user_change_password, user, **kwargs): + def get_providers_krb5_by_id(self, providers_krb5_id, **kwargs): """ - Change the user's password. + Retrieve the KRB5 provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5558,19 +3675,18 @@ def update_users_user_change_password(self, users_user_change_password, user, ** >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_users_user_change_password(users_user_change_password, user, callback=callback_function) + >>> thread = api.get_providers_krb5_by_id(providers_krb5_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param UsersUserChangePassword users_user_change_password: (required) - :param str user: (required) - :param str zone: Specifies access zone containing user. - :return: None + :param str providers_krb5_id: Retrieve the KRB5 provider. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersKrb5 If the method is called asynchronously, returns the request thread. """ - all_params = ['users_user_change_password', 'user', 'zone'] + all_params = ['providers_krb5_id', 'scope'] all_params.append('callback') params = locals() @@ -5578,37 +3694,31 @@ def update_users_user_change_password(self, users_user_change_password, user, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_users_user_change_password" % key + " to method get_providers_krb5_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'users_user_change_password' is set - if ('users_user_change_password' not in params) or (params['users_user_change_password'] is None): - raise ValueError("Missing the required parameter `users_user_change_password` when calling `update_users_user_change_password`") - # verify the required parameter 'user' is set - if ('user' not in params) or (params['user'] is None): - raise ValueError("Missing the required parameter `user` when calling `update_users_user_change_password`") + # verify the required parameter 'providers_krb5_id' is set + if ('providers_krb5_id' not in params) or (params['providers_krb5_id'] is None): + raise ValueError("Missing the required parameter `providers_krb5_id` when calling `get_providers_krb5_by_id`") - resource_path = '/platform/1/auth/users/{User}/change_password'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/auth/providers/krb5/{ProvidersKrb5Id}'.replace('{format}', 'json') path_params = {} - if 'user' in params: - path_params['User'] = params['user'] + if 'providers_krb5_id' in params: + path_params['ProvidersKrb5Id'] = params['providers_krb5_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'users_user_change_password' in params: - body_params = params['users_user_change_password'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5623,22 +3733,22 @@ def update_users_user_change_password(self, users_user_change_password, user, ** # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ProvidersKrb5', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_users_user_member_of(self, user, **kwargs): + def get_providers_ldap_by_id(self, providers_ldap_id, **kwargs): """ - List all groups the user is a member of. + Retrieve the LDAP provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5646,20 +3756,18 @@ def list_users_user_member_of(self, user, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_users_user_member_of(user, callback=callback_function) + >>> thread = api.get_providers_ldap_by_id(providers_ldap_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str user: (required) - :param bool resolve_names: Resolve names of personas. - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. - :return: UsersUserMemberOf + :param str providers_ldap_id: Retrieve the LDAP provider. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersLdap If the method is called asynchronously, returns the request thread. """ - all_params = ['user', 'resolve_names', 'zone', 'provider'] + all_params = ['providers_ldap_id', 'scope'] all_params.append('callback') params = locals() @@ -5667,34 +3775,29 @@ def list_users_user_member_of(self, user, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_users_user_member_of" % key + " to method get_providers_ldap_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'user' is set - if ('user' not in params) or (params['user'] is None): - raise ValueError("Missing the required parameter `user` when calling `list_users_user_member_of`") + # verify the required parameter 'providers_ldap_id' is set + if ('providers_ldap_id' not in params) or (params['providers_ldap_id'] is None): + raise ValueError("Missing the required parameter `providers_ldap_id` when calling `get_providers_ldap_by_id`") - resource_path = '/platform/1/auth/users/{User}/member_of'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/providers/ldap/{ProvidersLdapId}'.replace('{format}', 'json') path_params = {} - if 'user' in params: - path_params['User'] = params['user'] + if 'providers_ldap_id' in params: + path_params['ProvidersLdapId'] = params['providers_ldap_id'] query_params = {} - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5711,22 +3814,22 @@ def list_users_user_member_of(self, user, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='UsersUserMemberOf', + files=local_var_files, + response_type='ProvidersLdap', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_users_user_member_of_item(self, users_user_member_of_item, user, **kwargs): + def get_providers_local(self, **kwargs): """ - Add the user to a group. + List all local providers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5734,20 +3837,17 @@ def create_users_user_member_of_item(self, users_user_member_of_item, user, **kw >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_users_user_member_of_item(users_user_member_of_item, user, callback=callback_function) + >>> thread = api.get_providers_local(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param GroupsGroupMember users_user_member_of_item: (required) - :param str user: (required) - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. - :return: CreateResponse + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersLocal If the method is called asynchronously, returns the request thread. """ - all_params = ['users_user_member_of_item', 'user', 'zone', 'provider'] + all_params = ['scope'] all_params.append('callback') params = locals() @@ -5755,39 +3855,26 @@ def create_users_user_member_of_item(self, users_user_member_of_item, user, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_users_user_member_of_item" % key + " to method get_providers_local" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'users_user_member_of_item' is set - if ('users_user_member_of_item' not in params) or (params['users_user_member_of_item'] is None): - raise ValueError("Missing the required parameter `users_user_member_of_item` when calling `create_users_user_member_of_item`") - # verify the required parameter 'user' is set - if ('user' not in params) or (params['user'] is None): - raise ValueError("Missing the required parameter `user` when calling `create_users_user_member_of_item`") - resource_path = '/platform/1/auth/users/{User}/member_of'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/providers/local'.replace('{format}', 'json') path_params = {} - if 'user' in params: - path_params['User'] = params['user'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'users_user_member_of_item' in params: - body_params = params['users_user_member_of_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5802,22 +3889,22 @@ def create_users_user_member_of_item(self, users_user_member_of_item, user, **kw # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='ProvidersLocal', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_users_user_member_of_member_of(self, users_user_member_of_member_of, user, **kwargs): + def get_providers_local_by_id(self, providers_local_id, **kwargs): """ - Remove the user from the group. + Retrieve the local provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5825,20 +3912,18 @@ def delete_users_user_member_of_member_of(self, users_user_member_of_member_of, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_users_user_member_of_member_of(users_user_member_of_member_of, user, callback=callback_function) + >>> thread = api.get_providers_local_by_id(providers_local_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str users_user_member_of_member_of: Remove the user from the group. (required) - :param str user: (required) - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. - :return: None + :param str providers_local_id: Retrieve the local provider. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersLocal If the method is called asynchronously, returns the request thread. """ - all_params = ['users_user_member_of_member_of', 'user', 'zone', 'provider'] + all_params = ['providers_local_id', 'scope'] all_params.append('callback') params = locals() @@ -5846,37 +3931,29 @@ def delete_users_user_member_of_member_of(self, users_user_member_of_member_of, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_users_user_member_of_member_of" % key + " to method get_providers_local_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'users_user_member_of_member_of' is set - if ('users_user_member_of_member_of' not in params) or (params['users_user_member_of_member_of'] is None): - raise ValueError("Missing the required parameter `users_user_member_of_member_of` when calling `delete_users_user_member_of_member_of`") - # verify the required parameter 'user' is set - if ('user' not in params) or (params['user'] is None): - raise ValueError("Missing the required parameter `user` when calling `delete_users_user_member_of_member_of`") + # verify the required parameter 'providers_local_id' is set + if ('providers_local_id' not in params) or (params['providers_local_id'] is None): + raise ValueError("Missing the required parameter `providers_local_id` when calling `get_providers_local_by_id`") - resource_path = '/platform/1/auth/users/{User}/member_of/{UsersUserMemberOfMemberOf}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/providers/local/{ProvidersLocalId}'.replace('{format}', 'json') path_params = {} - if 'users_user_member_of_member_of' in params: - path_params['UsersUserMemberOfMemberOf'] = params['users_user_member_of_member_of'] - if 'user' in params: - path_params['User'] = params['user'] + if 'providers_local_id' in params: + path_params['ProvidersLocalId'] = params['providers_local_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5893,22 +3970,22 @@ def delete_users_user_member_of_member_of(self, users_user_member_of_member_of, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ProvidersLocal', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_auth_wellknowns(self, **kwargs): + def get_providers_nis_by_id(self, providers_nis_id, **kwargs): """ - List all wellknown personas. + Retrieve the NIS provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5916,16 +3993,18 @@ def get_auth_wellknowns(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_auth_wellknowns(callback=callback_function) + >>> thread = api.get_providers_nis_by_id(providers_nis_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: AuthWellknowns + :param str providers_nis_id: Retrieve the NIS provider. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersNis If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['providers_nis_id', 'scope'] all_params.append('callback') params = locals() @@ -5933,23 +4012,29 @@ def get_auth_wellknowns(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_auth_wellknowns" % key + " to method get_providers_nis_by_id" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'providers_nis_id' is set + if ('providers_nis_id' not in params) or (params['providers_nis_id'] is None): + raise ValueError("Missing the required parameter `providers_nis_id` when calling `get_providers_nis_by_id`") - resource_path = '/platform/1/auth/wellknowns'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/providers/nis/{ProvidersNisId}'.replace('{format}', 'json') path_params = {} + if 'providers_nis_id' in params: + path_params['ProvidersNisId'] = params['providers_nis_id'] query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5966,22 +4051,22 @@ def get_auth_wellknowns(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuthWellknowns', + files=local_var_files, + response_type='ProvidersNis', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_auth_wellknown(self, auth_wellknown_id, **kwargs): + def get_providers_summary(self, **kwargs): """ - Retrieve the wellknown persona. + Retrieve the summary information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5989,18 +4074,16 @@ def get_auth_wellknown(self, auth_wellknown_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_auth_wellknown(auth_wellknown_id, callback=callback_function) + >>> thread = api.get_providers_summary(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str auth_wellknown_id: Retrieve the wellknown persona. (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: AuthWellknowns + :return: ProvidersSummary If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_wellknown_id', 'scope'] + all_params = [] all_params.append('callback') params = locals() @@ -6008,30 +4091,22 @@ def get_auth_wellknown(self, auth_wellknown_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_auth_wellknown" % key + " to method get_providers_summary" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_wellknown_id' is set - if ('auth_wellknown_id' not in params) or (params['auth_wellknown_id'] is None): - raise ValueError("Missing the required parameter `auth_wellknown_id` when calling `get_auth_wellknown`") - resource_path = '/platform/1/auth/wellknowns/{AuthWellknownId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/providers/summary'.replace('{format}', 'json') path_params = {} - if 'auth_wellknown_id' in params: - path_params['AuthWellknownId'] = params['auth_wellknown_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6048,22 +4123,22 @@ def get_auth_wellknown(self, auth_wellknown_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuthWellknowns', + files=local_var_files, + response_type='ProvidersSummary', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_auth_log_level(self, **kwargs): + def get_settings_acls(self, **kwargs): """ - Get the current authentications service and netlogon logging level. + Retrieve the ACL policy settings and preset configurations. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6071,16 +4146,17 @@ def get_auth_log_level(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_auth_log_level(callback=callback_function) + >>> thread = api.get_settings_acls(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: AuthLogLevel + :param str preset: If specified the preset configuration values for all applicable ACL policies are returned. + :return: SettingsAcls If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['preset'] all_params.append('callback') params = locals() @@ -6088,23 +4164,24 @@ def get_auth_log_level(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_auth_log_level" % key + " to method get_settings_acls" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/auth/log-level'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/settings/acls'.replace('{format}', 'json') path_params = {} query_params = {} + if 'preset' in params: + query_params['preset'] = params['preset'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6121,22 +4198,22 @@ def get_auth_log_level(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='AuthLogLevel', + files=local_var_files, + response_type='SettingsAcls', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_auth_log_level(self, auth_log_level, **kwargs): + def get_settings_global(self, **kwargs): """ - Set the current authentication service and netlogon logging level. + Retrieve the global settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6144,17 +4221,18 @@ def update_auth_log_level(self, auth_log_level, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_auth_log_level(auth_log_level, callback=callback_function) + >>> thread = api.get_settings_global(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param AuthLogLevelExtended auth_log_level: (required) - :return: None + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :param str zone: Zone which contains any per-zone settings. + :return: SettingsGlobal If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_log_level'] + all_params = ['scope', 'zone'] all_params.append('callback') params = locals() @@ -6162,30 +4240,28 @@ def update_auth_log_level(self, auth_log_level, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_auth_log_level" % key + " to method get_settings_global" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_log_level' is set - if ('auth_log_level' not in params) or (params['auth_log_level'] is None): - raise ValueError("Missing the required parameter `auth_log_level` when calling `update_auth_log_level`") - resource_path = '/platform/3/auth/log-level'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/settings/global'.replace('{format}', 'json') path_params = {} query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'auth_log_level' in params: - body_params = params['auth_log_level'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6200,22 +4276,22 @@ def update_auth_log_level(self, auth_log_level, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SettingsGlobal', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_mapping_dump(self, **kwargs): + def get_settings_krb5_defaults(self, **kwargs): """ - Retrieve all identity mappings (uid, gid, sid, and on-disk) for the supplied source persona. + Retrieve the krb5 settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6223,18 +4299,16 @@ def get_mapping_dump(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_mapping_dump(callback=callback_function) + >>> thread = api.get_settings_krb5_defaults(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param bool nocreate: Idmap should attempt to create missing identity mappings. - :param str zone: Optional zone. - :return: MappingDump + :return: SettingsKrb5Defaults If the method is called asynchronously, returns the request thread. """ - all_params = ['nocreate', 'zone'] + all_params = [] all_params.append('callback') params = locals() @@ -6242,27 +4316,22 @@ def get_mapping_dump(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_mapping_dump" % key + " to method get_settings_krb5_defaults" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/auth/mapping/dump'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/settings/krb5/defaults'.replace('{format}', 'json') path_params = {} query_params = {} - if 'nocreate' in params: - query_params['nocreate'] = params['nocreate'] - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6279,22 +4348,22 @@ def get_mapping_dump(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='MappingDump', + files=local_var_files, + response_type='SettingsKrb5Defaults', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_mapping_import(self, mapping_import, **kwargs): + def get_settings_krb5_domain(self, settings_krb5_domain_id, **kwargs): """ - Set or update a list of mappings between two personae. + View the krb5 domain settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6302,19 +4371,17 @@ def update_mapping_import(self, mapping_import, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_mapping_import(mapping_import, callback=callback_function) + >>> thread = api.get_settings_krb5_domain(settings_krb5_domain_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param MappingImport mapping_import: (required) - :param str zone: Optional zone. - :param bool replace: Specify whether existing mappings should be replaced. The default behavior is to leave existing mappings intact and return an error. - :return: None + :param str settings_krb5_domain_id: View the krb5 domain settings. (required) + :return: SettingsKrb5Domains If the method is called asynchronously, returns the request thread. """ - all_params = ['mapping_import', 'zone', 'replace'] + all_params = ['settings_krb5_domain_id'] all_params.append('callback') params = locals() @@ -6322,34 +4389,29 @@ def update_mapping_import(self, mapping_import, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_mapping_import" % key + " to method get_settings_krb5_domain" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'mapping_import' is set - if ('mapping_import' not in params) or (params['mapping_import'] is None): - raise ValueError("Missing the required parameter `mapping_import` when calling `update_mapping_import`") + # verify the required parameter 'settings_krb5_domain_id' is set + if ('settings_krb5_domain_id' not in params) or (params['settings_krb5_domain_id'] is None): + raise ValueError("Missing the required parameter `settings_krb5_domain_id` when calling `get_settings_krb5_domain`") - resource_path = '/platform/3/auth/mapping/import'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId}'.replace('{format}', 'json') path_params = {} + if 'settings_krb5_domain_id' in params: + path_params['SettingsKrb5DomainId'] = params['settings_krb5_domain_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'replace' in params: - query_params['replace'] = params['replace'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'mapping_import' in params: - body_params = params['mapping_import'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6364,22 +4426,22 @@ def update_mapping_import(self, mapping_import, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SettingsKrb5Domains', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_providers_ads(self, **kwargs): + def get_settings_krb5_realm(self, settings_krb5_realm_id, **kwargs): """ - List all ADS providers. + Retrieve the krb5 settings for realms. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6387,17 +4449,17 @@ def list_providers_ads(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_providers_ads(callback=callback_function) + >>> thread = api.get_settings_krb5_realm(settings_krb5_realm_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersAds + :param str settings_krb5_realm_id: Retrieve the krb5 settings for realms. (required) + :return: SettingsKrb5Realms If the method is called asynchronously, returns the request thread. """ - all_params = ['scope'] + all_params = ['settings_krb5_realm_id'] all_params.append('callback') params = locals() @@ -6405,25 +4467,27 @@ def list_providers_ads(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_providers_ads" % key + " to method get_settings_krb5_realm" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'settings_krb5_realm_id' is set + if ('settings_krb5_realm_id' not in params) or (params['settings_krb5_realm_id'] is None): + raise ValueError("Missing the required parameter `settings_krb5_realm_id` when calling `get_settings_krb5_realm`") - resource_path = '/platform/3/auth/providers/ads'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId}'.replace('{format}', 'json') path_params = {} + if 'settings_krb5_realm_id' in params: + path_params['SettingsKrb5RealmId'] = params['settings_krb5_realm_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6440,22 +4504,22 @@ def list_providers_ads(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersAds', + files=local_var_files, + response_type='SettingsKrb5Realms', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_providers_ad(self, providers_ad, **kwargs): + def get_settings_mapping(self, **kwargs): """ - Create a new ADS provider. + Retrieve the mapping settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6463,17 +4527,18 @@ def create_providers_ad(self, providers_ad, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_providers_ad(providers_ad, callback=callback_function) + >>> thread = api.get_settings_mapping(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersAdCreateParams providers_ad: (required) - :return: CreateResponse + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :param str zone: Access zone which contains mapping settings. + :return: SettingsMapping If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ad'] + all_params = ['scope', 'zone'] all_params.append('callback') params = locals() @@ -6481,30 +4546,28 @@ def create_providers_ad(self, providers_ad, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_providers_ad" % key + " to method get_settings_mapping" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ad' is set - if ('providers_ad' not in params) or (params['providers_ad'] is None): - raise ValueError("Missing the required parameter `providers_ad` when calling `create_providers_ad`") - resource_path = '/platform/3/auth/providers/ads'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/settings/mapping'.replace('{format}', 'json') path_params = {} query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_ad' in params: - body_params = params['providers_ad'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6519,22 +4582,22 @@ def create_providers_ad(self, providers_ad, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='SettingsMapping', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_ads_id_domains(self, id, **kwargs): + def list_auth_groups(self, **kwargs): """ - List all ADS domains. + List all groups. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6542,18 +4605,25 @@ def get_providers_ads_id_domains(self, id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_ads_id_domains(id, callback=callback_function) + >>> thread = api.list_auth_groups(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str id: (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersAdsIdDomains + :param str domain: Filter groups by domain. + :param str zone: Filter groups by zone. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param bool cached: If true, only return cached objects. + :param bool resolve_names: Resolve names of personas. + :param str filter: Filter groups by name prefix. + :param int limit: Return no more than this many results at once (see resume). + :param str provider: Filter groups by provider. + :param bool query_member_of: Enumerate all groups that a group is a member of. + :return: AuthGroupsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'scope'] + all_params = ['domain', 'zone', 'resume', 'cached', 'resolve_names', 'filter', 'limit', 'provider', 'query_member_of'] all_params.append('callback') params = locals() @@ -6561,30 +4631,42 @@ def get_providers_ads_id_domains(self, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_ads_id_domains" % key + " to method list_auth_groups" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_providers_ads_id_domains`") - resource_path = '/platform/3/auth/providers/ads/{Id}/domains'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_auth_groups`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/auth/groups'.replace('{format}', 'json') path_params = {} - if 'id' in params: - path_params['Id'] = params['id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] + if 'domain' in params: + query_params['domain'] = params['domain'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'cached' in params: + query_params['cached'] = params['cached'] + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + if 'filter' in params: + query_params['filter'] = params['filter'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'provider' in params: + query_params['provider'] = params['provider'] + if 'query_member_of' in params: + query_params['query_member_of'] = params['query_member_of'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6601,22 +4683,22 @@ def get_providers_ads_id_domains(self, id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersAdsIdDomains', + files=local_var_files, + response_type='AuthGroupsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_ads_id_domain(self, providers_ads_id_domain_id, id, **kwargs): + def list_auth_roles(self, **kwargs): """ - Retrieve the ADS domain information. + List all roles. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6624,18 +4706,19 @@ def get_providers_ads_id_domain(self, providers_ads_id_domain_id, id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_ads_id_domain(providers_ads_id_domain_id, id, callback=callback_function) + >>> thread = api.list_auth_roles(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_ads_id_domain_id: Retrieve the ADS domain information. (required) - :param str id: (required) - :return: ProvidersAdsIdDomains + :param str sort: The field that will be used for sorting. + :param bool resolve_names: Filter users by zone. + :param str dir: The direction of the sort. + :return: AuthRolesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ads_id_domain_id', 'id'] + all_params = ['sort', 'resolve_names', 'dir'] all_params.append('callback') params = locals() @@ -6643,33 +4726,28 @@ def get_providers_ads_id_domain(self, providers_ads_id_domain_id, id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_ads_id_domain" % key + " to method list_auth_roles" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ads_id_domain_id' is set - if ('providers_ads_id_domain_id' not in params) or (params['providers_ads_id_domain_id'] is None): - raise ValueError("Missing the required parameter `providers_ads_id_domain_id` when calling `get_providers_ads_id_domain`") - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_providers_ads_id_domain`") - resource_path = '/platform/3/auth/providers/ads/{Id}/domains/{ProvidersAdsIdDomainId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/roles'.replace('{format}', 'json') path_params = {} - if 'providers_ads_id_domain_id' in params: - path_params['ProvidersAdsIdDomainId'] = params['providers_ads_id_domain_id'] - if 'id' in params: - path_params['Id'] = params['id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6686,22 +4764,22 @@ def get_providers_ads_id_domain(self, providers_ads_id_domain_id, id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersAdsIdDomains', + files=local_var_files, + response_type='AuthRolesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_ad(self, providers_ad_id, **kwargs): + def list_auth_users(self, **kwargs): """ - Retrieve the ADS provider. + List all users. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6709,18 +4787,25 @@ def get_providers_ad(self, providers_ad_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_ad(providers_ad_id, callback=callback_function) + >>> thread = api.list_auth_users(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_ad_id: Retrieve the ADS provider. (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersAds + :param str domain: Filter users by domain. + :param str zone: Filter users by zone. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param bool cached: If true, only return cached objects. + :param bool resolve_names: Resolve names of personas. + :param str filter: Filter users by name prefix. + :param int limit: Return no more than this many results at once (see resume). + :param str provider: Filter users by provider. + :param bool query_member_of: Enumerate all users that a group is a member of. + :return: AuthUsersExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ad_id', 'scope'] + all_params = ['domain', 'zone', 'resume', 'cached', 'resolve_names', 'filter', 'limit', 'provider', 'query_member_of'] all_params.append('callback') params = locals() @@ -6728,30 +4813,42 @@ def get_providers_ad(self, providers_ad_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_ad" % key + " to method list_auth_users" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ad_id' is set - if ('providers_ad_id' not in params) or (params['providers_ad_id'] is None): - raise ValueError("Missing the required parameter `providers_ad_id` when calling `get_providers_ad`") - resource_path = '/platform/3/auth/providers/ads/{ProvidersAdId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_auth_users`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/auth/users'.replace('{format}', 'json') path_params = {} - if 'providers_ad_id' in params: - path_params['ProvidersAdId'] = params['providers_ad_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] + if 'domain' in params: + query_params['domain'] = params['domain'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'cached' in params: + query_params['cached'] = params['cached'] + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + if 'filter' in params: + query_params['filter'] = params['filter'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'provider' in params: + query_params['provider'] = params['provider'] + if 'query_member_of' in params: + query_params['query_member_of'] = params['query_member_of'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6768,22 +4865,22 @@ def get_providers_ad(self, providers_ad_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersAds', + files=local_var_files, + response_type='AuthUsersExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_providers_ad(self, providers_ad, providers_ad_id, **kwargs): + def list_providers_ads(self, **kwargs): """ - Modify the ADS provider. + List all ADS providers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6791,18 +4888,17 @@ def update_providers_ad(self, providers_ad, providers_ad_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_providers_ad(providers_ad, providers_ad_id, callback=callback_function) + >>> thread = api.list_providers_ads(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersAd providers_ad: (required) - :param str providers_ad_id: Modify the ADS provider. (required) - :return: None + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersAdsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ad', 'providers_ad_id'] + all_params = ['scope'] all_params.append('callback') params = locals() @@ -6810,35 +4906,26 @@ def update_providers_ad(self, providers_ad, providers_ad_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_providers_ad" % key + " to method list_providers_ads" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ad' is set - if ('providers_ad' not in params) or (params['providers_ad'] is None): - raise ValueError("Missing the required parameter `providers_ad` when calling `update_providers_ad`") - # verify the required parameter 'providers_ad_id' is set - if ('providers_ad_id' not in params) or (params['providers_ad_id'] is None): - raise ValueError("Missing the required parameter `providers_ad_id` when calling `update_providers_ad`") - resource_path = '/platform/3/auth/providers/ads/{ProvidersAdId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/auth/providers/ads'.replace('{format}', 'json') path_params = {} - if 'providers_ad_id' in params: - path_params['ProvidersAdId'] = params['providers_ad_id'] query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_ad' in params: - body_params = params['providers_ad'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6853,22 +4940,22 @@ def update_providers_ad(self, providers_ad, providers_ad_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ProvidersAdsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_providers_ad(self, providers_ad_id, **kwargs): + def list_providers_file(self, **kwargs): """ - Delete the ADS provider. + List all file providers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6876,17 +4963,17 @@ def delete_providers_ad(self, providers_ad_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_providers_ad(providers_ad_id, callback=callback_function) + >>> thread = api.list_providers_file(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_ad_id: Delete the ADS provider. (required) - :return: None + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersFile If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ad_id'] + all_params = ['scope'] all_params.append('callback') params = locals() @@ -6894,28 +4981,24 @@ def delete_providers_ad(self, providers_ad_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_providers_ad" % key + " to method list_providers_file" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ad_id' is set - if ('providers_ad_id' not in params) or (params['providers_ad_id'] is None): - raise ValueError("Missing the required parameter `providers_ad_id` when calling `delete_providers_ad`") - resource_path = '/platform/3/auth/providers/ads/{ProvidersAdId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/providers/file'.replace('{format}', 'json') path_params = {} - if 'providers_ad_id' in params: - path_params['ProvidersAdId'] = params['providers_ad_id'] query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6932,14 +5015,14 @@ def delete_providers_ad(self, providers_ad_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ProvidersFile', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -6979,9 +5062,8 @@ def list_providers_krb5(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/auth/providers/krb5'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/providers/krb5'.replace('{format}', 'json') path_params = {} query_params = {} @@ -6990,8 +5072,8 @@ def list_providers_krb5(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -7008,22 +5090,22 @@ def list_providers_krb5(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='ProvidersKrb5Extended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_providers_krb5_item(self, providers_krb5_item, **kwargs): + def list_providers_ldap(self, **kwargs): """ - Create a new KRB5 provider. + List all LDAP providers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7031,17 +5113,17 @@ def create_providers_krb5_item(self, providers_krb5_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_providers_krb5_item(providers_krb5_item, callback=callback_function) + >>> thread = api.list_providers_ldap(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersKrb5Item providers_krb5_item: (required) - :return: CreateResponse + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: ProvidersLdap If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_krb5_item'] + all_params = ['scope'] all_params.append('callback') params = locals() @@ -7049,30 +5131,26 @@ def create_providers_krb5_item(self, providers_krb5_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_providers_krb5_item" % key + " to method list_providers_ldap" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_krb5_item' is set - if ('providers_krb5_item' not in params) or (params['providers_krb5_item'] is None): - raise ValueError("Missing the required parameter `providers_krb5_item` when calling `create_providers_krb5_item`") - resource_path = '/platform/3/auth/providers/krb5'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/auth/providers/ldap'.replace('{format}', 'json') path_params = {} query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_krb5_item' in params: - body_params = params['providers_krb5_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7087,22 +5165,22 @@ def create_providers_krb5_item(self, providers_krb5_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='ProvidersLdap', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_krb5_id(self, providers_krb5_id, **kwargs): + def list_providers_nis(self, **kwargs): """ - Retrieve the KRB5 provider. + List all NIS providers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7110,18 +5188,17 @@ def get_providers_krb5_id(self, providers_krb5_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_krb5_id(providers_krb5_id, callback=callback_function) + >>> thread = api.list_providers_nis(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_krb5_id: Retrieve the KRB5 provider. (required) :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersKrb5 + :return: ProvidersNisExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_krb5_id', 'scope'] + all_params = ['scope'] all_params.append('callback') params = locals() @@ -7129,21 +5206,15 @@ def get_providers_krb5_id(self, providers_krb5_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_krb5_id" % key + " to method list_providers_nis" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_krb5_id' is set - if ('providers_krb5_id' not in params) or (params['providers_krb5_id'] is None): - raise ValueError("Missing the required parameter `providers_krb5_id` when calling `get_providers_krb5_id`") - resource_path = '/platform/3/auth/providers/krb5/{ProvidersKrb5Id}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/auth/providers/nis'.replace('{format}', 'json') path_params = {} - if 'providers_krb5_id' in params: - path_params['ProvidersKrb5Id'] = params['providers_krb5_id'] query_params = {} if 'scope' in params: @@ -7151,8 +5222,8 @@ def get_providers_krb5_id(self, providers_krb5_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -7169,22 +5240,22 @@ def get_providers_krb5_id(self, providers_krb5_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersKrb5', + files=local_var_files, + response_type='ProvidersNisExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_providers_krb5_id(self, providers_krb5_id_params, providers_krb5_id, **kwargs): + def list_settings_krb5_domains(self, **kwargs): """ - Modify the KRB5 provider. + Retrieve the krb5 settings for domains. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7192,18 +5263,16 @@ def update_providers_krb5_id(self, providers_krb5_id_params, providers_krb5_id, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_providers_krb5_id(providers_krb5_id_params, providers_krb5_id, callback=callback_function) + >>> thread = api.list_settings_krb5_domains(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersKrb5IdParams providers_krb5_id_params: (required) - :param str providers_krb5_id: Modify the KRB5 provider. (required) - :return: None + :return: SettingsKrb5Domains If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_krb5_id_params', 'providers_krb5_id'] + all_params = [] all_params.append('callback') params = locals() @@ -7211,35 +5280,24 @@ def update_providers_krb5_id(self, providers_krb5_id_params, providers_krb5_id, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_providers_krb5_id" % key + " to method list_settings_krb5_domains" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_krb5_id_params' is set - if ('providers_krb5_id_params' not in params) or (params['providers_krb5_id_params'] is None): - raise ValueError("Missing the required parameter `providers_krb5_id_params` when calling `update_providers_krb5_id`") - # verify the required parameter 'providers_krb5_id' is set - if ('providers_krb5_id' not in params) or (params['providers_krb5_id'] is None): - raise ValueError("Missing the required parameter `providers_krb5_id` when calling `update_providers_krb5_id`") - resource_path = '/platform/3/auth/providers/krb5/{ProvidersKrb5Id}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/settings/krb5/domains'.replace('{format}', 'json') path_params = {} - if 'providers_krb5_id' in params: - path_params['ProvidersKrb5Id'] = params['providers_krb5_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_krb5_id_params' in params: - body_params = params['providers_krb5_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7254,22 +5312,22 @@ def update_providers_krb5_id(self, providers_krb5_id_params, providers_krb5_id, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SettingsKrb5Domains', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_providers_krb5_id(self, providers_krb5_id, **kwargs): + def list_settings_krb5_realms(self, **kwargs): """ - Delete the KRB5 provider. + Retrieve the krb5 settings for realms. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7277,17 +5335,16 @@ def delete_providers_krb5_id(self, providers_krb5_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_providers_krb5_id(providers_krb5_id, callback=callback_function) + >>> thread = api.list_settings_krb5_realms(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_krb5_id: Delete the KRB5 provider. (required) - :return: None + :return: SettingsKrb5Realms If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_krb5_id'] + all_params = [] all_params.append('callback') params = locals() @@ -7295,28 +5352,22 @@ def delete_providers_krb5_id(self, providers_krb5_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_providers_krb5_id" % key + " to method list_settings_krb5_realms" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_krb5_id' is set - if ('providers_krb5_id' not in params) or (params['providers_krb5_id'] is None): - raise ValueError("Missing the required parameter `providers_krb5_id` when calling `delete_providers_krb5_id`") - resource_path = '/platform/3/auth/providers/krb5/{ProvidersKrb5Id}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/settings/krb5/realms'.replace('{format}', 'json') path_params = {} - if 'providers_krb5_id' in params: - path_params['ProvidersKrb5Id'] = params['providers_krb5_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -7333,22 +5384,22 @@ def delete_providers_krb5_id(self, providers_krb5_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SettingsKrb5Realms', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_providers_ldap(self, **kwargs): + def update_auth_group(self, auth_group, auth_group_id, **kwargs): """ - List all LDAP providers. + Modify the group. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7356,17 +5407,20 @@ def list_providers_ldap(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_providers_ldap(callback=callback_function) + >>> thread = api.update_auth_group(auth_group, auth_group_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersLdap + :param AuthGroup auth_group: (required) + :param str auth_group_id: Modify the group. (required) + :param str zone: Optional zone. + :param str provider: Optional provider type. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['scope'] + all_params = ['auth_group', 'auth_group_id', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -7374,27 +5428,38 @@ def list_providers_ldap(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_providers_ldap" % key + " to method update_auth_group" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'auth_group' is set + if ('auth_group' not in params) or (params['auth_group'] is None): + raise ValueError("Missing the required parameter `auth_group` when calling `update_auth_group`") + # verify the required parameter 'auth_group_id' is set + if ('auth_group_id' not in params) or (params['auth_group_id'] is None): + raise ValueError("Missing the required parameter `auth_group_id` when calling `update_auth_group`") - resource_path = '/platform/3/auth/providers/ldap'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/groups/{AuthGroupId}'.replace('{format}', 'json') path_params = {} + if 'auth_group_id' in params: + path_params['AuthGroupId'] = params['auth_group_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'auth_group' in params: + body_params = params['auth_group'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7409,22 +5474,22 @@ def list_providers_ldap(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersLdap', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_providers_ldap_item(self, providers_ldap_item, **kwargs): + def update_auth_log_level(self, auth_log_level, **kwargs): """ - Create a new LDAP provider. + Set the current authentication service and netlogon logging level. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7432,17 +5497,17 @@ def create_providers_ldap_item(self, providers_ldap_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_providers_ldap_item(providers_ldap_item, callback=callback_function) + >>> thread = api.update_auth_log_level(auth_log_level, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersLdapItem providers_ldap_item: (required) - :return: CreateResponse + :param AuthLogLevelExtended auth_log_level: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ldap_item'] + all_params = ['auth_log_level'] all_params.append('callback') params = locals() @@ -7450,30 +5515,29 @@ def create_providers_ldap_item(self, providers_ldap_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_providers_ldap_item" % key + " to method update_auth_log_level" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ldap_item' is set - if ('providers_ldap_item' not in params) or (params['providers_ldap_item'] is None): - raise ValueError("Missing the required parameter `providers_ldap_item` when calling `create_providers_ldap_item`") + # verify the required parameter 'auth_log_level' is set + if ('auth_log_level' not in params) or (params['auth_log_level'] is None): + raise ValueError("Missing the required parameter `auth_log_level` when calling `update_auth_log_level`") - resource_path = '/platform/3/auth/providers/ldap'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/auth/log-level'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_ldap_item' in params: - body_params = params['providers_ldap_item'] + if 'auth_log_level' in params: + body_params = params['auth_log_level'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7488,22 +5552,22 @@ def create_providers_ldap_item(self, providers_ldap_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_ldap_id(self, providers_ldap_id, **kwargs): + def update_auth_role(self, auth_role, auth_role_id, **kwargs): """ - Retrieve the LDAP provider. + Modify the role. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7511,18 +5575,18 @@ def get_providers_ldap_id(self, providers_ldap_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_ldap_id(providers_ldap_id, callback=callback_function) + >>> thread = api.update_auth_role(auth_role, auth_role_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_ldap_id: Retrieve the LDAP provider. (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersLdap + :param AuthRole auth_role: (required) + :param str auth_role_id: Modify the role. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ldap_id', 'scope'] + all_params = ['auth_role', 'auth_role_id'] all_params.append('callback') params = locals() @@ -7530,32 +5594,34 @@ def get_providers_ldap_id(self, providers_ldap_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_ldap_id" % key + " to method update_auth_role" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ldap_id' is set - if ('providers_ldap_id' not in params) or (params['providers_ldap_id'] is None): - raise ValueError("Missing the required parameter `providers_ldap_id` when calling `get_providers_ldap_id`") + # verify the required parameter 'auth_role' is set + if ('auth_role' not in params) or (params['auth_role'] is None): + raise ValueError("Missing the required parameter `auth_role` when calling `update_auth_role`") + # verify the required parameter 'auth_role_id' is set + if ('auth_role_id' not in params) or (params['auth_role_id'] is None): + raise ValueError("Missing the required parameter `auth_role_id` when calling `update_auth_role`") - resource_path = '/platform/3/auth/providers/ldap/{ProvidersLdapId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/roles/{AuthRoleId}'.replace('{format}', 'json') path_params = {} - if 'providers_ldap_id' in params: - path_params['ProvidersLdapId'] = params['providers_ldap_id'] + if 'auth_role_id' in params: + path_params['AuthRoleId'] = params['auth_role_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'auth_role' in params: + body_params = params['auth_role'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7570,22 +5636,22 @@ def get_providers_ldap_id(self, providers_ldap_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersLdap', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_providers_ldap_id(self, providers_ldap_id_params, providers_ldap_id, **kwargs): + def update_auth_user(self, auth_user, auth_user_id, **kwargs): """ - Modify the LDAP provider. + Modify the user. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7593,18 +5659,20 @@ def update_providers_ldap_id(self, providers_ldap_id_params, providers_ldap_id, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_providers_ldap_id(providers_ldap_id_params, providers_ldap_id, callback=callback_function) + >>> thread = api.update_auth_user(auth_user, auth_user_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersLdapIdParams providers_ldap_id_params: (required) - :param str providers_ldap_id: Modify the LDAP provider. (required) + :param AuthUser auth_user: (required) + :param str auth_user_id: Modify the user. (required) + :param str zone: Optional zone. + :param str provider: Optional provider type. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ldap_id_params', 'providers_ldap_id'] + all_params = ['auth_user', 'auth_user_id', 'zone', 'provider'] all_params.append('callback') params = locals() @@ -7612,35 +5680,38 @@ def update_providers_ldap_id(self, providers_ldap_id_params, providers_ldap_id, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_providers_ldap_id" % key + " to method update_auth_user" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ldap_id_params' is set - if ('providers_ldap_id_params' not in params) or (params['providers_ldap_id_params'] is None): - raise ValueError("Missing the required parameter `providers_ldap_id_params` when calling `update_providers_ldap_id`") - # verify the required parameter 'providers_ldap_id' is set - if ('providers_ldap_id' not in params) or (params['providers_ldap_id'] is None): - raise ValueError("Missing the required parameter `providers_ldap_id` when calling `update_providers_ldap_id`") + # verify the required parameter 'auth_user' is set + if ('auth_user' not in params) or (params['auth_user'] is None): + raise ValueError("Missing the required parameter `auth_user` when calling `update_auth_user`") + # verify the required parameter 'auth_user_id' is set + if ('auth_user_id' not in params) or (params['auth_user_id'] is None): + raise ValueError("Missing the required parameter `auth_user_id` when calling `update_auth_user`") - resource_path = '/platform/3/auth/providers/ldap/{ProvidersLdapId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/users/{AuthUserId}'.replace('{format}', 'json') path_params = {} - if 'providers_ldap_id' in params: - path_params['ProvidersLdapId'] = params['providers_ldap_id'] + if 'auth_user_id' in params: + path_params['AuthUserId'] = params['auth_user_id'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_ldap_id_params' in params: - body_params = params['providers_ldap_id_params'] + if 'auth_user' in params: + body_params = params['auth_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7655,22 +5726,22 @@ def update_providers_ldap_id(self, providers_ldap_id_params, providers_ldap_id, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_providers_ldap_id(self, providers_ldap_id, **kwargs): + def update_mapping_import(self, mapping_import, **kwargs): """ - Delete the LDAP provider. + Set or update a list of mappings between two personae. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7678,17 +5749,19 @@ def delete_providers_ldap_id(self, providers_ldap_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_providers_ldap_id(providers_ldap_id, callback=callback_function) + >>> thread = api.update_mapping_import(mapping_import, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_ldap_id: Delete the LDAP provider. (required) + :param MappingImport mapping_import: (required) + :param str zone: Optional zone. + :param bool replace: Specify whether existing mappings should be replaced. The default behavior is to leave existing mappings intact and return an error. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ldap_id'] + all_params = ['mapping_import', 'zone', 'replace'] all_params.append('callback') params = locals() @@ -7696,30 +5769,33 @@ def delete_providers_ldap_id(self, providers_ldap_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_providers_ldap_id" % key + " to method update_mapping_import" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ldap_id' is set - if ('providers_ldap_id' not in params) or (params['providers_ldap_id'] is None): - raise ValueError("Missing the required parameter `providers_ldap_id` when calling `delete_providers_ldap_id`") + # verify the required parameter 'mapping_import' is set + if ('mapping_import' not in params) or (params['mapping_import'] is None): + raise ValueError("Missing the required parameter `mapping_import` when calling `update_mapping_import`") - resource_path = '/platform/3/auth/providers/ldap/{ProvidersLdapId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/auth/mapping/import'.replace('{format}', 'json') path_params = {} - if 'providers_ldap_id' in params: - path_params['ProvidersLdapId'] = params['providers_ldap_id'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'replace' in params: + query_params['replace'] = params['replace'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'mapping_import' in params: + body_params = params['mapping_import'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7734,22 +5810,22 @@ def delete_providers_ldap_id(self, providers_ldap_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_providers_nis(self, **kwargs): + def update_mapping_users_rules(self, mapping_users_rules, **kwargs): """ - List all NIS providers. + Modify the user mapping rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7757,17 +5833,17 @@ def list_providers_nis(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_providers_nis(callback=callback_function) + >>> thread = api.update_mapping_users_rules(mapping_users_rules, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersNis + :param MappingUsersRulesRules mapping_users_rules: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['scope'] + all_params = ['mapping_users_rules'] all_params.append('callback') params = locals() @@ -7775,27 +5851,29 @@ def list_providers_nis(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_providers_nis" % key + " to method update_mapping_users_rules" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'mapping_users_rules' is set + if ('mapping_users_rules' not in params) or (params['mapping_users_rules'] is None): + raise ValueError("Missing the required parameter `mapping_users_rules` when calling `update_mapping_users_rules`") - resource_path = '/platform/3/auth/providers/nis'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/mapping/users/rules'.replace('{format}', 'json') path_params = {} query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'mapping_users_rules' in params: + body_params = params['mapping_users_rules'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7810,22 +5888,22 @@ def list_providers_nis(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersNis', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_providers_ni(self, providers_ni, **kwargs): + def update_providers_ads_by_id(self, providers_ads_id_params, providers_ads_id, **kwargs): """ - Create a new NIS provider. + Modify the ADS provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7833,17 +5911,18 @@ def create_providers_ni(self, providers_ni, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_providers_ni(providers_ni, callback=callback_function) + >>> thread = api.update_providers_ads_by_id(providers_ads_id_params, providers_ads_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersNiCreateParams providers_ni: (required) - :return: CreateResponse + :param ProvidersAdsIdParams providers_ads_id_params: (required) + :param str providers_ads_id: Modify the ADS provider. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ni'] + all_params = ['providers_ads_id_params', 'providers_ads_id'] all_params.append('callback') params = locals() @@ -7851,30 +5930,34 @@ def create_providers_ni(self, providers_ni, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_providers_ni" % key + " to method update_providers_ads_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ni' is set - if ('providers_ni' not in params) or (params['providers_ni'] is None): - raise ValueError("Missing the required parameter `providers_ni` when calling `create_providers_ni`") + # verify the required parameter 'providers_ads_id_params' is set + if ('providers_ads_id_params' not in params) or (params['providers_ads_id_params'] is None): + raise ValueError("Missing the required parameter `providers_ads_id_params` when calling `update_providers_ads_by_id`") + # verify the required parameter 'providers_ads_id' is set + if ('providers_ads_id' not in params) or (params['providers_ads_id'] is None): + raise ValueError("Missing the required parameter `providers_ads_id` when calling `update_providers_ads_by_id`") - resource_path = '/platform/3/auth/providers/nis'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/auth/providers/ads/{ProvidersAdsId}'.replace('{format}', 'json') path_params = {} + if 'providers_ads_id' in params: + path_params['ProvidersAdsId'] = params['providers_ads_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_ni' in params: - body_params = params['providers_ni'] + if 'providers_ads_id_params' in params: + body_params = params['providers_ads_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7889,22 +5972,22 @@ def create_providers_ni(self, providers_ni, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_ni(self, providers_ni_id, **kwargs): + def update_providers_file_by_id(self, providers_file_id_params, providers_file_id, **kwargs): """ - Retrieve the NIS provider. + Modify the file provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7912,18 +5995,18 @@ def get_providers_ni(self, providers_ni_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_ni(providers_ni_id, callback=callback_function) + >>> thread = api.update_providers_file_by_id(providers_file_id_params, providers_file_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_ni_id: Retrieve the NIS provider. (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: ProvidersNis + :param ProvidersFileIdParams providers_file_id_params: (required) + :param str providers_file_id: Modify the file provider. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ni_id', 'scope'] + all_params = ['providers_file_id_params', 'providers_file_id'] all_params.append('callback') params = locals() @@ -7931,32 +6014,34 @@ def get_providers_ni(self, providers_ni_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_ni" % key + " to method update_providers_file_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ni_id' is set - if ('providers_ni_id' not in params) or (params['providers_ni_id'] is None): - raise ValueError("Missing the required parameter `providers_ni_id` when calling `get_providers_ni`") + # verify the required parameter 'providers_file_id_params' is set + if ('providers_file_id_params' not in params) or (params['providers_file_id_params'] is None): + raise ValueError("Missing the required parameter `providers_file_id_params` when calling `update_providers_file_by_id`") + # verify the required parameter 'providers_file_id' is set + if ('providers_file_id' not in params) or (params['providers_file_id'] is None): + raise ValueError("Missing the required parameter `providers_file_id` when calling `update_providers_file_by_id`") - resource_path = '/platform/3/auth/providers/nis/{ProvidersNiId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/providers/file/{ProvidersFileId}'.replace('{format}', 'json') path_params = {} - if 'providers_ni_id' in params: - path_params['ProvidersNiId'] = params['providers_ni_id'] + if 'providers_file_id' in params: + path_params['ProvidersFileId'] = params['providers_file_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'providers_file_id_params' in params: + body_params = params['providers_file_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7971,22 +6056,22 @@ def get_providers_ni(self, providers_ni_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersNis', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_providers_ni(self, providers_ni, providers_ni_id, **kwargs): + def update_providers_krb5_by_id(self, providers_krb5_id_params, providers_krb5_id, **kwargs): """ - Modify the NIS provider. + Modify the KRB5 provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7994,18 +6079,18 @@ def update_providers_ni(self, providers_ni, providers_ni_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_providers_ni(providers_ni, providers_ni_id, callback=callback_function) + >>> thread = api.update_providers_krb5_by_id(providers_krb5_id_params, providers_krb5_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ProvidersNi providers_ni: (required) - :param str providers_ni_id: Modify the NIS provider. (required) + :param ProvidersKrb5IdParams providers_krb5_id_params: (required) + :param str providers_krb5_id: Modify the KRB5 provider. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ni', 'providers_ni_id'] + all_params = ['providers_krb5_id_params', 'providers_krb5_id'] all_params.append('callback') params = locals() @@ -8013,35 +6098,34 @@ def update_providers_ni(self, providers_ni, providers_ni_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_providers_ni" % key + " to method update_providers_krb5_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ni' is set - if ('providers_ni' not in params) or (params['providers_ni'] is None): - raise ValueError("Missing the required parameter `providers_ni` when calling `update_providers_ni`") - # verify the required parameter 'providers_ni_id' is set - if ('providers_ni_id' not in params) or (params['providers_ni_id'] is None): - raise ValueError("Missing the required parameter `providers_ni_id` when calling `update_providers_ni`") + # verify the required parameter 'providers_krb5_id_params' is set + if ('providers_krb5_id_params' not in params) or (params['providers_krb5_id_params'] is None): + raise ValueError("Missing the required parameter `providers_krb5_id_params` when calling `update_providers_krb5_by_id`") + # verify the required parameter 'providers_krb5_id' is set + if ('providers_krb5_id' not in params) or (params['providers_krb5_id'] is None): + raise ValueError("Missing the required parameter `providers_krb5_id` when calling `update_providers_krb5_by_id`") - resource_path = '/platform/3/auth/providers/nis/{ProvidersNiId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/auth/providers/krb5/{ProvidersKrb5Id}'.replace('{format}', 'json') path_params = {} - if 'providers_ni_id' in params: - path_params['ProvidersNiId'] = params['providers_ni_id'] + if 'providers_krb5_id' in params: + path_params['ProvidersKrb5Id'] = params['providers_krb5_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'providers_ni' in params: - body_params = params['providers_ni'] + if 'providers_krb5_id_params' in params: + body_params = params['providers_krb5_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8056,22 +6140,22 @@ def update_providers_ni(self, providers_ni, providers_ni_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_providers_ni(self, providers_ni_id, **kwargs): + def update_providers_ldap_by_id(self, providers_ldap_id_params, providers_ldap_id, **kwargs): """ - Delete the NIS provider. + Modify the LDAP provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8079,17 +6163,18 @@ def delete_providers_ni(self, providers_ni_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_providers_ni(providers_ni_id, callback=callback_function) + >>> thread = api.update_providers_ldap_by_id(providers_ldap_id_params, providers_ldap_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str providers_ni_id: Delete the NIS provider. (required) + :param ProvidersLdapIdParams providers_ldap_id_params: (required) + :param str providers_ldap_id: Modify the LDAP provider. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['providers_ni_id'] + all_params = ['providers_ldap_id_params', 'providers_ldap_id'] all_params.append('callback') params = locals() @@ -8097,30 +6182,34 @@ def delete_providers_ni(self, providers_ni_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_providers_ni" % key + " to method update_providers_ldap_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'providers_ni_id' is set - if ('providers_ni_id' not in params) or (params['providers_ni_id'] is None): - raise ValueError("Missing the required parameter `providers_ni_id` when calling `delete_providers_ni`") + # verify the required parameter 'providers_ldap_id_params' is set + if ('providers_ldap_id_params' not in params) or (params['providers_ldap_id_params'] is None): + raise ValueError("Missing the required parameter `providers_ldap_id_params` when calling `update_providers_ldap_by_id`") + # verify the required parameter 'providers_ldap_id' is set + if ('providers_ldap_id' not in params) or (params['providers_ldap_id'] is None): + raise ValueError("Missing the required parameter `providers_ldap_id` when calling `update_providers_ldap_by_id`") - resource_path = '/platform/3/auth/providers/nis/{ProvidersNiId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/auth/providers/ldap/{ProvidersLdapId}'.replace('{format}', 'json') path_params = {} - if 'providers_ni_id' in params: - path_params['ProvidersNiId'] = params['providers_ni_id'] + if 'providers_ldap_id' in params: + path_params['ProvidersLdapId'] = params['providers_ldap_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'providers_ldap_id_params' in params: + body_params = params['providers_ldap_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8135,22 +6224,22 @@ def delete_providers_ni(self, providers_ni_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_providers_summary(self, **kwargs): + def update_providers_local_by_id(self, providers_local_id_params, providers_local_id, **kwargs): """ - Retrieve the summary information. + Modify the local provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8158,16 +6247,18 @@ def get_providers_summary(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_providers_summary(callback=callback_function) + >>> thread = api.update_providers_local_by_id(providers_local_id_params, providers_local_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ProvidersSummary + :param ProvidersLocalIdParams providers_local_id_params: (required) + :param str providers_local_id: Modify the local provider. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['providers_local_id_params', 'providers_local_id'] all_params.append('callback') params = locals() @@ -8175,25 +6266,34 @@ def get_providers_summary(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_providers_summary" % key + " to method update_providers_local_by_id" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'providers_local_id_params' is set + if ('providers_local_id_params' not in params) or (params['providers_local_id_params'] is None): + raise ValueError("Missing the required parameter `providers_local_id_params` when calling `update_providers_local_by_id`") + # verify the required parameter 'providers_local_id' is set + if ('providers_local_id' not in params) or (params['providers_local_id'] is None): + raise ValueError("Missing the required parameter `providers_local_id` when calling `update_providers_local_by_id`") - resource_path = '/platform/3/auth/providers/summary'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/providers/local/{ProvidersLocalId}'.replace('{format}', 'json') path_params = {} + if 'providers_local_id' in params: + path_params['ProvidersLocalId'] = params['providers_local_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'providers_local_id_params' in params: + body_params = params['providers_local_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8208,22 +6308,22 @@ def get_providers_summary(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ProvidersSummary', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_auth_refresh_item(self, auth_refresh_item, **kwargs): + def update_providers_nis_by_id(self, providers_nis_id_params, providers_nis_id, **kwargs): """ - Refresh the authentication service configuration. + Modify the NIS provider. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8231,17 +6331,18 @@ def create_auth_refresh_item(self, auth_refresh_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_auth_refresh_item(auth_refresh_item, callback=callback_function) + >>> thread = api.update_providers_nis_by_id(providers_nis_id_params, providers_nis_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty auth_refresh_item: (required) - :return: CreateAuthRefreshItemResponse + :param ProvidersNisIdParams providers_nis_id_params: (required) + :param str providers_nis_id: Modify the NIS provider. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['auth_refresh_item'] + all_params = ['providers_nis_id_params', 'providers_nis_id'] all_params.append('callback') params = locals() @@ -8249,30 +6350,34 @@ def create_auth_refresh_item(self, auth_refresh_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_auth_refresh_item" % key + " to method update_providers_nis_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'auth_refresh_item' is set - if ('auth_refresh_item' not in params) or (params['auth_refresh_item'] is None): - raise ValueError("Missing the required parameter `auth_refresh_item` when calling `create_auth_refresh_item`") + # verify the required parameter 'providers_nis_id_params' is set + if ('providers_nis_id_params' not in params) or (params['providers_nis_id_params'] is None): + raise ValueError("Missing the required parameter `providers_nis_id_params` when calling `update_providers_nis_by_id`") + # verify the required parameter 'providers_nis_id' is set + if ('providers_nis_id' not in params) or (params['providers_nis_id'] is None): + raise ValueError("Missing the required parameter `providers_nis_id` when calling `update_providers_nis_by_id`") - resource_path = '/platform/3/auth/refresh'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/auth/providers/nis/{ProvidersNisId}'.replace('{format}', 'json') path_params = {} + if 'providers_nis_id' in params: + path_params['ProvidersNisId'] = params['providers_nis_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'auth_refresh_item' in params: - body_params = params['auth_refresh_item'] + if 'providers_nis_id_params' in params: + body_params = params['providers_nis_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8287,22 +6392,22 @@ def create_auth_refresh_item(self, auth_refresh_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateAuthRefreshItemResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_acls(self, **kwargs): + def update_settings_acls(self, settings_acls, **kwargs): """ - Retrieve the ACL policy settings and preset configurations. + Modify cluster ACL policy settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8310,17 +6415,17 @@ def get_settings_acls(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_settings_acls(callback=callback_function) + >>> thread = api.update_settings_acls(settings_acls, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str preset: If specified the preset configuration values for all applicable ACL policies are returned. - :return: SettingsAcls + :param SettingsAclsAclPolicySettings settings_acls: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['preset'] + all_params = ['settings_acls'] all_params.append('callback') params = locals() @@ -8328,27 +6433,29 @@ def get_settings_acls(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_settings_acls" % key + " to method update_settings_acls" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'settings_acls' is set + if ('settings_acls' not in params) or (params['settings_acls'] is None): + raise ValueError("Missing the required parameter `settings_acls` when calling `update_settings_acls`") + resource_path = '/platform/3/auth/settings/acls'.replace('{format}', 'json') - method = 'GET' - path_params = {} query_params = {} - if 'preset' in params: - query_params['preset'] = params['preset'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'settings_acls' in params: + body_params = params['settings_acls'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8363,22 +6470,22 @@ def get_settings_acls(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsAcls', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_settings_acls(self, settings_acls, **kwargs): + def update_settings_global(self, settings_global, **kwargs): """ - Modify cluster ACL policy settings. + Modify the global settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8386,17 +6493,18 @@ def update_settings_acls(self, settings_acls, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_settings_acls(settings_acls, callback=callback_function) + >>> thread = api.update_settings_global(settings_global, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsAclsAclPolicySettings settings_acls: (required) + :param SettingsGlobalGlobalSettings settings_global: (required) + :param str zone: Zone which contains any per-zone settings. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_acls'] + all_params = ['settings_global', 'zone'] all_params.append('callback') params = locals() @@ -8404,30 +6512,31 @@ def update_settings_acls(self, settings_acls, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_settings_acls" % key + " to method update_settings_global" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_acls' is set - if ('settings_acls' not in params) or (params['settings_acls'] is None): - raise ValueError("Missing the required parameter `settings_acls` when calling `update_settings_acls`") + # verify the required parameter 'settings_global' is set + if ('settings_global' not in params) or (params['settings_global'] is None): + raise ValueError("Missing the required parameter `settings_global` when calling `update_settings_global`") - resource_path = '/platform/3/auth/settings/acls'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/settings/global'.replace('{format}', 'json') path_params = {} query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_acls' in params: - body_params = params['settings_acls'] + if 'settings_global' in params: + body_params = params['settings_global'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8442,22 +6551,22 @@ def update_settings_acls(self, settings_acls, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_users_user_change_password_2(self, users_user_change_password, user, **kwargs): + def update_settings_krb5_defaults(self, settings_krb5_defaults, **kwargs): """ - Change the user's password. + Modify the krb5 settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8465,19 +6574,17 @@ def update_users_user_change_password_2(self, users_user_change_password, user, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_users_user_change_password_2(users_user_change_password, user, callback=callback_function) + >>> thread = api.update_settings_krb5_defaults(settings_krb5_defaults, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param UsersUserChangePassword users_user_change_password: (required) - :param str user: (required) - :param str zone: Specifies access zone containing user. + :param SettingsKrb5DefaultsKrb5Settings settings_krb5_defaults: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['users_user_change_password', 'user', 'zone'] + all_params = ['settings_krb5_defaults'] all_params.append('callback') params = locals() @@ -8485,37 +6592,29 @@ def update_users_user_change_password_2(self, users_user_change_password, user, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_users_user_change_password_2" % key + " to method update_settings_krb5_defaults" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'users_user_change_password' is set - if ('users_user_change_password' not in params) or (params['users_user_change_password'] is None): - raise ValueError("Missing the required parameter `users_user_change_password` when calling `update_users_user_change_password_2`") - # verify the required parameter 'user' is set - if ('user' not in params) or (params['user'] is None): - raise ValueError("Missing the required parameter `user` when calling `update_users_user_change_password_2`") + # verify the required parameter 'settings_krb5_defaults' is set + if ('settings_krb5_defaults' not in params) or (params['settings_krb5_defaults'] is None): + raise ValueError("Missing the required parameter `settings_krb5_defaults` when calling `update_settings_krb5_defaults`") - resource_path = '/platform/3/auth/users/{User}/change-password'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/auth/settings/krb5/defaults'.replace('{format}', 'json') path_params = {} - if 'user' in params: - path_params['User'] = params['user'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'users_user_change_password' in params: - body_params = params['users_user_change_password'] + if 'settings_krb5_defaults' in params: + body_params = params['settings_krb5_defaults'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8530,22 +6629,22 @@ def update_users_user_change_password_2(self, users_user_change_password, user, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_users_user_member_of_3(self, user, **kwargs): + def update_settings_krb5_domain(self, settings_krb5_domain, settings_krb5_domain_id, **kwargs): """ - List all groups the user is a member of. + Modify the krb5 domain settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8553,20 +6652,18 @@ def list_users_user_member_of_3(self, user, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_users_user_member_of_3(user, callback=callback_function) + >>> thread = api.update_settings_krb5_domain(settings_krb5_domain, settings_krb5_domain_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str user: (required) - :param bool resolve_names: Resolve names of personas. - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. - :return: UsersUserMemberOf + :param SettingsKrb5Domain settings_krb5_domain: (required) + :param str settings_krb5_domain_id: Modify the krb5 domain settings. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['user', 'resolve_names', 'zone', 'provider'] + all_params = ['settings_krb5_domain', 'settings_krb5_domain_id'] all_params.append('callback') params = locals() @@ -8574,36 +6671,34 @@ def list_users_user_member_of_3(self, user, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_users_user_member_of_3" % key + " to method update_settings_krb5_domain" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'user' is set - if ('user' not in params) or (params['user'] is None): - raise ValueError("Missing the required parameter `user` when calling `list_users_user_member_of_3`") + # verify the required parameter 'settings_krb5_domain' is set + if ('settings_krb5_domain' not in params) or (params['settings_krb5_domain'] is None): + raise ValueError("Missing the required parameter `settings_krb5_domain` when calling `update_settings_krb5_domain`") + # verify the required parameter 'settings_krb5_domain_id' is set + if ('settings_krb5_domain_id' not in params) or (params['settings_krb5_domain_id'] is None): + raise ValueError("Missing the required parameter `settings_krb5_domain_id` when calling `update_settings_krb5_domain`") - resource_path = '/platform/3/auth/users/{User}/member-of'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/auth/settings/krb5/domains/{SettingsKrb5DomainId}'.replace('{format}', 'json') path_params = {} - if 'user' in params: - path_params['User'] = params['user'] + if 'settings_krb5_domain_id' in params: + path_params['SettingsKrb5DomainId'] = params['settings_krb5_domain_id'] query_params = {} - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'settings_krb5_domain' in params: + body_params = params['settings_krb5_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8618,22 +6713,22 @@ def list_users_user_member_of_3(self, user, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='UsersUserMemberOf', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_users_user_member_of_item_4(self, users_user_member_of_item, user, **kwargs): + def update_settings_krb5_realm(self, settings_krb5_realm, settings_krb5_realm_id, **kwargs): """ - Add the user to a group. + Modify the krb5 realm settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8641,20 +6736,18 @@ def create_users_user_member_of_item_4(self, users_user_member_of_item, user, ** >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_users_user_member_of_item_4(users_user_member_of_item, user, callback=callback_function) + >>> thread = api.update_settings_krb5_realm(settings_krb5_realm, settings_krb5_realm_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param GroupsGroupMember users_user_member_of_item: (required) - :param str user: (required) - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. - :return: CreateResponse + :param SettingsKrb5Realm settings_krb5_realm: (required) + :param str settings_krb5_realm_id: Modify the krb5 realm settings. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['users_user_member_of_item', 'user', 'zone', 'provider'] + all_params = ['settings_krb5_realm', 'settings_krb5_realm_id'] all_params.append('callback') params = locals() @@ -8662,39 +6755,34 @@ def create_users_user_member_of_item_4(self, users_user_member_of_item, user, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_users_user_member_of_item_4" % key + " to method update_settings_krb5_realm" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'users_user_member_of_item' is set - if ('users_user_member_of_item' not in params) or (params['users_user_member_of_item'] is None): - raise ValueError("Missing the required parameter `users_user_member_of_item` when calling `create_users_user_member_of_item_4`") - # verify the required parameter 'user' is set - if ('user' not in params) or (params['user'] is None): - raise ValueError("Missing the required parameter `user` when calling `create_users_user_member_of_item_4`") + # verify the required parameter 'settings_krb5_realm' is set + if ('settings_krb5_realm' not in params) or (params['settings_krb5_realm'] is None): + raise ValueError("Missing the required parameter `settings_krb5_realm` when calling `update_settings_krb5_realm`") + # verify the required parameter 'settings_krb5_realm_id' is set + if ('settings_krb5_realm_id' not in params) or (params['settings_krb5_realm_id'] is None): + raise ValueError("Missing the required parameter `settings_krb5_realm_id` when calling `update_settings_krb5_realm`") - resource_path = '/platform/3/auth/users/{User}/member-of'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/auth/settings/krb5/realms/{SettingsKrb5RealmId}'.replace('{format}', 'json') path_params = {} - if 'user' in params: - path_params['User'] = params['user'] + if 'settings_krb5_realm_id' in params: + path_params['SettingsKrb5RealmId'] = params['settings_krb5_realm_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'users_user_member_of_item' in params: - body_params = params['users_user_member_of_item'] + if 'settings_krb5_realm' in params: + body_params = params['settings_krb5_realm'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8709,22 +6797,22 @@ def create_users_user_member_of_item_4(self, users_user_member_of_item, user, ** # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_users_user_member_of_member_of_5(self, users_user_member_of_member_of, user, **kwargs): + def update_settings_mapping(self, settings_mapping, **kwargs): """ - Remove the user from the group. + Modify the mapping settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8732,20 +6820,18 @@ def delete_users_user_member_of_member_of_5(self, users_user_member_of_member_of >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_users_user_member_of_member_of_5(users_user_member_of_member_of, user, callback=callback_function) + >>> thread = api.update_settings_mapping(settings_mapping, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str users_user_member_of_member_of: Remove the user from the group. (required) - :param str user: (required) - :param str zone: Filter groups by zone. - :param str provider: Filter groups by provider. + :param SettingsMappingMappingSettings settings_mapping: (required) + :param str zone: Access zone which contains mapping settings. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['users_user_member_of_member_of', 'user', 'zone', 'provider'] + all_params = ['settings_mapping', 'zone'] all_params.append('callback') params = locals() @@ -8753,39 +6839,31 @@ def delete_users_user_member_of_member_of_5(self, users_user_member_of_member_of if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_users_user_member_of_member_of_5" % key + " to method update_settings_mapping" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'users_user_member_of_member_of' is set - if ('users_user_member_of_member_of' not in params) or (params['users_user_member_of_member_of'] is None): - raise ValueError("Missing the required parameter `users_user_member_of_member_of` when calling `delete_users_user_member_of_member_of_5`") - # verify the required parameter 'user' is set - if ('user' not in params) or (params['user'] is None): - raise ValueError("Missing the required parameter `user` when calling `delete_users_user_member_of_member_of_5`") + # verify the required parameter 'settings_mapping' is set + if ('settings_mapping' not in params) or (params['settings_mapping'] is None): + raise ValueError("Missing the required parameter `settings_mapping` when calling `update_settings_mapping`") - resource_path = '/platform/3/auth/users/{User}/member-of/{UsersUserMemberOfMemberOf}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/auth/settings/mapping'.replace('{format}', 'json') path_params = {} - if 'users_user_member_of_member_of' in params: - path_params['UsersUserMemberOfMemberOf'] = params['users_user_member_of_member_of'] - if 'user' in params: - path_params['User'] = params['user'] query_params = {} if 'zone' in params: query_params['zone'] = params['zone'] - if 'provider' in params: - query_params['provider'] = params['provider'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'settings_mapping' in params: + body_params = params['settings_mapping'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8800,13 +6878,13 @@ def delete_users_user_member_of_member_of_5(self, users_user_member_of_member_of # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/auth_groups_api.py b/isi_sdk/apis/auth_groups_api.py new file mode 100644 index 000000000..b48614685 --- /dev/null +++ b/isi_sdk/apis/auth_groups_api.py @@ -0,0 +1,319 @@ +# coding: utf-8 + +""" +AuthGroupsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AuthGroupsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_group_member(self, group_member, group, **kwargs): + """ + + Add a member to the group. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_group_member(group_member, group, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param GroupMember group_member: (required) + :param str group: (required) + :param str zone: Filter group members by zone. + :param str provider: Filter group members by provider. + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_member', 'group', 'zone', 'provider'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_group_member" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'group_member' is set + if ('group_member' not in params) or (params['group_member'] is None): + raise ValueError("Missing the required parameter `group_member` when calling `create_group_member`") + # verify the required parameter 'group' is set + if ('group' not in params) or (params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `create_group_member`") + + + resource_path = '/platform/1/auth/groups/{Group}/members'.replace('{format}', 'json') + path_params = {} + if 'group' in params: + path_params['Group'] = params['group'] + + query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'group_member' in params: + body_params = params['group_member'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_group_member(self, group_member_id, group, **kwargs): + """ + + Remove the member from the group. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_group_member(group_member_id, group, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str group_member_id: Remove the member from the group. (required) + :param str group: (required) + :param str zone: Filter group members by zone. + :param str provider: Filter group members by provider. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group_member_id', 'group', 'zone', 'provider'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_group_member" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'group_member_id' is set + if ('group_member_id' not in params) or (params['group_member_id'] is None): + raise ValueError("Missing the required parameter `group_member_id` when calling `delete_group_member`") + # verify the required parameter 'group' is set + if ('group' not in params) or (params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `delete_group_member`") + + + resource_path = '/platform/1/auth/groups/{Group}/members/{GroupMemberId}'.replace('{format}', 'json') + path_params = {} + if 'group_member_id' in params: + path_params['GroupMemberId'] = params['group_member_id'] + if 'group' in params: + path_params['Group'] = params['group'] + + query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_group_members(self, group, **kwargs): + """ + + List all the members of the group. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_group_members(group, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str group: (required) + :param bool resolve_names: Resolve names of personas. + :param int limit: Return no more than this many results at once (see resume). + :param str zone: Filter group members by zone. + :param str provider: Filter group members by provider. + :return: GroupMembers + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['group', 'resolve_names', 'limit', 'zone', 'provider'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_group_members" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'group' is set + if ('group' not in params) or (params['group'] is None): + raise ValueError("Missing the required parameter `group` when calling `list_group_members`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_group_members`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/1/auth/groups/{Group}/members'.replace('{format}', 'json') + path_params = {} + if 'group' in params: + path_params['Group'] = params['group'] + + query_params = {} + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupMembers', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/auth_providers_api.py b/isi_sdk/apis/auth_providers_api.py new file mode 100644 index 000000000..1aef67ff6 --- /dev/null +++ b/isi_sdk/apis/auth_providers_api.py @@ -0,0 +1,397 @@ +# coding: utf-8 + +""" +AuthProvidersApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AuthProvidersApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_ads_provider_controllers(self, id, **kwargs): + """ + + List all ADS controllers. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_ads_provider_controllers(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: AdsProviderControllers + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_ads_provider_controllers" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_ads_provider_controllers`") + + + resource_path = '/platform/1/auth/providers/ads/{Id}/controllers'.replace('{format}', 'json') + path_params = {} + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdsProviderControllers', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_ads_provider_domain(self, ads_provider_domain_id, id, **kwargs): + """ + + Retrieve the ADS domain information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_ads_provider_domain(ads_provider_domain_id, id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str ads_provider_domain_id: Retrieve the ADS domain information. (required) + :param str id: (required) + :return: AdsProviderDomains + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['ads_provider_domain_id', 'id'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_ads_provider_domain" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'ads_provider_domain_id' is set + if ('ads_provider_domain_id' not in params) or (params['ads_provider_domain_id'] is None): + raise ValueError("Missing the required parameter `ads_provider_domain_id` when calling `get_ads_provider_domain`") + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_ads_provider_domain`") + + + resource_path = '/platform/3/auth/providers/ads/{Id}/domains/{AdsProviderDomainId}'.replace('{format}', 'json') + path_params = {} + if 'ads_provider_domain_id' in params: + path_params['AdsProviderDomainId'] = params['ads_provider_domain_id'] + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdsProviderDomains', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_ads_provider_domains(self, id, **kwargs): + """ + + List all ADS domains. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_ads_provider_domains(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: AdsProviderDomains + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'scope'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_ads_provider_domains" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_ads_provider_domains`") + + + resource_path = '/platform/3/auth/providers/ads/{Id}/domains'.replace('{format}', 'json') + path_params = {} + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdsProviderDomains', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_ads_provider_search(self, id, **kwargs): + """ + + Retrieve search results. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_ads_provider_search(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :param str domain: The domain to search in. + :param str description: The user or group description to search for. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param bool search_users: If true, search for users. + :param str filter: The LDAP filter to apply to the search. + :param int limit: Return no more than this many results at once (see resume). + :param str user: The user name for the domain if untrusted. + :param str password: The password for the domain if untrusted. + :param bool search_groups: If true, search for groups. + :return: AdsProviderSearch + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'domain', 'description', 'resume', 'search_users', 'filter', 'limit', 'user', 'password', 'search_groups'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_ads_provider_search" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_ads_provider_search`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_ads_provider_search`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/1/auth/providers/ads/{Id}/search'.replace('{format}', 'json') + path_params = {} + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + if 'domain' in params: + query_params['domain'] = params['domain'] + if 'description' in params: + query_params['description'] = params['description'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'search_users' in params: + query_params['search_users'] = params['search_users'] + if 'filter' in params: + query_params['filter'] = params['filter'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'user' in params: + query_params['user'] = params['user'] + if 'password' in params: + query_params['password'] = params['password'] + if 'search_groups' in params: + query_params['search_groups'] = params['search_groups'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdsProviderSearch', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/auth_roles_api.py b/isi_sdk/apis/auth_roles_api.py new file mode 100644 index 000000000..bca1d6d84 --- /dev/null +++ b/isi_sdk/apis/auth_roles_api.py @@ -0,0 +1,542 @@ +# coding: utf-8 + +""" +AuthRolesApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AuthRolesApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_role_member(self, role_member, role, **kwargs): + """ + + Add a member to the role. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_role_member(role_member, role, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param GroupMember role_member: (required) + :param str role: (required) + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['role_member', 'role'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_role_member" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'role_member' is set + if ('role_member' not in params) or (params['role_member'] is None): + raise ValueError("Missing the required parameter `role_member` when calling `create_role_member`") + # verify the required parameter 'role' is set + if ('role' not in params) or (params['role'] is None): + raise ValueError("Missing the required parameter `role` when calling `create_role_member`") + + + resource_path = '/platform/1/auth/roles/{Role}/members'.replace('{format}', 'json') + path_params = {} + if 'role' in params: + path_params['Role'] = params['role'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'role_member' in params: + body_params = params['role_member'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_role_privilege(self, role_privilege, role, **kwargs): + """ + + Add a privilege to the role. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_role_privilege(role_privilege, role, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param AuthIdNtokenPrivilegeItem role_privilege: (required) + :param str role: (required) + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['role_privilege', 'role'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_role_privilege" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'role_privilege' is set + if ('role_privilege' not in params) or (params['role_privilege'] is None): + raise ValueError("Missing the required parameter `role_privilege` when calling `create_role_privilege`") + # verify the required parameter 'role' is set + if ('role' not in params) or (params['role'] is None): + raise ValueError("Missing the required parameter `role` when calling `create_role_privilege`") + + + resource_path = '/platform/1/auth/roles/{Role}/privileges'.replace('{format}', 'json') + path_params = {} + if 'role' in params: + path_params['Role'] = params['role'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'role_privilege' in params: + body_params = params['role_privilege'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_role_member(self, role_member_id, role, **kwargs): + """ + + Remove a member from the role. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_role_member(role_member_id, role, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str role_member_id: Remove a member from the role. (required) + :param str role: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['role_member_id', 'role'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_role_member" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'role_member_id' is set + if ('role_member_id' not in params) or (params['role_member_id'] is None): + raise ValueError("Missing the required parameter `role_member_id` when calling `delete_role_member`") + # verify the required parameter 'role' is set + if ('role' not in params) or (params['role'] is None): + raise ValueError("Missing the required parameter `role` when calling `delete_role_member`") + + + resource_path = '/platform/1/auth/roles/{Role}/members/{RoleMemberId}'.replace('{format}', 'json') + path_params = {} + if 'role_member_id' in params: + path_params['RoleMemberId'] = params['role_member_id'] + if 'role' in params: + path_params['Role'] = params['role'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_role_privilege(self, role_privilege_id, role, **kwargs): + """ + + Remove a privilege from a role. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_role_privilege(role_privilege_id, role, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str role_privilege_id: Remove a privilege from a role. (required) + :param str role: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['role_privilege_id', 'role'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_role_privilege" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'role_privilege_id' is set + if ('role_privilege_id' not in params) or (params['role_privilege_id'] is None): + raise ValueError("Missing the required parameter `role_privilege_id` when calling `delete_role_privilege`") + # verify the required parameter 'role' is set + if ('role' not in params) or (params['role'] is None): + raise ValueError("Missing the required parameter `role` when calling `delete_role_privilege`") + + + resource_path = '/platform/1/auth/roles/{Role}/privileges/{RolePrivilegeId}'.replace('{format}', 'json') + path_params = {} + if 'role_privilege_id' in params: + path_params['RolePrivilegeId'] = params['role_privilege_id'] + if 'role' in params: + path_params['Role'] = params['role'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_role_members(self, role, **kwargs): + """ + + List all the members of the role. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_role_members(role, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str role: (required) + :param bool resolve_names: Resolve names of personas. + :return: GroupMembers + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['role', 'resolve_names'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_role_members" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'role' is set + if ('role' not in params) or (params['role'] is None): + raise ValueError("Missing the required parameter `role` when calling `list_role_members`") + + + resource_path = '/platform/1/auth/roles/{Role}/members'.replace('{format}', 'json') + path_params = {} + if 'role' in params: + path_params['Role'] = params['role'] + + query_params = {} + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupMembers', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_role_privileges(self, role, **kwargs): + """ + + List all privileges in the role. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_role_privileges(role, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str role: (required) + :return: RolePrivileges + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['role'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_role_privileges" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'role' is set + if ('role' not in params) or (params['role'] is None): + raise ValueError("Missing the required parameter `role` when calling `list_role_privileges`") + + + resource_path = '/platform/1/auth/roles/{Role}/privileges'.replace('{format}', 'json') + path_params = {} + if 'role' in params: + path_params['Role'] = params['role'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RolePrivileges', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/auth_users_api.py b/isi_sdk/apis/auth_users_api.py new file mode 100644 index 000000000..0837a11e5 --- /dev/null +++ b/isi_sdk/apis/auth_users_api.py @@ -0,0 +1,401 @@ +# coding: utf-8 + +""" +AuthUsersApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AuthUsersApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_user_member_of_item(self, user_member_of_item, user, **kwargs): + """ + + Add the user to a group. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_user_member_of_item(user_member_of_item, user, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param GroupMember user_member_of_item: (required) + :param str user: (required) + :param str zone: Filter groups by zone. + :param str provider: Filter groups by provider. + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_member_of_item', 'user', 'zone', 'provider'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_user_member_of_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'user_member_of_item' is set + if ('user_member_of_item' not in params) or (params['user_member_of_item'] is None): + raise ValueError("Missing the required parameter `user_member_of_item` when calling `create_user_member_of_item`") + # verify the required parameter 'user' is set + if ('user' not in params) or (params['user'] is None): + raise ValueError("Missing the required parameter `user` when calling `create_user_member_of_item`") + + + resource_path = '/platform/3/auth/users/{User}/member-of'.replace('{format}', 'json') + path_params = {} + if 'user' in params: + path_params['User'] = params['user'] + + query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'user_member_of_item' in params: + body_params = params['user_member_of_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_user_member_of_member_of(self, user_member_of_member_of, user, **kwargs): + """ + + Remove the user from the group. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_user_member_of_member_of(user_member_of_member_of, user, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str user_member_of_member_of: Remove the user from the group. (required) + :param str user: (required) + :param str zone: Filter groups by zone. + :param str provider: Filter groups by provider. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_member_of_member_of', 'user', 'zone', 'provider'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_user_member_of_member_of" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'user_member_of_member_of' is set + if ('user_member_of_member_of' not in params) or (params['user_member_of_member_of'] is None): + raise ValueError("Missing the required parameter `user_member_of_member_of` when calling `delete_user_member_of_member_of`") + # verify the required parameter 'user' is set + if ('user' not in params) or (params['user'] is None): + raise ValueError("Missing the required parameter `user` when calling `delete_user_member_of_member_of`") + + + resource_path = '/platform/3/auth/users/{User}/member-of/{UserMemberOfMemberOf}'.replace('{format}', 'json') + path_params = {} + if 'user_member_of_member_of' in params: + path_params['UserMemberOfMemberOf'] = params['user_member_of_member_of'] + if 'user' in params: + path_params['User'] = params['user'] + + query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_user_member_of(self, user, **kwargs): + """ + + List all groups the user is a member of. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_user_member_of(user, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str user: (required) + :param bool resolve_names: Resolve names of personas. + :param str zone: Filter groups by zone. + :param str provider: Filter groups by provider. + :return: UserMemberOf + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user', 'resolve_names', 'zone', 'provider'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_user_member_of" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'user' is set + if ('user' not in params) or (params['user'] is None): + raise ValueError("Missing the required parameter `user` when calling `list_user_member_of`") + + + resource_path = '/platform/3/auth/users/{User}/member-of'.replace('{format}', 'json') + path_params = {} + if 'user' in params: + path_params['User'] = params['user'] + + query_params = {} + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'provider' in params: + query_params['provider'] = params['provider'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UserMemberOf', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_user_change_password(self, user_change_password, user, **kwargs): + """ + + Change the user's password. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_user_change_password(user_change_password, user, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param UserChangePassword user_change_password: (required) + :param str user: (required) + :param str zone: Specifies access zone containing user. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['user_change_password', 'user', 'zone'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_user_change_password" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'user_change_password' is set + if ('user_change_password' not in params) or (params['user_change_password'] is None): + raise ValueError("Missing the required parameter `user_change_password` when calling `update_user_change_password`") + # verify the required parameter 'user' is set + if ('user' not in params) or (params['user'] is None): + raise ValueError("Missing the required parameter `user` when calling `update_user_change_password`") + + + resource_path = '/platform/3/auth/users/{User}/change-password'.replace('{format}', 'json') + path_params = {} + if 'user' in params: + path_params['User'] = params['user'] + + query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'user_change_password' in params: + body_params = params['user_change_password'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/cloud_api.py b/isi_sdk/apis/cloud_api.py index 8a81177a0..c8d901de6 100644 --- a/isi_sdk/apis/cloud_api.py +++ b/isi_sdk/apis/cloud_api.py @@ -2,7 +2,7 @@ """ CloudApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_cloud_access(self, **kwargs): + def create_cloud_access_item(self, cloud_access_item, **kwargs): """ - List all accessible cluster identifiers. + Add a cluster identifier to access list. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,19 +57,17 @@ def list_cloud_access(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_cloud_access(callback=callback_function) + >>> thread = api.create_cloud_access_item(cloud_access_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: CloudAccessExtended + :param CloudAccessItem cloud_access_item: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir'] + all_params = ['cloud_access_item'] all_params.append('callback') params = locals() @@ -76,31 +75,29 @@ def list_cloud_access(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_cloud_access" % key + " to method create_cloud_access_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cloud_access_item' is set + if ('cloud_access_item' not in params) or (params['cloud_access_item'] is None): + raise ValueError("Missing the required parameter `cloud_access_item` when calling `create_cloud_access_item`") - resource_path = '/platform/3/cloud/access'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/access'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cloud_access_item' in params: + body_params = params['cloud_access_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -115,22 +112,22 @@ def list_cloud_access(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudAccessExtended', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cloud_access_item(self, cloud_access_item, **kwargs): + def create_cloud_account(self, cloud_account, **kwargs): """ - Add a cluster identifier to access list. + Create a new account. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -138,17 +135,17 @@ def create_cloud_access_item(self, cloud_access_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cloud_access_item(cloud_access_item, callback=callback_function) + >>> thread = api.create_cloud_account(cloud_account, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CloudAccessItem cloud_access_item: (required) - :return: Empty + :param CloudAccountCreateParams cloud_account: (required) + :return: CreateCloudAccountResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_access_item'] + all_params = ['cloud_account'] all_params.append('callback') params = locals() @@ -156,30 +153,29 @@ def create_cloud_access_item(self, cloud_access_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cloud_access_item" % key + " to method create_cloud_account" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_access_item' is set - if ('cloud_access_item' not in params) or (params['cloud_access_item'] is None): - raise ValueError("Missing the required parameter `cloud_access_item` when calling `create_cloud_access_item`") + # verify the required parameter 'cloud_account' is set + if ('cloud_account' not in params) or (params['cloud_account'] is None): + raise ValueError("Missing the required parameter `cloud_account` when calling `create_cloud_account`") - resource_path = '/platform/3/cloud/access'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/cloud/accounts'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cloud_access_item' in params: - body_params = params['cloud_access_item'] + if 'cloud_account' in params: + body_params = params['cloud_account'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -194,22 +190,22 @@ def create_cloud_access_item(self, cloud_access_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='CreateCloudAccountResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cloud_access_guid(self, cloud_access_guid, **kwargs): + def create_cloud_job(self, cloud_job, **kwargs): """ - Retrieve cloud access information. + Create a new job. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -217,17 +213,17 @@ def get_cloud_access_guid(self, cloud_access_guid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cloud_access_guid(cloud_access_guid, callback=callback_function) + >>> thread = api.create_cloud_job(cloud_job, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str cloud_access_guid: Retrieve cloud access information. (required) - :return: CloudAccess + :param CloudJobCreateParams cloud_job: (required) + :return: CreateCloudJobResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_access_guid'] + all_params = ['cloud_job'] all_params.append('callback') params = locals() @@ -235,30 +231,29 @@ def get_cloud_access_guid(self, cloud_access_guid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cloud_access_guid" % key + " to method create_cloud_job" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_access_guid' is set - if ('cloud_access_guid' not in params) or (params['cloud_access_guid'] is None): - raise ValueError("Missing the required parameter `cloud_access_guid` when calling `get_cloud_access_guid`") + # verify the required parameter 'cloud_job' is set + if ('cloud_job' not in params) or (params['cloud_job'] is None): + raise ValueError("Missing the required parameter `cloud_job` when calling `create_cloud_job`") - resource_path = '/platform/3/cloud/access/{CloudAccessGuid}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/jobs'.replace('{format}', 'json') path_params = {} - if 'cloud_access_guid' in params: - path_params['CloudAccessGuid'] = params['cloud_access_guid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cloud_job' in params: + body_params = params['cloud_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -273,22 +268,22 @@ def get_cloud_access_guid(self, cloud_access_guid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudAccess', + files=local_var_files, + response_type='CreateCloudJobResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_cloud_access_guid(self, cloud_access_guid, **kwargs): + def create_cloud_pool(self, cloud_pool, **kwargs): """ - Delete cloud access. + Create a new pool. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -296,17 +291,17 @@ def delete_cloud_access_guid(self, cloud_access_guid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_cloud_access_guid(cloud_access_guid, callback=callback_function) + >>> thread = api.create_cloud_pool(cloud_pool, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str cloud_access_guid: Delete cloud access. (required) - :return: None + :param CloudPoolCreateParams cloud_pool: (required) + :return: CreateCloudPoolResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_access_guid'] + all_params = ['cloud_pool'] all_params.append('callback') params = locals() @@ -314,30 +309,29 @@ def delete_cloud_access_guid(self, cloud_access_guid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_cloud_access_guid" % key + " to method create_cloud_pool" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_access_guid' is set - if ('cloud_access_guid' not in params) or (params['cloud_access_guid'] is None): - raise ValueError("Missing the required parameter `cloud_access_guid` when calling `delete_cloud_access_guid`") + # verify the required parameter 'cloud_pool' is set + if ('cloud_pool' not in params) or (params['cloud_pool'] is None): + raise ValueError("Missing the required parameter `cloud_pool` when calling `create_cloud_pool`") - resource_path = '/platform/3/cloud/access/{CloudAccessGuid}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/cloud/pools'.replace('{format}', 'json') path_params = {} - if 'cloud_access_guid' in params: - path_params['CloudAccessGuid'] = params['cloud_access_guid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cloud_pool' in params: + body_params = params['cloud_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -352,22 +346,22 @@ def delete_cloud_access_guid(self, cloud_access_guid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateCloudPoolResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_cloud_accounts(self, **kwargs): + def create_settings_encryption_key_item(self, **kwargs): """ - List all accounts. + Regenerate master encryption key. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -375,19 +369,16 @@ def list_cloud_accounts(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_cloud_accounts(callback=callback_function) + >>> thread = api.create_settings_encryption_key_item(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: CloudAccountsExtended + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir'] + all_params = [] all_params.append('callback') params = locals() @@ -395,29 +386,22 @@ def list_cloud_accounts(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_cloud_accounts" % key + " to method create_settings_encryption_key_item" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/cloud/accounts'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/settings/encryption-key'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -434,22 +418,22 @@ def list_cloud_accounts(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudAccountsExtended', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cloud_account(self, cloud_account, **kwargs): + def create_settings_reporting_eula_item(self, settings_reporting_eula_item, **kwargs): """ - Create a new account. + Accept telemetry collection EULA. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -457,17 +441,17 @@ def create_cloud_account(self, cloud_account, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cloud_account(cloud_account, callback=callback_function) + >>> thread = api.create_settings_reporting_eula_item(settings_reporting_eula_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CloudAccountCreateParams cloud_account: (required) - :return: CreateCloudAccountResponse + :param SettingsReportingEulaItem settings_reporting_eula_item: (required) + :return: SettingsReportingEulaItem If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_account'] + all_params = ['settings_reporting_eula_item'] all_params.append('callback') params = locals() @@ -475,30 +459,29 @@ def create_cloud_account(self, cloud_account, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cloud_account" % key + " to method create_settings_reporting_eula_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_account' is set - if ('cloud_account' not in params) or (params['cloud_account'] is None): - raise ValueError("Missing the required parameter `cloud_account` when calling `create_cloud_account`") + # verify the required parameter 'settings_reporting_eula_item' is set + if ('settings_reporting_eula_item' not in params) or (params['settings_reporting_eula_item'] is None): + raise ValueError("Missing the required parameter `settings_reporting_eula_item` when calling `create_settings_reporting_eula_item`") - resource_path = '/platform/3/cloud/accounts'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/cloud/settings/reporting-eula'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cloud_account' in params: - body_params = params['cloud_account'] + if 'settings_reporting_eula_item' in params: + body_params = params['settings_reporting_eula_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -513,22 +496,22 @@ def create_cloud_account(self, cloud_account, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateCloudAccountResponse', + files=local_var_files, + response_type='SettingsReportingEulaItem', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cloud_account(self, cloud_account_id, **kwargs): + def delete_cloud_access_guid(self, cloud_access_guid, **kwargs): """ - Retrieve cloud account information. + Delete cloud access. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -536,17 +519,17 @@ def get_cloud_account(self, cloud_account_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cloud_account(cloud_account_id, callback=callback_function) + >>> thread = api.delete_cloud_access_guid(cloud_access_guid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str cloud_account_id: Retrieve cloud account information. (required) - :return: CloudAccounts + :param str cloud_access_guid: Delete cloud access. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_account_id'] + all_params = ['cloud_access_guid'] all_params.append('callback') params = locals() @@ -554,28 +537,27 @@ def get_cloud_account(self, cloud_account_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cloud_account" % key + " to method delete_cloud_access_guid" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_account_id' is set - if ('cloud_account_id' not in params) or (params['cloud_account_id'] is None): - raise ValueError("Missing the required parameter `cloud_account_id` when calling `get_cloud_account`") + # verify the required parameter 'cloud_access_guid' is set + if ('cloud_access_guid' not in params) or (params['cloud_access_guid'] is None): + raise ValueError("Missing the required parameter `cloud_access_guid` when calling `delete_cloud_access_guid`") - resource_path = '/platform/3/cloud/accounts/{CloudAccountId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/access/{CloudAccessGuid}'.replace('{format}', 'json') path_params = {} - if 'cloud_account_id' in params: - path_params['CloudAccountId'] = params['cloud_account_id'] + if 'cloud_access_guid' in params: + path_params['CloudAccessGuid'] = params['cloud_access_guid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -592,22 +574,22 @@ def get_cloud_account(self, cloud_account_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudAccounts', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cloud_account(self, cloud_account, cloud_account_id, **kwargs): + def delete_cloud_account(self, cloud_account_id, **kwargs): """ - Modify cloud account. All fields are optional, but one or more must be supplied. + Delete cloud account. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -615,18 +597,17 @@ def update_cloud_account(self, cloud_account, cloud_account_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cloud_account(cloud_account, cloud_account_id, callback=callback_function) + >>> thread = api.delete_cloud_account(cloud_account_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CloudAccount cloud_account: (required) - :param str cloud_account_id: Modify cloud account. All fields are optional, but one or more must be supplied. (required) + :param str cloud_account_id: Delete cloud account. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_account', 'cloud_account_id'] + all_params = ['cloud_account_id'] all_params.append('callback') params = locals() @@ -634,21 +615,17 @@ def update_cloud_account(self, cloud_account, cloud_account_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cloud_account" % key + " to method delete_cloud_account" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_account' is set - if ('cloud_account' not in params) or (params['cloud_account'] is None): - raise ValueError("Missing the required parameter `cloud_account` when calling `update_cloud_account`") # verify the required parameter 'cloud_account_id' is set if ('cloud_account_id' not in params) or (params['cloud_account_id'] is None): - raise ValueError("Missing the required parameter `cloud_account_id` when calling `update_cloud_account`") + raise ValueError("Missing the required parameter `cloud_account_id` when calling `delete_cloud_account`") - resource_path = '/platform/3/cloud/accounts/{CloudAccountId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/cloud/accounts/{CloudAccountId}'.replace('{format}', 'json') path_params = {} if 'cloud_account_id' in params: path_params['CloudAccountId'] = params['cloud_account_id'] @@ -657,12 +634,10 @@ def update_cloud_account(self, cloud_account, cloud_account_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cloud_account' in params: - body_params = params['cloud_account'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -677,22 +652,22 @@ def update_cloud_account(self, cloud_account, cloud_account_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_cloud_account(self, cloud_account_id, **kwargs): + def delete_cloud_pool(self, cloud_pool_id, **kwargs): """ - Delete cloud account. + Delete a cloud pool. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -700,17 +675,17 @@ def delete_cloud_account(self, cloud_account_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_cloud_account(cloud_account_id, callback=callback_function) + >>> thread = api.delete_cloud_pool(cloud_pool_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str cloud_account_id: Delete cloud account. (required) + :param str cloud_pool_id: Delete a cloud pool. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_account_id'] + all_params = ['cloud_pool_id'] all_params.append('callback') params = locals() @@ -718,28 +693,27 @@ def delete_cloud_account(self, cloud_account_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_cloud_account" % key + " to method delete_cloud_pool" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_account_id' is set - if ('cloud_account_id' not in params) or (params['cloud_account_id'] is None): - raise ValueError("Missing the required parameter `cloud_account_id` when calling `delete_cloud_account`") + # verify the required parameter 'cloud_pool_id' is set + if ('cloud_pool_id' not in params) or (params['cloud_pool_id'] is None): + raise ValueError("Missing the required parameter `cloud_pool_id` when calling `delete_cloud_pool`") - resource_path = '/platform/3/cloud/accounts/{CloudAccountId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/cloud/pools/{CloudPoolId}'.replace('{format}', 'json') path_params = {} - if 'cloud_account_id' in params: - path_params['CloudAccountId'] = params['cloud_account_id'] + if 'cloud_pool_id' in params: + path_params['CloudPoolId'] = params['cloud_pool_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -756,22 +730,22 @@ def delete_cloud_account(self, cloud_account_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_cloud_jobs(self, **kwargs): + def delete_settings_reporting_eula(self, **kwargs): """ - List all cloudpools jobs. + Revoke acceptance of telemetry collection EULA. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -779,19 +753,16 @@ def list_cloud_jobs(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_cloud_jobs(callback=callback_function) + >>> thread = api.delete_settings_reporting_eula(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: CloudJobsExtended + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir'] + all_params = [] all_params.append('callback') params = locals() @@ -799,29 +770,22 @@ def list_cloud_jobs(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_cloud_jobs" % key + " to method delete_settings_reporting_eula" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/cloud/jobs'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/settings/reporting-eula'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -838,22 +802,22 @@ def list_cloud_jobs(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudJobsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cloud_job(self, cloud_job, **kwargs): + def get_cloud_access_guid(self, cloud_access_guid, **kwargs): """ - Create a new job. + Retrieve cloud access information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -861,17 +825,17 @@ def create_cloud_job(self, cloud_job, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cloud_job(cloud_job, callback=callback_function) + >>> thread = api.get_cloud_access_guid(cloud_access_guid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CloudJobCreateParams cloud_job: (required) - :return: CreateCloudJobResponse + :param str cloud_access_guid: Retrieve cloud access information. (required) + :return: CloudAccess If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_job'] + all_params = ['cloud_access_guid'] all_params.append('callback') params = locals() @@ -879,30 +843,29 @@ def create_cloud_job(self, cloud_job, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cloud_job" % key + " to method get_cloud_access_guid" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_job' is set - if ('cloud_job' not in params) or (params['cloud_job'] is None): - raise ValueError("Missing the required parameter `cloud_job` when calling `create_cloud_job`") + # verify the required parameter 'cloud_access_guid' is set + if ('cloud_access_guid' not in params) or (params['cloud_access_guid'] is None): + raise ValueError("Missing the required parameter `cloud_access_guid` when calling `get_cloud_access_guid`") - resource_path = '/platform/3/cloud/jobs'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/cloud/access/{CloudAccessGuid}'.replace('{format}', 'json') path_params = {} + if 'cloud_access_guid' in params: + path_params['CloudAccessGuid'] = params['cloud_access_guid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cloud_job' in params: - body_params = params['cloud_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -917,22 +880,22 @@ def create_cloud_job(self, cloud_job, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateCloudJobResponse', + files=local_var_files, + response_type='CloudAccess', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cloud_jobs_file(self, cloud_jobs_file_id, **kwargs): + def get_cloud_account(self, cloud_account_id, **kwargs): """ - Retrieve files associated with a cloudpool job. + Retrieve cloud account information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -940,23 +903,17 @@ def get_cloud_jobs_file(self, cloud_jobs_file_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cloud_jobs_file(cloud_jobs_file_id, callback=callback_function) + >>> thread = api.get_cloud_account(cloud_account_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str cloud_jobs_file_id: Retrieve files associated with a cloudpool job. (required) - :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param bool batch: If true, only \"limit\" and \"page\" arguments are honored. Query will return all results, unsorted, as quickly as possible. - :param int limit: Return no more than this many results at once (see resume). - :param int page: Works only when \"batch\" parameter and \"limit\" parameters are specified. Indicates which the page index of results to be returned - :param str dir: The direction of the sort. - :return: CloudJobsFiles + :param str cloud_account_id: Retrieve cloud account information. (required) + :return: CloudAccounts If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_jobs_file_id', 'sort', 'resume', 'batch', 'limit', 'page', 'dir'] + all_params = ['cloud_account_id'] all_params.append('callback') params = locals() @@ -964,40 +921,27 @@ def get_cloud_jobs_file(self, cloud_jobs_file_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cloud_jobs_file" % key + " to method get_cloud_account" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_jobs_file_id' is set - if ('cloud_jobs_file_id' not in params) or (params['cloud_jobs_file_id'] is None): - raise ValueError("Missing the required parameter `cloud_jobs_file_id` when calling `get_cloud_jobs_file`") + # verify the required parameter 'cloud_account_id' is set + if ('cloud_account_id' not in params) or (params['cloud_account_id'] is None): + raise ValueError("Missing the required parameter `cloud_account_id` when calling `get_cloud_account`") - resource_path = '/platform/3/cloud/jobs-files/{CloudJobsFileId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/accounts/{CloudAccountId}'.replace('{format}', 'json') path_params = {} - if 'cloud_jobs_file_id' in params: - path_params['CloudJobsFileId'] = params['cloud_jobs_file_id'] + if 'cloud_account_id' in params: + path_params['CloudAccountId'] = params['cloud_account_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'batch' in params: - query_params['batch'] = params['batch'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'page' in params: - query_params['page'] = params['page'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1014,14 +958,14 @@ def get_cloud_jobs_file(self, cloud_jobs_file_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudJobsFiles', + files=local_var_files, + response_type='CloudAccounts', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1064,9 +1008,8 @@ def get_cloud_job(self, cloud_job_id, **kwargs): if ('cloud_job_id' not in params) or (params['cloud_job_id'] is None): raise ValueError("Missing the required parameter `cloud_job_id` when calling `get_cloud_job`") - resource_path = '/platform/3/cloud/jobs/{CloudJobId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/jobs/{CloudJobId}'.replace('{format}', 'json') path_params = {} if 'cloud_job_id' in params: path_params['CloudJobId'] = params['cloud_job_id'] @@ -1075,8 +1018,8 @@ def get_cloud_job(self, cloud_job_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1093,22 +1036,22 @@ def get_cloud_job(self, cloud_job_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CloudJobs', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cloud_job(self, cloud_job, cloud_job_id, **kwargs): + def get_cloud_jobs_file(self, cloud_jobs_file_id, **kwargs): """ - Modify a cloud job or operation. + Retrieve files associated with a cloudpool job. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1116,18 +1059,23 @@ def update_cloud_job(self, cloud_job, cloud_job_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cloud_job(cloud_job, cloud_job_id, callback=callback_function) + >>> thread = api.get_cloud_jobs_file(cloud_jobs_file_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CloudJob cloud_job: (required) - :param str cloud_job_id: Modify a cloud job or operation. (required) - :return: None + :param str cloud_jobs_file_id: Retrieve files associated with a cloudpool job. (required) + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param bool batch: If true, only \"limit\" and \"page\" arguments are honored. Query will return all results, unsorted, as quickly as possible. + :param int limit: Return no more than this many results at once (see resume). + :param int page: Works only when \"batch\" parameter and \"limit\" parameters are specified. Indicates which the page index of results to be returned + :param str dir: The direction of the sort. + :return: CloudJobsFiles If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_job', 'cloud_job_id'] + all_params = ['cloud_jobs_file_id', 'sort', 'resume', 'batch', 'limit', 'page', 'dir'] all_params.append('callback') params = locals() @@ -1135,35 +1083,43 @@ def update_cloud_job(self, cloud_job, cloud_job_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cloud_job" % key + " to method get_cloud_jobs_file" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_job' is set - if ('cloud_job' not in params) or (params['cloud_job'] is None): - raise ValueError("Missing the required parameter `cloud_job` when calling `update_cloud_job`") - # verify the required parameter 'cloud_job_id' is set - if ('cloud_job_id' not in params) or (params['cloud_job_id'] is None): - raise ValueError("Missing the required parameter `cloud_job_id` when calling `update_cloud_job`") + # verify the required parameter 'cloud_jobs_file_id' is set + if ('cloud_jobs_file_id' not in params) or (params['cloud_jobs_file_id'] is None): + raise ValueError("Missing the required parameter `cloud_jobs_file_id` when calling `get_cloud_jobs_file`") - resource_path = '/platform/3/cloud/jobs/{CloudJobId}'.replace('{format}', 'json') - method = 'PUT' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_cloud_jobs_file`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/cloud/jobs-files/{CloudJobsFileId}'.replace('{format}', 'json') path_params = {} - if 'cloud_job_id' in params: - path_params['CloudJobId'] = params['cloud_job_id'] + if 'cloud_jobs_file_id' in params: + path_params['CloudJobsFileId'] = params['cloud_jobs_file_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'batch' in params: + query_params['batch'] = params['batch'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'page' in params: + query_params['page'] = params['page'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cloud_job' in params: - body_params = params['cloud_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1178,22 +1134,22 @@ def update_cloud_job(self, cloud_job, cloud_job_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CloudJobsFiles', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_cloud_pools(self, **kwargs): + def get_cloud_pool(self, cloud_pool_id, **kwargs): """ - List all pools. + Retrieve cloud pool information This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1201,19 +1157,17 @@ def list_cloud_pools(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_cloud_pools(callback=callback_function) + >>> thread = api.get_cloud_pool(cloud_pool_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: CloudPoolsExtended + :param str cloud_pool_id: Retrieve cloud pool information (required) + :return: CloudPools If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir'] + all_params = ['cloud_pool_id'] all_params.append('callback') params = locals() @@ -1221,29 +1175,27 @@ def list_cloud_pools(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_cloud_pools" % key + " to method get_cloud_pool" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cloud_pool_id' is set + if ('cloud_pool_id' not in params) or (params['cloud_pool_id'] is None): + raise ValueError("Missing the required parameter `cloud_pool_id` when calling `get_cloud_pool`") - resource_path = '/platform/3/cloud/pools'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/pools/{CloudPoolId}'.replace('{format}', 'json') path_params = {} + if 'cloud_pool_id' in params: + path_params['CloudPoolId'] = params['cloud_pool_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1260,22 +1212,22 @@ def list_cloud_pools(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudPoolsExtended', + files=local_var_files, + response_type='CloudPools', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cloud_pool(self, cloud_pool, **kwargs): + def get_cloud_settings(self, **kwargs): """ - Create a new pool. + List all cloud settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1283,17 +1235,16 @@ def create_cloud_pool(self, cloud_pool, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cloud_pool(cloud_pool, callback=callback_function) + >>> thread = api.get_cloud_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CloudPoolCreateParams cloud_pool: (required) - :return: CreateCloudPoolResponse + :return: CloudSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_pool'] + all_params = [] all_params.append('callback') params = locals() @@ -1301,30 +1252,24 @@ def create_cloud_pool(self, cloud_pool, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cloud_pool" % key + " to method get_cloud_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_pool' is set - if ('cloud_pool' not in params) or (params['cloud_pool'] is None): - raise ValueError("Missing the required parameter `cloud_pool` when calling `create_cloud_pool`") - resource_path = '/platform/3/cloud/pools'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/cloud/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cloud_pool' in params: - body_params = params['cloud_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1339,22 +1284,22 @@ def create_cloud_pool(self, cloud_pool, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateCloudPoolResponse', + files=local_var_files, + response_type='CloudSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cloud_pool(self, cloud_pool_id, **kwargs): + def list_cloud_access(self, **kwargs): """ - Retrieve cloud pool information + List all accessible cluster identifiers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1362,17 +1307,19 @@ def get_cloud_pool(self, cloud_pool_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cloud_pool(cloud_pool_id, callback=callback_function) + >>> thread = api.list_cloud_access(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str cloud_pool_id: Retrieve cloud pool information (required) - :return: CloudPools + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: CloudAccessExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_pool_id'] + all_params = ['sort', 'limit', 'dir'] all_params.append('callback') params = locals() @@ -1380,28 +1327,30 @@ def get_cloud_pool(self, cloud_pool_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cloud_pool" % key + " to method list_cloud_access" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_pool_id' is set - if ('cloud_pool_id' not in params) or (params['cloud_pool_id'] is None): - raise ValueError("Missing the required parameter `cloud_pool_id` when calling `get_cloud_pool`") - resource_path = '/platform/3/cloud/pools/{CloudPoolId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_cloud_access`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/cloud/access'.replace('{format}', 'json') path_params = {} - if 'cloud_pool_id' in params: - path_params['CloudPoolId'] = params['cloud_pool_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1418,22 +1367,22 @@ def get_cloud_pool(self, cloud_pool_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudPools', + files=local_var_files, + response_type='CloudAccessExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cloud_pool(self, cloud_pool, cloud_pool_id, **kwargs): + def list_cloud_accounts(self, **kwargs): """ - Modify a cloud pool. All fields are optional, but one or more must be supplied. + List all accounts. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1441,18 +1390,19 @@ def update_cloud_pool(self, cloud_pool, cloud_pool_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cloud_pool(cloud_pool, cloud_pool_id, callback=callback_function) + >>> thread = api.list_cloud_accounts(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CloudPool cloud_pool: (required) - :param str cloud_pool_id: Modify a cloud pool. All fields are optional, but one or more must be supplied. (required) - :return: None + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: CloudAccountsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_pool', 'cloud_pool_id'] + all_params = ['sort', 'limit', 'dir'] all_params.append('callback') params = locals() @@ -1460,35 +1410,32 @@ def update_cloud_pool(self, cloud_pool, cloud_pool_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cloud_pool" % key + " to method list_cloud_accounts" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_pool' is set - if ('cloud_pool' not in params) or (params['cloud_pool'] is None): - raise ValueError("Missing the required parameter `cloud_pool` when calling `update_cloud_pool`") - # verify the required parameter 'cloud_pool_id' is set - if ('cloud_pool_id' not in params) or (params['cloud_pool_id'] is None): - raise ValueError("Missing the required parameter `cloud_pool_id` when calling `update_cloud_pool`") - resource_path = '/platform/3/cloud/pools/{CloudPoolId}'.replace('{format}', 'json') - method = 'PUT' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_cloud_accounts`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/cloud/accounts'.replace('{format}', 'json') path_params = {} - if 'cloud_pool_id' in params: - path_params['CloudPoolId'] = params['cloud_pool_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cloud_pool' in params: - body_params = params['cloud_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1503,22 +1450,22 @@ def update_cloud_pool(self, cloud_pool, cloud_pool_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CloudAccountsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_cloud_pool(self, cloud_pool_id, **kwargs): + def list_cloud_jobs(self, **kwargs): """ - Delete a cloud pool. + List all cloudpools jobs. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1526,17 +1473,19 @@ def delete_cloud_pool(self, cloud_pool_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_cloud_pool(cloud_pool_id, callback=callback_function) + >>> thread = api.list_cloud_jobs(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str cloud_pool_id: Delete a cloud pool. (required) - :return: None + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: CloudJobsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_pool_id'] + all_params = ['sort', 'limit', 'dir'] all_params.append('callback') params = locals() @@ -1544,28 +1493,30 @@ def delete_cloud_pool(self, cloud_pool_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_cloud_pool" % key + " to method list_cloud_jobs" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_pool_id' is set - if ('cloud_pool_id' not in params) or (params['cloud_pool_id'] is None): - raise ValueError("Missing the required parameter `cloud_pool_id` when calling `delete_cloud_pool`") - resource_path = '/platform/3/cloud/pools/{CloudPoolId}'.replace('{format}', 'json') - method = 'DELETE' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_cloud_jobs`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/cloud/jobs'.replace('{format}', 'json') path_params = {} - if 'cloud_pool_id' in params: - path_params['CloudPoolId'] = params['cloud_pool_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1582,22 +1533,22 @@ def delete_cloud_pool(self, cloud_pool_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CloudJobsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cloud_settings(self, **kwargs): + def list_cloud_pools(self, **kwargs): """ - List all cloud settings. + List all pools. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1605,16 +1556,19 @@ def get_cloud_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cloud_settings(callback=callback_function) + >>> thread = api.list_cloud_pools(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: CloudSettings + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: CloudPoolsExtended If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['sort', 'limit', 'dir'] all_params.append('callback') params = locals() @@ -1622,23 +1576,30 @@ def get_cloud_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cloud_settings" % key + " to method list_cloud_pools" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/cloud/settings'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_cloud_pools`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/cloud/pools'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1655,22 +1616,22 @@ def get_cloud_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CloudSettings', + files=local_var_files, + response_type='CloudPoolsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cloud_settings(self, cloud_settings, **kwargs): + def list_settings_reporting_eula(self, **kwargs): """ - Modify one or more settings. + View telemetry collection EULA acceptance and content URI. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1678,17 +1639,16 @@ def update_cloud_settings(self, cloud_settings, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cloud_settings(cloud_settings, callback=callback_function) + >>> thread = api.list_settings_reporting_eula(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CloudSettingsSettings cloud_settings: (required) - :return: None + :return: SettingsReportingEulaItem If the method is called asynchronously, returns the request thread. """ - all_params = ['cloud_settings'] + all_params = [] all_params.append('callback') params = locals() @@ -1696,30 +1656,24 @@ def update_cloud_settings(self, cloud_settings, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cloud_settings" % key + " to method list_settings_reporting_eula" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cloud_settings' is set - if ('cloud_settings' not in params) or (params['cloud_settings'] is None): - raise ValueError("Missing the required parameter `cloud_settings` when calling `update_cloud_settings`") - resource_path = '/platform/3/cloud/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/cloud/settings/reporting-eula'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cloud_settings' in params: - body_params = params['cloud_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1734,22 +1688,22 @@ def update_cloud_settings(self, cloud_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SettingsReportingEulaItem', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_settings_encryption_key_item(self, **kwargs): + def update_cloud_account(self, cloud_account, cloud_account_id, **kwargs): """ - Regenerate master encryption key. + Modify cloud account. All fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1757,16 +1711,18 @@ def create_settings_encryption_key_item(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_settings_encryption_key_item(callback=callback_function) + >>> thread = api.update_cloud_account(cloud_account, cloud_account_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: Empty + :param CloudAccount cloud_account: (required) + :param str cloud_account_id: Modify cloud account. All fields are optional, but one or more must be supplied. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cloud_account', 'cloud_account_id'] all_params.append('callback') params = locals() @@ -1774,25 +1730,34 @@ def create_settings_encryption_key_item(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_settings_encryption_key_item" % key + " to method update_cloud_account" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cloud_account' is set + if ('cloud_account' not in params) or (params['cloud_account'] is None): + raise ValueError("Missing the required parameter `cloud_account` when calling `update_cloud_account`") + # verify the required parameter 'cloud_account_id' is set + if ('cloud_account_id' not in params) or (params['cloud_account_id'] is None): + raise ValueError("Missing the required parameter `cloud_account_id` when calling `update_cloud_account`") - resource_path = '/platform/3/cloud/settings/encryption-key'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/cloud/accounts/{CloudAccountId}'.replace('{format}', 'json') path_params = {} + if 'cloud_account_id' in params: + path_params['CloudAccountId'] = params['cloud_account_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cloud_account' in params: + body_params = params['cloud_account'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1807,22 +1772,22 @@ def create_settings_encryption_key_item(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_settings_reporting_eula(self, **kwargs): + def update_cloud_job(self, cloud_job, cloud_job_id, **kwargs): """ - View telemetry collection EULA acceptance and content URI. + Modify a cloud job or operation. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1830,16 +1795,18 @@ def list_settings_reporting_eula(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_settings_reporting_eula(callback=callback_function) + >>> thread = api.update_cloud_job(cloud_job, cloud_job_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SettingsReportingEulaItem + :param CloudJob cloud_job: (required) + :param str cloud_job_id: Modify a cloud job or operation. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cloud_job', 'cloud_job_id'] all_params.append('callback') params = locals() @@ -1847,25 +1814,34 @@ def list_settings_reporting_eula(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_settings_reporting_eula" % key + " to method update_cloud_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cloud_job' is set + if ('cloud_job' not in params) or (params['cloud_job'] is None): + raise ValueError("Missing the required parameter `cloud_job` when calling `update_cloud_job`") + # verify the required parameter 'cloud_job_id' is set + if ('cloud_job_id' not in params) or (params['cloud_job_id'] is None): + raise ValueError("Missing the required parameter `cloud_job_id` when calling `update_cloud_job`") - resource_path = '/platform/3/cloud/settings/reporting-eula'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cloud/jobs/{CloudJobId}'.replace('{format}', 'json') path_params = {} + if 'cloud_job_id' in params: + path_params['CloudJobId'] = params['cloud_job_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cloud_job' in params: + body_params = params['cloud_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1880,22 +1856,22 @@ def list_settings_reporting_eula(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsReportingEulaItem', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_settings_reporting_eula_item(self, settings_reporting_eula_item, **kwargs): + def update_cloud_pool(self, cloud_pool, cloud_pool_id, **kwargs): """ - Accept telemetry collection EULA. + Modify a cloud pool. All fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1903,17 +1879,18 @@ def create_settings_reporting_eula_item(self, settings_reporting_eula_item, **kw >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_settings_reporting_eula_item(settings_reporting_eula_item, callback=callback_function) + >>> thread = api.update_cloud_pool(cloud_pool, cloud_pool_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsReportingEulaItem settings_reporting_eula_item: (required) - :return: SettingsReportingEulaItem + :param CloudPool cloud_pool: (required) + :param str cloud_pool_id: Modify a cloud pool. All fields are optional, but one or more must be supplied. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_reporting_eula_item'] + all_params = ['cloud_pool', 'cloud_pool_id'] all_params.append('callback') params = locals() @@ -1921,30 +1898,34 @@ def create_settings_reporting_eula_item(self, settings_reporting_eula_item, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_settings_reporting_eula_item" % key + " to method update_cloud_pool" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_reporting_eula_item' is set - if ('settings_reporting_eula_item' not in params) or (params['settings_reporting_eula_item'] is None): - raise ValueError("Missing the required parameter `settings_reporting_eula_item` when calling `create_settings_reporting_eula_item`") + # verify the required parameter 'cloud_pool' is set + if ('cloud_pool' not in params) or (params['cloud_pool'] is None): + raise ValueError("Missing the required parameter `cloud_pool` when calling `update_cloud_pool`") + # verify the required parameter 'cloud_pool_id' is set + if ('cloud_pool_id' not in params) or (params['cloud_pool_id'] is None): + raise ValueError("Missing the required parameter `cloud_pool_id` when calling `update_cloud_pool`") - resource_path = '/platform/3/cloud/settings/reporting-eula'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/cloud/pools/{CloudPoolId}'.replace('{format}', 'json') path_params = {} + if 'cloud_pool_id' in params: + path_params['CloudPoolId'] = params['cloud_pool_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_reporting_eula_item' in params: - body_params = params['settings_reporting_eula_item'] + if 'cloud_pool' in params: + body_params = params['cloud_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1959,22 +1940,22 @@ def create_settings_reporting_eula_item(self, settings_reporting_eula_item, **kw # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsReportingEulaItem', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_settings_reporting_eula(self, **kwargs): + def update_cloud_settings(self, cloud_settings, **kwargs): """ - Revoke acceptance of telemetry collection EULA. + Modify one or more settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1982,16 +1963,17 @@ def delete_settings_reporting_eula(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_settings_reporting_eula(callback=callback_function) + >>> thread = api.update_cloud_settings(cloud_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param CloudSettingsSettings cloud_settings: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cloud_settings'] all_params.append('callback') params = locals() @@ -1999,25 +1981,29 @@ def delete_settings_reporting_eula(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_settings_reporting_eula" % key + " to method update_cloud_settings" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cloud_settings' is set + if ('cloud_settings' not in params) or (params['cloud_settings'] is None): + raise ValueError("Missing the required parameter `cloud_settings` when calling `update_cloud_settings`") - resource_path = '/platform/3/cloud/settings/reporting-eula'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/cloud/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cloud_settings' in params: + body_params = params['cloud_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2032,13 +2018,13 @@ def delete_settings_reporting_eula(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/cluster_api.py b/isi_sdk/apis/cluster_api.py index 428f35428..17faab12c 100644 --- a/isi_sdk/apis/cluster_api.py +++ b/isi_sdk/apis/cluster_api.py @@ -2,7 +2,7 @@ """ ClusterApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_cluster_email(self, **kwargs): + def create_cluster_add_node_item(self, cluster_add_node_item, **kwargs): """ - Get the cluster email notification settings. + Serial number and arguments of node to add. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def get_cluster_email(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_email(callback=callback_function) + >>> thread = api.create_cluster_add_node_item(cluster_add_node_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterEmail + :param ClusterAddNodeItem cluster_add_node_item: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cluster_add_node_item'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def get_cluster_email(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_email" % key + " to method create_cluster_add_node_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cluster_add_node_item' is set + if ('cluster_add_node_item' not in params) or (params['cluster_add_node_item'] is None): + raise ValueError("Missing the required parameter `cluster_add_node_item` when calling `create_cluster_add_node_item`") - resource_path = '/platform/1/cluster/email'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/add-node'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_add_node_item' in params: + body_params = params['cluster_add_node_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def get_cluster_email(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterEmail', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cluster_email(self, cluster_email, **kwargs): + def get_cluster_config(self, **kwargs): """ - Modify the cluster email notification settings. All input fields are optional, but one or more must be supplied. + Retrieve the cluster information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,16 @@ def update_cluster_email(self, cluster_email, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cluster_email(cluster_email, callback=callback_function) + >>> thread = api.get_cluster_config(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterEmailExtended cluster_email: (required) - :return: None + :return: ClusterConfig If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_email'] + all_params = [] all_params.append('callback') params = locals() @@ -147,30 +152,24 @@ def update_cluster_email(self, cluster_email, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cluster_email" % key + " to method get_cluster_config" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_email' is set - if ('cluster_email' not in params) or (params['cluster_email'] is None): - raise ValueError("Missing the required parameter `cluster_email` when calling `update_cluster_email`") - resource_path = '/platform/1/cluster/email'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/cluster/config'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_email' in params: - body_params = params['cluster_email'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,22 +184,22 @@ def update_cluster_email(self, cluster_email, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ClusterConfig', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_owner(self, **kwargs): + def get_cluster_email(self, **kwargs): """ - Get the cluster contact info settings + Get the cluster email notification settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -208,11 +207,11 @@ def get_cluster_owner(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_owner(callback=callback_function) + >>> thread = api.get_cluster_email(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterOwner + :return: ClusterEmail If the method is called asynchronously, returns the request thread. """ @@ -225,23 +224,22 @@ def get_cluster_owner(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_owner" % key + " to method get_cluster_email" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/cluster/owner'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/cluster/email'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -258,22 +256,22 @@ def get_cluster_owner(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterOwner', + files=local_var_files, + response_type='ClusterEmail', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cluster_owner(self, cluster_owner, **kwargs): + def get_cluster_identity(self, **kwargs): """ - Modify the cluster contact info settings. All input fields are optional, but one or more must be supplied. + Retrieve the login information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -281,17 +279,16 @@ def update_cluster_owner(self, cluster_owner, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cluster_owner(cluster_owner, callback=callback_function) + >>> thread = api.get_cluster_identity(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterOwner cluster_owner: (required) - :return: None + :return: ClusterIdentity If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_owner'] + all_params = [] all_params.append('callback') params = locals() @@ -299,30 +296,24 @@ def update_cluster_owner(self, cluster_owner, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cluster_owner" % key + " to method get_cluster_identity" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_owner' is set - if ('cluster_owner' not in params) or (params['cluster_owner'] is None): - raise ValueError("Missing the required parameter `cluster_owner` when calling `update_cluster_owner`") - resource_path = '/platform/1/cluster/owner'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/cluster/identity'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_owner' in params: - body_params = params['cluster_owner'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -337,22 +328,22 @@ def update_cluster_owner(self, cluster_owner, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ClusterIdentity', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_statfs(self, **kwargs): + def get_cluster_node(self, cluster_node_id, **kwargs): """ - Retrieve the filesystem statistics. + Retrieve node information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -360,16 +351,17 @@ def get_cluster_statfs(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_statfs(callback=callback_function) + >>> thread = api.get_cluster_node(cluster_node_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterStatfs + :param int cluster_node_id: Retrieve node information. (required) + :return: ClusterNodes If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cluster_node_id'] all_params.append('callback') params = locals() @@ -377,23 +369,27 @@ def get_cluster_statfs(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_statfs" % key + " to method get_cluster_node" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cluster_node_id' is set + if ('cluster_node_id' not in params) or (params['cluster_node_id'] is None): + raise ValueError("Missing the required parameter `cluster_node_id` when calling `get_cluster_node`") - resource_path = '/platform/1/cluster/statfs'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/nodes/{ClusterNodeId}'.replace('{format}', 'json') path_params = {} + if 'cluster_node_id' in params: + path_params['ClusterNodeId'] = params['cluster_node_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -410,22 +406,22 @@ def get_cluster_statfs(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterStatfs', + files=local_var_files, + response_type='ClusterNodes', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cluster_add_node_item(self, cluster_add_node_item, **kwargs): + def get_cluster_nodes(self, **kwargs): """ - Serial number and arguments of node to add. + List the nodes on this cluster. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -433,17 +429,16 @@ def create_cluster_add_node_item(self, cluster_add_node_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cluster_add_node_item(cluster_add_node_item, callback=callback_function) + >>> thread = api.get_cluster_nodes(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterAddNodeItem cluster_add_node_item: (required) - :return: Empty + :return: ClusterNodes If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_add_node_item'] + all_params = [] all_params.append('callback') params = locals() @@ -451,30 +446,24 @@ def create_cluster_add_node_item(self, cluster_add_node_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cluster_add_node_item" % key + " to method get_cluster_nodes" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_add_node_item' is set - if ('cluster_add_node_item' not in params) or (params['cluster_add_node_item'] is None): - raise ValueError("Missing the required parameter `cluster_add_node_item` when calling `create_cluster_add_node_item`") - resource_path = '/platform/3/cluster/add-node'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/cluster/nodes'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_add_node_item' in params: - body_params = params['cluster_add_node_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -489,22 +478,22 @@ def create_cluster_add_node_item(self, cluster_add_node_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='ClusterNodes', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_config(self, **kwargs): + def get_cluster_nodes_available(self, **kwargs): """ - Retrieve the cluster information. + List all nodes that are available to add to this cluster. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -512,11 +501,11 @@ def get_cluster_config(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_config(callback=callback_function) + >>> thread = api.get_cluster_nodes_available(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: Empty + :return: ClusterNodesAvailable If the method is called asynchronously, returns the request thread. """ @@ -529,23 +518,22 @@ def get_cluster_config(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_config" % key + " to method get_cluster_nodes_available" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/cluster/config'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/nodes-available'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -562,22 +550,22 @@ def get_cluster_config(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='ClusterNodesAvailable', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_identity(self, **kwargs): + def get_cluster_owner(self, **kwargs): """ - Retrieve the login information. + Get the cluster contact info settings This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -585,11 +573,11 @@ def get_cluster_identity(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_identity(callback=callback_function) + >>> thread = api.get_cluster_owner(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterIdentity + :return: ClusterOwner If the method is called asynchronously, returns the request thread. """ @@ -602,23 +590,22 @@ def get_cluster_identity(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_identity" % key + " to method get_cluster_owner" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/cluster/identity'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/cluster/owner'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -635,22 +622,22 @@ def get_cluster_identity(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterIdentity', + files=local_var_files, + response_type='ClusterOwner', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cluster_identity(self, cluster_identity, **kwargs): + def get_cluster_statfs(self, **kwargs): """ - Modify the login information. + Retrieve the filesystem statistics. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -658,17 +645,16 @@ def update_cluster_identity(self, cluster_identity, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cluster_identity(cluster_identity, callback=callback_function) + >>> thread = api.get_cluster_statfs(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterIdentity cluster_identity: (required) - :return: None + :return: ClusterStatfs If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_identity'] + all_params = [] all_params.append('callback') params = locals() @@ -676,30 +662,24 @@ def update_cluster_identity(self, cluster_identity, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cluster_identity" % key + " to method get_cluster_statfs" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_identity' is set - if ('cluster_identity' not in params) or (params['cluster_identity'] is None): - raise ValueError("Missing the required parameter `cluster_identity` when calling `update_cluster_identity`") - resource_path = '/platform/3/cluster/identity'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/cluster/statfs'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_identity' in params: - body_params = params['cluster_identity'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -714,22 +694,22 @@ def update_cluster_identity(self, cluster_identity, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ClusterStatfs', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_nodes(self, **kwargs): + def get_cluster_time(self, **kwargs): """ - List the nodes on this cluster. + Retrieve the current time as reported by each node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -737,11 +717,11 @@ def get_cluster_nodes(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_nodes(callback=callback_function) + >>> thread = api.get_cluster_time(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterNodes + :return: ClusterTime If the method is called asynchronously, returns the request thread. """ @@ -754,23 +734,22 @@ def get_cluster_nodes(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_nodes" % key + " to method get_cluster_time" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/cluster/nodes'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/time'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -787,22 +766,22 @@ def get_cluster_nodes(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterNodes', + files=local_var_files, + response_type='ClusterTime', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_nodes_available(self, **kwargs): + def get_cluster_timezone(self, **kwargs): """ - List all nodes that are available to add to this cluster. + Get the cluster timezone. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -810,11 +789,11 @@ def get_cluster_nodes_available(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_nodes_available(callback=callback_function) + >>> thread = api.get_cluster_timezone(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterNodesAvailable + :return: ClusterTimezone If the method is called asynchronously, returns the request thread. """ @@ -827,23 +806,22 @@ def get_cluster_nodes_available(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_nodes_available" % key + " to method get_cluster_timezone" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/cluster/nodes-available'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/timezone'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -860,22 +838,22 @@ def get_cluster_nodes_available(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterNodesAvailable', + files=local_var_files, + response_type='ClusterTimezone', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_node(self, cluster_node_id, **kwargs): + def get_cluster_version(self, **kwargs): """ - Retrieve node information. + Retrieve the OneFS version as reported by each node. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -883,17 +861,16 @@ def get_cluster_node(self, cluster_node_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_node(cluster_node_id, callback=callback_function) + >>> thread = api.get_cluster_version(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int cluster_node_id: Retrieve node information. (required) - :return: ClusterNodes + :return: ClusterVersion If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_node_id'] + all_params = [] all_params.append('callback') params = locals() @@ -901,28 +878,22 @@ def get_cluster_node(self, cluster_node_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_node" % key + " to method get_cluster_version" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_node_id' is set - if ('cluster_node_id' not in params) or (params['cluster_node_id'] is None): - raise ValueError("Missing the required parameter `cluster_node_id` when calling `get_cluster_node`") - resource_path = '/platform/3/cluster/nodes/{ClusterNodeId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/version'.replace('{format}', 'json') path_params = {} - if 'cluster_node_id' in params: - path_params['ClusterNodeId'] = params['cluster_node_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -939,22 +910,22 @@ def get_cluster_node(self, cluster_node_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterNodes', + files=local_var_files, + response_type='ClusterVersion', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cluster_node(self, cluster_node, cluster_node_id, **kwargs): + def get_timezone_region(self, timezone_region_id, **kwargs): """ - Modify one or more node settings. + List timezone regions. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -962,18 +933,23 @@ def update_cluster_node(self, cluster_node, cluster_node_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cluster_node(cluster_node, cluster_node_id, callback=callback_function) + >>> thread = api.get_timezone_region(timezone_region_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterNode cluster_node: (required) - :param int cluster_node_id: Modify one or more node settings. (required) - :return: None + :param str timezone_region_id: List timezone regions. (required) + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param bool show_all: Show all timezones within the region specified in the URI. + :param bool dst_reset: This query arg is not needed in normal use cases. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: TimezoneRegions If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_node', 'cluster_node_id'] + all_params = ['timezone_region_id', 'sort', 'resume', 'show_all', 'dst_reset', 'limit', 'dir'] all_params.append('callback') params = locals() @@ -981,2140 +957,41 @@ def update_cluster_node(self, cluster_node, cluster_node_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cluster_node" % key + " to method get_timezone_region" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_node' is set - if ('cluster_node' not in params) or (params['cluster_node'] is None): - raise ValueError("Missing the required parameter `cluster_node` when calling `update_cluster_node`") - # verify the required parameter 'cluster_node_id' is set - if ('cluster_node_id' not in params) or (params['cluster_node_id'] is None): - raise ValueError("Missing the required parameter `cluster_node_id` when calling `update_cluster_node`") + # verify the required parameter 'timezone_region_id' is set + if ('timezone_region_id' not in params) or (params['timezone_region_id'] is None): + raise ValueError("Missing the required parameter `timezone_region_id` when calling `get_timezone_region`") - resource_path = '/platform/3/cluster/nodes/{ClusterNodeId}'.replace('{format}', 'json') - method = 'PUT' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_timezone_region`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/cluster/timezone/regions/{TimezoneRegionId}'.replace('{format}', 'json') path_params = {} - if 'cluster_node_id' in params: - path_params['ClusterNodeId'] = params['cluster_node_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'cluster_node' in params: - body_params = params['cluster_node'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_drives(self, lnn, **kwargs): - """ - - List the drives on this node. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_drives(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnDrives - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_drives" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_drives`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnDrives', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_drives_purposelist(self, lnn, **kwargs): - """ - - Lists the available purposes for drives in this node. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_drives_purposelist(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnDrivesPurposelist - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_drives_purposelist" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_drives_purposelist`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives-purposelist'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnDrivesPurposelist', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_drives_driveid_add_item(self, nodes_lnn_drives_driveid_add_item, lnn, driveid, **kwargs): - """ - - Add a drive to a node. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_drives_driveid_add_item(nodes_lnn_drives_driveid_add_item, lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param Empty nodes_lnn_drives_driveid_add_item: (required) - :param int lnn: (required) - :param str driveid: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_drives_driveid_add_item', 'lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_drives_driveid_add_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_drives_driveid_add_item' is set - if ('nodes_lnn_drives_driveid_add_item' not in params) or (params['nodes_lnn_drives_driveid_add_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_drives_driveid_add_item` when calling `create_nodes_lnn_drives_driveid_add_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_drives_driveid_add_item`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `create_nodes_lnn_drives_driveid_add_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/add'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_drives_driveid_add_item' in params: - body_params = params['nodes_lnn_drives_driveid_add_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_drives_driveid_firmware(self, lnn, driveid, **kwargs): - """ - - Retrieve drive firmware information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_drives_driveid_firmware(lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :param str driveid: (required) - :return: NodesLnnDrivesDriveidFirmware - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_drives_driveid_firmware" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_drives_driveid_firmware`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `get_nodes_lnn_drives_driveid_firmware`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnDrivesDriveidFirmware', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def list_nodes_lnn_drives_driveid_firmware_update(self, lnn, driveid, **kwargs): - """ - - Retrieve firmware update information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_nodes_lnn_drives_driveid_firmware_update(lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :param str driveid: (required) - :return: NodesLnnDrivesDriveidFirmwareUpdate - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_nodes_lnn_drives_driveid_firmware_update" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `list_nodes_lnn_drives_driveid_firmware_update`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `list_nodes_lnn_drives_driveid_firmware_update`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware/update'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnDrivesDriveidFirmwareUpdate', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_drives_driveid_firmware_update_item(self, nodes_lnn_drives_driveid_firmware_update_item, lnn, driveid, **kwargs): - """ - - Start a drive firmware update. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_drives_driveid_firmware_update_item(nodes_lnn_drives_driveid_firmware_update_item, lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param NodesLnnDrivesDriveidFirmwareUpdateItem nodes_lnn_drives_driveid_firmware_update_item: (required) - :param int lnn: (required) - :param str driveid: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_drives_driveid_firmware_update_item', 'lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_drives_driveid_firmware_update_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_drives_driveid_firmware_update_item' is set - if ('nodes_lnn_drives_driveid_firmware_update_item' not in params) or (params['nodes_lnn_drives_driveid_firmware_update_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_drives_driveid_firmware_update_item` when calling `create_nodes_lnn_drives_driveid_firmware_update_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_drives_driveid_firmware_update_item`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `create_nodes_lnn_drives_driveid_firmware_update_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware/update'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_drives_driveid_firmware_update_item' in params: - body_params = params['nodes_lnn_drives_driveid_firmware_update_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_drives_driveid_format_item(self, nodes_lnn_drives_driveid_format_item, lnn, driveid, **kwargs): - """ - - Format a drive for use by OneFS. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_drives_driveid_format_item(nodes_lnn_drives_driveid_format_item, lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param NodesLnnDrivesDriveidFormatItem nodes_lnn_drives_driveid_format_item: (required) - :param int lnn: (required) - :param str driveid: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_drives_driveid_format_item', 'lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_drives_driveid_format_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_drives_driveid_format_item' is set - if ('nodes_lnn_drives_driveid_format_item' not in params) or (params['nodes_lnn_drives_driveid_format_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_drives_driveid_format_item` when calling `create_nodes_lnn_drives_driveid_format_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_drives_driveid_format_item`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `create_nodes_lnn_drives_driveid_format_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/format'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_drives_driveid_format_item' in params: - body_params = params['nodes_lnn_drives_driveid_format_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_drives_driveid_purpose_item(self, nodes_lnn_drives_driveid_purpose_item, lnn, driveid, **kwargs): - """ - - Assign a drive to a specific use case. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_drives_driveid_purpose_item(nodes_lnn_drives_driveid_purpose_item, lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param NodesLnnDrivesDriveidPurposeItem nodes_lnn_drives_driveid_purpose_item: (required) - :param int lnn: (required) - :param str driveid: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_drives_driveid_purpose_item', 'lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_drives_driveid_purpose_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_drives_driveid_purpose_item' is set - if ('nodes_lnn_drives_driveid_purpose_item' not in params) or (params['nodes_lnn_drives_driveid_purpose_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_drives_driveid_purpose_item` when calling `create_nodes_lnn_drives_driveid_purpose_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_drives_driveid_purpose_item`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `create_nodes_lnn_drives_driveid_purpose_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/purpose'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_drives_driveid_purpose_item' in params: - body_params = params['nodes_lnn_drives_driveid_purpose_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_drives_driveid_smartfail_item(self, nodes_lnn_drives_driveid_smartfail_item, lnn, driveid, **kwargs): - """ - - Remove a drive from use by OneFS. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_drives_driveid_smartfail_item(nodes_lnn_drives_driveid_smartfail_item, lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param Empty nodes_lnn_drives_driveid_smartfail_item: (required) - :param int lnn: (required) - :param str driveid: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_drives_driveid_smartfail_item', 'lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_drives_driveid_smartfail_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_drives_driveid_smartfail_item' is set - if ('nodes_lnn_drives_driveid_smartfail_item' not in params) or (params['nodes_lnn_drives_driveid_smartfail_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_drives_driveid_smartfail_item` when calling `create_nodes_lnn_drives_driveid_smartfail_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_drives_driveid_smartfail_item`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `create_nodes_lnn_drives_driveid_smartfail_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/smartfail'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_drives_driveid_smartfail_item' in params: - body_params = params['nodes_lnn_drives_driveid_smartfail_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_drives_driveid_stopfail_item(self, nodes_lnn_drives_driveid_stopfail_item, lnn, driveid, **kwargs): - """ - - Stop restriping from a smartfailing drive. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_drives_driveid_stopfail_item(nodes_lnn_drives_driveid_stopfail_item, lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param Empty nodes_lnn_drives_driveid_stopfail_item: (required) - :param int lnn: (required) - :param str driveid: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_drives_driveid_stopfail_item', 'lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_drives_driveid_stopfail_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_drives_driveid_stopfail_item' is set - if ('nodes_lnn_drives_driveid_stopfail_item' not in params) or (params['nodes_lnn_drives_driveid_stopfail_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_drives_driveid_stopfail_item` when calling `create_nodes_lnn_drives_driveid_stopfail_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_drives_driveid_stopfail_item`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `create_nodes_lnn_drives_driveid_stopfail_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/stopfail'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_drives_driveid_stopfail_item' in params: - body_params = params['nodes_lnn_drives_driveid_stopfail_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_drives_driveid_suspend_item(self, nodes_lnn_drives_driveid_suspend_item, lnn, driveid, **kwargs): - """ - - Temporarily remove a drive from use by OneFS. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_drives_driveid_suspend_item(nodes_lnn_drives_driveid_suspend_item, lnn, driveid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param Empty nodes_lnn_drives_driveid_suspend_item: (required) - :param int lnn: (required) - :param str driveid: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_drives_driveid_suspend_item', 'lnn', 'driveid'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_drives_driveid_suspend_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_drives_driveid_suspend_item' is set - if ('nodes_lnn_drives_driveid_suspend_item' not in params) or (params['nodes_lnn_drives_driveid_suspend_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_drives_driveid_suspend_item` when calling `create_nodes_lnn_drives_driveid_suspend_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_drives_driveid_suspend_item`") - # verify the required parameter 'driveid' is set - if ('driveid' not in params) or (params['driveid'] is None): - raise ValueError("Missing the required parameter `driveid` when calling `create_nodes_lnn_drives_driveid_suspend_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/suspend'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - if 'driveid' in params: - path_params['Driveid'] = params['driveid'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_drives_driveid_suspend_item' in params: - body_params = params['nodes_lnn_drives_driveid_suspend_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_drive(self, nodes_lnn_drive_id, lnn, **kwargs): - """ - - Retrieve drive information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_drive(nodes_lnn_drive_id, lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str nodes_lnn_drive_id: Retrieve drive information. (required) - :param int lnn: (required) - :return: NodesLnnDrives - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_drive_id', 'lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_drive" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_drive_id' is set - if ('nodes_lnn_drive_id' not in params) or (params['nodes_lnn_drive_id'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_drive_id` when calling `get_nodes_lnn_drive`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_drive`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{NodesLnnDriveId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'nodes_lnn_drive_id' in params: - path_params['NodesLnnDriveId'] = params['nodes_lnn_drive_id'] - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnDrives', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_hardware(self, lnn, **kwargs): - """ - - Retrieve node hardware identity information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_hardware(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnHardware - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_hardware" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_hardware`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/hardware'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnHardware', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_partitions(self, lnn, **kwargs): - """ - - Retrieve node partition information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_partitions(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnPartitions - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_partitions" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_partitions`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/partitions'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnPartitions', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_reboot_item(self, nodes_lnn_reboot_item, lnn, **kwargs): - """ - - Reboot the node specified by . - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_reboot_item(nodes_lnn_reboot_item, lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param Empty nodes_lnn_reboot_item: (required) - :param int lnn: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_reboot_item', 'lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_reboot_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_reboot_item' is set - if ('nodes_lnn_reboot_item' not in params) or (params['nodes_lnn_reboot_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_reboot_item` when calling `create_nodes_lnn_reboot_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_reboot_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/reboot'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_reboot_item' in params: - body_params = params['nodes_lnn_reboot_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_sensors(self, lnn, **kwargs): - """ - - Retrieve node sensor information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_sensors(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnSensors - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_sensors" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_sensors`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/sensors'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnSensors', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nodes_lnn_shutdown_item(self, nodes_lnn_shutdown_item, lnn, **kwargs): - """ - - Shutdown the node specified by . - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nodes_lnn_shutdown_item(nodes_lnn_shutdown_item, lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param Empty nodes_lnn_shutdown_item: (required) - :param int lnn: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_shutdown_item', 'lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nodes_lnn_shutdown_item" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_shutdown_item' is set - if ('nodes_lnn_shutdown_item' not in params) or (params['nodes_lnn_shutdown_item'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_shutdown_item` when calling `create_nodes_lnn_shutdown_item`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `create_nodes_lnn_shutdown_item`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/shutdown'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_shutdown_item' in params: - body_params = params['nodes_lnn_shutdown_item'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_state(self, lnn, **kwargs): - """ - - Retrieve node state information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_state(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnState - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_state" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_state`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/state'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnState', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_state_readonly(self, lnn, **kwargs): - """ - - Retrieve node readonly state information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_state_readonly(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnStateReadonly - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_state_readonly" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_state_readonly`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/state/readonly'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnStateReadonly', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_nodes_lnn_state_readonly(self, nodes_lnn_state_readonly, lnn, **kwargs): - """ - - Modify one or more node readonly state settings. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_nodes_lnn_state_readonly(nodes_lnn_state_readonly, lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param NodesLnnStateReadonlyExtended nodes_lnn_state_readonly: (required) - :param int lnn: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_state_readonly', 'lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_nodes_lnn_state_readonly" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_state_readonly' is set - if ('nodes_lnn_state_readonly' not in params) or (params['nodes_lnn_state_readonly'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_state_readonly` when calling `update_nodes_lnn_state_readonly`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `update_nodes_lnn_state_readonly`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/state/readonly'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_state_readonly' in params: - body_params = params['nodes_lnn_state_readonly'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_state_servicelight(self, lnn, **kwargs): - """ - - Retrieve node service light state information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_state_servicelight(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnStateServicelight - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_state_servicelight" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_state_servicelight`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/state/servicelight'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnStateServicelight', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_nodes_lnn_state_servicelight(self, nodes_lnn_state_servicelight, lnn, **kwargs): - """ - - Modify one or more node service light state settings. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_nodes_lnn_state_servicelight(nodes_lnn_state_servicelight, lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param NodesLnnStateServicelightExtended nodes_lnn_state_servicelight: (required) - :param int lnn: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_state_servicelight', 'lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_nodes_lnn_state_servicelight" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_state_servicelight' is set - if ('nodes_lnn_state_servicelight' not in params) or (params['nodes_lnn_state_servicelight'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_state_servicelight` when calling `update_nodes_lnn_state_servicelight`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `update_nodes_lnn_state_servicelight`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/state/servicelight'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_state_servicelight' in params: - body_params = params['nodes_lnn_state_servicelight'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_state_smartfail(self, lnn, **kwargs): - """ - - Retrieve node smartfail state information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_state_smartfail(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnStateSmartfail - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_state_smartfail" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_state_smartfail`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/state/smartfail'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NodesLnnStateSmartfail', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_nodes_lnn_state_smartfail(self, nodes_lnn_state_smartfail, lnn, **kwargs): - """ - - Modify smartfail state of the node. Only the 'smartfailed' body member has any effect on node smartfail state. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_nodes_lnn_state_smartfail(nodes_lnn_state_smartfail, lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param NodesLnnStateSmartfailExtended nodes_lnn_state_smartfail: (required) - :param int lnn: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nodes_lnn_state_smartfail', 'lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_nodes_lnn_state_smartfail" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nodes_lnn_state_smartfail' is set - if ('nodes_lnn_state_smartfail' not in params) or (params['nodes_lnn_state_smartfail'] is None): - raise ValueError("Missing the required parameter `nodes_lnn_state_smartfail` when calling `update_nodes_lnn_state_smartfail`") - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `update_nodes_lnn_state_smartfail`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/state/smartfail'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nodes_lnn_state_smartfail' in params: - body_params = params['nodes_lnn_state_smartfail'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nodes_lnn_status(self, lnn, **kwargs): - """ - - Retrieve node status information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nodes_lnn_status(lnn, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnStatus - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['lnn'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_status" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_status`") - - resource_path = '/platform/3/cluster/nodes/{Lnn}/status'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] + if 'timezone_region_id' in params: + path_params['TimezoneRegionId'] = params['timezone_region_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'show_all' in params: + query_params['show_all'] = params['show_all'] + if 'dst_reset' in params: + query_params['dst_reset'] = params['dst_reset'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3131,22 +1008,22 @@ def get_nodes_lnn_status(self, lnn, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NodesLnnStatus', + files=local_var_files, + response_type='TimezoneRegions', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nodes_lnn_status_batterystatus(self, lnn, **kwargs): + def get_timezone_settings(self, **kwargs): """ - Retrieve node battery status information. + Retrieve the cluster timezone. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3154,17 +1031,16 @@ def get_nodes_lnn_status_batterystatus(self, lnn, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nodes_lnn_status_batterystatus(lnn, callback=callback_function) + >>> thread = api.get_timezone_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int lnn: (required) - :return: NodesLnnStatusBatterystatus + :return: TimezoneSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['lnn'] + all_params = [] all_params.append('callback') params = locals() @@ -3172,28 +1048,22 @@ def get_nodes_lnn_status_batterystatus(self, lnn, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nodes_lnn_status_batterystatus" % key + " to method get_timezone_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_lnn_status_batterystatus`") - resource_path = '/platform/3/cluster/nodes/{Lnn}/status/batterystatus'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/timezone/settings'.replace('{format}', 'json') path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3210,22 +1080,22 @@ def get_nodes_lnn_status_batterystatus(self, lnn, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NodesLnnStatusBatterystatus', + files=local_var_files, + response_type='TimezoneSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_time(self, **kwargs): + def update_cluster_email(self, cluster_email, **kwargs): """ - Retrieve the current time as reported by each node. + Modify the cluster email notification settings. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3233,16 +1103,17 @@ def get_cluster_time(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_time(callback=callback_function) + >>> thread = api.update_cluster_email(cluster_email, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: Empty + :param ClusterEmailExtended cluster_email: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cluster_email'] all_params.append('callback') params = locals() @@ -3250,25 +1121,29 @@ def get_cluster_time(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_time" % key + " to method update_cluster_email" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cluster_email' is set + if ('cluster_email' not in params) or (params['cluster_email'] is None): + raise ValueError("Missing the required parameter `cluster_email` when calling `update_cluster_email`") - resource_path = '/platform/3/cluster/time'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/cluster/email'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_email' in params: + body_params = params['cluster_email'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3283,22 +1158,22 @@ def get_cluster_time(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cluster_time(self, cluster_time, **kwargs): + def update_cluster_identity(self, cluster_identity, **kwargs): """ - Set cluster time. Time will mostly be synchronized across nodes, but there may be slight drift. + Modify the login information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3306,17 +1181,17 @@ def update_cluster_time(self, cluster_time, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cluster_time(cluster_time, callback=callback_function) + >>> thread = api.update_cluster_identity(cluster_identity, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterTime cluster_time: (required) + :param ClusterIdentity cluster_identity: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_time'] + all_params = ['cluster_identity'] all_params.append('callback') params = locals() @@ -3324,30 +1199,29 @@ def update_cluster_time(self, cluster_time, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cluster_time" % key + " to method update_cluster_identity" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_time' is set - if ('cluster_time' not in params) or (params['cluster_time'] is None): - raise ValueError("Missing the required parameter `cluster_time` when calling `update_cluster_time`") + # verify the required parameter 'cluster_identity' is set + if ('cluster_identity' not in params) or (params['cluster_identity'] is None): + raise ValueError("Missing the required parameter `cluster_identity` when calling `update_cluster_identity`") - resource_path = '/platform/3/cluster/time'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/cluster/identity'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_time' in params: - body_params = params['cluster_time'] + if 'cluster_identity' in params: + body_params = params['cluster_identity'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3362,22 +1236,22 @@ def update_cluster_time(self, cluster_time, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_timezone(self, **kwargs): + def update_cluster_node(self, cluster_node, cluster_node_id, **kwargs): """ - Get the cluster timezone. + Modify one or more node settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3385,16 +1259,18 @@ def get_cluster_timezone(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_timezone(callback=callback_function) + >>> thread = api.update_cluster_node(cluster_node, cluster_node_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterTimezone + :param ClusterNode cluster_node: (required) + :param int cluster_node_id: Modify one or more node settings. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cluster_node', 'cluster_node_id'] all_params.append('callback') params = locals() @@ -3402,25 +1278,34 @@ def get_cluster_timezone(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_timezone" % key + " to method update_cluster_node" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cluster_node' is set + if ('cluster_node' not in params) or (params['cluster_node'] is None): + raise ValueError("Missing the required parameter `cluster_node` when calling `update_cluster_node`") + # verify the required parameter 'cluster_node_id' is set + if ('cluster_node_id' not in params) or (params['cluster_node_id'] is None): + raise ValueError("Missing the required parameter `cluster_node_id` when calling `update_cluster_node`") - resource_path = '/platform/3/cluster/timezone'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/nodes/{ClusterNodeId}'.replace('{format}', 'json') path_params = {} + if 'cluster_node_id' in params: + path_params['ClusterNodeId'] = params['cluster_node_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_node' in params: + body_params = params['cluster_node'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3435,22 +1320,22 @@ def get_cluster_timezone(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterTimezone', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cluster_timezone(self, cluster_timezone, **kwargs): + def update_cluster_owner(self, cluster_owner, **kwargs): """ - Set a new timezone for the cluster. + Modify the cluster contact info settings. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3458,17 +1343,17 @@ def update_cluster_timezone(self, cluster_timezone, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cluster_timezone(cluster_timezone, callback=callback_function) + >>> thread = api.update_cluster_owner(cluster_owner, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterTimezoneExtended cluster_timezone: (required) + :param ClusterOwner cluster_owner: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_timezone'] + all_params = ['cluster_owner'] all_params.append('callback') params = locals() @@ -3476,30 +1361,29 @@ def update_cluster_timezone(self, cluster_timezone, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cluster_timezone" % key + " to method update_cluster_owner" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_timezone' is set - if ('cluster_timezone' not in params) or (params['cluster_timezone'] is None): - raise ValueError("Missing the required parameter `cluster_timezone` when calling `update_cluster_timezone`") + # verify the required parameter 'cluster_owner' is set + if ('cluster_owner' not in params) or (params['cluster_owner'] is None): + raise ValueError("Missing the required parameter `cluster_owner` when calling `update_cluster_owner`") - resource_path = '/platform/3/cluster/timezone'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/cluster/owner'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_timezone' in params: - body_params = params['cluster_timezone'] + if 'cluster_owner' in params: + body_params = params['cluster_owner'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3514,22 +1398,22 @@ def update_cluster_timezone(self, cluster_timezone, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_timezone_region(self, timezone_region_id, **kwargs): + def update_cluster_time(self, cluster_time, **kwargs): """ - List timezone regions. + Set cluster time. Time will mostly be synchronized across nodes, but there may be slight drift. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3537,23 +1421,17 @@ def get_timezone_region(self, timezone_region_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_timezone_region(timezone_region_id, callback=callback_function) + >>> thread = api.update_cluster_time(cluster_time, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str timezone_region_id: List timezone regions. (required) - :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param bool show_all: Show all timezones within the region specified in the URI. - :param bool dst_reset: This query arg is not needed in normal use cases. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: TimezoneRegions + :param ClusterTimeExtended cluster_time: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['timezone_region_id', 'sort', 'resume', 'show_all', 'dst_reset', 'limit', 'dir'] + all_params = ['cluster_time'] all_params.append('callback') params = locals() @@ -3561,42 +1439,29 @@ def get_timezone_region(self, timezone_region_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_timezone_region" % key + " to method update_cluster_time" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'timezone_region_id' is set - if ('timezone_region_id' not in params) or (params['timezone_region_id'] is None): - raise ValueError("Missing the required parameter `timezone_region_id` when calling `get_timezone_region`") + # verify the required parameter 'cluster_time' is set + if ('cluster_time' not in params) or (params['cluster_time'] is None): + raise ValueError("Missing the required parameter `cluster_time` when calling `update_cluster_time`") - resource_path = '/platform/3/cluster/timezone/regions/{TimezoneRegionId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/time'.replace('{format}', 'json') path_params = {} - if 'timezone_region_id' in params: - path_params['TimezoneRegionId'] = params['timezone_region_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'show_all' in params: - query_params['show_all'] = params['show_all'] - if 'dst_reset' in params: - query_params['dst_reset'] = params['dst_reset'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_time' in params: + body_params = params['cluster_time'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3611,22 +1476,22 @@ def get_timezone_region(self, timezone_region_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='TimezoneRegions', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_timezone_settings(self, **kwargs): + def update_cluster_timezone(self, cluster_timezone, **kwargs): """ - Retrieve the cluster timezone. + Set a new timezone for the cluster. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3634,16 +1499,17 @@ def get_timezone_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_timezone_settings(callback=callback_function) + >>> thread = api.update_cluster_timezone(cluster_timezone, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: TimezoneSettings + :param ClusterTimezoneExtended cluster_timezone: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cluster_timezone'] all_params.append('callback') params = locals() @@ -3651,25 +1517,29 @@ def get_timezone_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_timezone_settings" % key + " to method update_cluster_timezone" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cluster_timezone' is set + if ('cluster_timezone' not in params) or (params['cluster_timezone'] is None): + raise ValueError("Missing the required parameter `cluster_timezone` when calling `update_cluster_timezone`") - resource_path = '/platform/3/cluster/timezone/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/cluster/timezone'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_timezone' in params: + body_params = params['cluster_timezone'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3684,14 +1554,14 @@ def get_timezone_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='TimezoneSettings', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -3734,17 +1604,16 @@ def update_timezone_settings(self, timezone_settings, **kwargs): if ('timezone_settings' not in params) or (params['timezone_settings'] is None): raise ValueError("Missing the required parameter `timezone_settings` when calling `update_timezone_settings`") - resource_path = '/platform/3/cluster/timezone/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/cluster/timezone/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'timezone_settings' in params: @@ -3763,87 +1632,14 @@ def update_timezone_settings(self, timezone_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - - def get_cluster_version(self, **kwargs): - """ - - Retrieve the OneFS version as reported by each node. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_cluster_version(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_cluster_version" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/3/cluster/version'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response diff --git a/isi_sdk/apis/cluster_nodes_api.py b/isi_sdk/apis/cluster_nodes_api.py new file mode 100644 index 000000000..3abf2f865 --- /dev/null +++ b/isi_sdk/apis/cluster_nodes_api.py @@ -0,0 +1,2207 @@ +# coding: utf-8 + +""" +ClusterNodesApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ClusterNodesApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_drives_drive_add_item(self, drives_drive_add_item, lnn, driveid, **kwargs): + """ + + Add a drive to a node. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_drives_drive_add_item(drives_drive_add_item, lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty drives_drive_add_item: (required) + :param int lnn: (required) + :param str driveid: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['drives_drive_add_item', 'lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_drives_drive_add_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'drives_drive_add_item' is set + if ('drives_drive_add_item' not in params) or (params['drives_drive_add_item'] is None): + raise ValueError("Missing the required parameter `drives_drive_add_item` when calling `create_drives_drive_add_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_drives_drive_add_item`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `create_drives_drive_add_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/add'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'drives_drive_add_item' in params: + body_params = params['drives_drive_add_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_drives_drive_firmware_update_item(self, drives_drive_firmware_update_item, lnn, driveid, **kwargs): + """ + + Start a drive firmware update. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_drives_drive_firmware_update_item(drives_drive_firmware_update_item, lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param DrivesDriveFirmwareUpdateItem drives_drive_firmware_update_item: (required) + :param int lnn: (required) + :param str driveid: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['drives_drive_firmware_update_item', 'lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_drives_drive_firmware_update_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'drives_drive_firmware_update_item' is set + if ('drives_drive_firmware_update_item' not in params) or (params['drives_drive_firmware_update_item'] is None): + raise ValueError("Missing the required parameter `drives_drive_firmware_update_item` when calling `create_drives_drive_firmware_update_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_drives_drive_firmware_update_item`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `create_drives_drive_firmware_update_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware/update'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'drives_drive_firmware_update_item' in params: + body_params = params['drives_drive_firmware_update_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_drives_drive_format_item(self, drives_drive_format_item, lnn, driveid, **kwargs): + """ + + Format a drive for use by OneFS. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_drives_drive_format_item(drives_drive_format_item, lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param DrivesDriveFormatItem drives_drive_format_item: (required) + :param int lnn: (required) + :param str driveid: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['drives_drive_format_item', 'lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_drives_drive_format_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'drives_drive_format_item' is set + if ('drives_drive_format_item' not in params) or (params['drives_drive_format_item'] is None): + raise ValueError("Missing the required parameter `drives_drive_format_item` when calling `create_drives_drive_format_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_drives_drive_format_item`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `create_drives_drive_format_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/format'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'drives_drive_format_item' in params: + body_params = params['drives_drive_format_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_drives_drive_purpose_item(self, drives_drive_purpose_item, lnn, driveid, **kwargs): + """ + + Assign a drive to a specific use case. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_drives_drive_purpose_item(drives_drive_purpose_item, lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param DrivesDrivePurposeItem drives_drive_purpose_item: (required) + :param int lnn: (required) + :param str driveid: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['drives_drive_purpose_item', 'lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_drives_drive_purpose_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'drives_drive_purpose_item' is set + if ('drives_drive_purpose_item' not in params) or (params['drives_drive_purpose_item'] is None): + raise ValueError("Missing the required parameter `drives_drive_purpose_item` when calling `create_drives_drive_purpose_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_drives_drive_purpose_item`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `create_drives_drive_purpose_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/purpose'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'drives_drive_purpose_item' in params: + body_params = params['drives_drive_purpose_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_drives_drive_smartfail_item(self, drives_drive_smartfail_item, lnn, driveid, **kwargs): + """ + + Remove a drive from use by OneFS. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_drives_drive_smartfail_item(drives_drive_smartfail_item, lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty drives_drive_smartfail_item: (required) + :param int lnn: (required) + :param str driveid: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['drives_drive_smartfail_item', 'lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_drives_drive_smartfail_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'drives_drive_smartfail_item' is set + if ('drives_drive_smartfail_item' not in params) or (params['drives_drive_smartfail_item'] is None): + raise ValueError("Missing the required parameter `drives_drive_smartfail_item` when calling `create_drives_drive_smartfail_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_drives_drive_smartfail_item`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `create_drives_drive_smartfail_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/smartfail'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'drives_drive_smartfail_item' in params: + body_params = params['drives_drive_smartfail_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_drives_drive_stopfail_item(self, drives_drive_stopfail_item, lnn, driveid, **kwargs): + """ + + Stop restriping from a smartfailing drive. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_drives_drive_stopfail_item(drives_drive_stopfail_item, lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty drives_drive_stopfail_item: (required) + :param int lnn: (required) + :param str driveid: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['drives_drive_stopfail_item', 'lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_drives_drive_stopfail_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'drives_drive_stopfail_item' is set + if ('drives_drive_stopfail_item' not in params) or (params['drives_drive_stopfail_item'] is None): + raise ValueError("Missing the required parameter `drives_drive_stopfail_item` when calling `create_drives_drive_stopfail_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_drives_drive_stopfail_item`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `create_drives_drive_stopfail_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/stopfail'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'drives_drive_stopfail_item' in params: + body_params = params['drives_drive_stopfail_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_drives_drive_suspend_item(self, drives_drive_suspend_item, lnn, driveid, **kwargs): + """ + + Temporarily remove a drive from use by OneFS. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_drives_drive_suspend_item(drives_drive_suspend_item, lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty drives_drive_suspend_item: (required) + :param int lnn: (required) + :param str driveid: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['drives_drive_suspend_item', 'lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_drives_drive_suspend_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'drives_drive_suspend_item' is set + if ('drives_drive_suspend_item' not in params) or (params['drives_drive_suspend_item'] is None): + raise ValueError("Missing the required parameter `drives_drive_suspend_item` when calling `create_drives_drive_suspend_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_drives_drive_suspend_item`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `create_drives_drive_suspend_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/suspend'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'drives_drive_suspend_item' in params: + body_params = params['drives_drive_suspend_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_node_reboot_item(self, node_reboot_item, lnn, **kwargs): + """ + + Reboot the node specified by . + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_node_reboot_item(node_reboot_item, lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty node_reboot_item: (required) + :param int lnn: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['node_reboot_item', 'lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_node_reboot_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'node_reboot_item' is set + if ('node_reboot_item' not in params) or (params['node_reboot_item'] is None): + raise ValueError("Missing the required parameter `node_reboot_item` when calling `create_node_reboot_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_node_reboot_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/reboot'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'node_reboot_item' in params: + body_params = params['node_reboot_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_node_shutdown_item(self, node_shutdown_item, lnn, **kwargs): + """ + + Shutdown the node specified by . + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_node_shutdown_item(node_shutdown_item, lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty node_shutdown_item: (required) + :param int lnn: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['node_shutdown_item', 'lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_node_shutdown_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'node_shutdown_item' is set + if ('node_shutdown_item' not in params) or (params['node_shutdown_item'] is None): + raise ValueError("Missing the required parameter `node_shutdown_item` when calling `create_node_shutdown_item`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `create_node_shutdown_item`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/shutdown'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'node_shutdown_item' in params: + body_params = params['node_shutdown_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_drives_drive_firmware(self, lnn, driveid, **kwargs): + """ + + Retrieve drive firmware information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_drives_drive_firmware(lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :param str driveid: (required) + :return: DrivesDriveFirmware + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_drives_drive_firmware" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_drives_drive_firmware`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `get_drives_drive_firmware`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DrivesDriveFirmware', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_drive(self, node_drive_id, lnn, **kwargs): + """ + + Retrieve drive information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_drive(node_drive_id, lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str node_drive_id: Retrieve drive information. (required) + :param int lnn: (required) + :return: NodeDrives + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['node_drive_id', 'lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_drive" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'node_drive_id' is set + if ('node_drive_id' not in params) or (params['node_drive_id'] is None): + raise ValueError("Missing the required parameter `node_drive_id` when calling `get_node_drive`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_drive`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{NodeDriveId}'.replace('{format}', 'json') + path_params = {} + if 'node_drive_id' in params: + path_params['NodeDriveId'] = params['node_drive_id'] + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeDrives', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_drives(self, lnn, **kwargs): + """ + + List the drives on this node. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_drives(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeDrives + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_drives" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_drives`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeDrives', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_drives_purposelist(self, lnn, **kwargs): + """ + + Lists the available purposes for drives in this node. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_drives_purposelist(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeDrivesPurposelist + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_drives_purposelist" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_drives_purposelist`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives-purposelist'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeDrivesPurposelist', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_hardware(self, lnn, **kwargs): + """ + + Retrieve node hardware identity information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_hardware(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeHardware + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_hardware" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_hardware`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/hardware'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeHardware', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_partitions(self, lnn, **kwargs): + """ + + Retrieve node partition information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_partitions(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodePartitions + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_partitions" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_partitions`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/partitions'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodePartitions', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_sensors(self, lnn, **kwargs): + """ + + Retrieve node sensor information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_sensors(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeSensors + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_sensors" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_sensors`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/sensors'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeSensors', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_state(self, lnn, **kwargs): + """ + + Retrieve node state information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_state(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeState + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_state" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_state`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/state'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeState', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_state_readonly(self, lnn, **kwargs): + """ + + Retrieve node readonly state information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_state_readonly(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeStateReadonly + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_state_readonly" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_state_readonly`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/state/readonly'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeStateReadonly', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_state_servicelight(self, lnn, **kwargs): + """ + + Retrieve node service light state information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_state_servicelight(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeStateServicelight + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_state_servicelight" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_state_servicelight`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/state/servicelight'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeStateServicelight', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_state_smartfail(self, lnn, **kwargs): + """ + + Retrieve node smartfail state information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_state_smartfail(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeStateSmartfail + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_state_smartfail" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_state_smartfail`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/state/smartfail'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeStateSmartfail', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_status(self, lnn, **kwargs): + """ + + Retrieve node status information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_status(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_status" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_status`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/status'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_node_status_batterystatus(self, lnn, **kwargs): + """ + + Retrieve node battery status information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_node_status_batterystatus(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :return: NodeStatusBatterystatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_status_batterystatus" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_node_status_batterystatus`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/status/batterystatus'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodeStatusBatterystatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_drives_drive_firmware_update(self, lnn, driveid, **kwargs): + """ + + Retrieve firmware update information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_drives_drive_firmware_update(lnn, driveid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :param str driveid: (required) + :return: DrivesDriveFirmwareUpdate + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn', 'driveid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_drives_drive_firmware_update" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `list_drives_drive_firmware_update`") + # verify the required parameter 'driveid' is set + if ('driveid' not in params) or (params['driveid'] is None): + raise ValueError("Missing the required parameter `driveid` when calling `list_drives_drive_firmware_update`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/drives/{Driveid}/firmware/update'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + if 'driveid' in params: + path_params['Driveid'] = params['driveid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DrivesDriveFirmwareUpdate', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_node_state_readonly(self, node_state_readonly, lnn, **kwargs): + """ + + Modify one or more node readonly state settings. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_node_state_readonly(node_state_readonly, lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param NodeStateReadonlyExtended node_state_readonly: (required) + :param int lnn: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['node_state_readonly', 'lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_node_state_readonly" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'node_state_readonly' is set + if ('node_state_readonly' not in params) or (params['node_state_readonly'] is None): + raise ValueError("Missing the required parameter `node_state_readonly` when calling `update_node_state_readonly`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `update_node_state_readonly`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/state/readonly'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'node_state_readonly' in params: + body_params = params['node_state_readonly'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_node_state_servicelight(self, node_state_servicelight, lnn, **kwargs): + """ + + Modify one or more node service light state settings. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_node_state_servicelight(node_state_servicelight, lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param NodeStateServicelightExtended node_state_servicelight: (required) + :param int lnn: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['node_state_servicelight', 'lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_node_state_servicelight" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'node_state_servicelight' is set + if ('node_state_servicelight' not in params) or (params['node_state_servicelight'] is None): + raise ValueError("Missing the required parameter `node_state_servicelight` when calling `update_node_state_servicelight`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `update_node_state_servicelight`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/state/servicelight'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'node_state_servicelight' in params: + body_params = params['node_state_servicelight'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_node_state_smartfail(self, node_state_smartfail, lnn, **kwargs): + """ + + Modify smartfail state of the node. Only the 'smartfailed' body member has any effect on node smartfail state. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_node_state_smartfail(node_state_smartfail, lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param NodeStateSmartfailExtended node_state_smartfail: (required) + :param int lnn: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['node_state_smartfail', 'lnn'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_node_state_smartfail" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'node_state_smartfail' is set + if ('node_state_smartfail' not in params) or (params['node_state_smartfail'] is None): + raise ValueError("Missing the required parameter `node_state_smartfail` when calling `update_node_state_smartfail`") + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `update_node_state_smartfail`") + + + resource_path = '/platform/3/cluster/nodes/{Lnn}/state/smartfail'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'node_state_smartfail' in params: + body_params = params['node_state_smartfail'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/debug_api.py b/isi_sdk/apis/debug_api.py index 08666fc50..e2fa638de 100644 --- a/isi_sdk/apis/debug_api.py +++ b/isi_sdk/apis/debug_api.py @@ -2,7 +2,7 @@ """ DebugApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_debug_stats(self, **kwargs): + def delete_debug_stats(self, **kwargs): """ - List cumulative call statistics for each resource. + Clear per-resource statistics counters. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,11 +57,11 @@ def get_debug_stats(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_debug_stats(callback=callback_function) + >>> thread = api.delete_debug_stats(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: DebugStats + :return: None If the method is called asynchronously, returns the request thread. """ @@ -73,23 +74,22 @@ def get_debug_stats(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_debug_stats" % key + " to method delete_debug_stats" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/debug/stats'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/debug/stats'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -106,22 +106,22 @@ def get_debug_stats(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='DebugStats', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_debug_stats(self, **kwargs): + def get_debug_stats(self, **kwargs): """ - Clear per-resource statistics counters. + List cumulative call statistics for each resource. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,11 +129,11 @@ def delete_debug_stats(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_debug_stats(callback=callback_function) + >>> thread = api.get_debug_stats(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: DebugStats If the method is called asynchronously, returns the request thread. """ @@ -146,23 +146,22 @@ def delete_debug_stats(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_debug_stats" % key + " to method get_debug_stats" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/debug/stats'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/debug/stats'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -179,14 +178,14 @@ def delete_debug_stats(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='DebugStats', auth_settings=auth_settings, callback=params.get('callback')) return response diff --git a/isi_sdk/apis/dedupe_api.py b/isi_sdk/apis/dedupe_api.py index 7e8259d3f..0eb22220f 100644 --- a/isi_sdk/apis/dedupe_api.py +++ b/isi_sdk/apis/dedupe_api.py @@ -2,7 +2,7 @@ """ DedupeApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -79,17 +80,16 @@ def get_dedupe_dedupe_summary(self, **kwargs): del params['kwargs'] - resource_path = '/platform/1/dedupe/dedupe-summary'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/dedupe/dedupe-summary'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -106,22 +106,22 @@ def get_dedupe_dedupe_summary(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='DedupeDedupeSummary', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_dedupe_reports(self, **kwargs): + def get_dedupe_report(self, dedupe_report_id, **kwargs): """ - List dedupe reports. + Retrieve a report for a single dedupe job. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,24 +129,18 @@ def get_dedupe_reports(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_dedupe_reports(callback=callback_function) + >>> thread = api.get_dedupe_report(dedupe_report_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int begin: Restrict the query to reports at or after the given time, in seconds since the Epoch. - :param int end: Restrict the query to reports at or before the given time, in seconds since the Epoch. - :param int job_id: Restrict the query to the given job ID. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str job_type: Restrict the query to the given job type. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: DedupeReportsExtended + :param str dedupe_report_id: Retrieve a report for a single dedupe job. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: DedupeReports If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'begin', 'end', 'job_id', 'resume', 'job_type', 'limit', 'dir'] + all_params = ['dedupe_report_id', 'scope'] all_params.append('callback') params = locals() @@ -154,39 +148,29 @@ def get_dedupe_reports(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_dedupe_reports" % key + " to method get_dedupe_report" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'dedupe_report_id' is set + if ('dedupe_report_id' not in params) or (params['dedupe_report_id'] is None): + raise ValueError("Missing the required parameter `dedupe_report_id` when calling `get_dedupe_report`") - resource_path = '/platform/1/dedupe/reports'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/dedupe/reports/{DedupeReportId}'.replace('{format}', 'json') path_params = {} + if 'dedupe_report_id' in params: + path_params['DedupeReportId'] = params['dedupe_report_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'end' in params: - query_params['end'] = params['end'] - if 'job_id' in params: - query_params['job_id'] = params['job_id'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'job_type' in params: - query_params['job_type'] = params['job_type'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -203,22 +187,22 @@ def get_dedupe_reports(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='DedupeReportsExtended', + files=local_var_files, + response_type='DedupeReports', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_dedupe_report(self, dedupe_report_id, **kwargs): + def get_dedupe_reports(self, **kwargs): """ - Retrieve a report for a single dedupe job. + List dedupe reports. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -226,18 +210,24 @@ def get_dedupe_report(self, dedupe_report_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_dedupe_report(dedupe_report_id, callback=callback_function) + >>> thread = api.get_dedupe_reports(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str dedupe_report_id: Retrieve a report for a single dedupe job. (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: DedupeReports + :param str sort: The field that will be used for sorting. + :param int begin: Restrict the query to reports at or after the given time, in seconds since the Epoch. + :param int end: Restrict the query to reports at or before the given time, in seconds since the Epoch. + :param int job_id: Restrict the query to the given job ID. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param str job_type: Restrict the query to the given job type. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: DedupeReportsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['dedupe_report_id', 'scope'] + all_params = ['sort', 'begin', 'end', 'job_id', 'resume', 'job_type', 'limit', 'dir'] all_params.append('callback') params = locals() @@ -245,30 +235,40 @@ def get_dedupe_report(self, dedupe_report_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_dedupe_report" % key + " to method get_dedupe_reports" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'dedupe_report_id' is set - if ('dedupe_report_id' not in params) or (params['dedupe_report_id'] is None): - raise ValueError("Missing the required parameter `dedupe_report_id` when calling `get_dedupe_report`") - resource_path = '/platform/1/dedupe/reports/{DedupeReportId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_dedupe_reports`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/dedupe/reports'.replace('{format}', 'json') path_params = {} - if 'dedupe_report_id' in params: - path_params['DedupeReportId'] = params['dedupe_report_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'end' in params: + query_params['end'] = params['end'] + if 'job_id' in params: + query_params['job_id'] = params['job_id'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'job_type' in params: + query_params['job_type'] = params['job_type'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -285,14 +285,14 @@ def get_dedupe_report(self, dedupe_report_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='DedupeReports', + files=local_var_files, + response_type='DedupeReportsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -331,17 +331,16 @@ def get_dedupe_settings(self, **kwargs): del params['kwargs'] - resource_path = '/platform/1/dedupe/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/dedupe/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -358,13 +357,13 @@ def get_dedupe_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='DedupeSettings', auth_settings=auth_settings, callback=params.get('callback')) @@ -408,17 +407,16 @@ def update_dedupe_settings(self, dedupe_settings, **kwargs): if ('dedupe_settings' not in params) or (params['dedupe_settings'] is None): raise ValueError("Missing the required parameter `dedupe_settings` when calling `update_dedupe_settings`") - resource_path = '/platform/1/dedupe/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/dedupe/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'dedupe_settings' in params: @@ -437,13 +435,13 @@ def update_dedupe_settings(self, dedupe_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/event_api.py b/isi_sdk/apis/event_api.py index 5d7e73178..cd1706aff 100644 --- a/isi_sdk/apis/event_api.py +++ b/isi_sdk/apis/event_api.py @@ -2,7 +2,7 @@ """ EventApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_event_alert_conditions(self, **kwargs): + def create_event_alert_condition(self, event_alert_condition, **kwargs): """ - List all alert conditions. + Create a new alert condition. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,21 +57,17 @@ def list_event_alert_conditions(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_event_alert_conditions(callback=callback_function) + >>> thread = api.create_event_alert_condition(event_alert_condition, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str channel_ids: Return only conditions for the specified channel: - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: EventAlertConditionsExtended + :param EventAlertConditionsAlertCondition event_alert_condition: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'channel_ids', 'limit', 'dir', 'resume'] + all_params = ['event_alert_condition'] all_params.append('callback') params = locals() @@ -78,35 +75,29 @@ def list_event_alert_conditions(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_event_alert_conditions" % key + " to method create_event_alert_condition" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'event_alert_condition' is set + if ('event_alert_condition' not in params) or (params['event_alert_condition'] is None): + raise ValueError("Missing the required parameter `event_alert_condition` when calling `create_event_alert_condition`") + resource_path = '/platform/3/event/alert-conditions'.replace('{format}', 'json') - method = 'GET' - path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'channel_ids' in params: - query_params['channel_ids'] = params['channel_ids'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'event_alert_condition' in params: + body_params = params['event_alert_condition'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -121,22 +112,22 @@ def list_event_alert_conditions(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventAlertConditionsExtended', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_event_alert_condition(self, event_alert_condition, **kwargs): + def create_event_channel(self, event_channel, **kwargs): """ - Create a new alert condition. + Create a new channel. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -144,17 +135,17 @@ def create_event_alert_condition(self, event_alert_condition, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_event_alert_condition(event_alert_condition, callback=callback_function) + >>> thread = api.create_event_channel(event_channel, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EventAlertConditionsAlertCondition event_alert_condition: (required) + :param EventChannelsAlertCondition event_channel: (required) :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['event_alert_condition'] + all_params = ['event_channel'] all_params.append('callback') params = locals() @@ -162,30 +153,29 @@ def create_event_alert_condition(self, event_alert_condition, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_event_alert_condition" % key + " to method create_event_channel" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_alert_condition' is set - if ('event_alert_condition' not in params) or (params['event_alert_condition'] is None): - raise ValueError("Missing the required parameter `event_alert_condition` when calling `create_event_alert_condition`") + # verify the required parameter 'event_channel' is set + if ('event_channel' not in params) or (params['event_channel'] is None): + raise ValueError("Missing the required parameter `event_channel` when calling `create_event_channel`") - resource_path = '/platform/3/event/alert-conditions'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/event/channels'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'event_alert_condition' in params: - body_params = params['event_alert_condition'] + if 'event_channel' in params: + body_params = params['event_channel'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -200,22 +190,22 @@ def create_event_alert_condition(self, event_alert_condition, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_event_alert_conditions(self, **kwargs): + def create_event_event(self, event_event, **kwargs): """ - Bulk delete of alert conditions. + Create a test event. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -223,17 +213,17 @@ def delete_event_alert_conditions(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_event_alert_conditions(callback=callback_function) + >>> thread = api.create_event_event(event_event, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str channel: Delete only conditions for this channel - :return: None + :param EventEvent event_event: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['channel'] + all_params = ['event_event'] all_params.append('callback') params = locals() @@ -241,27 +231,29 @@ def delete_event_alert_conditions(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_event_alert_conditions" % key + " to method create_event_event" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'event_event' is set + if ('event_event' not in params) or (params['event_event'] is None): + raise ValueError("Missing the required parameter `event_event` when calling `create_event_event`") - resource_path = '/platform/3/event/alert-conditions'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/event/events'.replace('{format}', 'json') path_params = {} query_params = {} - if 'channel' in params: - query_params['channel`'] = params['channel'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'event_event' in params: + body_params = params['event_event'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -276,22 +268,22 @@ def delete_event_alert_conditions(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_event_alert_condition(self, event_alert_condition_id, **kwargs): + def delete_event_alert_condition(self, event_alert_condition_id, **kwargs): """ - Retrieve the alert-condition. + Delete the alert-condition. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -299,12 +291,12 @@ def get_event_alert_condition(self, event_alert_condition_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_event_alert_condition(event_alert_condition_id, callback=callback_function) + >>> thread = api.delete_event_alert_condition(event_alert_condition_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str event_alert_condition_id: Retrieve the alert-condition. (required) - :return: EventAlertConditions + :param str event_alert_condition_id: Delete the alert-condition. (required) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -317,18 +309,17 @@ def get_event_alert_condition(self, event_alert_condition_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_alert_condition" % key + " to method delete_event_alert_condition" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'event_alert_condition_id' is set if ('event_alert_condition_id' not in params) or (params['event_alert_condition_id'] is None): - raise ValueError("Missing the required parameter `event_alert_condition_id` when calling `get_event_alert_condition`") + raise ValueError("Missing the required parameter `event_alert_condition_id` when calling `delete_event_alert_condition`") - resource_path = '/platform/3/event/alert-conditions/{EventAlertConditionId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/event/alert-conditions/{EventAlertConditionId}'.replace('{format}', 'json') path_params = {} if 'event_alert_condition_id' in params: path_params['EventAlertConditionId'] = params['event_alert_condition_id'] @@ -337,8 +328,8 @@ def get_event_alert_condition(self, event_alert_condition_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -355,22 +346,22 @@ def get_event_alert_condition(self, event_alert_condition_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventAlertConditions', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_event_alert_condition(self, event_alert_condition, event_alert_condition_id, **kwargs): + def delete_event_alert_conditions(self, **kwargs): """ - Modify the alert-condition + Bulk delete of alert conditions. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -378,18 +369,17 @@ def update_event_alert_condition(self, event_alert_condition, event_alert_condit >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_event_alert_condition(event_alert_condition, event_alert_condition_id, callback=callback_function) + >>> thread = api.delete_event_alert_conditions(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EventAlertCondition event_alert_condition: (required) - :param str event_alert_condition_id: Modify the alert-condition (required) + :param str channel: Delete only conditions for this channel :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['event_alert_condition', 'event_alert_condition_id'] + all_params = ['channel'] all_params.append('callback') params = locals() @@ -397,35 +387,26 @@ def update_event_alert_condition(self, event_alert_condition, event_alert_condit if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_event_alert_condition" % key + " to method delete_event_alert_conditions" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_alert_condition' is set - if ('event_alert_condition' not in params) or (params['event_alert_condition'] is None): - raise ValueError("Missing the required parameter `event_alert_condition` when calling `update_event_alert_condition`") - # verify the required parameter 'event_alert_condition_id' is set - if ('event_alert_condition_id' not in params) or (params['event_alert_condition_id'] is None): - raise ValueError("Missing the required parameter `event_alert_condition_id` when calling `update_event_alert_condition`") - resource_path = '/platform/3/event/alert-conditions/{EventAlertConditionId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/event/alert-conditions'.replace('{format}', 'json') path_params = {} - if 'event_alert_condition_id' in params: - path_params['EventAlertConditionId'] = params['event_alert_condition_id'] query_params = {} + if 'channel' in params: + query_params['channel`'] = params['channel'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'event_alert_condition' in params: - body_params = params['event_alert_condition'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -440,19 +421,19 @@ def update_event_alert_condition(self, event_alert_condition, event_alert_condit # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_event_alert_condition(self, event_alert_condition_id, **kwargs): + def delete_event_channel(self, event_channel_id, **kwargs): """ Delete the alert-condition. @@ -463,16 +444,94 @@ def delete_event_alert_condition(self, event_alert_condition_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_event_alert_condition(event_alert_condition_id, callback=callback_function) + >>> thread = api.delete_event_channel(event_channel_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str event_alert_condition_id: Delete the alert-condition. (required) + :param str event_channel_id: Delete the alert-condition. (required) :return: None If the method is called asynchronously, returns the request thread. """ + all_params = ['event_channel_id'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_event_channel" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'event_channel_id' is set + if ('event_channel_id' not in params) or (params['event_channel_id'] is None): + raise ValueError("Missing the required parameter `event_channel_id` when calling `delete_event_channel`") + + + resource_path = '/platform/3/event/channels/{EventChannelId}'.replace('{format}', 'json') + path_params = {} + if 'event_channel_id' in params: + path_params['EventChannelId'] = params['event_channel_id'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_event_alert_condition(self, event_alert_condition_id, **kwargs): + """ + + Retrieve the alert-condition. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_event_alert_condition(event_alert_condition_id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str event_alert_condition_id: Retrieve the alert-condition. (required) + :return: EventAlertConditions + If the method is called asynchronously, + returns the request thread. + """ + all_params = ['event_alert_condition_id'] all_params.append('callback') @@ -481,18 +540,17 @@ def delete_event_alert_condition(self, event_alert_condition_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_event_alert_condition" % key + " to method get_event_alert_condition" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'event_alert_condition_id' is set if ('event_alert_condition_id' not in params) or (params['event_alert_condition_id'] is None): - raise ValueError("Missing the required parameter `event_alert_condition_id` when calling `delete_event_alert_condition`") + raise ValueError("Missing the required parameter `event_alert_condition_id` when calling `get_event_alert_condition`") - resource_path = '/platform/3/event/alert-conditions/{EventAlertConditionId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/event/alert-conditions/{EventAlertConditionId}'.replace('{format}', 'json') path_params = {} if 'event_alert_condition_id' in params: path_params['EventAlertConditionId'] = params['event_alert_condition_id'] @@ -501,8 +559,8 @@ def delete_event_alert_condition(self, event_alert_condition_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -519,14 +577,14 @@ def delete_event_alert_condition(self, event_alert_condition_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='EventAlertConditions', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -567,9 +625,10 @@ def get_event_categories(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/event/categories'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_event_categories`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/event/categories'.replace('{format}', 'json') path_params = {} query_params = {} @@ -580,8 +639,8 @@ def get_event_categories(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -598,13 +657,13 @@ def get_event_categories(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='EventCategoriesExtended', auth_settings=auth_settings, callback=params.get('callback')) @@ -648,9 +707,8 @@ def get_event_category(self, event_category_id, **kwargs): if ('event_category_id' not in params) or (params['event_category_id'] is None): raise ValueError("Missing the required parameter `event_category_id` when calling `get_event_category`") - resource_path = '/platform/3/event/categories/{EventCategoryId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/event/categories/{EventCategoryId}'.replace('{format}', 'json') path_params = {} if 'event_category_id' in params: path_params['EventCategoryId'] = params['event_category_id'] @@ -659,8 +717,8 @@ def get_event_category(self, event_category_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -677,22 +735,22 @@ def get_event_category(self, event_category_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='EventCategories', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_event_channels(self, **kwargs): + def get_event_channel(self, event_channel_id, **kwargs): """ - List all channels. + Retrieve the alert-condition. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -700,18 +758,17 @@ def list_event_channels(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_event_channels(callback=callback_function) + >>> thread = api.get_event_channel(event_channel_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int limit: Return no more than this many results at once (see resume). - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: EventChannelsExtended + :param str event_channel_id: Retrieve the alert-condition. (required) + :return: EventChannels If the method is called asynchronously, returns the request thread. """ - all_params = ['limit', 'resume'] + all_params = ['event_channel_id'] all_params.append('callback') params = locals() @@ -719,27 +776,27 @@ def list_event_channels(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_event_channels" % key + " to method get_event_channel" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'event_channel_id' is set + if ('event_channel_id' not in params) or (params['event_channel_id'] is None): + raise ValueError("Missing the required parameter `event_channel_id` when calling `get_event_channel`") - resource_path = '/platform/3/event/channels'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/event/channels/{EventChannelId}'.replace('{format}', 'json') path_params = {} + if 'event_channel_id' in params: + path_params['EventChannelId'] = params['event_channel_id'] query_params = {} - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -756,22 +813,22 @@ def list_event_channels(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventChannelsExtended', + files=local_var_files, + response_type='EventChannels', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_event_channel(self, event_channel, **kwargs): + def get_event_eventgroup_definition(self, event_eventgroup_definition_id, **kwargs): """ - Create a new channel. + Retrieve the eventgroup definition. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -779,96 +836,17 @@ def create_event_channel(self, event_channel, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_event_channel(event_channel, callback=callback_function) + >>> thread = api.get_event_eventgroup_definition(event_eventgroup_definition_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EventChannelsAlertCondition event_channel: (required) - :return: CreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['event_channel'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_event_channel" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'event_channel' is set - if ('event_channel' not in params) or (params['event_channel'] is None): - raise ValueError("Missing the required parameter `event_channel` when calling `create_event_channel`") - - resource_path = '/platform/3/event/channels'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'event_channel' in params: - body_params = params['event_channel'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='CreateResponse', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_event_channel(self, event_channel_id, **kwargs): - """ - - Retrieve the alert-condition. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_event_channel(event_channel_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str event_channel_id: Retrieve the alert-condition. (required) - :return: EventChannels + :param str event_eventgroup_definition_id: Retrieve the eventgroup definition. (required) + :return: EventEventgroupDefinitions If the method is called asynchronously, returns the request thread. """ - all_params = ['event_channel_id'] + all_params = ['event_eventgroup_definition_id'] all_params.append('callback') params = locals() @@ -876,28 +854,27 @@ def get_event_channel(self, event_channel_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_channel" % key + " to method get_event_eventgroup_definition" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_channel_id' is set - if ('event_channel_id' not in params) or (params['event_channel_id'] is None): - raise ValueError("Missing the required parameter `event_channel_id` when calling `get_event_channel`") + # verify the required parameter 'event_eventgroup_definition_id' is set + if ('event_eventgroup_definition_id' not in params) or (params['event_eventgroup_definition_id'] is None): + raise ValueError("Missing the required parameter `event_eventgroup_definition_id` when calling `get_event_eventgroup_definition`") - resource_path = '/platform/3/event/channels/{EventChannelId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/event/eventgroup-definitions/{EventEventgroupDefinitionId}'.replace('{format}', 'json') path_params = {} - if 'event_channel_id' in params: - path_params['EventChannelId'] = params['event_channel_id'] + if 'event_eventgroup_definition_id' in params: + path_params['EventEventgroupDefinitionId'] = params['event_eventgroup_definition_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -914,22 +891,22 @@ def get_event_channel(self, event_channel_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventChannels', + files=local_var_files, + response_type='EventEventgroupDefinitions', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_event_channel(self, event_channel, event_channel_id, **kwargs): + def get_event_eventgroup_definitions(self, **kwargs): """ - Modify the alert-condition + List all eventgroup definitions. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -937,18 +914,19 @@ def update_event_channel(self, event_channel, event_channel_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_event_channel(event_channel, event_channel_id, callback=callback_function) + >>> thread = api.get_event_eventgroup_definitions(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EventChannel event_channel: (required) - :param str event_channel_id: Modify the alert-condition (required) - :return: None + :param int category: Return eventgroups in the specified category + :param int limit: Return no more than this many results at once (see resume). + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: EventEventgroupDefinitionsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['event_channel', 'event_channel_id'] + all_params = ['category', 'limit', 'resume'] all_params.append('callback') params = locals() @@ -956,35 +934,32 @@ def update_event_channel(self, event_channel, event_channel_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_event_channel" % key + " to method get_event_eventgroup_definitions" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_channel' is set - if ('event_channel' not in params) or (params['event_channel'] is None): - raise ValueError("Missing the required parameter `event_channel` when calling `update_event_channel`") - # verify the required parameter 'event_channel_id' is set - if ('event_channel_id' not in params) or (params['event_channel_id'] is None): - raise ValueError("Missing the required parameter `event_channel_id` when calling `update_event_channel`") - resource_path = '/platform/3/event/channels/{EventChannelId}'.replace('{format}', 'json') - method = 'PUT' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_event_eventgroup_definitions`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/event/eventgroup-definitions'.replace('{format}', 'json') path_params = {} - if 'event_channel_id' in params: - path_params['EventChannelId'] = params['event_channel_id'] query_params = {} + if 'category' in params: + query_params['category'] = params['category'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'event_channel' in params: - body_params = params['event_channel'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -999,22 +974,22 @@ def update_event_channel(self, event_channel, event_channel_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='EventEventgroupDefinitionsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_event_channel(self, event_channel_id, **kwargs): + def get_event_eventgroup_occurrence(self, event_eventgroup_occurrence_id, **kwargs): """ - Delete the alert-condition. + Retrieve individual eventgroup occurrence. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1022,17 +997,17 @@ def delete_event_channel(self, event_channel_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_event_channel(event_channel_id, callback=callback_function) + >>> thread = api.get_event_eventgroup_occurrence(event_eventgroup_occurrence_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str event_channel_id: Delete the alert-condition. (required) - :return: None + :param str event_eventgroup_occurrence_id: Retrieve individual eventgroup occurrence. (required) + :return: EventEventgroupOccurrences If the method is called asynchronously, returns the request thread. """ - all_params = ['event_channel_id'] + all_params = ['event_eventgroup_occurrence_id'] all_params.append('callback') params = locals() @@ -1040,28 +1015,27 @@ def delete_event_channel(self, event_channel_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_event_channel" % key + " to method get_event_eventgroup_occurrence" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_channel_id' is set - if ('event_channel_id' not in params) or (params['event_channel_id'] is None): - raise ValueError("Missing the required parameter `event_channel_id` when calling `delete_event_channel`") + # verify the required parameter 'event_eventgroup_occurrence_id' is set + if ('event_eventgroup_occurrence_id' not in params) or (params['event_eventgroup_occurrence_id'] is None): + raise ValueError("Missing the required parameter `event_eventgroup_occurrence_id` when calling `get_event_eventgroup_occurrence`") - resource_path = '/platform/3/event/channels/{EventChannelId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/event/eventgroup-occurrences/{EventEventgroupOccurrenceId}'.replace('{format}', 'json') path_params = {} - if 'event_channel_id' in params: - path_params['EventChannelId'] = params['event_channel_id'] + if 'event_eventgroup_occurrence_id' in params: + path_params['EventEventgroupOccurrenceId'] = params['event_eventgroup_occurrence_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1078,22 +1052,22 @@ def delete_event_channel(self, event_channel_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='EventEventgroupOccurrences', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_event_eventgroup_definitions(self, **kwargs): + def get_event_eventgroup_occurrences(self, **kwargs): """ - List all eventgroup definitions. + List all eventgroup occurrences. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1101,19 +1075,27 @@ def get_event_eventgroup_definitions(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_event_eventgroup_definitions(callback=callback_function) + >>> thread = api.get_event_eventgroup_occurrences(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int category: Return eventgroups in the specified category - :param int limit: Return no more than this many results at once (see resume). + :param bool resolved: Filter for resolved eventgroups + :param str sort: The field that will be used for sorting. + :param int begin: events that are in progress after this time + :param int end: events that were in progress before this time + :param int event_count: events for which event_count > this :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: EventEventgroupDefinitionsExtended + :param str fixer: Filter for eventgroup fixer + :param bool ignore: Filter for ignored eventgroups + :param int limit: Return no more than this many results at once (see resume). + :param str cause: Filter for cause + :param str dir: The direction of the sort. + :return: EventEventgroupOccurrencesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['category', 'limit', 'resume'] + all_params = ['resolved', 'sort', 'begin', 'end', 'event_count', 'resume', 'fixer', 'ignore', 'limit', 'cause', 'dir'] all_params.append('callback') params = locals() @@ -1121,29 +1103,46 @@ def get_event_eventgroup_definitions(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_eventgroup_definitions" % key + " to method get_event_eventgroup_occurrences" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/event/eventgroup-definitions'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_event_eventgroup_occurrences`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/event/eventgroup-occurrences'.replace('{format}', 'json') path_params = {} query_params = {} - if 'category' in params: - query_params['category'] = params['category'] - if 'limit' in params: - query_params['limit'] = params['limit'] + if 'resolved' in params: + query_params['resolved'] = params['resolved'] + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'end' in params: + query_params['end'] = params['end'] + if 'event_count' in params: + query_params['event_count'] = params['event_count'] if 'resume' in params: query_params['resume'] = params['resume'] + if 'fixer' in params: + query_params['fixer'] = params['fixer'] + if 'ignore' in params: + query_params['ignore'] = params['ignore'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'cause' in params: + query_params['cause'] = params['cause'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1160,22 +1159,22 @@ def get_event_eventgroup_definitions(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventEventgroupDefinitionsExtended', + files=local_var_files, + response_type='EventEventgroupOccurrencesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_event_eventgroup_definition(self, event_eventgroup_definition_id, **kwargs): + def get_event_eventlist(self, event_eventlist_id, **kwargs): """ - Retrieve the eventgroup definition. + Retrieve the list of events for a eventgroup occureence. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1183,17 +1182,17 @@ def get_event_eventgroup_definition(self, event_eventgroup_definition_id, **kwar >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_event_eventgroup_definition(event_eventgroup_definition_id, callback=callback_function) + >>> thread = api.get_event_eventlist(event_eventlist_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str event_eventgroup_definition_id: Retrieve the eventgroup definition. (required) - :return: EventEventgroupDefinitions + :param str event_eventlist_id: Retrieve the list of events for a eventgroup occureence. (required) + :return: EventEventlists If the method is called asynchronously, returns the request thread. """ - all_params = ['event_eventgroup_definition_id'] + all_params = ['event_eventlist_id'] all_params.append('callback') params = locals() @@ -1201,28 +1200,27 @@ def get_event_eventgroup_definition(self, event_eventgroup_definition_id, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_eventgroup_definition" % key + " to method get_event_eventlist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_eventgroup_definition_id' is set - if ('event_eventgroup_definition_id' not in params) or (params['event_eventgroup_definition_id'] is None): - raise ValueError("Missing the required parameter `event_eventgroup_definition_id` when calling `get_event_eventgroup_definition`") + # verify the required parameter 'event_eventlist_id' is set + if ('event_eventlist_id' not in params) or (params['event_eventlist_id'] is None): + raise ValueError("Missing the required parameter `event_eventlist_id` when calling `get_event_eventlist`") - resource_path = '/platform/3/event/eventgroup-definitions/{EventEventgroupDefinitionId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/event/eventlists/{EventEventlistId}'.replace('{format}', 'json') path_params = {} - if 'event_eventgroup_definition_id' in params: - path_params['EventEventgroupDefinitionId'] = params['event_eventgroup_definition_id'] + if 'event_eventlist_id' in params: + path_params['EventEventlistId'] = params['event_eventlist_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1239,22 +1237,22 @@ def get_event_eventgroup_definition(self, event_eventgroup_definition_id, **kwar # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventEventgroupDefinitions', + files=local_var_files, + response_type='EventEventlists', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_event_eventgroup_occurrences(self, **kwargs): + def get_event_eventlists(self, **kwargs): """ - List all eventgroup occurrences. + List all event occurrences grouped by eventgroup occurrence. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1262,27 +1260,19 @@ def get_event_eventgroup_occurrences(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_event_eventgroup_occurrences(callback=callback_function) + >>> thread = api.get_event_eventlists(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param bool resolved: Filter for resolved eventgroups - :param str sort: The field that will be used for sorting. - :param int begin: events that are in progress after this time - :param int end: events that were in progress before this time - :param int event_count: events for which event_count > this - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str fixer: Filter for eventgroup fixer - :param bool ignore: Filter for ignored eventgroups + :param str event_instance: Return only this event occurrence :param int limit: Return no more than this many results at once (see resume). - :param str cause: Filter for cause - :param str dir: The direction of the sort. - :return: EventEventgroupOccurrencesExtended + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: EventEventlistsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['resolved', 'sort', 'begin', 'end', 'event_count', 'resume', 'fixer', 'ignore', 'limit', 'cause', 'dir'] + all_params = ['event_instance', 'limit', 'resume'] all_params.append('callback') params = locals() @@ -1290,45 +1280,30 @@ def get_event_eventgroup_occurrences(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_eventgroup_occurrences" % key + " to method get_event_eventlists" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/event/eventgroup-occurrences'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_event_eventlists`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/event/eventlists'.replace('{format}', 'json') path_params = {} query_params = {} - if 'resolved' in params: - query_params['resolved'] = params['resolved'] - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'end' in params: - query_params['end'] = params['end'] - if 'event_count' in params: - query_params['event_count'] = params['event_count'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'fixer' in params: - query_params['fixer'] = params['fixer'] - if 'ignore' in params: - query_params['ignore'] = params['ignore'] + if 'event_instance' in params: + query_params['event_instance'] = params['event_instance'] if 'limit' in params: query_params['limit'] = params['limit'] - if 'cause' in params: - query_params['cause'] = params['cause'] - if 'dir' in params: - query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1345,22 +1320,22 @@ def get_event_eventgroup_occurrences(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventEventgroupOccurrencesExtended', + files=local_var_files, + response_type='EventEventlistsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_event_eventgroup_occurrences(self, event_eventgroup_occurrences, **kwargs): + def get_event_settings(self, **kwargs): """ - Modify all eventgroup occurrences, resolve or ignore all + Retrieve the settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1368,17 +1343,16 @@ def update_event_eventgroup_occurrences(self, event_eventgroup_occurrences, **kw >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_event_eventgroup_occurrences(event_eventgroup_occurrences, callback=callback_function) + >>> thread = api.get_event_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EventEventgroupOccurrence event_eventgroup_occurrences: (required) - :return: None + :return: EventSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['event_eventgroup_occurrences'] + all_params = [] all_params.append('callback') params = locals() @@ -1386,30 +1360,24 @@ def update_event_eventgroup_occurrences(self, event_eventgroup_occurrences, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_event_eventgroup_occurrences" % key + " to method get_event_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_eventgroup_occurrences' is set - if ('event_eventgroup_occurrences' not in params) or (params['event_eventgroup_occurrences'] is None): - raise ValueError("Missing the required parameter `event_eventgroup_occurrences` when calling `update_event_eventgroup_occurrences`") - resource_path = '/platform/3/event/eventgroup-occurrences'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/event/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'event_eventgroup_occurrences' in params: - body_params = params['event_eventgroup_occurrences'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1424,22 +1392,22 @@ def update_event_eventgroup_occurrences(self, event_eventgroup_occurrences, **kw # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='EventSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_event_eventgroup_occurrence(self, event_eventgroup_occurrence_id, **kwargs): + def list_event_alert_conditions(self, **kwargs): """ - Retrieve individual eventgroup occurrence. + List all alert conditions. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1447,17 +1415,21 @@ def get_event_eventgroup_occurrence(self, event_eventgroup_occurrence_id, **kwar >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_event_eventgroup_occurrence(event_eventgroup_occurrence_id, callback=callback_function) + >>> thread = api.list_event_alert_conditions(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str event_eventgroup_occurrence_id: Retrieve individual eventgroup occurrence. (required) - :return: EventEventgroupOccurrences + :param str sort: The field that will be used for sorting. + :param str channel_ids: Return only conditions for the specified channel: + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: EventAlertConditionsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['event_eventgroup_occurrence_id'] + all_params = ['sort', 'channel_ids', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -1465,28 +1437,34 @@ def get_event_eventgroup_occurrence(self, event_eventgroup_occurrence_id, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_eventgroup_occurrence" % key + " to method list_event_alert_conditions" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_eventgroup_occurrence_id' is set - if ('event_eventgroup_occurrence_id' not in params) or (params['event_eventgroup_occurrence_id'] is None): - raise ValueError("Missing the required parameter `event_eventgroup_occurrence_id` when calling `get_event_eventgroup_occurrence`") - resource_path = '/platform/3/event/eventgroup-occurrences/{EventEventgroupOccurrenceId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_event_alert_conditions`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/event/alert-conditions'.replace('{format}', 'json') path_params = {} - if 'event_eventgroup_occurrence_id' in params: - path_params['EventEventgroupOccurrenceId'] = params['event_eventgroup_occurrence_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'channel_ids' in params: + query_params['channel_ids'] = params['channel_ids'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1503,22 +1481,22 @@ def get_event_eventgroup_occurrence(self, event_eventgroup_occurrence_id, **kwar # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventEventgroupOccurrences', + files=local_var_files, + response_type='EventAlertConditionsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_event_eventgroup_occurrence(self, event_eventgroup_occurrence, event_eventgroup_occurrence_id, **kwargs): + def list_event_channels(self, **kwargs): """ - modify eventgroup occurrence. + List all channels. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1526,18 +1504,18 @@ def update_event_eventgroup_occurrence(self, event_eventgroup_occurrence, event_ >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_event_eventgroup_occurrence(event_eventgroup_occurrence, event_eventgroup_occurrence_id, callback=callback_function) + >>> thread = api.list_event_channels(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EventEventgroupOccurrence event_eventgroup_occurrence: (required) - :param str event_eventgroup_occurrence_id: modify eventgroup occurrence. (required) - :return: None + :param int limit: Return no more than this many results at once (see resume). + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: EventChannelsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['event_eventgroup_occurrence', 'event_eventgroup_occurrence_id'] + all_params = ['limit', 'resume'] all_params.append('callback') params = locals() @@ -1545,35 +1523,30 @@ def update_event_eventgroup_occurrence(self, event_eventgroup_occurrence, event_ if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_event_eventgroup_occurrence" % key + " to method list_event_channels" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_eventgroup_occurrence' is set - if ('event_eventgroup_occurrence' not in params) or (params['event_eventgroup_occurrence'] is None): - raise ValueError("Missing the required parameter `event_eventgroup_occurrence` when calling `update_event_eventgroup_occurrence`") - # verify the required parameter 'event_eventgroup_occurrence_id' is set - if ('event_eventgroup_occurrence_id' not in params) or (params['event_eventgroup_occurrence_id'] is None): - raise ValueError("Missing the required parameter `event_eventgroup_occurrence_id` when calling `update_event_eventgroup_occurrence`") - resource_path = '/platform/3/event/eventgroup-occurrences/{EventEventgroupOccurrenceId}'.replace('{format}', 'json') - method = 'PUT' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_event_channels`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/event/channels'.replace('{format}', 'json') path_params = {} - if 'event_eventgroup_occurrence_id' in params: - path_params['EventEventgroupOccurrenceId'] = params['event_eventgroup_occurrence_id'] query_params = {} + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'event_eventgroup_occurrence' in params: - body_params = params['event_eventgroup_occurrence'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1588,22 +1561,22 @@ def update_event_eventgroup_occurrence(self, event_eventgroup_occurrence, event_ # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='EventChannelsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_event_eventlists(self, **kwargs): + def update_event_alert_condition(self, event_alert_condition, event_alert_condition_id, **kwargs): """ - List all event occurrences grouped by eventgroup occurrence. + Modify the alert-condition This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1611,19 +1584,18 @@ def get_event_eventlists(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_event_eventlists(callback=callback_function) + >>> thread = api.update_event_alert_condition(event_alert_condition, event_alert_condition_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str event_instance: Return only this event occurrence - :param int limit: Return no more than this many results at once (see resume). - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: EventEventlistsExtended + :param EventAlertCondition event_alert_condition: (required) + :param str event_alert_condition_id: Modify the alert-condition (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['event_instance', 'limit', 'resume'] + all_params = ['event_alert_condition', 'event_alert_condition_id'] all_params.append('callback') params = locals() @@ -1631,31 +1603,34 @@ def get_event_eventlists(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_eventlists" % key + " to method update_event_alert_condition" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'event_alert_condition' is set + if ('event_alert_condition' not in params) or (params['event_alert_condition'] is None): + raise ValueError("Missing the required parameter `event_alert_condition` when calling `update_event_alert_condition`") + # verify the required parameter 'event_alert_condition_id' is set + if ('event_alert_condition_id' not in params) or (params['event_alert_condition_id'] is None): + raise ValueError("Missing the required parameter `event_alert_condition_id` when calling `update_event_alert_condition`") - resource_path = '/platform/3/event/eventlists'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/event/alert-conditions/{EventAlertConditionId}'.replace('{format}', 'json') path_params = {} + if 'event_alert_condition_id' in params: + path_params['EventAlertConditionId'] = params['event_alert_condition_id'] query_params = {} - if 'event_instance' in params: - query_params['event_instance'] = params['event_instance'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'event_alert_condition' in params: + body_params = params['event_alert_condition'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1670,22 +1645,22 @@ def get_event_eventlists(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventEventlistsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_event_eventlist(self, event_eventlist_id, **kwargs): + def update_event_channel(self, event_channel, event_channel_id, **kwargs): """ - Retrieve the list of events for a eventgroup occureence. + Modify the alert-condition This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1693,17 +1668,18 @@ def get_event_eventlist(self, event_eventlist_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_event_eventlist(event_eventlist_id, callback=callback_function) + >>> thread = api.update_event_channel(event_channel, event_channel_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str event_eventlist_id: Retrieve the list of events for a eventgroup occureence. (required) - :return: EventEventlists + :param EventChannel event_channel: (required) + :param str event_channel_id: Modify the alert-condition (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['event_eventlist_id'] + all_params = ['event_channel', 'event_channel_id'] all_params.append('callback') params = locals() @@ -1711,30 +1687,34 @@ def get_event_eventlist(self, event_eventlist_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_eventlist" % key + " to method update_event_channel" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_eventlist_id' is set - if ('event_eventlist_id' not in params) or (params['event_eventlist_id'] is None): - raise ValueError("Missing the required parameter `event_eventlist_id` when calling `get_event_eventlist`") + # verify the required parameter 'event_channel' is set + if ('event_channel' not in params) or (params['event_channel'] is None): + raise ValueError("Missing the required parameter `event_channel` when calling `update_event_channel`") + # verify the required parameter 'event_channel_id' is set + if ('event_channel_id' not in params) or (params['event_channel_id'] is None): + raise ValueError("Missing the required parameter `event_channel_id` when calling `update_event_channel`") - resource_path = '/platform/3/event/eventlists/{EventEventlistId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/event/channels/{EventChannelId}'.replace('{format}', 'json') path_params = {} - if 'event_eventlist_id' in params: - path_params['EventEventlistId'] = params['event_eventlist_id'] + if 'event_channel_id' in params: + path_params['EventChannelId'] = params['event_channel_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'event_channel' in params: + body_params = params['event_channel'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1749,22 +1729,22 @@ def get_event_eventlist(self, event_eventlist_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventEventlists', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_event_event(self, event_event, **kwargs): + def update_event_eventgroup_occurrence(self, event_eventgroup_occurrence, event_eventgroup_occurrence_id, **kwargs): """ - Create a test event. + modify eventgroup occurrence. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1772,17 +1752,18 @@ def create_event_event(self, event_event, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_event_event(event_event, callback=callback_function) + >>> thread = api.update_event_eventgroup_occurrence(event_eventgroup_occurrence, event_eventgroup_occurrence_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EventEvent event_event: (required) - :return: CreateResponse + :param EventEventgroupOccurrence event_eventgroup_occurrence: (required) + :param str event_eventgroup_occurrence_id: modify eventgroup occurrence. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['event_event'] + all_params = ['event_eventgroup_occurrence', 'event_eventgroup_occurrence_id'] all_params.append('callback') params = locals() @@ -1790,30 +1771,34 @@ def create_event_event(self, event_event, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_event_event" % key + " to method update_event_eventgroup_occurrence" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'event_event' is set - if ('event_event' not in params) or (params['event_event'] is None): - raise ValueError("Missing the required parameter `event_event` when calling `create_event_event`") + # verify the required parameter 'event_eventgroup_occurrence' is set + if ('event_eventgroup_occurrence' not in params) or (params['event_eventgroup_occurrence'] is None): + raise ValueError("Missing the required parameter `event_eventgroup_occurrence` when calling `update_event_eventgroup_occurrence`") + # verify the required parameter 'event_eventgroup_occurrence_id' is set + if ('event_eventgroup_occurrence_id' not in params) or (params['event_eventgroup_occurrence_id'] is None): + raise ValueError("Missing the required parameter `event_eventgroup_occurrence_id` when calling `update_event_eventgroup_occurrence`") - resource_path = '/platform/3/event/events'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/event/eventgroup-occurrences/{EventEventgroupOccurrenceId}'.replace('{format}', 'json') path_params = {} + if 'event_eventgroup_occurrence_id' in params: + path_params['EventEventgroupOccurrenceId'] = params['event_eventgroup_occurrence_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'event_event' in params: - body_params = params['event_event'] + if 'event_eventgroup_occurrence' in params: + body_params = params['event_eventgroup_occurrence'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1828,22 +1813,22 @@ def create_event_event(self, event_event, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_event_settings(self, **kwargs): + def update_event_eventgroup_occurrences(self, event_eventgroup_occurrences, **kwargs): """ - Retrieve the settings. + Modify all eventgroup occurrences, resolve or ignore all This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1851,16 +1836,17 @@ def get_event_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_event_settings(callback=callback_function) + >>> thread = api.update_event_eventgroup_occurrences(event_eventgroup_occurrences, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: EventSettings + :param EventEventgroupOccurrence event_eventgroup_occurrences: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['event_eventgroup_occurrences'] all_params.append('callback') params = locals() @@ -1868,25 +1854,29 @@ def get_event_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_event_settings" % key + " to method update_event_eventgroup_occurrences" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'event_eventgroup_occurrences' is set + if ('event_eventgroup_occurrences' not in params) or (params['event_eventgroup_occurrences'] is None): + raise ValueError("Missing the required parameter `event_eventgroup_occurrences` when calling `update_event_eventgroup_occurrences`") - resource_path = '/platform/3/event/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/event/eventgroup-occurrences'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'event_eventgroup_occurrences' in params: + body_params = params['event_eventgroup_occurrences'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1901,14 +1891,14 @@ def get_event_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='EventSettings', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1951,17 +1941,16 @@ def update_event_settings(self, event_settings, **kwargs): if ('event_settings' not in params) or (params['event_settings'] is None): raise ValueError("Missing the required parameter `event_settings` when calling `update_event_settings`") - resource_path = '/platform/3/event/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/event/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'event_settings' in params: @@ -1980,13 +1969,13 @@ def update_event_settings(self, event_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/file_filter_api.py b/isi_sdk/apis/file_filter_api.py index e6657e2df..6b30bfd66 100644 --- a/isi_sdk/apis/file_filter_api.py +++ b/isi_sdk/apis/file_filter_api.py @@ -2,7 +2,7 @@ """ FileFilterApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -79,17 +80,16 @@ def get_file_filter_settings(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/file-filter/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/file-filter/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -106,13 +106,13 @@ def get_file_filter_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='FileFilterSettings', auth_settings=auth_settings, callback=params.get('callback')) @@ -156,17 +156,16 @@ def update_file_filter_settings(self, file_filter_settings, **kwargs): if ('file_filter_settings' not in params) or (params['file_filter_settings'] is None): raise ValueError("Missing the required parameter `file_filter_settings` when calling `update_file_filter_settings`") - resource_path = '/platform/3/file-filter/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/file-filter/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'file_filter_settings' in params: @@ -185,13 +184,13 @@ def update_file_filter_settings(self, file_filter_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/filepool_api.py b/isi_sdk/apis/filepool_api.py index ccb794529..70ca6ab34 100644 --- a/isi_sdk/apis/filepool_api.py +++ b/isi_sdk/apis/filepool_api.py @@ -2,7 +2,7 @@ """ FilepoolApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_filepool_default_policy(self, **kwargs): + def create_filepool_policy(self, filepool_policy, **kwargs): """ - List default file pool policy. + Create a new policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def get_filepool_default_policy(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_filepool_default_policy(callback=callback_function) + >>> thread = api.create_filepool_policy(filepool_policy, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: FilepoolDefaultPolicy + :param FilepoolPolicy filepool_policy: (required) + :return: CreateFilepoolPolicyResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['filepool_policy'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def get_filepool_default_policy(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_filepool_default_policy" % key + " to method create_filepool_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'filepool_policy' is set + if ('filepool_policy' not in params) or (params['filepool_policy'] is None): + raise ValueError("Missing the required parameter `filepool_policy` when calling `create_filepool_policy`") - resource_path = '/platform/1/filepool/default-policy'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/filepool/policies'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'filepool_policy' in params: + body_params = params['filepool_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def get_filepool_default_policy(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='FilepoolDefaultPolicy', + files=local_var_files, + response_type='CreateFilepoolPolicyResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_filepool_default_policy(self, filepool_default_policy, **kwargs): + def delete_filepool_policy(self, filepool_policy_id, **kwargs): """ - Set default file pool policy. + Delete file pool policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,17 @@ def update_filepool_default_policy(self, filepool_default_policy, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_filepool_default_policy(filepool_default_policy, callback=callback_function) + >>> thread = api.delete_filepool_policy(filepool_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param FilepoolDefaultPolicyExtended filepool_default_policy: (required) + :param str filepool_policy_id: Delete file pool policy. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['filepool_default_policy'] + all_params = ['filepool_policy_id'] all_params.append('callback') params = locals() @@ -147,30 +153,29 @@ def update_filepool_default_policy(self, filepool_default_policy, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_filepool_default_policy" % key + " to method delete_filepool_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'filepool_default_policy' is set - if ('filepool_default_policy' not in params) or (params['filepool_default_policy'] is None): - raise ValueError("Missing the required parameter `filepool_default_policy` when calling `update_filepool_default_policy`") + # verify the required parameter 'filepool_policy_id' is set + if ('filepool_policy_id' not in params) or (params['filepool_policy_id'] is None): + raise ValueError("Missing the required parameter `filepool_policy_id` when calling `delete_filepool_policy`") - resource_path = '/platform/1/filepool/default-policy'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/filepool/policies/{FilepoolPolicyId}'.replace('{format}', 'json') path_params = {} + if 'filepool_policy_id' in params: + path_params['FilepoolPolicyId'] = params['filepool_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'filepool_default_policy' in params: - body_params = params['filepool_default_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,22 +190,22 @@ def update_filepool_default_policy(self, filepool_default_policy, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_filepool_policies(self, **kwargs): + def get_filepool_default_policy(self, **kwargs): """ - List all policies. + List default file pool policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -208,11 +213,11 @@ def list_filepool_policies(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_filepool_policies(callback=callback_function) + >>> thread = api.get_filepool_default_policy(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: FilepoolPolicies + :return: FilepoolDefaultPolicy If the method is called asynchronously, returns the request thread. """ @@ -225,23 +230,22 @@ def list_filepool_policies(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_filepool_policies" % key + " to method get_filepool_default_policy" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/filepool/policies'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/filepool/default-policy'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -258,22 +262,22 @@ def list_filepool_policies(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='FilepoolPolicies', + files=local_var_files, + response_type='FilepoolDefaultPolicy', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_filepool_policy(self, filepool_policy, **kwargs): + def get_filepool_policy(self, filepool_policy_id, **kwargs): """ - Create a new policy. + Retrieve file pool policy information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -281,17 +285,17 @@ def create_filepool_policy(self, filepool_policy, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_filepool_policy(filepool_policy, callback=callback_function) + >>> thread = api.get_filepool_policy(filepool_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param FilepoolPolicy filepool_policy: (required) - :return: CreateFilepoolPolicyResponse + :param str filepool_policy_id: Retrieve file pool policy information. (required) + :return: FilepoolPolicies If the method is called asynchronously, returns the request thread. """ - all_params = ['filepool_policy'] + all_params = ['filepool_policy_id'] all_params.append('callback') params = locals() @@ -299,30 +303,29 @@ def create_filepool_policy(self, filepool_policy, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_filepool_policy" % key + " to method get_filepool_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'filepool_policy' is set - if ('filepool_policy' not in params) or (params['filepool_policy'] is None): - raise ValueError("Missing the required parameter `filepool_policy` when calling `create_filepool_policy`") + # verify the required parameter 'filepool_policy_id' is set + if ('filepool_policy_id' not in params) or (params['filepool_policy_id'] is None): + raise ValueError("Missing the required parameter `filepool_policy_id` when calling `get_filepool_policy`") - resource_path = '/platform/1/filepool/policies'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/filepool/policies/{FilepoolPolicyId}'.replace('{format}', 'json') path_params = {} + if 'filepool_policy_id' in params: + path_params['FilepoolPolicyId'] = params['filepool_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'filepool_policy' in params: - body_params = params['filepool_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -337,22 +340,22 @@ def create_filepool_policy(self, filepool_policy, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateFilepoolPolicyResponse', + files=local_var_files, + response_type='FilepoolPolicies', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_filepool_policy(self, filepool_policy_id, **kwargs): + def get_filepool_template(self, filepool_template_id, **kwargs): """ - Retrieve file pool policy information. + List all templates. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -360,17 +363,17 @@ def get_filepool_policy(self, filepool_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_filepool_policy(filepool_policy_id, callback=callback_function) + >>> thread = api.get_filepool_template(filepool_template_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str filepool_policy_id: Retrieve file pool policy information. (required) - :return: FilepoolPolicies + :param str filepool_template_id: List all templates. (required) + :return: FilepoolTemplates If the method is called asynchronously, returns the request thread. """ - all_params = ['filepool_policy_id'] + all_params = ['filepool_template_id'] all_params.append('callback') params = locals() @@ -378,28 +381,27 @@ def get_filepool_policy(self, filepool_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_filepool_policy" % key + " to method get_filepool_template" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'filepool_policy_id' is set - if ('filepool_policy_id' not in params) or (params['filepool_policy_id'] is None): - raise ValueError("Missing the required parameter `filepool_policy_id` when calling `get_filepool_policy`") + # verify the required parameter 'filepool_template_id' is set + if ('filepool_template_id' not in params) or (params['filepool_template_id'] is None): + raise ValueError("Missing the required parameter `filepool_template_id` when calling `get_filepool_template`") - resource_path = '/platform/1/filepool/policies/{FilepoolPolicyId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/filepool/templates/{FilepoolTemplateId}'.replace('{format}', 'json') path_params = {} - if 'filepool_policy_id' in params: - path_params['FilepoolPolicyId'] = params['filepool_policy_id'] + if 'filepool_template_id' in params: + path_params['FilepoolTemplateId'] = params['filepool_template_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -416,22 +418,22 @@ def get_filepool_policy(self, filepool_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='FilepoolPolicies', + files=local_var_files, + response_type='FilepoolTemplates', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_filepool_policy(self, filepool_policy, filepool_policy_id, **kwargs): + def get_filepool_templates(self, **kwargs): """ - Modify file pool policy. All input fields are optional, but one or more must be supplied. + List all templates. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -439,18 +441,16 @@ def update_filepool_policy(self, filepool_policy, filepool_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_filepool_policy(filepool_policy, filepool_policy_id, callback=callback_function) + >>> thread = api.get_filepool_templates(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param FilepoolPolicy filepool_policy: (required) - :param str filepool_policy_id: Modify file pool policy. All input fields are optional, but one or more must be supplied. (required) - :return: None + :return: FilepoolTemplates If the method is called asynchronously, returns the request thread. """ - all_params = ['filepool_policy', 'filepool_policy_id'] + all_params = [] all_params.append('callback') params = locals() @@ -458,35 +458,24 @@ def update_filepool_policy(self, filepool_policy, filepool_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_filepool_policy" % key + " to method get_filepool_templates" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'filepool_policy' is set - if ('filepool_policy' not in params) or (params['filepool_policy'] is None): - raise ValueError("Missing the required parameter `filepool_policy` when calling `update_filepool_policy`") - # verify the required parameter 'filepool_policy_id' is set - if ('filepool_policy_id' not in params) or (params['filepool_policy_id'] is None): - raise ValueError("Missing the required parameter `filepool_policy_id` when calling `update_filepool_policy`") - resource_path = '/platform/1/filepool/policies/{FilepoolPolicyId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/filepool/templates'.replace('{format}', 'json') path_params = {} - if 'filepool_policy_id' in params: - path_params['FilepoolPolicyId'] = params['filepool_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'filepool_policy' in params: - body_params = params['filepool_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -501,22 +490,22 @@ def update_filepool_policy(self, filepool_policy, filepool_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='FilepoolTemplates', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_filepool_policy(self, filepool_policy_id, **kwargs): + def list_filepool_policies(self, **kwargs): """ - Delete file pool policy. + List all policies. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -524,17 +513,16 @@ def delete_filepool_policy(self, filepool_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_filepool_policy(filepool_policy_id, callback=callback_function) + >>> thread = api.list_filepool_policies(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str filepool_policy_id: Delete file pool policy. (required) - :return: None + :return: FilepoolPolicies If the method is called asynchronously, returns the request thread. """ - all_params = ['filepool_policy_id'] + all_params = [] all_params.append('callback') params = locals() @@ -542,28 +530,22 @@ def delete_filepool_policy(self, filepool_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_filepool_policy" % key + " to method list_filepool_policies" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'filepool_policy_id' is set - if ('filepool_policy_id' not in params) or (params['filepool_policy_id'] is None): - raise ValueError("Missing the required parameter `filepool_policy_id` when calling `delete_filepool_policy`") - resource_path = '/platform/1/filepool/policies/{FilepoolPolicyId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/filepool/policies'.replace('{format}', 'json') path_params = {} - if 'filepool_policy_id' in params: - path_params['FilepoolPolicyId'] = params['filepool_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -580,22 +562,22 @@ def delete_filepool_policy(self, filepool_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='FilepoolPolicies', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_filepool_templates(self, **kwargs): + def update_filepool_default_policy(self, filepool_default_policy, **kwargs): """ - List all templates. + Set default file pool policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -603,16 +585,17 @@ def get_filepool_templates(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_filepool_templates(callback=callback_function) + >>> thread = api.update_filepool_default_policy(filepool_default_policy, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: FilepoolTemplates + :param FilepoolDefaultPolicyExtended filepool_default_policy: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['filepool_default_policy'] all_params.append('callback') params = locals() @@ -620,25 +603,29 @@ def get_filepool_templates(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_filepool_templates" % key + " to method update_filepool_default_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'filepool_default_policy' is set + if ('filepool_default_policy' not in params) or (params['filepool_default_policy'] is None): + raise ValueError("Missing the required parameter `filepool_default_policy` when calling `update_filepool_default_policy`") - resource_path = '/platform/1/filepool/templates'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/filepool/default-policy'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'filepool_default_policy' in params: + body_params = params['filepool_default_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -653,22 +640,22 @@ def get_filepool_templates(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='FilepoolTemplates', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_filepool_template(self, filepool_template_id, **kwargs): + def update_filepool_policy(self, filepool_policy, filepool_policy_id, **kwargs): """ - List all templates. + Modify file pool policy. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -676,17 +663,18 @@ def get_filepool_template(self, filepool_template_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_filepool_template(filepool_template_id, callback=callback_function) + >>> thread = api.update_filepool_policy(filepool_policy, filepool_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str filepool_template_id: List all templates. (required) - :return: FilepoolTemplates + :param FilepoolPolicy filepool_policy: (required) + :param str filepool_policy_id: Modify file pool policy. All input fields are optional, but one or more must be supplied. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['filepool_template_id'] + all_params = ['filepool_policy', 'filepool_policy_id'] all_params.append('callback') params = locals() @@ -694,30 +682,34 @@ def get_filepool_template(self, filepool_template_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_filepool_template" % key + " to method update_filepool_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'filepool_template_id' is set - if ('filepool_template_id' not in params) or (params['filepool_template_id'] is None): - raise ValueError("Missing the required parameter `filepool_template_id` when calling `get_filepool_template`") + # verify the required parameter 'filepool_policy' is set + if ('filepool_policy' not in params) or (params['filepool_policy'] is None): + raise ValueError("Missing the required parameter `filepool_policy` when calling `update_filepool_policy`") + # verify the required parameter 'filepool_policy_id' is set + if ('filepool_policy_id' not in params) or (params['filepool_policy_id'] is None): + raise ValueError("Missing the required parameter `filepool_policy_id` when calling `update_filepool_policy`") - resource_path = '/platform/1/filepool/templates/{FilepoolTemplateId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/filepool/policies/{FilepoolPolicyId}'.replace('{format}', 'json') path_params = {} - if 'filepool_template_id' in params: - path_params['FilepoolTemplateId'] = params['filepool_template_id'] + if 'filepool_policy_id' in params: + path_params['FilepoolPolicyId'] = params['filepool_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'filepool_policy' in params: + body_params = params['filepool_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -732,14 +724,14 @@ def get_filepool_template(self, filepool_template_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='FilepoolTemplates', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response diff --git a/isi_sdk/apis/filesystem_api.py b/isi_sdk/apis/filesystem_api.py index efee12e85..c27810066 100644 --- a/isi_sdk/apis/filesystem_api.py +++ b/isi_sdk/apis/filesystem_api.py @@ -2,7 +2,7 @@ """ FilesystemApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -79,17 +80,16 @@ def get_settings_access_time(self, **kwargs): del params['kwargs'] - resource_path = '/platform/1/filesystem/settings/access-time'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/filesystem/settings/access-time'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -106,13 +106,13 @@ def get_settings_access_time(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='SettingsAccessTime', auth_settings=auth_settings, callback=params.get('callback')) @@ -156,17 +156,16 @@ def update_settings_access_time(self, settings_access_time, **kwargs): if ('settings_access_time' not in params) or (params['settings_access_time'] is None): raise ValueError("Missing the required parameter `settings_access_time` when calling `update_settings_access_time`") - resource_path = '/platform/1/filesystem/settings/access-time'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/filesystem/settings/access-time'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'settings_access_time' in params: @@ -185,13 +184,13 @@ def update_settings_access_time(self, settings_access_time, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/fsa_api.py b/isi_sdk/apis/fsa_api.py index feb82f6ee..3caeed366 100644 --- a/isi_sdk/apis/fsa_api.py +++ b/isi_sdk/apis/fsa_api.py @@ -2,7 +2,7 @@ """ FsaApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_fsa_settings(self, **kwargs): + def delete_fsa_result(self, fsa_result_id, **kwargs): """ - List all settings. + Delete the result set. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def get_fsa_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_fsa_settings(callback=callback_function) + >>> thread = api.delete_fsa_result(fsa_result_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: FsaSettings + :param str fsa_result_id: Delete the result set. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['fsa_result_id'] all_params.append('callback') params = locals() @@ -73,23 +75,27 @@ def get_fsa_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_fsa_settings" % key + " to method delete_fsa_result" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'fsa_result_id' is set + if ('fsa_result_id' not in params) or (params['fsa_result_id'] is None): + raise ValueError("Missing the required parameter `fsa_result_id` when calling `delete_fsa_result`") - resource_path = '/platform/1/fsa/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/fsa/results/{FsaResultId}'.replace('{format}', 'json') path_params = {} + if 'fsa_result_id' in params: + path_params['FsaResultId'] = params['fsa_result_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -106,22 +112,22 @@ def get_fsa_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='FsaSettings', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_fsa_settings(self, fsa_settings, **kwargs): + def delete_fsa_settings(self, **kwargs): """ - Modify one or more settings. + Revert all settings to their defaults. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,16 @@ def update_fsa_settings(self, fsa_settings, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_fsa_settings(fsa_settings, callback=callback_function) + >>> thread = api.delete_fsa_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param FsaSettingsSettings fsa_settings: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['fsa_settings'] + all_params = [] all_params.append('callback') params = locals() @@ -147,30 +152,24 @@ def update_fsa_settings(self, fsa_settings, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_fsa_settings" % key + " to method delete_fsa_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'fsa_settings' is set - if ('fsa_settings' not in params) or (params['fsa_settings'] is None): - raise ValueError("Missing the required parameter `fsa_settings` when calling `update_fsa_settings`") - resource_path = '/platform/1/fsa/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/fsa/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'fsa_settings' in params: - body_params = params['fsa_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,22 +184,22 @@ def update_fsa_settings(self, fsa_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_fsa_settings(self, **kwargs): + def get_fsa_result(self, fsa_result_id, **kwargs): """ - Revert all settings to their defaults. + Retrieve result set information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -208,16 +207,17 @@ def delete_fsa_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_fsa_settings(callback=callback_function) + >>> thread = api.get_fsa_result(fsa_result_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str fsa_result_id: Retrieve result set information. (required) + :return: FsaResults If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['fsa_result_id'] all_params.append('callback') params = locals() @@ -225,23 +225,27 @@ def delete_fsa_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_fsa_settings" % key + " to method get_fsa_result" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'fsa_result_id' is set + if ('fsa_result_id' not in params) or (params['fsa_result_id'] is None): + raise ValueError("Missing the required parameter `fsa_result_id` when calling `get_fsa_result`") - resource_path = '/platform/1/fsa/settings'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/fsa/results/{FsaResultId}'.replace('{format}', 'json') path_params = {} + if 'fsa_result_id' in params: + path_params['FsaResultId'] = params['fsa_result_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -258,14 +262,14 @@ def delete_fsa_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='FsaResults', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -304,17 +308,16 @@ def get_fsa_results(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/fsa/results'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/fsa/results'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -331,22 +334,22 @@ def get_fsa_results(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='FsaResultsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_fsa_result(self, fsa_result_id, **kwargs): + def get_fsa_settings(self, **kwargs): """ - Retrieve result set information. + List all settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -354,17 +357,16 @@ def get_fsa_result(self, fsa_result_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_fsa_result(fsa_result_id, callback=callback_function) + >>> thread = api.get_fsa_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str fsa_result_id: Retrieve result set information. (required) - :return: FsaResults + :return: FsaSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['fsa_result_id'] + all_params = [] all_params.append('callback') params = locals() @@ -372,28 +374,22 @@ def get_fsa_result(self, fsa_result_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_fsa_result" % key + " to method get_fsa_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'fsa_result_id' is set - if ('fsa_result_id' not in params) or (params['fsa_result_id'] is None): - raise ValueError("Missing the required parameter `fsa_result_id` when calling `get_fsa_result`") - resource_path = '/platform/3/fsa/results/{FsaResultId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/fsa/settings'.replace('{format}', 'json') path_params = {} - if 'fsa_result_id' in params: - path_params['FsaResultId'] = params['fsa_result_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -410,14 +406,14 @@ def get_fsa_result(self, fsa_result_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='FsaResults', + files=local_var_files, + response_type='FsaSettings', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -464,9 +460,8 @@ def update_fsa_result(self, fsa_result, fsa_result_id, **kwargs): if ('fsa_result_id' not in params) or (params['fsa_result_id'] is None): raise ValueError("Missing the required parameter `fsa_result_id` when calling `update_fsa_result`") - resource_path = '/platform/3/fsa/results/{FsaResultId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/fsa/results/{FsaResultId}'.replace('{format}', 'json') path_params = {} if 'fsa_result_id' in params: path_params['FsaResultId'] = params['fsa_result_id'] @@ -475,8 +470,8 @@ def update_fsa_result(self, fsa_result, fsa_result_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'fsa_result' in params: @@ -495,22 +490,22 @@ def update_fsa_result(self, fsa_result, fsa_result_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_fsa_result(self, fsa_result_id, **kwargs): + def update_fsa_settings(self, fsa_settings, **kwargs): """ - Delete the result set. + Modify one or more settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -518,17 +513,17 @@ def delete_fsa_result(self, fsa_result_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_fsa_result(fsa_result_id, callback=callback_function) + >>> thread = api.update_fsa_settings(fsa_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str fsa_result_id: Delete the result set. (required) + :param FsaSettingsSettings fsa_settings: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['fsa_result_id'] + all_params = ['fsa_settings'] all_params.append('callback') params = locals() @@ -536,30 +531,29 @@ def delete_fsa_result(self, fsa_result_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_fsa_result" % key + " to method update_fsa_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'fsa_result_id' is set - if ('fsa_result_id' not in params) or (params['fsa_result_id'] is None): - raise ValueError("Missing the required parameter `fsa_result_id` when calling `delete_fsa_result`") + # verify the required parameter 'fsa_settings' is set + if ('fsa_settings' not in params) or (params['fsa_settings'] is None): + raise ValueError("Missing the required parameter `fsa_settings` when calling `update_fsa_settings`") - resource_path = '/platform/3/fsa/results/{FsaResultId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/fsa/settings'.replace('{format}', 'json') path_params = {} - if 'fsa_result_id' in params: - path_params['FsaResultId'] = params['fsa_result_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'fsa_settings' in params: + body_params = params['fsa_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -574,569 +568,14 @@ def delete_fsa_result(self, fsa_result_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - - def get_results_id_histogram(self, id, **kwargs): - """ - - This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_results_id_histogram(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :return: ResultsIdHistogram - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_results_id_histogram" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_results_id_histogram`") - - resource_path = '/platform/3/fsa/results/{Id}/histogram'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'id' in params: - path_params['Id'] = params['id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='ResultsIdHistogram', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_results_id_histogram_stat(self, results_id_histogram_stat, id, **kwargs): - """ - - This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_results_id_histogram_stat(results_id_histogram_stat, id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str results_id_histogram_stat: This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. (required) - :param str id: (required) - :param str directory_filter: Filter according to a specific directory, which includes all of its subdirectories. - :param str attribute_filter: Filter according to the name of a file user attribute. - :param str node_pool_filter: Filter according to the name of a node pool, which is a set of disk pools that belong to nodes of the same equivalence class. - :param str disk_pool_filter: Filter according to the name of a disk pool, which is a set of drives that represent an independent failure domain. - :param str tier_filter: Filter according to the name of a storage tier, which is a user-created set of node pools. - :param int comp_report: Result set identifier for comparison of database results. - :param int log_size_filter: Filter according to file logical size, where the filter value specifies the lower bound in bytes to a set of files that have been grouped by logical size. The list of valid log_size filter values may be found by performing a histogram breakout by log_size and viewing the resulting key values. - :param int phys_size_filter: Filter according to file physical size, where the filter value specifies the lower bound in bytes to a set of files that have been grouped by physical size. The list of valid phys_size filter values may be found by performing a histogram breakout by phys_size and viewing the resulting key values. - :param str path_ext_filter: Filter according to the name of a single file extension. - :param int ctime_filter: Filter according to file modified time, where the filter value specifies a negative number of seconds representing a time before the begin time of the report. The list of valid ctime filter values may be found by performing a histogram breakout by ctime and viewing the resulting key values. - :param int atime_filter: Filter according to file accessed time, where the filter value specifies a negative number of seconds representing a time before the begin time of the report. The list of valid atime filter values may be found by performing a histogram breakout by atime and viewing the resulting key values. - :return: ResultsIdHistogram - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['results_id_histogram_stat', 'id', 'directory_filter', 'attribute_filter', 'node_pool_filter', 'disk_pool_filter', 'tier_filter', 'comp_report', 'log_size_filter', 'phys_size_filter', 'path_ext_filter', 'ctime_filter', 'atime_filter'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_results_id_histogram_stat" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'results_id_histogram_stat' is set - if ('results_id_histogram_stat' not in params) or (params['results_id_histogram_stat'] is None): - raise ValueError("Missing the required parameter `results_id_histogram_stat` when calling `get_results_id_histogram_stat`") - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_results_id_histogram_stat`") - - resource_path = '/platform/3/fsa/results/{Id}/histogram/{ResultsIdHistogramStat}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'results_id_histogram_stat' in params: - path_params['ResultsIdHistogramStat'] = params['results_id_histogram_stat'] - if 'id' in params: - path_params['Id'] = params['id'] - - query_params = {} - if 'directory_filter' in params: - query_params['directory_filter'] = params['directory_filter'] - if 'attribute_filter' in params: - query_params['attribute_filter'] = params['attribute_filter'] - if 'node_pool_filter' in params: - query_params['node_pool_filter'] = params['node_pool_filter'] - if 'disk_pool_filter' in params: - query_params['disk_pool_filter'] = params['disk_pool_filter'] - if 'tier_filter' in params: - query_params['tier_filter'] = params['tier_filter'] - if 'comp_report' in params: - query_params['comp_report'] = params['comp_report'] - if 'log_size_filter' in params: - query_params['log_size_filter'] = params['log_size_filter'] - if 'phys_size_filter' in params: - query_params['phys_size_filter'] = params['phys_size_filter'] - if 'path_ext_filter' in params: - query_params['path_ext_filter'] = params['path_ext_filter'] - if 'ctime_filter' in params: - query_params['ctime_filter'] = params['ctime_filter'] - if 'atime_filter' in params: - query_params['atime_filter'] = params['atime_filter'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='ResultsIdHistogram', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_results_id_top_dirs(self, id, **kwargs): - """ - - This resource retrieves the top directories. ID in the resource path is the result set ID. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_results_id_top_dirs(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :return: ResultsIdTopDirs - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_results_id_top_dirs" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_results_id_top_dirs`") - - resource_path = '/platform/3/fsa/results/{Id}/top-dirs'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'id' in params: - path_params['Id'] = params['id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='ResultsIdTopDirs', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_results_id_top_dir(self, results_id_top_dir_id, id, **kwargs): - """ - - This resource retrieves the top directories. ID in the resource path is the result set ID. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_results_id_top_dir(results_id_top_dir_id, id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str results_id_top_dir_id: This resource retrieves the top directories. ID in the resource path is the result set ID. (required) - :param str id: (required) - :param str sort: The field that will be used for sorting. - :param int start: Starting index for results. Default value of 0. - :param int limit: Number of results from start index. Default value of 1000. - :param int comp_report: Result set identifier for comparison of database results. - :param str dir: The direction of the sort. - :return: ResultsIdTopDirs - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['results_id_top_dir_id', 'id', 'sort', 'start', 'limit', 'comp_report', 'dir'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_results_id_top_dir" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'results_id_top_dir_id' is set - if ('results_id_top_dir_id' not in params) or (params['results_id_top_dir_id'] is None): - raise ValueError("Missing the required parameter `results_id_top_dir_id` when calling `get_results_id_top_dir`") - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_results_id_top_dir`") - - resource_path = '/platform/3/fsa/results/{Id}/top-dirs/{ResultsIdTopDirId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'results_id_top_dir_id' in params: - path_params['ResultsIdTopDirId'] = params['results_id_top_dir_id'] - if 'id' in params: - path_params['Id'] = params['id'] - - query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'start' in params: - query_params['start'] = params['start'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'comp_report' in params: - query_params['comp_report'] = params['comp_report'] - if 'dir' in params: - query_params['dir'] = params['dir'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='ResultsIdTopDirs', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_results_id_top_files(self, id, **kwargs): - """ - - This resource retrieves the top files. ID in the resource path is the result set ID. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_results_id_top_files(id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str id: (required) - :return: ResultsIdTopFiles - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_results_id_top_files" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_results_id_top_files`") - - resource_path = '/platform/3/fsa/results/{Id}/top-files'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'id' in params: - path_params['Id'] = params['id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='ResultsIdTopFiles', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_results_id_top_file(self, results_id_top_file_id, id, **kwargs): - """ - - This resource retrieves the top files. ID in the resource path is the result set ID. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_results_id_top_file(results_id_top_file_id, id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str results_id_top_file_id: This resource retrieves the top files. ID in the resource path is the result set ID. (required) - :param str id: (required) - :param str sort: The field that will be used for sorting. - :param int start: Starting index for results. Default value of 0. - :param int limit: Number of results from start index. Default value of 1000. - :param int comp_report: Result set identifier for comparison of database results. - :param str dir: The direction of the sort. - :return: ResultsIdTopFiles - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['results_id_top_file_id', 'id', 'sort', 'start', 'limit', 'comp_report', 'dir'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_results_id_top_file" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'results_id_top_file_id' is set - if ('results_id_top_file_id' not in params) or (params['results_id_top_file_id'] is None): - raise ValueError("Missing the required parameter `results_id_top_file_id` when calling `get_results_id_top_file`") - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_results_id_top_file`") - - resource_path = '/platform/3/fsa/results/{Id}/top-files/{ResultsIdTopFileId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'results_id_top_file_id' in params: - path_params['ResultsIdTopFileId'] = params['results_id_top_file_id'] - if 'id' in params: - path_params['Id'] = params['id'] - - query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'start' in params: - query_params['start'] = params['start'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'comp_report' in params: - query_params['comp_report'] = params['comp_report'] - if 'dir' in params: - query_params['dir'] = params['dir'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='ResultsIdTopFiles', - auth_settings=auth_settings, - callback=params.get('callback')) - return response diff --git a/isi_sdk/apis/fsa_results_api.py b/isi_sdk/apis/fsa_results_api.py new file mode 100644 index 000000000..668c48056 --- /dev/null +++ b/isi_sdk/apis/fsa_results_api.py @@ -0,0 +1,596 @@ +# coding: utf-8 + +""" +FsaResultsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class FsaResultsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_result_histogram(self, id, **kwargs): + """ + + This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_result_histogram(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: ResultHistogram + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_result_histogram" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_result_histogram`") + + + resource_path = '/platform/3/fsa/results/{Id}/histogram'.replace('{format}', 'json') + path_params = {} + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResultHistogram', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_result_histogram_stat(self, result_histogram_stat, id, **kwargs): + """ + + This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_result_histogram_stat(result_histogram_stat, id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str result_histogram_stat: This resource retrieves a histogram of file counts for an individual FSA result set. ID in the resource path is the result set ID. (required) + :param str id: (required) + :param str directory_filter: Filter according to a specific directory, which includes all of its subdirectories. + :param str attribute_filter: Filter according to the name of a file user attribute. + :param str node_pool_filter: Filter according to the name of a node pool, which is a set of disk pools that belong to nodes of the same equivalence class. + :param str disk_pool_filter: Filter according to the name of a disk pool, which is a set of drives that represent an independent failure domain. + :param str tier_filter: Filter according to the name of a storage tier, which is a user-created set of node pools. + :param int comp_report: Result set identifier for comparison of database results. + :param int log_size_filter: Filter according to file logical size, where the filter value specifies the lower bound in bytes to a set of files that have been grouped by logical size. The list of valid log_size filter values may be found by performing a histogram breakout by log_size and viewing the resulting key values. + :param int phys_size_filter: Filter according to file physical size, where the filter value specifies the lower bound in bytes to a set of files that have been grouped by physical size. The list of valid phys_size filter values may be found by performing a histogram breakout by phys_size and viewing the resulting key values. + :param str path_ext_filter: Filter according to the name of a single file extension. + :param int ctime_filter: Filter according to file modified time, where the filter value specifies a negative number of seconds representing a time before the begin time of the report. The list of valid ctime filter values may be found by performing a histogram breakout by ctime and viewing the resulting key values. + :param int atime_filter: Filter according to file accessed time, where the filter value specifies a negative number of seconds representing a time before the begin time of the report. The list of valid atime filter values may be found by performing a histogram breakout by atime and viewing the resulting key values. + :return: ResultHistogram + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['result_histogram_stat', 'id', 'directory_filter', 'attribute_filter', 'node_pool_filter', 'disk_pool_filter', 'tier_filter', 'comp_report', 'log_size_filter', 'phys_size_filter', 'path_ext_filter', 'ctime_filter', 'atime_filter'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_result_histogram_stat" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'result_histogram_stat' is set + if ('result_histogram_stat' not in params) or (params['result_histogram_stat'] is None): + raise ValueError("Missing the required parameter `result_histogram_stat` when calling `get_result_histogram_stat`") + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_result_histogram_stat`") + + + resource_path = '/platform/3/fsa/results/{Id}/histogram/{ResultHistogramStat}'.replace('{format}', 'json') + path_params = {} + if 'result_histogram_stat' in params: + path_params['ResultHistogramStat'] = params['result_histogram_stat'] + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + if 'directory_filter' in params: + query_params['directory_filter'] = params['directory_filter'] + if 'attribute_filter' in params: + query_params['attribute_filter'] = params['attribute_filter'] + if 'node_pool_filter' in params: + query_params['node_pool_filter'] = params['node_pool_filter'] + if 'disk_pool_filter' in params: + query_params['disk_pool_filter'] = params['disk_pool_filter'] + if 'tier_filter' in params: + query_params['tier_filter'] = params['tier_filter'] + if 'comp_report' in params: + query_params['comp_report'] = params['comp_report'] + if 'log_size_filter' in params: + query_params['log_size_filter'] = params['log_size_filter'] + if 'phys_size_filter' in params: + query_params['phys_size_filter'] = params['phys_size_filter'] + if 'path_ext_filter' in params: + query_params['path_ext_filter'] = params['path_ext_filter'] + if 'ctime_filter' in params: + query_params['ctime_filter'] = params['ctime_filter'] + if 'atime_filter' in params: + query_params['atime_filter'] = params['atime_filter'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResultHistogram', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_result_top_dir(self, result_top_dir_id, id, **kwargs): + """ + + This resource retrieves the top directories. ID in the resource path is the result set ID. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_result_top_dir(result_top_dir_id, id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str result_top_dir_id: This resource retrieves the top directories. ID in the resource path is the result set ID. (required) + :param str id: (required) + :param str sort: The field that will be used for sorting. + :param int start: Starting index for results. Default value of 0. + :param int limit: Number of results from start index. Default value of 1000. + :param int comp_report: Result set identifier for comparison of database results. + :param str dir: The direction of the sort. + :return: ResultTopDirs + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['result_top_dir_id', 'id', 'sort', 'start', 'limit', 'comp_report', 'dir'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_result_top_dir" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'result_top_dir_id' is set + if ('result_top_dir_id' not in params) or (params['result_top_dir_id'] is None): + raise ValueError("Missing the required parameter `result_top_dir_id` when calling `get_result_top_dir`") + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_result_top_dir`") + + + resource_path = '/platform/3/fsa/results/{Id}/top-dirs/{ResultTopDirId}'.replace('{format}', 'json') + path_params = {} + if 'result_top_dir_id' in params: + path_params['ResultTopDirId'] = params['result_top_dir_id'] + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'start' in params: + query_params['start'] = params['start'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'comp_report' in params: + query_params['comp_report'] = params['comp_report'] + if 'dir' in params: + query_params['dir'] = params['dir'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResultTopDirs', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_result_top_dirs(self, id, **kwargs): + """ + + This resource retrieves the top directories. ID in the resource path is the result set ID. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_result_top_dirs(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: ResultTopDirs + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_result_top_dirs" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_result_top_dirs`") + + + resource_path = '/platform/3/fsa/results/{Id}/top-dirs'.replace('{format}', 'json') + path_params = {} + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResultTopDirs', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_result_top_file(self, result_top_file_id, id, **kwargs): + """ + + This resource retrieves the top files. ID in the resource path is the result set ID. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_result_top_file(result_top_file_id, id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str result_top_file_id: This resource retrieves the top files. ID in the resource path is the result set ID. (required) + :param str id: (required) + :param str sort: The field that will be used for sorting. + :param int start: Starting index for results. Default value of 0. + :param int limit: Number of results from start index. Default value of 1000. + :param int comp_report: Result set identifier for comparison of database results. + :param str dir: The direction of the sort. + :return: ResultTopFiles + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['result_top_file_id', 'id', 'sort', 'start', 'limit', 'comp_report', 'dir'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_result_top_file" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'result_top_file_id' is set + if ('result_top_file_id' not in params) or (params['result_top_file_id'] is None): + raise ValueError("Missing the required parameter `result_top_file_id` when calling `get_result_top_file`") + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_result_top_file`") + + + resource_path = '/platform/3/fsa/results/{Id}/top-files/{ResultTopFileId}'.replace('{format}', 'json') + path_params = {} + if 'result_top_file_id' in params: + path_params['ResultTopFileId'] = params['result_top_file_id'] + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'start' in params: + query_params['start'] = params['start'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'comp_report' in params: + query_params['comp_report'] = params['comp_report'] + if 'dir' in params: + query_params['dir'] = params['dir'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResultTopFiles', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_result_top_files(self, id, **kwargs): + """ + + This resource retrieves the top files. ID in the resource path is the result set ID. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_result_top_files(id, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str id: (required) + :return: ResultTopFiles + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_result_top_files" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'id' is set + if ('id' not in params) or (params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_result_top_files`") + + + resource_path = '/platform/3/fsa/results/{Id}/top-files'.replace('{format}', 'json') + path_params = {} + if 'id' in params: + path_params['Id'] = params['id'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResultTopFiles', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/hardening_api.py b/isi_sdk/apis/hardening_api.py index 48f1dcae9..cbb9ec330 100644 --- a/isi_sdk/apis/hardening_api.py +++ b/isi_sdk/apis/hardening_api.py @@ -2,7 +2,7 @@ """ HardeningApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -83,17 +84,16 @@ def create_hardening_apply_item(self, hardening_apply_item, **kwargs): if ('hardening_apply_item' not in params) or (params['hardening_apply_item'] is None): raise ValueError("Missing the required parameter `hardening_apply_item` when calling `create_hardening_apply_item`") - resource_path = '/platform/3/hardening/apply'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/hardening/apply'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'hardening_apply_item' in params: @@ -112,13 +112,13 @@ def create_hardening_apply_item(self, hardening_apply_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateHardeningApplyItemResponse', auth_settings=auth_settings, callback=params.get('callback')) @@ -163,9 +163,8 @@ def create_hardening_resolve_item(self, hardening_resolve_item, **kwargs): if ('hardening_resolve_item' not in params) or (params['hardening_resolve_item'] is None): raise ValueError("Missing the required parameter `hardening_resolve_item` when calling `create_hardening_resolve_item`") - resource_path = '/platform/3/hardening/resolve'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/hardening/resolve'.replace('{format}', 'json') path_params = {} query_params = {} @@ -174,8 +173,8 @@ def create_hardening_resolve_item(self, hardening_resolve_item, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'hardening_resolve_item' in params: @@ -194,13 +193,13 @@ def create_hardening_resolve_item(self, hardening_resolve_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateHardeningResolveItemResponse', auth_settings=auth_settings, callback=params.get('callback')) @@ -245,9 +244,8 @@ def create_hardening_revert_item(self, hardening_revert_item, **kwargs): if ('hardening_revert_item' not in params) or (params['hardening_revert_item'] is None): raise ValueError("Missing the required parameter `hardening_revert_item` when calling `create_hardening_revert_item`") - resource_path = '/platform/3/hardening/revert'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/hardening/revert'.replace('{format}', 'json') path_params = {} query_params = {} @@ -256,8 +254,8 @@ def create_hardening_revert_item(self, hardening_revert_item, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'hardening_revert_item' in params: @@ -276,13 +274,13 @@ def create_hardening_revert_item(self, hardening_revert_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateHardeningRevertItemResponse', auth_settings=auth_settings, callback=params.get('callback')) @@ -322,17 +320,16 @@ def get_hardening_state(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/hardening/state'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/hardening/state'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -349,13 +346,13 @@ def get_hardening_state(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='HardeningState', auth_settings=auth_settings, callback=params.get('callback')) @@ -395,17 +392,16 @@ def get_hardening_status(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/hardening/status'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/hardening/status'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -422,13 +418,13 @@ def get_hardening_status(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='HardeningStatus', auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/hardware_api.py b/isi_sdk/apis/hardware_api.py index 4352aec84..1e87c4cad 100644 --- a/isi_sdk/apis/hardware_api.py +++ b/isi_sdk/apis/hardware_api.py @@ -2,7 +2,7 @@ """ HardwareApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_hardware_fcport(self, hardware_fcport_id, **kwargs): + def create_hardware_tape_name(self, hardware_tape_name, **kwargs): """ - Get one fibre-channel port + Tape/Changer devices rescan This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,17 +57,17 @@ def get_hardware_fcport(self, hardware_fcport_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_hardware_fcport(hardware_fcport_id, callback=callback_function) + >>> thread = api.create_hardware_tape_name(hardware_tape_name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int hardware_fcport_id: Get one fibre-channel port (required) - :return: HardwareFcports + :param Empty hardware_tape_name: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['hardware_fcport_id'] + all_params = ['hardware_tape_name'] all_params.append('callback') params = locals() @@ -74,30 +75,29 @@ def get_hardware_fcport(self, hardware_fcport_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_hardware_fcport" % key + " to method create_hardware_tape_name" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hardware_fcport_id' is set - if ('hardware_fcport_id' not in params) or (params['hardware_fcport_id'] is None): - raise ValueError("Missing the required parameter `hardware_fcport_id` when calling `get_hardware_fcport`") + # verify the required parameter 'hardware_tape_name' is set + if ('hardware_tape_name' not in params) or (params['hardware_tape_name'] is None): + raise ValueError("Missing the required parameter `hardware_tape_name` when calling `create_hardware_tape_name`") - resource_path = '/platform/3/hardware/fcports/{HardwareFcportId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/hardware/tape/{HardwareTapeName}'.replace('{format}', 'json') path_params = {} - if 'hardware_fcport_id' in params: - path_params['HardwareFcportId'] = params['hardware_fcport_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'hardware_tape_name' in params: + body_params = params['hardware_tape_name'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -112,22 +112,22 @@ def get_hardware_fcport(self, hardware_fcport_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HardwareFcports', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_hardware_fcport(self, hardware_fcport, hardware_fcport_id, **kwargs): + def delete_hardware_tape_name(self, hardware_tape_name, **kwargs): """ - Change wwnn, wwpn, state, topology, or rate of a FC port + Tape/Changer devices remove This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -135,18 +135,17 @@ def update_hardware_fcport(self, hardware_fcport, hardware_fcport_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_hardware_fcport(hardware_fcport, hardware_fcport_id, callback=callback_function) + >>> thread = api.delete_hardware_tape_name(hardware_tape_name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param HardwareFcport hardware_fcport: (required) - :param int hardware_fcport_id: Change wwnn, wwpn, state, topology, or rate of a FC port (required) + :param str hardware_tape_name: Tape/Changer devices remove (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['hardware_fcport', 'hardware_fcport_id'] + all_params = ['hardware_tape_name'] all_params.append('callback') params = locals() @@ -154,35 +153,29 @@ def update_hardware_fcport(self, hardware_fcport, hardware_fcport_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_hardware_fcport" % key + " to method delete_hardware_tape_name" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hardware_fcport' is set - if ('hardware_fcport' not in params) or (params['hardware_fcport'] is None): - raise ValueError("Missing the required parameter `hardware_fcport` when calling `update_hardware_fcport`") - # verify the required parameter 'hardware_fcport_id' is set - if ('hardware_fcport_id' not in params) or (params['hardware_fcport_id'] is None): - raise ValueError("Missing the required parameter `hardware_fcport_id` when calling `update_hardware_fcport`") + # verify the required parameter 'hardware_tape_name' is set + if ('hardware_tape_name' not in params) or (params['hardware_tape_name'] is None): + raise ValueError("Missing the required parameter `hardware_tape_name` when calling `delete_hardware_tape_name`") - resource_path = '/platform/3/hardware/fcports/{HardwareFcportId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/hardware/tape/{HardwareTapeName}'.replace('{format}', 'json') path_params = {} - if 'hardware_fcport_id' in params: - path_params['HardwareFcportId'] = params['hardware_fcport_id'] + if 'hardware_tape_name' in params: + path_params['HardwareTapeName'] = params['hardware_tape_name'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hardware_fcport' in params: - body_params = params['hardware_fcport'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -197,22 +190,22 @@ def update_hardware_fcport(self, hardware_fcport, hardware_fcport_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_hardware_tape_name(self, hardware_tape_name_params, hardware_tape_name, **kwargs): + def get_hardware_fcport(self, hardware_fcport_id, **kwargs): """ - Tape/Changer device modify + Get one fibre-channel port This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -220,18 +213,17 @@ def update_hardware_tape_name(self, hardware_tape_name_params, hardware_tape_nam >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_hardware_tape_name(hardware_tape_name_params, hardware_tape_name, callback=callback_function) + >>> thread = api.get_hardware_fcport(hardware_fcport_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param HardwareTapeNameParams hardware_tape_name_params: (required) - :param str hardware_tape_name: Tape/Changer device modify (required) - :return: None + :param int hardware_fcport_id: Get one fibre-channel port (required) + :return: HardwareFcports If the method is called asynchronously, returns the request thread. """ - all_params = ['hardware_tape_name_params', 'hardware_tape_name'] + all_params = ['hardware_fcport_id'] all_params.append('callback') params = locals() @@ -239,35 +231,29 @@ def update_hardware_tape_name(self, hardware_tape_name_params, hardware_tape_nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_hardware_tape_name" % key + " to method get_hardware_fcport" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hardware_tape_name_params' is set - if ('hardware_tape_name_params' not in params) or (params['hardware_tape_name_params'] is None): - raise ValueError("Missing the required parameter `hardware_tape_name_params` when calling `update_hardware_tape_name`") - # verify the required parameter 'hardware_tape_name' is set - if ('hardware_tape_name' not in params) or (params['hardware_tape_name'] is None): - raise ValueError("Missing the required parameter `hardware_tape_name` when calling `update_hardware_tape_name`") + # verify the required parameter 'hardware_fcport_id' is set + if ('hardware_fcport_id' not in params) or (params['hardware_fcport_id'] is None): + raise ValueError("Missing the required parameter `hardware_fcport_id` when calling `get_hardware_fcport`") - resource_path = '/platform/3/hardware/tape/{HardwareTapeName}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/hardware/fcports/{HardwareFcportId}'.replace('{format}', 'json') path_params = {} - if 'hardware_tape_name' in params: - path_params['HardwareTapeName'] = params['hardware_tape_name'] + if 'hardware_fcport_id' in params: + path_params['HardwareFcportId'] = params['hardware_fcport_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hardware_tape_name_params' in params: - body_params = params['hardware_tape_name_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -282,22 +268,22 @@ def update_hardware_tape_name(self, hardware_tape_name_params, hardware_tape_nam # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='HardwareFcports', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_hardware_tape_name(self, hardware_tape_name, **kwargs): + def get_hardware_tapes(self, **kwargs): """ - Tape/Changer devices rescan + Get list Tape and Changer devices This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -305,17 +291,16 @@ def create_hardware_tape_name(self, hardware_tape_name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_hardware_tape_name(hardware_tape_name, callback=callback_function) + >>> thread = api.get_hardware_tapes(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty hardware_tape_name: (required) - :return: Empty + :return: HardwareTapes If the method is called asynchronously, returns the request thread. """ - all_params = ['hardware_tape_name'] + all_params = [] all_params.append('callback') params = locals() @@ -323,30 +308,24 @@ def create_hardware_tape_name(self, hardware_tape_name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_hardware_tape_name" % key + " to method get_hardware_tapes" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hardware_tape_name' is set - if ('hardware_tape_name' not in params) or (params['hardware_tape_name'] is None): - raise ValueError("Missing the required parameter `hardware_tape_name` when calling `create_hardware_tape_name`") - resource_path = '/platform/3/hardware/tape/{HardwareTapeName}'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/hardware/tapes'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hardware_tape_name' in params: - body_params = params['hardware_tape_name'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -361,22 +340,22 @@ def create_hardware_tape_name(self, hardware_tape_name, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='HardwareTapes', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_hardware_tape_name(self, hardware_tape_name, **kwargs): + def update_hardware_fcport(self, hardware_fcport, hardware_fcport_id, **kwargs): """ - Tape/Changer devices remove + Change wwnn, wwpn, state, topology, or rate of a FC port This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -384,17 +363,18 @@ def delete_hardware_tape_name(self, hardware_tape_name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_hardware_tape_name(hardware_tape_name, callback=callback_function) + >>> thread = api.update_hardware_fcport(hardware_fcport, hardware_fcport_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str hardware_tape_name: Tape/Changer devices remove (required) + :param HardwareFcport hardware_fcport: (required) + :param int hardware_fcport_id: Change wwnn, wwpn, state, topology, or rate of a FC port (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['hardware_tape_name'] + all_params = ['hardware_fcport', 'hardware_fcport_id'] all_params.append('callback') params = locals() @@ -402,30 +382,34 @@ def delete_hardware_tape_name(self, hardware_tape_name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_hardware_tape_name" % key + " to method update_hardware_fcport" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hardware_tape_name' is set - if ('hardware_tape_name' not in params) or (params['hardware_tape_name'] is None): - raise ValueError("Missing the required parameter `hardware_tape_name` when calling `delete_hardware_tape_name`") + # verify the required parameter 'hardware_fcport' is set + if ('hardware_fcport' not in params) or (params['hardware_fcport'] is None): + raise ValueError("Missing the required parameter `hardware_fcport` when calling `update_hardware_fcport`") + # verify the required parameter 'hardware_fcport_id' is set + if ('hardware_fcport_id' not in params) or (params['hardware_fcport_id'] is None): + raise ValueError("Missing the required parameter `hardware_fcport_id` when calling `update_hardware_fcport`") - resource_path = '/platform/3/hardware/tape/{HardwareTapeName}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/hardware/fcports/{HardwareFcportId}'.replace('{format}', 'json') path_params = {} - if 'hardware_tape_name' in params: - path_params['HardwareTapeName'] = params['hardware_tape_name'] + if 'hardware_fcport_id' in params: + path_params['HardwareFcportId'] = params['hardware_fcport_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'hardware_fcport' in params: + body_params = params['hardware_fcport'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -440,22 +424,22 @@ def delete_hardware_tape_name(self, hardware_tape_name, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_hardware_tapes(self, **kwargs): + def update_hardware_tape_name(self, hardware_tape_name_params, hardware_tape_name, **kwargs): """ - Get list Tape and Changer devices + Tape/Changer device modify This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -463,16 +447,18 @@ def get_hardware_tapes(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_hardware_tapes(callback=callback_function) + >>> thread = api.update_hardware_tape_name(hardware_tape_name_params, hardware_tape_name, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: HardwareTapes + :param HardwareTapeNameParams hardware_tape_name_params: (required) + :param str hardware_tape_name: Tape/Changer device modify (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['hardware_tape_name_params', 'hardware_tape_name'] all_params.append('callback') params = locals() @@ -480,25 +466,34 @@ def get_hardware_tapes(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_hardware_tapes" % key + " to method update_hardware_tape_name" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'hardware_tape_name_params' is set + if ('hardware_tape_name_params' not in params) or (params['hardware_tape_name_params'] is None): + raise ValueError("Missing the required parameter `hardware_tape_name_params` when calling `update_hardware_tape_name`") + # verify the required parameter 'hardware_tape_name' is set + if ('hardware_tape_name' not in params) or (params['hardware_tape_name'] is None): + raise ValueError("Missing the required parameter `hardware_tape_name` when calling `update_hardware_tape_name`") - resource_path = '/platform/3/hardware/tapes'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/hardware/tape/{HardwareTapeName}'.replace('{format}', 'json') path_params = {} + if 'hardware_tape_name' in params: + path_params['HardwareTapeName'] = params['hardware_tape_name'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'hardware_tape_name_params' in params: + body_params = params['hardware_tape_name_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -513,14 +508,14 @@ def get_hardware_tapes(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HardwareTapes', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response diff --git a/isi_sdk/apis/job_api.py b/isi_sdk/apis/job_api.py index 6c7c1938d..5c1ea2fee 100644 --- a/isi_sdk/apis/job_api.py +++ b/isi_sdk/apis/job_api.py @@ -2,7 +2,7 @@ """ JobApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_job_job_summary(self, **kwargs): + def create_job_job(self, job_job, **kwargs): """ - View job engine status. + Queue a new instance of a job type. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def get_job_job_summary(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_job_summary(callback=callback_function) + >>> thread = api.create_job_job(job_job, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: JobJobSummary + :param JobJobCreateParams job_job: (required) + :return: CreateJobJobResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['job_job'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def get_job_job_summary(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_job_summary" % key + " to method create_job_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'job_job' is set + if ('job_job' not in params) or (params['job_job'] is None): + raise ValueError("Missing the required parameter `job_job` when calling `create_job_job`") - resource_path = '/platform/1/job/job-summary'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/job/jobs'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'job_job' in params: + body_params = params['job_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def get_job_job_summary(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobJobSummary', + files=local_var_files, + response_type='CreateJobJobResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_job_policies(self, **kwargs): + def create_job_policy(self, job_policy, **kwargs): """ - List job impact policies. + Create a new job impact policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,20 +135,17 @@ def list_job_policies(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_job_policies(callback=callback_function) + >>> thread = api.create_job_policy(job_policy, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: JobPoliciesExtended + :param JobPolicyCreateParams job_policy: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = ['job_policy'] all_params.append('callback') params = locals() @@ -150,33 +153,29 @@ def list_job_policies(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_job_policies" % key + " to method create_job_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'job_policy' is set + if ('job_policy' not in params) or (params['job_policy'] is None): + raise ValueError("Missing the required parameter `job_policy` when calling `create_job_policy`") + resource_path = '/platform/1/job/policies'.replace('{format}', 'json') - method = 'GET' - path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'job_policy' in params: + body_params = params['job_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -191,22 +190,22 @@ def list_job_policies(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobPoliciesExtended', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_job_policy(self, job_policy, **kwargs): + def delete_job_policy(self, job_policy_id, **kwargs): """ - Create a new job impact policy. + Delete a job impact policy. System policies may not be deleted. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -214,17 +213,17 @@ def create_job_policy(self, job_policy, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_job_policy(job_policy, callback=callback_function) + >>> thread = api.delete_job_policy(job_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param JobPolicyCreateParams job_policy: (required) - :return: CreateResponse + :param str job_policy_id: Delete a job impact policy. System policies may not be deleted. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['job_policy'] + all_params = ['job_policy_id'] all_params.append('callback') params = locals() @@ -232,30 +231,29 @@ def create_job_policy(self, job_policy, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_job_policy" % key + " to method delete_job_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'job_policy' is set - if ('job_policy' not in params) or (params['job_policy'] is None): - raise ValueError("Missing the required parameter `job_policy` when calling `create_job_policy`") + # verify the required parameter 'job_policy_id' is set + if ('job_policy_id' not in params) or (params['job_policy_id'] is None): + raise ValueError("Missing the required parameter `job_policy_id` when calling `delete_job_policy`") - resource_path = '/platform/1/job/policies'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/job/policies/{JobPolicyId}'.replace('{format}', 'json') path_params = {} + if 'job_policy_id' in params: + path_params['JobPolicyId'] = params['job_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'job_policy' in params: - body_params = params['job_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -270,22 +268,22 @@ def create_job_policy(self, job_policy, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_job_policy(self, job_policy_id, **kwargs): + def get_job_events(self, **kwargs): """ - View a single job impact policy. + List job events. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -293,17 +291,25 @@ def get_job_policy(self, job_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_policy(job_policy_id, callback=callback_function) + >>> thread = api.get_job_events(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str job_policy_id: View a single job impact policy. (required) - :return: JobPolicies + :param int begin: Restrict the query to events at or after the given time, in seconds since the Epoch. + :param int end: Restrict the query to events before the given time, in seconds since the Epoch. + :param int job_id: Restrict the query to the given job ID. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param str job_type: Restrict the query to the given job type. + :param int timeout_ms: Query timeout in milliseconds. The default is 10000 ms. + :param str state: Restrict the query to events containing the given state. + :param int limit: Return no more than this many results at once (see resume). + :param str key: Restrict the query to the given key name. + :return: JobEvents If the method is called asynchronously, returns the request thread. """ - all_params = ['job_policy_id'] + all_params = ['begin', 'end', 'job_id', 'resume', 'job_type', 'timeout_ms', 'state', 'limit', 'key'] all_params.append('callback') params = locals() @@ -311,28 +317,42 @@ def get_job_policy(self, job_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_policy" % key + " to method get_job_events" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'job_policy_id' is set - if ('job_policy_id' not in params) or (params['job_policy_id'] is None): - raise ValueError("Missing the required parameter `job_policy_id` when calling `get_job_policy`") - resource_path = '/platform/1/job/policies/{JobPolicyId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_job_events`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/job/events'.replace('{format}', 'json') path_params = {} - if 'job_policy_id' in params: - path_params['JobPolicyId'] = params['job_policy_id'] query_params = {} + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'end' in params: + query_params['end'] = params['end'] + if 'job_id' in params: + query_params['job_id'] = params['job_id'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'job_type' in params: + query_params['job_type'] = params['job_type'] + if 'timeout_ms' in params: + query_params['timeout_ms'] = params['timeout_ms'] + if 'state' in params: + query_params['state'] = params['state'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'key' in params: + query_params['key'] = params['key'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -349,22 +369,22 @@ def get_job_policy(self, job_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobPolicies', + files=local_var_files, + response_type='JobEvents', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_job_policy(self, job_policy, job_policy_id, **kwargs): + def get_job_job(self, job_job_id, **kwargs): """ - Modify a job impact policy. + View a single job instance. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -372,18 +392,17 @@ def update_job_policy(self, job_policy, job_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_job_policy(job_policy, job_policy_id, callback=callback_function) + >>> thread = api.get_job_job(job_job_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param JobPolicy job_policy: (required) - :param str job_policy_id: Modify a job impact policy. (required) - :return: None + :param str job_job_id: View a single job instance. (required) + :return: JobJobs If the method is called asynchronously, returns the request thread. """ - all_params = ['job_policy', 'job_policy_id'] + all_params = ['job_job_id'] all_params.append('callback') params = locals() @@ -391,35 +410,29 @@ def update_job_policy(self, job_policy, job_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_job_policy" % key + " to method get_job_job" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'job_policy' is set - if ('job_policy' not in params) or (params['job_policy'] is None): - raise ValueError("Missing the required parameter `job_policy` when calling `update_job_policy`") - # verify the required parameter 'job_policy_id' is set - if ('job_policy_id' not in params) or (params['job_policy_id'] is None): - raise ValueError("Missing the required parameter `job_policy_id` when calling `update_job_policy`") + # verify the required parameter 'job_job_id' is set + if ('job_job_id' not in params) or (params['job_job_id'] is None): + raise ValueError("Missing the required parameter `job_job_id` when calling `get_job_job`") - resource_path = '/platform/1/job/policies/{JobPolicyId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/job/jobs/{JobJobId}'.replace('{format}', 'json') path_params = {} - if 'job_policy_id' in params: - path_params['JobPolicyId'] = params['job_policy_id'] + if 'job_job_id' in params: + path_params['JobJobId'] = params['job_job_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'job_policy' in params: - body_params = params['job_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -434,22 +447,22 @@ def update_job_policy(self, job_policy, job_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='JobJobs', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_job_policy(self, job_policy_id, **kwargs): + def get_job_job_summary(self, **kwargs): """ - Delete a job impact policy. System policies may not be deleted. + View job engine status. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -457,17 +470,16 @@ def delete_job_policy(self, job_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_job_policy(job_policy_id, callback=callback_function) + >>> thread = api.get_job_job_summary(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str job_policy_id: Delete a job impact policy. System policies may not be deleted. (required) - :return: None + :return: JobJobSummary If the method is called asynchronously, returns the request thread. """ - all_params = ['job_policy_id'] + all_params = [] all_params.append('callback') params = locals() @@ -475,28 +487,22 @@ def delete_job_policy(self, job_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_job_policy" % key + " to method get_job_job_summary" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'job_policy_id' is set - if ('job_policy_id' not in params) or (params['job_policy_id'] is None): - raise ValueError("Missing the required parameter `job_policy_id` when calling `delete_job_policy`") - resource_path = '/platform/1/job/policies/{JobPolicyId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/job/job-summary'.replace('{format}', 'json') path_params = {} - if 'job_policy_id' in params: - path_params['JobPolicyId'] = params['job_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -513,22 +519,22 @@ def delete_job_policy(self, job_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='JobJobSummary', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_job_statistics(self, **kwargs): + def get_job_policy(self, job_policy_id, **kwargs): """ - View job engine statistics. + View a single job impact policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -536,16 +542,17 @@ def get_job_statistics(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_statistics(callback=callback_function) + >>> thread = api.get_job_policy(job_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: JobStatistics + :param str job_policy_id: View a single job impact policy. (required) + :return: JobPolicies If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['job_policy_id'] all_params.append('callback') params = locals() @@ -553,23 +560,27 @@ def get_job_statistics(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_statistics" % key + " to method get_job_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'job_policy_id' is set + if ('job_policy_id' not in params) or (params['job_policy_id'] is None): + raise ValueError("Missing the required parameter `job_policy_id` when calling `get_job_policy`") - resource_path = '/platform/1/job/statistics'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/job/policies/{JobPolicyId}'.replace('{format}', 'json') path_params = {} + if 'job_policy_id' in params: + path_params['JobPolicyId'] = params['job_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -586,22 +597,22 @@ def get_job_statistics(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobStatistics', + files=local_var_files, + response_type='JobPolicies', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_job_types(self, **kwargs): + def get_job_recent(self, **kwargs): """ - List job types. + List recently completed jobs. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -609,19 +620,18 @@ def get_job_types(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_types(callback=callback_function) + >>> thread = api.get_job_recent(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param bool show_all: Whether to show all job types, including hidden ones. Defaults to false. - :param str dir: The direction of the sort. - :return: JobTypesExtended + :param int timeout_ms: Query timeout in milliseconds. The default is 10000 ms. + :param int limit: Max number of recent jobs to return. The default is 8, the max is 100. + :return: JobRecent If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'show_all', 'dir'] + all_params = ['timeout_ms', 'limit'] all_params.append('callback') params = locals() @@ -629,29 +639,26 @@ def get_job_types(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_types" % key + " to method get_job_recent" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/job/types'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/job/recent'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'show_all' in params: - query_params['show_all'] = params['show_all'] - if 'dir' in params: - query_params['dir'] = params['dir'] + if 'timeout_ms' in params: + query_params['timeout_ms'] = params['timeout_ms'] + if 'limit' in params: + query_params['limit'] = params['limit'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -668,22 +675,22 @@ def get_job_types(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobTypesExtended', + files=local_var_files, + response_type='JobRecent', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_job_type(self, job_type_id, **kwargs): + def get_job_reports(self, **kwargs): """ - Retrieve job type information. + List job reports. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -691,46 +698,62 @@ def get_job_type(self, job_type_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_type(job_type_id, callback=callback_function) + >>> thread = api.get_job_reports(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str job_type_id: Retrieve job type information. (required) - :return: JobTypes - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['job_type_id'] - all_params.append('callback') + :param int begin: Restrict the query to reports at or after the given time, in seconds since the Epoch. + :param int end: Restrict the query to reports before the given time, in seconds since the Epoch. + :param int job_id: Restrict the query to the given job ID. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param str job_type: Restrict the query to the given job type. + :param int timeout_ms: Query timeout in milliseconds. The default is 10000 ms. + :param int limit: Return no more than this many results at once (see resume). + :return: JobReports + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['begin', 'end', 'job_id', 'resume', 'job_type', 'timeout_ms', 'limit'] + all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_type" % key + " to method get_job_reports" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'job_type_id' is set - if ('job_type_id' not in params) or (params['job_type_id'] is None): - raise ValueError("Missing the required parameter `job_type_id` when calling `get_job_type`") - resource_path = '/platform/1/job/types/{JobTypeId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_job_reports`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/job/reports'.replace('{format}', 'json') path_params = {} - if 'job_type_id' in params: - path_params['JobTypeId'] = params['job_type_id'] query_params = {} + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'end' in params: + query_params['end'] = params['end'] + if 'job_id' in params: + query_params['job_id'] = params['job_id'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'job_type' in params: + query_params['job_type'] = params['job_type'] + if 'timeout_ms' in params: + query_params['timeout_ms'] = params['timeout_ms'] + if 'limit' in params: + query_params['limit'] = params['limit'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -747,22 +770,22 @@ def get_job_type(self, job_type_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobTypes', + files=local_var_files, + response_type='JobReports', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_job_type(self, job_type, job_type_id, **kwargs): + def get_job_statistics(self, **kwargs): """ - Modify the job type. All input fields are optional, but one or more must be supplied. + View job engine statistics. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -770,18 +793,16 @@ def update_job_type(self, job_type, job_type_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_job_type(job_type, job_type_id, callback=callback_function) + >>> thread = api.get_job_statistics(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param JobType job_type: (required) - :param str job_type_id: Modify the job type. All input fields are optional, but one or more must be supplied. (required) - :return: None + :return: JobStatistics If the method is called asynchronously, returns the request thread. """ - all_params = ['job_type', 'job_type_id'] + all_params = [] all_params.append('callback') params = locals() @@ -789,35 +810,24 @@ def update_job_type(self, job_type, job_type_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_job_type" % key + " to method get_job_statistics" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'job_type' is set - if ('job_type' not in params) or (params['job_type'] is None): - raise ValueError("Missing the required parameter `job_type` when calling `update_job_type`") - # verify the required parameter 'job_type_id' is set - if ('job_type_id' not in params) or (params['job_type_id'] is None): - raise ValueError("Missing the required parameter `job_type_id` when calling `update_job_type`") - resource_path = '/platform/1/job/types/{JobTypeId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/job/statistics'.replace('{format}', 'json') path_params = {} - if 'job_type_id' in params: - path_params['JobTypeId'] = params['job_type_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'job_type' in params: - body_params = params['job_type'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -832,22 +842,22 @@ def update_job_type(self, job_type, job_type_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='JobStatistics', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_job_events(self, **kwargs): + def get_job_type(self, job_type_id, **kwargs): """ - List job events. + Retrieve job type information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -855,25 +865,17 @@ def get_job_events(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_events(callback=callback_function) + >>> thread = api.get_job_type(job_type_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int begin: Restrict the query to events at or after the given time, in seconds since the Epoch. - :param int end: Restrict the query to events before the given time, in seconds since the Epoch. - :param int job_id: Restrict the query to the given job ID. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str job_type: Restrict the query to the given job type. - :param int timeout_ms: Query timeout in milliseconds. The default is 10000 ms. - :param str state: Restrict the query to events containing the given state. - :param int limit: Return no more than this many results at once (see resume). - :param str key: Restrict the query to the given key name. - :return: JobEvents + :param str job_type_id: Retrieve job type information. (required) + :return: JobTypes If the method is called asynchronously, returns the request thread. """ - all_params = ['begin', 'end', 'job_id', 'resume', 'job_type', 'timeout_ms', 'state', 'limit', 'key'] + all_params = ['job_type_id'] all_params.append('callback') params = locals() @@ -881,41 +883,27 @@ def get_job_events(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_events" % key + " to method get_job_type" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'job_type_id' is set + if ('job_type_id' not in params) or (params['job_type_id'] is None): + raise ValueError("Missing the required parameter `job_type_id` when calling `get_job_type`") - resource_path = '/platform/3/job/events'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/job/types/{JobTypeId}'.replace('{format}', 'json') path_params = {} + if 'job_type_id' in params: + path_params['JobTypeId'] = params['job_type_id'] query_params = {} - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'end' in params: - query_params['end'] = params['end'] - if 'job_id' in params: - query_params['job_id'] = params['job_id'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'job_type' in params: - query_params['job_type'] = params['job_type'] - if 'timeout_ms' in params: - query_params['timeout_ms'] = params['timeout_ms'] - if 'state' in params: - query_params['state'] = params['state'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'key' in params: - query_params['key'] = params['key'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -932,22 +920,22 @@ def get_job_events(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobEvents', + files=local_var_files, + response_type='JobTypes', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_job_jobs(self, **kwargs): + def get_job_types(self, **kwargs): """ - List running and paused jobs. + List job types. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -955,22 +943,19 @@ def list_job_jobs(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_job_jobs(callback=callback_function) + >>> thread = api.get_job_types(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param bool batch: If true, other arguments are ignored, and the query will return all results, unsorted, as quickly as possible. - :param str state: Limit the results to jobs in the specified state. - :param int limit: Return no more than this many results at once (see resume). + :param bool show_all: Whether to show all job types, including hidden ones. Defaults to false. :param str dir: The direction of the sort. - :return: JobJobsExtended + :return: JobTypesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'resume', 'batch', 'state', 'limit', 'dir'] + all_params = ['sort', 'show_all', 'dir'] all_params.append('callback') params = locals() @@ -978,35 +963,28 @@ def list_job_jobs(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_job_jobs" % key + " to method get_job_types" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/job/jobs'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/job/types'.replace('{format}', 'json') path_params = {} query_params = {} if 'sort' in params: query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'batch' in params: - query_params['batch'] = params['batch'] - if 'state' in params: - query_params['state'] = params['state'] - if 'limit' in params: - query_params['limit'] = params['limit'] + if 'show_all' in params: + query_params['show_all'] = params['show_all'] if 'dir' in params: query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1023,22 +1001,22 @@ def list_job_jobs(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobJobsExtended', + files=local_var_files, + response_type='JobTypesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_job_job(self, job_job, **kwargs): + def list_job_jobs(self, **kwargs): """ - Queue a new instance of a job type. + List running and paused jobs. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1046,17 +1024,22 @@ def create_job_job(self, job_job, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_job_job(job_job, callback=callback_function) + >>> thread = api.list_job_jobs(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param JobJobCreateParams job_job: (required) - :return: CreateJobJobResponse + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param bool batch: If true, other arguments are ignored, and the query will return all results, unsorted, as quickly as possible. + :param str state: Limit the results to jobs in the specified state. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: JobJobsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['job_job'] + all_params = ['sort', 'resume', 'batch', 'state', 'limit', 'dir'] all_params.append('callback') params = locals() @@ -1064,30 +1047,38 @@ def create_job_job(self, job_job, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_job_job" % key + " to method list_job_jobs" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'job_job' is set - if ('job_job' not in params) or (params['job_job'] is None): - raise ValueError("Missing the required parameter `job_job` when calling `create_job_job`") - resource_path = '/platform/3/job/jobs'.replace('{format}', 'json') - method = 'POST' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_job_jobs`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/job/jobs'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'batch' in params: + query_params['batch'] = params['batch'] + if 'state' in params: + query_params['state'] = params['state'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'job_job' in params: - body_params = params['job_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1102,22 +1093,22 @@ def create_job_job(self, job_job, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateJobJobResponse', + files=local_var_files, + response_type='JobJobsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_job_job(self, job_job_id, **kwargs): + def list_job_policies(self, **kwargs): """ - View a single job instance. + List job impact policies. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1125,17 +1116,20 @@ def get_job_job(self, job_job_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_job(job_job_id, callback=callback_function) + >>> thread = api.list_job_policies(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str job_job_id: View a single job instance. (required) - :return: JobJobs + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: JobPoliciesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['job_job_id'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -1143,28 +1137,32 @@ def get_job_job(self, job_job_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_job" % key + " to method list_job_policies" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'job_job_id' is set - if ('job_job_id' not in params) or (params['job_job_id'] is None): - raise ValueError("Missing the required parameter `job_job_id` when calling `get_job_job`") - resource_path = '/platform/3/job/jobs/{JobJobId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_job_policies`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/job/policies'.replace('{format}', 'json') path_params = {} - if 'job_job_id' in params: - path_params['JobJobId'] = params['job_job_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1181,14 +1179,14 @@ def get_job_job(self, job_job_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobJobs', + files=local_var_files, + response_type='JobPoliciesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1235,9 +1233,8 @@ def update_job_job(self, job_job, job_job_id, **kwargs): if ('job_job_id' not in params) or (params['job_job_id'] is None): raise ValueError("Missing the required parameter `job_job_id` when calling `update_job_job`") - resource_path = '/platform/3/job/jobs/{JobJobId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/job/jobs/{JobJobId}'.replace('{format}', 'json') path_params = {} if 'job_job_id' in params: path_params['JobJobId'] = params['job_job_id'] @@ -1246,8 +1243,8 @@ def update_job_job(self, job_job, job_job_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'job_job' in params: @@ -1266,22 +1263,22 @@ def update_job_job(self, job_job, job_job_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_job_recent(self, **kwargs): + def update_job_policy(self, job_policy, job_policy_id, **kwargs): """ - List recently completed jobs. + Modify a job impact policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1289,18 +1286,18 @@ def get_job_recent(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_recent(callback=callback_function) + >>> thread = api.update_job_policy(job_policy, job_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int timeout_ms: Query timeout in milliseconds. The default is 10000 ms. - :param int limit: Max number of recent jobs to return. The default is 8, the max is 100. - :return: JobRecent + :param JobPolicy job_policy: (required) + :param str job_policy_id: Modify a job impact policy. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['timeout_ms', 'limit'] + all_params = ['job_policy', 'job_policy_id'] all_params.append('callback') params = locals() @@ -1308,29 +1305,34 @@ def get_job_recent(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_recent" % key + " to method update_job_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'job_policy' is set + if ('job_policy' not in params) or (params['job_policy'] is None): + raise ValueError("Missing the required parameter `job_policy` when calling `update_job_policy`") + # verify the required parameter 'job_policy_id' is set + if ('job_policy_id' not in params) or (params['job_policy_id'] is None): + raise ValueError("Missing the required parameter `job_policy_id` when calling `update_job_policy`") - resource_path = '/platform/3/job/recent'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/job/policies/{JobPolicyId}'.replace('{format}', 'json') path_params = {} + if 'job_policy_id' in params: + path_params['JobPolicyId'] = params['job_policy_id'] query_params = {} - if 'timeout_ms' in params: - query_params['timeout_ms'] = params['timeout_ms'] - if 'limit' in params: - query_params['limit'] = params['limit'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'job_policy' in params: + body_params = params['job_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1345,22 +1347,22 @@ def get_job_recent(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobRecent', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_job_reports(self, **kwargs): + def update_job_type(self, job_type, job_type_id, **kwargs): """ - List job reports. + Modify the job type. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1368,23 +1370,18 @@ def get_job_reports(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_job_reports(callback=callback_function) + >>> thread = api.update_job_type(job_type, job_type_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int begin: Restrict the query to reports at or after the given time, in seconds since the Epoch. - :param int end: Restrict the query to reports before the given time, in seconds since the Epoch. - :param int job_id: Restrict the query to the given job ID. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str job_type: Restrict the query to the given job type. - :param int timeout_ms: Query timeout in milliseconds. The default is 10000 ms. - :param int limit: Return no more than this many results at once (see resume). - :return: JobReports + :param JobType job_type: (required) + :param str job_type_id: Modify the job type. All input fields are optional, but one or more must be supplied. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['begin', 'end', 'job_id', 'resume', 'job_type', 'timeout_ms', 'limit'] + all_params = ['job_type', 'job_type_id'] all_params.append('callback') params = locals() @@ -1392,39 +1389,34 @@ def get_job_reports(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_job_reports" % key + " to method update_job_type" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'job_type' is set + if ('job_type' not in params) or (params['job_type'] is None): + raise ValueError("Missing the required parameter `job_type` when calling `update_job_type`") + # verify the required parameter 'job_type_id' is set + if ('job_type_id' not in params) or (params['job_type_id'] is None): + raise ValueError("Missing the required parameter `job_type_id` when calling `update_job_type`") - resource_path = '/platform/3/job/reports'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/job/types/{JobTypeId}'.replace('{format}', 'json') path_params = {} + if 'job_type_id' in params: + path_params['JobTypeId'] = params['job_type_id'] query_params = {} - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'end' in params: - query_params['end'] = params['end'] - if 'job_id' in params: - query_params['job_id'] = params['job_id'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'job_type' in params: - query_params['job_type'] = params['job_type'] - if 'timeout_ms' in params: - query_params['timeout_ms'] = params['timeout_ms'] - if 'limit' in params: - query_params['limit'] = params['limit'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'job_type' in params: + body_params = params['job_type'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1439,14 +1431,14 @@ def get_job_reports(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='JobReports', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response diff --git a/isi_sdk/apis/license_api.py b/isi_sdk/apis/license_api.py index 55dc42422..ce68f05c9 100644 --- a/isi_sdk/apis/license_api.py +++ b/isi_sdk/apis/license_api.py @@ -2,7 +2,7 @@ """ LicenseApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_license_licenses(self, **kwargs): + def create_license_license(self, license_license, **kwargs): """ - Retrieve license information for all licensable products. + Install a new license key. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def list_license_licenses(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_license_licenses(callback=callback_function) + >>> thread = api.create_license_license(license_license, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: LicenseLicenses + :param LicenseLicenseCreateParams license_license: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['license_license'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def list_license_licenses(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_license_licenses" % key + " to method create_license_license" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'license_license' is set + if ('license_license' not in params) or (params['license_license'] is None): + raise ValueError("Missing the required parameter `license_license` when calling `create_license_license`") - resource_path = '/platform/1/license/licenses'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/license/licenses'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'license_license' in params: + body_params = params['license_license'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def list_license_licenses(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='LicenseLicenses', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_license_license(self, license_license, **kwargs): + def get_license_license(self, license_license_id, **kwargs): """ - Install a new license key. + Retrieve license information for the feature. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,17 @@ def create_license_license(self, license_license, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_license_license(license_license, callback=callback_function) + >>> thread = api.get_license_license(license_license_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param LicenseLicenseCreateParams license_license: (required) - :return: None + :param str license_license_id: Retrieve license information for the feature. (required) + :return: LicenseLicenses If the method is called asynchronously, returns the request thread. """ - all_params = ['license_license'] + all_params = ['license_license_id'] all_params.append('callback') params = locals() @@ -147,30 +153,29 @@ def create_license_license(self, license_license, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_license_license" % key + " to method get_license_license" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'license_license' is set - if ('license_license' not in params) or (params['license_license'] is None): - raise ValueError("Missing the required parameter `license_license` when calling `create_license_license`") + # verify the required parameter 'license_license_id' is set + if ('license_license_id' not in params) or (params['license_license_id'] is None): + raise ValueError("Missing the required parameter `license_license_id` when calling `get_license_license`") - resource_path = '/platform/1/license/licenses'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/license/licenses/{LicenseLicenseId}'.replace('{format}', 'json') path_params = {} + if 'license_license_id' in params: + path_params['LicenseLicenseId'] = params['license_license_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'license_license' in params: - body_params = params['license_license'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,22 +190,22 @@ def create_license_license(self, license_license, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='LicenseLicenses', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_license_license(self, license_license_id, **kwargs): + def list_license_licenses(self, **kwargs): """ - Retrieve license information for the feature. + Retrieve license information for all licensable products. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -208,17 +213,16 @@ def get_license_license(self, license_license_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_license_license(license_license_id, callback=callback_function) + >>> thread = api.list_license_licenses(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str license_license_id: Retrieve license information for the feature. (required) :return: LicenseLicenses If the method is called asynchronously, returns the request thread. """ - all_params = ['license_license_id'] + all_params = [] all_params.append('callback') params = locals() @@ -226,28 +230,22 @@ def get_license_license(self, license_license_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_license_license" % key + " to method list_license_licenses" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'license_license_id' is set - if ('license_license_id' not in params) or (params['license_license_id'] is None): - raise ValueError("Missing the required parameter `license_license_id` when calling `get_license_license`") - resource_path = '/platform/1/license/licenses/{LicenseLicenseId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/license/licenses'.replace('{format}', 'json') path_params = {} - if 'license_license_id' in params: - path_params['LicenseLicenseId'] = params['license_license_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -264,13 +262,13 @@ def get_license_license(self, license_license_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='LicenseLicenses', auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/local_api.py b/isi_sdk/apis/local_api.py index f740fd357..35642ba2b 100644 --- a/isi_sdk/apis/local_api.py +++ b/isi_sdk/apis/local_api.py @@ -2,7 +2,7 @@ """ LocalApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -79,17 +80,16 @@ def get_cluster_time(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/local/cluster/time'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/local/cluster/time'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -106,13 +106,13 @@ def get_cluster_time(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='ClusterTimeExtended', auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/network_api.py b/isi_sdk/apis/network_api.py index 6d0c8eb64..f97aa4ff4 100644 --- a/isi_sdk/apis/network_api.py +++ b/isi_sdk/apis/network_api.py @@ -2,7 +2,7 @@ """ NetworkApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_network_dnscache(self, **kwargs): + def create_dnscache_flush_item(self, dnscache_flush_item, **kwargs): """ - View network dns cache settings. + Flush the DNSCache. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def get_network_dnscache(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_network_dnscache(callback=callback_function) + >>> thread = api.create_dnscache_flush_item(dnscache_flush_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NetworkDnscache + :param Empty dnscache_flush_item: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['dnscache_flush_item'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def get_network_dnscache(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_network_dnscache" % key + " to method create_dnscache_flush_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'dnscache_flush_item' is set + if ('dnscache_flush_item' not in params) or (params['dnscache_flush_item'] is None): + raise ValueError("Missing the required parameter `dnscache_flush_item` when calling `create_dnscache_flush_item`") - resource_path = '/platform/3/network/dnscache'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/network/dnscache/flush'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'dnscache_flush_item' in params: + body_params = params['dnscache_flush_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def get_network_dnscache(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NetworkDnscache', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_network_dnscache(self, network_dnscache, **kwargs): + def create_network_groupnet(self, network_groupnet, **kwargs): """ - Modify network dns cache settings. + Create a new groupnet. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,17 @@ def update_network_dnscache(self, network_dnscache, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_network_dnscache(network_dnscache, callback=callback_function) + >>> thread = api.create_network_groupnet(network_groupnet, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NetworkDnscacheSetting network_dnscache: (required) - :return: None + :param NetworkGroupnet network_groupnet: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['network_dnscache'] + all_params = ['network_groupnet'] all_params.append('callback') params = locals() @@ -147,30 +153,29 @@ def update_network_dnscache(self, network_dnscache, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_network_dnscache" % key + " to method create_network_groupnet" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'network_dnscache' is set - if ('network_dnscache' not in params) or (params['network_dnscache'] is None): - raise ValueError("Missing the required parameter `network_dnscache` when calling `update_network_dnscache`") + # verify the required parameter 'network_groupnet' is set + if ('network_groupnet' not in params) or (params['network_groupnet'] is None): + raise ValueError("Missing the required parameter `network_groupnet` when calling `create_network_groupnet`") - resource_path = '/platform/3/network/dnscache'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/network/groupnets'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'network_dnscache' in params: - body_params = params['network_dnscache'] + if 'network_groupnet' in params: + body_params = params['network_groupnet'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,22 +190,22 @@ def update_network_dnscache(self, network_dnscache, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_dnscache_flush_item(self, dnscache_flush_item, **kwargs): + def create_network_sc_rebalance_all_item(self, network_sc_rebalance_all_item, **kwargs): """ - Flush the DNSCache. + Rebalance IP addresses in all pools. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -208,17 +213,17 @@ def create_dnscache_flush_item(self, dnscache_flush_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_dnscache_flush_item(dnscache_flush_item, callback=callback_function) + >>> thread = api.create_network_sc_rebalance_all_item(network_sc_rebalance_all_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty dnscache_flush_item: (required) + :param Empty network_sc_rebalance_all_item: (required) :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['dnscache_flush_item'] + all_params = ['network_sc_rebalance_all_item'] all_params.append('callback') params = locals() @@ -226,30 +231,29 @@ def create_dnscache_flush_item(self, dnscache_flush_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_dnscache_flush_item" % key + " to method create_network_sc_rebalance_all_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'dnscache_flush_item' is set - if ('dnscache_flush_item' not in params) or (params['dnscache_flush_item'] is None): - raise ValueError("Missing the required parameter `dnscache_flush_item` when calling `create_dnscache_flush_item`") + # verify the required parameter 'network_sc_rebalance_all_item' is set + if ('network_sc_rebalance_all_item' not in params) or (params['network_sc_rebalance_all_item'] is None): + raise ValueError("Missing the required parameter `network_sc_rebalance_all_item` when calling `create_network_sc_rebalance_all_item`") - resource_path = '/platform/3/network/dnscache/flush'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/network/sc-rebalance-all'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'dnscache_flush_item' in params: - body_params = params['dnscache_flush_item'] + if 'network_sc_rebalance_all_item' in params: + body_params = params['network_sc_rebalance_all_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -264,22 +268,22 @@ def create_dnscache_flush_item(self, dnscache_flush_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_network_external(self, **kwargs): + def delete_network_groupnet(self, network_groupnet_id, **kwargs): """ - View external network settings. + Delete a network groupnet. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -287,16 +291,17 @@ def get_network_external(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_network_external(callback=callback_function) + >>> thread = api.delete_network_groupnet(network_groupnet_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NetworkExternal + :param str network_groupnet_id: Delete a network groupnet. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['network_groupnet_id'] all_params.append('callback') params = locals() @@ -304,23 +309,27 @@ def get_network_external(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_network_external" % key + " to method delete_network_groupnet" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'network_groupnet_id' is set + if ('network_groupnet_id' not in params) or (params['network_groupnet_id'] is None): + raise ValueError("Missing the required parameter `network_groupnet_id` when calling `delete_network_groupnet`") - resource_path = '/platform/3/network/external'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/network/groupnets/{NetworkGroupnetId}'.replace('{format}', 'json') path_params = {} + if 'network_groupnet_id' in params: + path_params['NetworkGroupnetId'] = params['network_groupnet_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -337,22 +346,22 @@ def get_network_external(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NetworkExternal', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_network_external(self, network_external, **kwargs): + def get_network_dnscache(self, **kwargs): """ - Modify external network settings. + View network dns cache settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -360,17 +369,16 @@ def update_network_external(self, network_external, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_network_external(network_external, callback=callback_function) + >>> thread = api.get_network_dnscache(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NetworkExternalExtended network_external: (required) - :return: None + :return: NetworkDnscache If the method is called asynchronously, returns the request thread. """ - all_params = ['network_external'] + all_params = [] all_params.append('callback') params = locals() @@ -378,30 +386,24 @@ def update_network_external(self, network_external, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_network_external" % key + " to method get_network_dnscache" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'network_external' is set - if ('network_external' not in params) or (params['network_external'] is None): - raise ValueError("Missing the required parameter `network_external` when calling `update_network_external`") - resource_path = '/platform/3/network/external'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/network/dnscache'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'network_external' in params: - body_params = params['network_external'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -416,22 +418,22 @@ def update_network_external(self, network_external, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NetworkDnscache', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_network_groupnets(self, **kwargs): + def get_network_external(self, **kwargs): """ - Get a list of groupnets. + View external network settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -439,20 +441,16 @@ def list_network_groupnets(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_network_groupnets(callback=callback_function) + >>> thread = api.get_network_external(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: NetworkGroupnetsExtended + :return: NetworkExternal If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = [] all_params.append('callback') params = locals() @@ -460,31 +458,22 @@ def list_network_groupnets(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_network_groupnets" % key + " to method get_network_external" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/network/groupnets'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/network/external'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -501,22 +490,22 @@ def list_network_groupnets(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NetworkGroupnetsExtended', + files=local_var_files, + response_type='NetworkExternal', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_network_groupnet(self, network_groupnet, **kwargs): + def get_network_groupnet(self, network_groupnet_id, **kwargs): """ - Create a new groupnet. + View a network groupnet. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -524,17 +513,17 @@ def create_network_groupnet(self, network_groupnet, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_network_groupnet(network_groupnet, callback=callback_function) + >>> thread = api.get_network_groupnet(network_groupnet_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NetworkGroupnet network_groupnet: (required) - :return: CreateResponse + :param str network_groupnet_id: View a network groupnet. (required) + :return: NetworkGroupnets If the method is called asynchronously, returns the request thread. """ - all_params = ['network_groupnet'] + all_params = ['network_groupnet_id'] all_params.append('callback') params = locals() @@ -542,30 +531,29 @@ def create_network_groupnet(self, network_groupnet, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_network_groupnet" % key + " to method get_network_groupnet" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'network_groupnet' is set - if ('network_groupnet' not in params) or (params['network_groupnet'] is None): - raise ValueError("Missing the required parameter `network_groupnet` when calling `create_network_groupnet`") + # verify the required parameter 'network_groupnet_id' is set + if ('network_groupnet_id' not in params) or (params['network_groupnet_id'] is None): + raise ValueError("Missing the required parameter `network_groupnet_id` when calling `get_network_groupnet`") - resource_path = '/platform/3/network/groupnets'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/network/groupnets/{NetworkGroupnetId}'.replace('{format}', 'json') path_params = {} + if 'network_groupnet_id' in params: + path_params['NetworkGroupnetId'] = params['network_groupnet_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'network_groupnet' in params: - body_params = params['network_groupnet'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -580,22 +568,22 @@ def create_network_groupnet(self, network_groupnet, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='NetworkGroupnets', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_groupnets_groupnet_subnets(self, groupnet, **kwargs): + def get_network_interfaces(self, **kwargs): """ - Get a list of subnets. + Get a list of interfaces. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -603,21 +591,23 @@ def list_groupnets_groupnet_subnets(self, groupnet, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_groupnets_groupnet_subnets(groupnet, callback=callback_function) + >>> thread = api.get_network_interfaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str groupnet: (required) :param str sort: The field that will be used for sorting. + :param str network: Show interfaces associated with external and/or internal networks. Default is 'external' + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param str lnns: Get a list of interfaces for the specified lnn. + :param str alloc_method: Filter addresses and owners by pool address allocation method. :param int limit: Return no more than this many results at once (see resume). :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: GroupnetsGroupnetSubnetsExtended + :return: PoolsPoolInterfaces If the method is called asynchronously, returns the request thread. """ - all_params = ['groupnet', 'sort', 'limit', 'dir', 'resume'] + all_params = ['sort', 'network', 'resume', 'lnns', 'alloc_method', 'limit', 'dir'] all_params.append('callback') params = locals() @@ -625,36 +615,38 @@ def list_groupnets_groupnet_subnets(self, groupnet, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_groupnets_groupnet_subnets" % key + " to method get_network_interfaces" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `list_groupnets_groupnet_subnets`") - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_network_interfaces`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/network/interfaces'.replace('{format}', 'json') path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] query_params = {} if 'sort' in params: query_params['sort'] = params['sort'] + if 'network' in params: + query_params['network'] = params['network'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'lnns' in params: + query_params['lnns'] = params['lnns'] + if 'alloc_method' in params: + query_params['alloc_method'] = params['alloc_method'] if 'limit' in params: query_params['limit'] = params['limit'] if 'dir' in params: query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -671,22 +663,22 @@ def list_groupnets_groupnet_subnets(self, groupnet, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='GroupnetsGroupnetSubnetsExtended', + files=local_var_files, + response_type='PoolsPoolInterfaces', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet, groupnet, **kwargs): + def get_network_pools(self, **kwargs): """ - Create a new subnet. + Get a list of flexnet pools. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -694,18 +686,24 @@ def create_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet, groupnet, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_groupnets_groupnet_subnet(groupnets_groupnet_subnet, groupnet, callback=callback_function) + >>> thread = api.get_network_pools(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param GroupnetsGroupnetSubnetCreateParams groupnets_groupnet_subnet: (required) - :param str groupnet: (required) - :return: CreateResponse + :param str sort: The field that will be used for sorting. + :param str subnet: If specified, only pools for this subnet will be returned. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param str access_zone: If specified, only pools with this zone name will be returned. + :param str alloc_method: If specified, only pools with this allocation type will be returned. + :param int limit: Return no more than this many results at once (see resume). + :param str groupnet: If specified, only pools for this groupnet will be returned. + :param str dir: The direction of the sort. + :return: NetworkPools If the method is called asynchronously, returns the request thread. """ - all_params = ['groupnets_groupnet_subnet', 'groupnet'] + all_params = ['sort', 'subnet', 'resume', 'access_zone', 'alloc_method', 'limit', 'groupnet', 'dir'] all_params.append('callback') params = locals() @@ -713,35 +711,42 @@ def create_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet, groupnet, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_groupnets_groupnet_subnet" % key + " to method get_network_pools" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'groupnets_groupnet_subnet' is set - if ('groupnets_groupnet_subnet' not in params) or (params['groupnets_groupnet_subnet'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnet` when calling `create_groupnets_groupnet_subnet`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `create_groupnets_groupnet_subnet`") - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets'.replace('{format}', 'json') - method = 'POST' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_network_pools`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/network/pools'.replace('{format}', 'json') path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'subnet' in params: + query_params['subnet'] = params['subnet'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'access_zone' in params: + query_params['access_zone'] = params['access_zone'] + if 'alloc_method' in params: + query_params['alloc_method'] = params['alloc_method'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'groupnet' in params: + query_params['groupnet'] = params['groupnet'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'groupnets_groupnet_subnet' in params: - body_params = params['groupnets_groupnet_subnet'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -756,22 +761,22 @@ def create_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet, groupnet, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='NetworkPools', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet_id, groupnet, **kwargs): + def get_network_rules(self, **kwargs): """ - View a network subnet. + Get a list of network rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -779,19 +784,23 @@ def get_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet_id, groupnet, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_groupnets_groupnet_subnet(groupnets_groupnet_subnet_id, groupnet, callback=callback_function) + >>> thread = api.get_network_rules(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str groupnets_groupnet_subnet_id: View a network subnet. (required) - :param str groupnet: (required) - :param bool force: force modifying this subnet even if it causes an MTU conflict. - :return: GroupnetsGroupnetSubnets + :param str sort: The field that will be used for sorting. + :param str subnet: Name of the subnet to list rules from. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str groupnet: Name of the groupnet to list rules from. + :param str pool: Name of the pool to list rules from. + :return: NetworkRules If the method is called asynchronously, returns the request thread. """ - all_params = ['groupnets_groupnet_subnet_id', 'groupnet', 'force'] + all_params = ['sort', 'subnet', 'resume', 'limit', 'dir', 'groupnet', 'pool'] all_params.append('callback') params = locals() @@ -799,1830 +808,38 @@ def get_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet_id, groupnet, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_groupnets_groupnet_subnet" % key + " to method get_network_rules" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'groupnets_groupnet_subnet_id' is set - if ('groupnets_groupnet_subnet_id' not in params) or (params['groupnets_groupnet_subnet_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnet_id` when calling `get_groupnets_groupnet_subnet`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `get_groupnets_groupnet_subnet`") - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetsGroupnetSubnetId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_network_rules`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/network/rules'.replace('{format}', 'json') path_params = {} - if 'groupnets_groupnet_subnet_id' in params: - path_params['GroupnetsGroupnetSubnetId'] = params['groupnets_groupnet_subnet_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - - query_params = {} - if 'force' in params: - query_params['force'] = params['force'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='GroupnetsGroupnetSubnets', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet, groupnets_groupnet_subnet_id, groupnet, **kwargs): - """ - - Modify a network subnet. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_groupnets_groupnet_subnet(groupnets_groupnet_subnet, groupnets_groupnet_subnet_id, groupnet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param GroupnetsGroupnetSubnet groupnets_groupnet_subnet: (required) - :param str groupnets_groupnet_subnet_id: Modify a network subnet. (required) - :param str groupnet: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnet', 'groupnets_groupnet_subnet_id', 'groupnet'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_groupnets_groupnet_subnet" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnet' is set - if ('groupnets_groupnet_subnet' not in params) or (params['groupnets_groupnet_subnet'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnet` when calling `update_groupnets_groupnet_subnet`") - # verify the required parameter 'groupnets_groupnet_subnet_id' is set - if ('groupnets_groupnet_subnet_id' not in params) or (params['groupnets_groupnet_subnet_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnet_id` when calling `update_groupnets_groupnet_subnet`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `update_groupnets_groupnet_subnet`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetsGroupnetSubnetId}'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'groupnets_groupnet_subnet_id' in params: - path_params['GroupnetsGroupnetSubnetId'] = params['groupnets_groupnet_subnet_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groupnets_groupnet_subnet' in params: - body_params = params['groupnets_groupnet_subnet'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_groupnets_groupnet_subnet(self, groupnets_groupnet_subnet_id, groupnet, **kwargs): - """ - - Delete a network subnet.. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_groupnets_groupnet_subnet(groupnets_groupnet_subnet_id, groupnet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groupnets_groupnet_subnet_id: Delete a network subnet.. (required) - :param str groupnet: (required) - :param bool force: force deleting this subnet even if pools in other subnets rely on this subnet's SC VIP. - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnet_id', 'groupnet', 'force'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_groupnets_groupnet_subnet" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnet_id' is set - if ('groupnets_groupnet_subnet_id' not in params) or (params['groupnets_groupnet_subnet_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnet_id` when calling `delete_groupnets_groupnet_subnet`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `delete_groupnets_groupnet_subnet`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetsGroupnetSubnetId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'groupnets_groupnet_subnet_id' in params: - path_params['GroupnetsGroupnetSubnetId'] = params['groupnets_groupnet_subnet_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - - query_params = {} - if 'force' in params: - query_params['force'] = params['force'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def list_groupnets_groupnet_subnets_subnet_pools(self, groupnet, subnet, **kwargs): - """ - - Get a list of network pools. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_groupnets_groupnet_subnets_subnet_pools(groupnet, subnet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groupnet: (required) - :param str subnet: (required) - :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str access_zone: If specified, only pools with this zone name will be returned. - :param str alloc_method: If specified, only pools with this allocation type will be returned. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: GroupnetsGroupnetSubnetsSubnetPoolsExtended - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnet', 'subnet', 'sort', 'resume', 'access_zone', 'alloc_method', 'limit', 'dir'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_groupnets_groupnet_subnets_subnet_pools" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `list_groupnets_groupnet_subnets_subnet_pools`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `list_groupnets_groupnet_subnets_subnet_pools`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - - query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'access_zone' in params: - query_params['access_zone'] = params['access_zone'] - if 'alloc_method' in params: - query_params['alloc_method'] = params['alloc_method'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='GroupnetsGroupnetSubnetsSubnetPoolsExtended', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_groupnets_groupnet_subnets_subnet_pool(self, groupnets_groupnet_subnets_subnet_pool, groupnet, subnet, **kwargs): - """ - - Create a new pool. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_groupnets_groupnet_subnets_subnet_pool(groupnets_groupnet_subnets_subnet_pool, groupnet, subnet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param GroupnetsGroupnetSubnetsSubnetPool groupnets_groupnet_subnets_subnet_pool: (required) - :param str groupnet: (required) - :param str subnet: (required) - :param bool force: force creating this pool even if it causes an MTU conflict. - :return: CreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pool', 'groupnet', 'subnet', 'force'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_groupnets_groupnet_subnets_subnet_pool" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pool' is set - if ('groupnets_groupnet_subnets_subnet_pool' not in params) or (params['groupnets_groupnet_subnets_subnet_pool'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pool` when calling `create_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `create_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `create_groupnets_groupnet_subnets_subnet_pool`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - - query_params = {} - if 'force' in params: - query_params['force'] = params['force'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groupnets_groupnet_subnets_subnet_pool' in params: - body_params = params['groupnets_groupnet_subnets_subnet_pool'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='CreateResponse', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_groupnets_groupnet_subnets_subnet_pool(self, groupnets_groupnet_subnets_subnet_pool_id, groupnet, subnet, **kwargs): - """ - - View a single network pool. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_groupnets_groupnet_subnets_subnet_pool(groupnets_groupnet_subnets_subnet_pool_id, groupnet, subnet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groupnets_groupnet_subnets_subnet_pool_id: View a single network pool. (required) - :param str groupnet: (required) - :param str subnet: (required) - :return: GroupnetsGroupnetSubnetsSubnetPools - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pool_id', 'groupnet', 'subnet'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_groupnets_groupnet_subnets_subnet_pool" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pool_id' is set - if ('groupnets_groupnet_subnets_subnet_pool_id' not in params) or (params['groupnets_groupnet_subnets_subnet_pool_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pool_id` when calling `get_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `get_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `get_groupnets_groupnet_subnets_subnet_pool`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{GroupnetsGroupnetSubnetsSubnetPoolId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'groupnets_groupnet_subnets_subnet_pool_id' in params: - path_params['GroupnetsGroupnetSubnetsSubnetPoolId'] = params['groupnets_groupnet_subnets_subnet_pool_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='GroupnetsGroupnetSubnetsSubnetPools', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_groupnets_groupnet_subnets_subnet_pool(self, groupnets_groupnet_subnets_subnet_pool, groupnets_groupnet_subnets_subnet_pool_id, groupnet, subnet, **kwargs): - """ - - Modify a network pool. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_groupnets_groupnet_subnets_subnet_pool(groupnets_groupnet_subnets_subnet_pool, groupnets_groupnet_subnets_subnet_pool_id, groupnet, subnet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param GroupnetsGroupnetSubnetsSubnetPool groupnets_groupnet_subnets_subnet_pool: (required) - :param str groupnets_groupnet_subnets_subnet_pool_id: Modify a network pool. (required) - :param str groupnet: (required) - :param str subnet: (required) - :param bool force: force creating this pool even if it causes an MTU conflict. - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pool', 'groupnets_groupnet_subnets_subnet_pool_id', 'groupnet', 'subnet', 'force'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_groupnets_groupnet_subnets_subnet_pool" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pool' is set - if ('groupnets_groupnet_subnets_subnet_pool' not in params) or (params['groupnets_groupnet_subnets_subnet_pool'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pool` when calling `update_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pool_id' is set - if ('groupnets_groupnet_subnets_subnet_pool_id' not in params) or (params['groupnets_groupnet_subnets_subnet_pool_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pool_id` when calling `update_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `update_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `update_groupnets_groupnet_subnets_subnet_pool`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{GroupnetsGroupnetSubnetsSubnetPoolId}'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'groupnets_groupnet_subnets_subnet_pool_id' in params: - path_params['GroupnetsGroupnetSubnetsSubnetPoolId'] = params['groupnets_groupnet_subnets_subnet_pool_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - - query_params = {} - if 'force' in params: - query_params['force'] = params['force'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groupnets_groupnet_subnets_subnet_pool' in params: - body_params = params['groupnets_groupnet_subnets_subnet_pool'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_groupnets_groupnet_subnets_subnet_pool(self, groupnets_groupnet_subnets_subnet_pool_id, groupnet, subnet, **kwargs): - """ - - Delete a network pool. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_groupnets_groupnet_subnets_subnet_pool(groupnets_groupnet_subnets_subnet_pool_id, groupnet, subnet, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groupnets_groupnet_subnets_subnet_pool_id: Delete a network pool. (required) - :param str groupnet: (required) - :param str subnet: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pool_id', 'groupnet', 'subnet'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_groupnets_groupnet_subnets_subnet_pool" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pool_id' is set - if ('groupnets_groupnet_subnets_subnet_pool_id' not in params) or (params['groupnets_groupnet_subnets_subnet_pool_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pool_id` when calling `delete_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `delete_groupnets_groupnet_subnets_subnet_pool`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `delete_groupnets_groupnet_subnets_subnet_pool`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{GroupnetsGroupnetSubnetsSubnetPoolId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'groupnets_groupnet_subnets_subnet_pool_id' in params: - path_params['GroupnetsGroupnetSubnetsSubnetPoolId'] = params['groupnets_groupnet_subnets_subnet_pool_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_groupnets_groupnet_subnets_subnet_pools_pool_interfaces(self, groupnet, subnet, pool, **kwargs): - """ - - Get a list of interfaces. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_groupnets_groupnet_subnets_subnet_pools_pool_interfaces(groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str lnns: Get a list of interfaces for the specified lnn. - :return: GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfaces - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnet', 'subnet', 'pool', 'sort', 'resume', 'limit', 'dir', 'lnns'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_groupnets_groupnet_subnets_subnet_pools_pool_interfaces" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `get_groupnets_groupnet_subnets_subnet_pools_pool_interfaces`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `get_groupnets_groupnet_subnets_subnet_pools_pool_interfaces`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `get_groupnets_groupnet_subnets_subnet_pools_pool_interfaces`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/interfaces'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'lnns' in params: - query_params['lnns'] = params['lnns'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfaces', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip(self, groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip, groupnet, subnet, pool, **kwargs): - """ - - Rebalance IP addresses in specified pool. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip(groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip, groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param Empty groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip: (required) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip', 'groupnet', 'subnet', 'pool'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip' is set - if ('groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip' not in params) or (params['groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rebalance-ips'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip' in params: - body_params = params['groupnets_groupnet_subnets_subnet_pools_pool_rebalance_ip'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def list_groupnets_groupnet_subnets_subnet_pools_pool_rules(self, groupnet, subnet, pool, **kwargs): - """ - - Get a list of network rules. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_groupnets_groupnet_subnets_subnet_pools_pool_rules(groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesExtended - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnet', 'subnet', 'pool', 'sort', 'limit', 'dir', 'resume'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_groupnets_groupnet_subnets_subnet_pools_pool_rules" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `list_groupnets_groupnet_subnets_subnet_pools_pool_rules`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `list_groupnets_groupnet_subnets_subnet_pools_pool_rules`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `list_groupnets_groupnet_subnets_subnet_pools_pool_rules`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesExtended', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_groupnets_groupnet_subnets_subnet_pools_pool_rule(self, groupnets_groupnet_subnets_subnet_pools_pool_rule, groupnet, subnet, pool, **kwargs): - """ - - Create a new rule. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_groupnets_groupnet_subnets_subnet_pools_pool_rule(groupnets_groupnet_subnets_subnet_pools_pool_rule, groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param GroupnetsGroupnetSubnetsSubnetPoolsPoolRule groupnets_groupnet_subnets_subnet_pools_pool_rule: (required) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :return: CreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pools_pool_rule', 'groupnet', 'subnet', 'pool'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_groupnets_groupnet_subnets_subnet_pools_pool_rule" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pools_pool_rule' is set - if ('groupnets_groupnet_subnets_subnet_pools_pool_rule' not in params) or (params['groupnets_groupnet_subnets_subnet_pools_pool_rule'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pools_pool_rule` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groupnets_groupnet_subnets_subnet_pools_pool_rule' in params: - body_params = params['groupnets_groupnet_subnets_subnet_pools_pool_rule'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='CreateResponse', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_groupnets_groupnet_subnets_subnet_pools_pool_rule(self, groupnets_groupnet_subnets_subnet_pools_pool_rule_id, groupnet, subnet, pool, **kwargs): - """ - - View a single network rule. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_groupnets_groupnet_subnets_subnet_pools_pool_rule(groupnets_groupnet_subnets_subnet_pools_pool_rule_id, groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groupnets_groupnet_subnets_subnet_pools_pool_rule_id: View a single network rule. (required) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :return: GroupnetsGroupnetSubnetsSubnetPoolsPoolRules - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pools_pool_rule_id', 'groupnet', 'subnet', 'pool'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_groupnets_groupnet_subnets_subnet_pools_pool_rule" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pools_pool_rule_id' is set - if ('groupnets_groupnet_subnets_subnet_pools_pool_rule_id' not in params) or (params['groupnets_groupnet_subnets_subnet_pools_pool_rule_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pools_pool_rule_id` when calling `get_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `get_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `get_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `get_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{GroupnetsGroupnetSubnetsSubnetPoolsPoolRuleId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'groupnets_groupnet_subnets_subnet_pools_pool_rule_id' in params: - path_params['GroupnetsGroupnetSubnetsSubnetPoolsPoolRuleId'] = params['groupnets_groupnet_subnets_subnet_pools_pool_rule_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='GroupnetsGroupnetSubnetsSubnetPoolsPoolRules', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_groupnets_groupnet_subnets_subnet_pools_pool_rule(self, groupnets_groupnet_subnets_subnet_pools_pool_rule, groupnets_groupnet_subnets_subnet_pools_pool_rule_id, groupnet, subnet, pool, **kwargs): - """ - - Modify a network rule. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_groupnets_groupnet_subnets_subnet_pools_pool_rule(groupnets_groupnet_subnets_subnet_pools_pool_rule, groupnets_groupnet_subnets_subnet_pools_pool_rule_id, groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param GroupnetsGroupnetSubnetsSubnetPoolsPoolRule groupnets_groupnet_subnets_subnet_pools_pool_rule: (required) - :param str groupnets_groupnet_subnets_subnet_pools_pool_rule_id: Modify a network rule. (required) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pools_pool_rule', 'groupnets_groupnet_subnets_subnet_pools_pool_rule_id', 'groupnet', 'subnet', 'pool'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_groupnets_groupnet_subnets_subnet_pools_pool_rule" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pools_pool_rule' is set - if ('groupnets_groupnet_subnets_subnet_pools_pool_rule' not in params) or (params['groupnets_groupnet_subnets_subnet_pools_pool_rule'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pools_pool_rule` when calling `update_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pools_pool_rule_id' is set - if ('groupnets_groupnet_subnets_subnet_pools_pool_rule_id' not in params) or (params['groupnets_groupnet_subnets_subnet_pools_pool_rule_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pools_pool_rule_id` when calling `update_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `update_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `update_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `update_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{GroupnetsGroupnetSubnetsSubnetPoolsPoolRuleId}'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'groupnets_groupnet_subnets_subnet_pools_pool_rule_id' in params: - path_params['GroupnetsGroupnetSubnetsSubnetPoolsPoolRuleId'] = params['groupnets_groupnet_subnets_subnet_pools_pool_rule_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groupnets_groupnet_subnets_subnet_pools_pool_rule' in params: - body_params = params['groupnets_groupnet_subnets_subnet_pools_pool_rule'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_groupnets_groupnet_subnets_subnet_pools_pool_rule(self, groupnets_groupnet_subnets_subnet_pools_pool_rule_id, groupnet, subnet, pool, **kwargs): - """ - - Delete a network rule. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_groupnets_groupnet_subnets_subnet_pools_pool_rule(groupnets_groupnet_subnets_subnet_pools_pool_rule_id, groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str groupnets_groupnet_subnets_subnet_pools_pool_rule_id: Delete a network rule. (required) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pools_pool_rule_id', 'groupnet', 'subnet', 'pool'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_groupnets_groupnet_subnets_subnet_pools_pool_rule" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pools_pool_rule_id' is set - if ('groupnets_groupnet_subnets_subnet_pools_pool_rule_id' not in params) or (params['groupnets_groupnet_subnets_subnet_pools_pool_rule_id'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pools_pool_rule_id` when calling `delete_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `delete_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `delete_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `delete_groupnets_groupnet_subnets_subnet_pools_pool_rule`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{GroupnetsGroupnetSubnetsSubnetPoolsPoolRuleId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'groupnets_groupnet_subnets_subnet_pools_pool_rule_id' in params: - path_params['GroupnetsGroupnetSubnetsSubnetPoolsPoolRuleId'] = params['groupnets_groupnet_subnets_subnet_pools_pool_rule_id'] - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node(self, groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node, groupnet, subnet, pool, **kwargs): - """ - - Resume suspended nodes. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node(groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node, groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param GroupnetsGroupnetSubnetsSubnetPoolsPoolScResumeNode groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node: (required) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node', 'groupnet', 'subnet', 'pool'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node' is set - if ('groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node' not in params) or (params['groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/sc-resume-nodes'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node' in params: - body_params = params['groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node(self, groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node, groupnet, subnet, pool, **kwargs): - """ - - Suspend nodes. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node(groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node, groupnet, subnet, pool, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param GroupnetsGroupnetSubnetsSubnetPoolsPoolScResumeNode groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node: (required) - :param str groupnet: (required) - :param str subnet: (required) - :param str pool: (required) - :return: Empty - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node', 'groupnet', 'subnet', 'pool'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node' is set - if ('groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node' not in params) or (params['groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node'] is None): - raise ValueError("Missing the required parameter `groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node`") - # verify the required parameter 'groupnet' is set - if ('groupnet' not in params) or (params['groupnet'] is None): - raise ValueError("Missing the required parameter `groupnet` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node`") - # verify the required parameter 'subnet' is set - if ('subnet' not in params) or (params['subnet'] is None): - raise ValueError("Missing the required parameter `subnet` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node`") - # verify the required parameter 'pool' is set - if ('pool' not in params) or (params['pool'] is None): - raise ValueError("Missing the required parameter `pool` when calling `create_groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node`") - - resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/sc-suspend-nodes'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - if 'groupnet' in params: - path_params['Groupnet'] = params['groupnet'] - if 'subnet' in params: - path_params['Subnet'] = params['subnet'] - if 'pool' in params: - path_params['Pool'] = params['pool'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node' in params: - body_params = params['groupnets_groupnet_subnets_subnet_pools_pool_sc_suspend_node'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='Empty', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_network_groupnet(self, network_groupnet_id, **kwargs): - """ - - View a network groupnet. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_network_groupnet(network_groupnet_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str network_groupnet_id: View a network groupnet. (required) - :return: NetworkGroupnets - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['network_groupnet_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_network_groupnet" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'network_groupnet_id' is set - if ('network_groupnet_id' not in params) or (params['network_groupnet_id'] is None): - raise ValueError("Missing the required parameter `network_groupnet_id` when calling `get_network_groupnet`") - - resource_path = '/platform/3/network/groupnets/{NetworkGroupnetId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'network_groupnet_id' in params: - path_params['NetworkGroupnetId'] = params['network_groupnet_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NetworkGroupnets', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_network_groupnet(self, network_groupnet, network_groupnet_id, **kwargs): - """ - - Modify a network groupnet. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_network_groupnet(network_groupnet, network_groupnet_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param NetworkGroupnet network_groupnet: (required) - :param str network_groupnet_id: Modify a network groupnet. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['network_groupnet', 'network_groupnet_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_network_groupnet" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'network_groupnet' is set - if ('network_groupnet' not in params) or (params['network_groupnet'] is None): - raise ValueError("Missing the required parameter `network_groupnet` when calling `update_network_groupnet`") - # verify the required parameter 'network_groupnet_id' is set - if ('network_groupnet_id' not in params) or (params['network_groupnet_id'] is None): - raise ValueError("Missing the required parameter `network_groupnet_id` when calling `update_network_groupnet`") - - resource_path = '/platform/3/network/groupnets/{NetworkGroupnetId}'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'network_groupnet_id' in params: - path_params['NetworkGroupnetId'] = params['network_groupnet_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'network_groupnet' in params: - body_params = params['network_groupnet'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_network_groupnet(self, network_groupnet_id, **kwargs): - """ - - Delete a network groupnet. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_network_groupnet(network_groupnet_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str network_groupnet_id: Delete a network groupnet. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['network_groupnet_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_network_groupnet" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'network_groupnet_id' is set - if ('network_groupnet_id' not in params) or (params['network_groupnet_id'] is None): - raise ValueError("Missing the required parameter `network_groupnet_id` when calling `delete_network_groupnet`") - - resource_path = '/platform/3/network/groupnets/{NetworkGroupnetId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'network_groupnet_id' in params: - path_params['NetworkGroupnetId'] = params['network_groupnet_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'subnet' in params: + query_params['subnet'] = params['subnet'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'groupnet' in params: + query_params['groupnet'] = params['groupnet'] + if 'pool' in params: + query_params['pool'] = params['pool'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2639,22 +856,22 @@ def delete_network_groupnet(self, network_groupnet_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NetworkRules', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_network_interfaces(self, **kwargs): + def get_network_subnets(self, **kwargs): """ - Get a list of interfaces. + Get a list of subnets. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2662,23 +879,21 @@ def get_network_interfaces(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_network_interfaces(callback=callback_function) + >>> thread = api.get_network_subnets(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str sort: The field that will be used for sorting. - :param str network: Show interfaces associated with external and/or internal networks. Default is 'external' - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str lnns: Get a list of interfaces for the specified lnn. - :param str alloc_method: Filter addresses and owners by pool address allocation method. + :param str groupnet: If specified, only subnets for this groupnet will be returned. :param int limit: Return no more than this many results at once (see resume). :param str dir: The direction of the sort. - :return: GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfaces + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: NetworkSubnets If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'network', 'resume', 'lnns', 'alloc_method', 'limit', 'dir'] + all_params = ['sort', 'groupnet', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -2686,37 +901,34 @@ def get_network_interfaces(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_network_interfaces" % key + " to method get_network_subnets" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/network/interfaces'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_network_subnets`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/network/subnets'.replace('{format}', 'json') path_params = {} query_params = {} if 'sort' in params: query_params['sort'] = params['sort'] - if 'network' in params: - query_params['network'] = params['network'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'lnns' in params: - query_params['lnns'] = params['lnns'] - if 'alloc_method' in params: - query_params['alloc_method'] = params['alloc_method'] + if 'groupnet' in params: + query_params['groupnet'] = params['groupnet'] if 'limit' in params: query_params['limit'] = params['limit'] if 'dir' in params: query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2733,22 +945,22 @@ def get_network_interfaces(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfaces', + files=local_var_files, + response_type='NetworkSubnets', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_network_pools(self, **kwargs): + def list_network_groupnets(self, **kwargs): """ - Get a list of flexnet pools. + Get a list of groupnets. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2756,24 +968,20 @@ def get_network_pools(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_network_pools(callback=callback_function) + >>> thread = api.list_network_groupnets(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str sort: The field that will be used for sorting. - :param str subnet: If specified, only pools for this subnet will be returned. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str access_zone: If specified, only pools with this zone name will be returned. - :param str alloc_method: If specified, only pools with this allocation type will be returned. :param int limit: Return no more than this many results at once (see resume). - :param str groupnet: If specified, only pools for this groupnet will be returned. :param str dir: The direction of the sort. - :return: NetworkPools + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: NetworkGroupnetsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'subnet', 'resume', 'access_zone', 'alloc_method', 'limit', 'groupnet', 'dir'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -2781,39 +989,32 @@ def get_network_pools(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_network_pools" % key + " to method list_network_groupnets" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/network/pools'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_network_groupnets`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/network/groupnets'.replace('{format}', 'json') path_params = {} query_params = {} if 'sort' in params: query_params['sort'] = params['sort'] - if 'subnet' in params: - query_params['subnet'] = params['subnet'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'access_zone' in params: - query_params['access_zone'] = params['access_zone'] - if 'alloc_method' in params: - query_params['alloc_method'] = params['alloc_method'] if 'limit' in params: query_params['limit'] = params['limit'] - if 'groupnet' in params: - query_params['groupnet'] = params['groupnet'] if 'dir' in params: query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2830,22 +1031,22 @@ def get_network_pools(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NetworkPools', + files=local_var_files, + response_type='NetworkGroupnetsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_network_rules(self, **kwargs): + def update_network_dnscache(self, network_dnscache, **kwargs): """ - Get a list of network rules. + Modify network dns cache settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2853,23 +1054,17 @@ def get_network_rules(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_network_rules(callback=callback_function) + >>> thread = api.update_network_dnscache(network_dnscache, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str subnet: Name of the subnet to list rules from. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str groupnet: Name of the groupnet to list rules from. - :param str pool: Name of the pool to list rules from. - :return: NetworkRules + :param NetworkDnscacheSetting network_dnscache: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'subnet', 'resume', 'limit', 'dir', 'groupnet', 'pool'] + all_params = ['network_dnscache'] all_params.append('callback') params = locals() @@ -2877,39 +1072,29 @@ def get_network_rules(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_network_rules" % key + " to method update_network_dnscache" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'network_dnscache' is set + if ('network_dnscache' not in params) or (params['network_dnscache'] is None): + raise ValueError("Missing the required parameter `network_dnscache` when calling `update_network_dnscache`") - resource_path = '/platform/3/network/rules'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/network/dnscache'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'subnet' in params: - query_params['subnet'] = params['subnet'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'groupnet' in params: - query_params['groupnet'] = params['groupnet'] - if 'pool' in params: - query_params['pool'] = params['pool'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'network_dnscache' in params: + body_params = params['network_dnscache'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2924,22 +1109,22 @@ def get_network_rules(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NetworkRules', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_network_sc_rebalance_all_item(self, network_sc_rebalance_all_item, **kwargs): + def update_network_external(self, network_external, **kwargs): """ - Rebalance IP addresses in all pools. + Modify external network settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2947,17 +1132,17 @@ def create_network_sc_rebalance_all_item(self, network_sc_rebalance_all_item, ** >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_network_sc_rebalance_all_item(network_sc_rebalance_all_item, callback=callback_function) + >>> thread = api.update_network_external(network_external, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty network_sc_rebalance_all_item: (required) - :return: Empty + :param NetworkExternalExtended network_external: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['network_sc_rebalance_all_item'] + all_params = ['network_external'] all_params.append('callback') params = locals() @@ -2965,30 +1150,29 @@ def create_network_sc_rebalance_all_item(self, network_sc_rebalance_all_item, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_network_sc_rebalance_all_item" % key + " to method update_network_external" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'network_sc_rebalance_all_item' is set - if ('network_sc_rebalance_all_item' not in params) or (params['network_sc_rebalance_all_item'] is None): - raise ValueError("Missing the required parameter `network_sc_rebalance_all_item` when calling `create_network_sc_rebalance_all_item`") + # verify the required parameter 'network_external' is set + if ('network_external' not in params) or (params['network_external'] is None): + raise ValueError("Missing the required parameter `network_external` when calling `update_network_external`") - resource_path = '/platform/3/network/sc-rebalance-all'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/network/external'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'network_sc_rebalance_all_item' in params: - body_params = params['network_sc_rebalance_all_item'] + if 'network_external' in params: + body_params = params['network_external'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3003,22 +1187,22 @@ def create_network_sc_rebalance_all_item(self, network_sc_rebalance_all_item, ** # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_network_subnets(self, **kwargs): + def update_network_groupnet(self, network_groupnet, network_groupnet_id, **kwargs): """ - Get a list of subnets. + Modify a network groupnet. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3026,21 +1210,18 @@ def get_network_subnets(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_network_subnets(callback=callback_function) + >>> thread = api.update_network_groupnet(network_groupnet, network_groupnet_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str groupnet: If specified, only subnets for this groupnet will be returned. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: NetworkSubnets + :param NetworkGroupnet network_groupnet: (required) + :param str network_groupnet_id: Modify a network groupnet. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'groupnet', 'limit', 'dir', 'resume'] + all_params = ['network_groupnet', 'network_groupnet_id'] all_params.append('callback') params = locals() @@ -3048,35 +1229,34 @@ def get_network_subnets(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_network_subnets" % key + " to method update_network_groupnet" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'network_groupnet' is set + if ('network_groupnet' not in params) or (params['network_groupnet'] is None): + raise ValueError("Missing the required parameter `network_groupnet` when calling `update_network_groupnet`") + # verify the required parameter 'network_groupnet_id' is set + if ('network_groupnet_id' not in params) or (params['network_groupnet_id'] is None): + raise ValueError("Missing the required parameter `network_groupnet_id` when calling `update_network_groupnet`") - resource_path = '/platform/3/network/subnets'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/network/groupnets/{NetworkGroupnetId}'.replace('{format}', 'json') path_params = {} + if 'network_groupnet_id' in params: + path_params['NetworkGroupnetId'] = params['network_groupnet_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'groupnet' in params: - query_params['groupnet'] = params['groupnet'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'network_groupnet' in params: + body_params = params['network_groupnet'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3091,14 +1271,14 @@ def get_network_subnets(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NetworkSubnets', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response diff --git a/isi_sdk/apis/network_groupnets_api.py b/isi_sdk/apis/network_groupnets_api.py new file mode 100644 index 000000000..5447c21e6 --- /dev/null +++ b/isi_sdk/apis/network_groupnets_api.py @@ -0,0 +1,963 @@ +# coding: utf-8 + +""" +NetworkGroupnetsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class NetworkGroupnetsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_groupnet_subnet(self, groupnet_subnet, groupnet, **kwargs): + """ + + Create a new subnet. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_groupnet_subnet(groupnet_subnet, groupnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param GroupnetSubnetCreateParams groupnet_subnet: (required) + :param str groupnet: (required) + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['groupnet_subnet', 'groupnet'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_groupnet_subnet" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'groupnet_subnet' is set + if ('groupnet_subnet' not in params) or (params['groupnet_subnet'] is None): + raise ValueError("Missing the required parameter `groupnet_subnet` when calling `create_groupnet_subnet`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `create_groupnet_subnet`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'groupnet_subnet' in params: + body_params = params['groupnet_subnet'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_subnets_subnet_pool(self, subnets_subnet_pool, groupnet, subnet, **kwargs): + """ + + Create a new pool. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_subnets_subnet_pool(subnets_subnet_pool, groupnet, subnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SubnetsSubnetPool subnets_subnet_pool: (required) + :param str groupnet: (required) + :param str subnet: (required) + :param bool force: force creating this pool even if it causes an MTU conflict. + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['subnets_subnet_pool', 'groupnet', 'subnet', 'force'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_subnets_subnet_pool" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'subnets_subnet_pool' is set + if ('subnets_subnet_pool' not in params) or (params['subnets_subnet_pool'] is None): + raise ValueError("Missing the required parameter `subnets_subnet_pool` when calling `create_subnets_subnet_pool`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `create_subnets_subnet_pool`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `create_subnets_subnet_pool`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + + query_params = {} + if 'force' in params: + query_params['force'] = params['force'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'subnets_subnet_pool' in params: + body_params = params['subnets_subnet_pool'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_groupnet_subnet(self, groupnet_subnet_id, groupnet, **kwargs): + """ + + Delete a network subnet.. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_groupnet_subnet(groupnet_subnet_id, groupnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str groupnet_subnet_id: Delete a network subnet.. (required) + :param str groupnet: (required) + :param bool force: force deleting this subnet even if pools in other subnets rely on this subnet's SC VIP. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['groupnet_subnet_id', 'groupnet', 'force'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_groupnet_subnet" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'groupnet_subnet_id' is set + if ('groupnet_subnet_id' not in params) or (params['groupnet_subnet_id'] is None): + raise ValueError("Missing the required parameter `groupnet_subnet_id` when calling `delete_groupnet_subnet`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `delete_groupnet_subnet`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId}'.replace('{format}', 'json') + path_params = {} + if 'groupnet_subnet_id' in params: + path_params['GroupnetSubnetId'] = params['groupnet_subnet_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + + query_params = {} + if 'force' in params: + query_params['force'] = params['force'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_subnets_subnet_pool(self, subnets_subnet_pool_id, groupnet, subnet, **kwargs): + """ + + Delete a network pool. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_subnets_subnet_pool(subnets_subnet_pool_id, groupnet, subnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str subnets_subnet_pool_id: Delete a network pool. (required) + :param str groupnet: (required) + :param str subnet: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['subnets_subnet_pool_id', 'groupnet', 'subnet'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_subnets_subnet_pool" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'subnets_subnet_pool_id' is set + if ('subnets_subnet_pool_id' not in params) or (params['subnets_subnet_pool_id'] is None): + raise ValueError("Missing the required parameter `subnets_subnet_pool_id` when calling `delete_subnets_subnet_pool`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `delete_subnets_subnet_pool`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `delete_subnets_subnet_pool`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId}'.replace('{format}', 'json') + path_params = {} + if 'subnets_subnet_pool_id' in params: + path_params['SubnetsSubnetPoolId'] = params['subnets_subnet_pool_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_groupnet_subnet(self, groupnet_subnet_id, groupnet, **kwargs): + """ + + View a network subnet. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_groupnet_subnet(groupnet_subnet_id, groupnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str groupnet_subnet_id: View a network subnet. (required) + :param str groupnet: (required) + :param bool force: force modifying this subnet even if it causes an MTU conflict. + :return: GroupnetSubnets + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['groupnet_subnet_id', 'groupnet', 'force'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_groupnet_subnet" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'groupnet_subnet_id' is set + if ('groupnet_subnet_id' not in params) or (params['groupnet_subnet_id'] is None): + raise ValueError("Missing the required parameter `groupnet_subnet_id` when calling `get_groupnet_subnet`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `get_groupnet_subnet`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId}'.replace('{format}', 'json') + path_params = {} + if 'groupnet_subnet_id' in params: + path_params['GroupnetSubnetId'] = params['groupnet_subnet_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + + query_params = {} + if 'force' in params: + query_params['force'] = params['force'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupnetSubnets', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_subnets_subnet_pool(self, subnets_subnet_pool_id, groupnet, subnet, **kwargs): + """ + + View a single network pool. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_subnets_subnet_pool(subnets_subnet_pool_id, groupnet, subnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str subnets_subnet_pool_id: View a single network pool. (required) + :param str groupnet: (required) + :param str subnet: (required) + :return: SubnetsSubnetPools + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['subnets_subnet_pool_id', 'groupnet', 'subnet'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_subnets_subnet_pool" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'subnets_subnet_pool_id' is set + if ('subnets_subnet_pool_id' not in params) or (params['subnets_subnet_pool_id'] is None): + raise ValueError("Missing the required parameter `subnets_subnet_pool_id` when calling `get_subnets_subnet_pool`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `get_subnets_subnet_pool`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `get_subnets_subnet_pool`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId}'.replace('{format}', 'json') + path_params = {} + if 'subnets_subnet_pool_id' in params: + path_params['SubnetsSubnetPoolId'] = params['subnets_subnet_pool_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SubnetsSubnetPools', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_groupnet_subnets(self, groupnet, **kwargs): + """ + + Get a list of subnets. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_groupnet_subnets(groupnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str groupnet: (required) + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: GroupnetSubnetsExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['groupnet', 'sort', 'limit', 'dir', 'resume'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_groupnet_subnets" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `list_groupnet_subnets`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_groupnet_subnets`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupnetSubnetsExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_subnets_subnet_pools(self, groupnet, subnet, **kwargs): + """ + + Get a list of network pools. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_subnets_subnet_pools(groupnet, subnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str groupnet: (required) + :param str subnet: (required) + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param str access_zone: If specified, only pools with this zone name will be returned. + :param str alloc_method: If specified, only pools with this allocation type will be returned. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: SubnetsSubnetPoolsExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['groupnet', 'subnet', 'sort', 'resume', 'access_zone', 'alloc_method', 'limit', 'dir'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_subnets_subnet_pools" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `list_subnets_subnet_pools`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `list_subnets_subnet_pools`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_subnets_subnet_pools`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'access_zone' in params: + query_params['access_zone'] = params['access_zone'] + if 'alloc_method' in params: + query_params['alloc_method'] = params['alloc_method'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SubnetsSubnetPoolsExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_groupnet_subnet(self, groupnet_subnet, groupnet_subnet_id, groupnet, **kwargs): + """ + + Modify a network subnet. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_groupnet_subnet(groupnet_subnet, groupnet_subnet_id, groupnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param GroupnetSubnet groupnet_subnet: (required) + :param str groupnet_subnet_id: Modify a network subnet. (required) + :param str groupnet: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['groupnet_subnet', 'groupnet_subnet_id', 'groupnet'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_groupnet_subnet" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'groupnet_subnet' is set + if ('groupnet_subnet' not in params) or (params['groupnet_subnet'] is None): + raise ValueError("Missing the required parameter `groupnet_subnet` when calling `update_groupnet_subnet`") + # verify the required parameter 'groupnet_subnet_id' is set + if ('groupnet_subnet_id' not in params) or (params['groupnet_subnet_id'] is None): + raise ValueError("Missing the required parameter `groupnet_subnet_id` when calling `update_groupnet_subnet`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `update_groupnet_subnet`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{GroupnetSubnetId}'.replace('{format}', 'json') + path_params = {} + if 'groupnet_subnet_id' in params: + path_params['GroupnetSubnetId'] = params['groupnet_subnet_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'groupnet_subnet' in params: + body_params = params['groupnet_subnet'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_subnets_subnet_pool(self, subnets_subnet_pool, subnets_subnet_pool_id, groupnet, subnet, **kwargs): + """ + + Modify a network pool. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_subnets_subnet_pool(subnets_subnet_pool, subnets_subnet_pool_id, groupnet, subnet, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SubnetsSubnetPool subnets_subnet_pool: (required) + :param str subnets_subnet_pool_id: Modify a network pool. (required) + :param str groupnet: (required) + :param str subnet: (required) + :param bool force: force creating this pool even if it causes an MTU conflict. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['subnets_subnet_pool', 'subnets_subnet_pool_id', 'groupnet', 'subnet', 'force'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_subnets_subnet_pool" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'subnets_subnet_pool' is set + if ('subnets_subnet_pool' not in params) or (params['subnets_subnet_pool'] is None): + raise ValueError("Missing the required parameter `subnets_subnet_pool` when calling `update_subnets_subnet_pool`") + # verify the required parameter 'subnets_subnet_pool_id' is set + if ('subnets_subnet_pool_id' not in params) or (params['subnets_subnet_pool_id'] is None): + raise ValueError("Missing the required parameter `subnets_subnet_pool_id` when calling `update_subnets_subnet_pool`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `update_subnets_subnet_pool`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `update_subnets_subnet_pool`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{SubnetsSubnetPoolId}'.replace('{format}', 'json') + path_params = {} + if 'subnets_subnet_pool_id' in params: + path_params['SubnetsSubnetPoolId'] = params['subnets_subnet_pool_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + + query_params = {} + if 'force' in params: + query_params['force'] = params['force'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'subnets_subnet_pool' in params: + body_params = params['subnets_subnet_pool'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/network_groupnets_subnets_api.py b/isi_sdk/apis/network_groupnets_subnets_api.py new file mode 100644 index 000000000..01a536f99 --- /dev/null +++ b/isi_sdk/apis/network_groupnets_subnets_api.py @@ -0,0 +1,936 @@ +# coding: utf-8 + +""" +NetworkGroupnetsSubnetsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class NetworkGroupnetsSubnetsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_pools_pool_rebalance_ip(self, pools_pool_rebalance_ip, groupnet, subnet, pool, **kwargs): + """ + + Rebalance IP addresses in specified pool. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pools_pool_rebalance_ip(pools_pool_rebalance_ip, groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty pools_pool_rebalance_ip: (required) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pools_pool_rebalance_ip', 'groupnet', 'subnet', 'pool'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pools_pool_rebalance_ip" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'pools_pool_rebalance_ip' is set + if ('pools_pool_rebalance_ip' not in params) or (params['pools_pool_rebalance_ip'] is None): + raise ValueError("Missing the required parameter `pools_pool_rebalance_ip` when calling `create_pools_pool_rebalance_ip`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `create_pools_pool_rebalance_ip`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `create_pools_pool_rebalance_ip`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `create_pools_pool_rebalance_ip`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rebalance-ips'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'pools_pool_rebalance_ip' in params: + body_params = params['pools_pool_rebalance_ip'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_pools_pool_rule(self, pools_pool_rule, groupnet, subnet, pool, **kwargs): + """ + + Create a new rule. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pools_pool_rule(pools_pool_rule, groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param PoolsPoolRule pools_pool_rule: (required) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pools_pool_rule', 'groupnet', 'subnet', 'pool'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pools_pool_rule" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'pools_pool_rule' is set + if ('pools_pool_rule' not in params) or (params['pools_pool_rule'] is None): + raise ValueError("Missing the required parameter `pools_pool_rule` when calling `create_pools_pool_rule`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `create_pools_pool_rule`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `create_pools_pool_rule`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `create_pools_pool_rule`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'pools_pool_rule' in params: + body_params = params['pools_pool_rule'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_pools_pool_sc_resume_node(self, pools_pool_sc_resume_node, groupnet, subnet, pool, **kwargs): + """ + + Resume suspended nodes. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pools_pool_sc_resume_node(pools_pool_sc_resume_node, groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param PoolsPoolScResumeNode pools_pool_sc_resume_node: (required) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pools_pool_sc_resume_node', 'groupnet', 'subnet', 'pool'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pools_pool_sc_resume_node" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'pools_pool_sc_resume_node' is set + if ('pools_pool_sc_resume_node' not in params) or (params['pools_pool_sc_resume_node'] is None): + raise ValueError("Missing the required parameter `pools_pool_sc_resume_node` when calling `create_pools_pool_sc_resume_node`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `create_pools_pool_sc_resume_node`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `create_pools_pool_sc_resume_node`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `create_pools_pool_sc_resume_node`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/sc-resume-nodes'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'pools_pool_sc_resume_node' in params: + body_params = params['pools_pool_sc_resume_node'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def create_pools_pool_sc_suspend_node(self, pools_pool_sc_suspend_node, groupnet, subnet, pool, **kwargs): + """ + + Suspend nodes. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_pools_pool_sc_suspend_node(pools_pool_sc_suspend_node, groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param PoolsPoolScResumeNode pools_pool_sc_suspend_node: (required) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :return: Empty + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pools_pool_sc_suspend_node', 'groupnet', 'subnet', 'pool'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_pools_pool_sc_suspend_node" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'pools_pool_sc_suspend_node' is set + if ('pools_pool_sc_suspend_node' not in params) or (params['pools_pool_sc_suspend_node'] is None): + raise ValueError("Missing the required parameter `pools_pool_sc_suspend_node` when calling `create_pools_pool_sc_suspend_node`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `create_pools_pool_sc_suspend_node`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `create_pools_pool_sc_suspend_node`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `create_pools_pool_sc_suspend_node`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/sc-suspend-nodes'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'pools_pool_sc_suspend_node' in params: + body_params = params['pools_pool_sc_suspend_node'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Empty', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_pools_pool_rule(self, pools_pool_rule_id, groupnet, subnet, pool, **kwargs): + """ + + Delete a network rule. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_pools_pool_rule(pools_pool_rule_id, groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pools_pool_rule_id: Delete a network rule. (required) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pools_pool_rule_id', 'groupnet', 'subnet', 'pool'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_pools_pool_rule" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'pools_pool_rule_id' is set + if ('pools_pool_rule_id' not in params) or (params['pools_pool_rule_id'] is None): + raise ValueError("Missing the required parameter `pools_pool_rule_id` when calling `delete_pools_pool_rule`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `delete_pools_pool_rule`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `delete_pools_pool_rule`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `delete_pools_pool_rule`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId}'.replace('{format}', 'json') + path_params = {} + if 'pools_pool_rule_id' in params: + path_params['PoolsPoolRuleId'] = params['pools_pool_rule_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_pools_pool_interfaces(self, groupnet, subnet, pool, **kwargs): + """ + + Get a list of interfaces. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_pools_pool_interfaces(groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str lnns: Get a list of interfaces for the specified lnn. + :return: PoolsPoolInterfaces + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['groupnet', 'subnet', 'pool', 'sort', 'resume', 'limit', 'dir', 'lnns'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pools_pool_interfaces" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `get_pools_pool_interfaces`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `get_pools_pool_interfaces`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `get_pools_pool_interfaces`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_pools_pool_interfaces`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/interfaces'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'lnns' in params: + query_params['lnns'] = params['lnns'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PoolsPoolInterfaces', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_pools_pool_rule(self, pools_pool_rule_id, groupnet, subnet, pool, **kwargs): + """ + + View a single network rule. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_pools_pool_rule(pools_pool_rule_id, groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str pools_pool_rule_id: View a single network rule. (required) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :return: PoolsPoolRules + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pools_pool_rule_id', 'groupnet', 'subnet', 'pool'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_pools_pool_rule" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'pools_pool_rule_id' is set + if ('pools_pool_rule_id' not in params) or (params['pools_pool_rule_id'] is None): + raise ValueError("Missing the required parameter `pools_pool_rule_id` when calling `get_pools_pool_rule`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `get_pools_pool_rule`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `get_pools_pool_rule`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `get_pools_pool_rule`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId}'.replace('{format}', 'json') + path_params = {} + if 'pools_pool_rule_id' in params: + path_params['PoolsPoolRuleId'] = params['pools_pool_rule_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PoolsPoolRules', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_pools_pool_rules(self, groupnet, subnet, pool, **kwargs): + """ + + Get a list of network rules. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_pools_pool_rules(groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: PoolsPoolRulesExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['groupnet', 'subnet', 'pool', 'sort', 'limit', 'dir', 'resume'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_pools_pool_rules" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `list_pools_pool_rules`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `list_pools_pool_rules`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `list_pools_pool_rules`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_pools_pool_rules`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules'.replace('{format}', 'json') + path_params = {} + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PoolsPoolRulesExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_pools_pool_rule(self, pools_pool_rule, pools_pool_rule_id, groupnet, subnet, pool, **kwargs): + """ + + Modify a network rule. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_pools_pool_rule(pools_pool_rule, pools_pool_rule_id, groupnet, subnet, pool, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param PoolsPoolRule pools_pool_rule: (required) + :param str pools_pool_rule_id: Modify a network rule. (required) + :param str groupnet: (required) + :param str subnet: (required) + :param str pool: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['pools_pool_rule', 'pools_pool_rule_id', 'groupnet', 'subnet', 'pool'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_pools_pool_rule" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'pools_pool_rule' is set + if ('pools_pool_rule' not in params) or (params['pools_pool_rule'] is None): + raise ValueError("Missing the required parameter `pools_pool_rule` when calling `update_pools_pool_rule`") + # verify the required parameter 'pools_pool_rule_id' is set + if ('pools_pool_rule_id' not in params) or (params['pools_pool_rule_id'] is None): + raise ValueError("Missing the required parameter `pools_pool_rule_id` when calling `update_pools_pool_rule`") + # verify the required parameter 'groupnet' is set + if ('groupnet' not in params) or (params['groupnet'] is None): + raise ValueError("Missing the required parameter `groupnet` when calling `update_pools_pool_rule`") + # verify the required parameter 'subnet' is set + if ('subnet' not in params) or (params['subnet'] is None): + raise ValueError("Missing the required parameter `subnet` when calling `update_pools_pool_rule`") + # verify the required parameter 'pool' is set + if ('pool' not in params) or (params['pool'] is None): + raise ValueError("Missing the required parameter `pool` when calling `update_pools_pool_rule`") + + + resource_path = '/platform/3/network/groupnets/{Groupnet}/subnets/{Subnet}/pools/{Pool}/rules/{PoolsPoolRuleId}'.replace('{format}', 'json') + path_params = {} + if 'pools_pool_rule_id' in params: + path_params['PoolsPoolRuleId'] = params['pools_pool_rule_id'] + if 'groupnet' in params: + path_params['Groupnet'] = params['groupnet'] + if 'subnet' in params: + path_params['Subnet'] = params['subnet'] + if 'pool' in params: + path_params['Pool'] = params['pool'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'pools_pool_rule' in params: + body_params = params['pools_pool_rule'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/protocols_api.py b/isi_sdk/apis/protocols_api.py index 2e2df561c..4ec5c2b08 100644 --- a/isi_sdk/apis/protocols_api.py +++ b/isi_sdk/apis/protocols_api.py @@ -2,7 +2,7 @@ """ ProtocolsApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_hdfs_proxyusers(self, **kwargs): + def create_hdfs_proxyuser(self, hdfs_proxyuser, **kwargs): """ - List all proxyusers. + Create a new HDFS proxyuser. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def list_hdfs_proxyusers(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_hdfs_proxyusers(callback=callback_function) + >>> thread = api.create_hdfs_proxyuser(hdfs_proxyuser, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: HdfsProxyusers + :param HdfsProxyuser hdfs_proxyuser: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['hdfs_proxyuser'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def list_hdfs_proxyusers(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_hdfs_proxyusers" % key + " to method create_hdfs_proxyuser" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'hdfs_proxyuser' is set + if ('hdfs_proxyuser' not in params) or (params['hdfs_proxyuser'] is None): + raise ValueError("Missing the required parameter `hdfs_proxyuser` when calling `create_hdfs_proxyuser`") + resource_path = '/platform/1/protocols/hdfs/proxyusers'.replace('{format}', 'json') - method = 'GET' - path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'hdfs_proxyuser' in params: + body_params = params['hdfs_proxyuser'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def list_hdfs_proxyusers(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HdfsProxyusers', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_hdfs_proxyuser(self, hdfs_proxyuser, **kwargs): + def create_hdfs_rack(self, hdfs_rack, **kwargs): """ - Create a new HDFS proxyuser. + Create a new HDFS rack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,17 @@ def create_hdfs_proxyuser(self, hdfs_proxyuser, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_hdfs_proxyuser(hdfs_proxyuser, callback=callback_function) + >>> thread = api.create_hdfs_rack(hdfs_rack, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param HdfsProxyuser hdfs_proxyuser: (required) + :param HdfsRack hdfs_rack: (required) :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_proxyuser'] + all_params = ['hdfs_rack'] all_params.append('callback') params = locals() @@ -147,30 +153,29 @@ def create_hdfs_proxyuser(self, hdfs_proxyuser, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_hdfs_proxyuser" % key + " to method create_hdfs_rack" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_proxyuser' is set - if ('hdfs_proxyuser' not in params) or (params['hdfs_proxyuser'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyuser` when calling `create_hdfs_proxyuser`") + # verify the required parameter 'hdfs_rack' is set + if ('hdfs_rack' not in params) or (params['hdfs_rack'] is None): + raise ValueError("Missing the required parameter `hdfs_rack` when calling `create_hdfs_rack`") - resource_path = '/platform/1/protocols/hdfs/proxyusers'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/protocols/hdfs/racks'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hdfs_proxyuser' in params: - body_params = params['hdfs_proxyuser'] + if 'hdfs_rack' in params: + body_params = params['hdfs_rack'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,22 +190,22 @@ def create_hdfs_proxyuser(self, hdfs_proxyuser, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): + def create_ndmp_user(self, ndmp_user, **kwargs): """ - List all proxyusers. + Created a new user. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -208,17 +213,17 @@ def get_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_hdfs_proxyuser(hdfs_proxyuser_id, callback=callback_function) + >>> thread = api.create_ndmp_user(ndmp_user, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str hdfs_proxyuser_id: List all proxyusers. (required) - :return: HdfsProxyusers + :param NdmpUserCreateParams ndmp_user: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_proxyuser_id'] + all_params = ['ndmp_user'] all_params.append('callback') params = locals() @@ -226,30 +231,29 @@ def get_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_hdfs_proxyuser" % key + " to method create_ndmp_user" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_proxyuser_id' is set - if ('hdfs_proxyuser_id' not in params) or (params['hdfs_proxyuser_id'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyuser_id` when calling `get_hdfs_proxyuser`") + # verify the required parameter 'ndmp_user' is set + if ('ndmp_user' not in params) or (params['ndmp_user'] is None): + raise ValueError("Missing the required parameter `ndmp_user` when calling `create_ndmp_user`") - resource_path = '/platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ndmp/users'.replace('{format}', 'json') path_params = {} - if 'hdfs_proxyuser_id' in params: - path_params['HdfsProxyuserId'] = params['hdfs_proxyuser_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'ndmp_user' in params: + body_params = params['ndmp_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -264,22 +268,22 @@ def get_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HdfsProxyusers', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_hdfs_proxyuser(self, hdfs_proxyuser, hdfs_proxyuser_id, **kwargs): + def create_nfs_aliase(self, nfs_aliase, **kwargs): """ - Create a new HDFS proxyuser. + Create a new NFS alias. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -287,18 +291,18 @@ def update_hdfs_proxyuser(self, hdfs_proxyuser, hdfs_proxyuser_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_hdfs_proxyuser(hdfs_proxyuser, hdfs_proxyuser_id, callback=callback_function) + >>> thread = api.create_nfs_aliase(nfs_aliase, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty hdfs_proxyuser: (required) - :param str hdfs_proxyuser_id: Create a new HDFS proxyuser. (required) - :return: None + :param NfsAliase nfs_aliase: (required) + :param str zone: Access zone + :return: CreateNfsAliaseResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_proxyuser', 'hdfs_proxyuser_id'] + all_params = ['nfs_aliase', 'zone'] all_params.append('callback') params = locals() @@ -306,35 +310,31 @@ def update_hdfs_proxyuser(self, hdfs_proxyuser, hdfs_proxyuser_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_hdfs_proxyuser" % key + " to method create_nfs_aliase" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_proxyuser' is set - if ('hdfs_proxyuser' not in params) or (params['hdfs_proxyuser'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyuser` when calling `update_hdfs_proxyuser`") - # verify the required parameter 'hdfs_proxyuser_id' is set - if ('hdfs_proxyuser_id' not in params) or (params['hdfs_proxyuser_id'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyuser_id` when calling `update_hdfs_proxyuser`") + # verify the required parameter 'nfs_aliase' is set + if ('nfs_aliase' not in params) or (params['nfs_aliase'] is None): + raise ValueError("Missing the required parameter `nfs_aliase` when calling `create_nfs_aliase`") - resource_path = '/platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/2/protocols/nfs/aliases'.replace('{format}', 'json') path_params = {} - if 'hdfs_proxyuser_id' in params: - path_params['HdfsProxyuserId'] = params['hdfs_proxyuser_id'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hdfs_proxyuser' in params: - body_params = params['hdfs_proxyuser'] + if 'nfs_aliase' in params: + body_params = params['nfs_aliase'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -349,22 +349,22 @@ def update_hdfs_proxyuser(self, hdfs_proxyuser, hdfs_proxyuser_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateNfsAliaseResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): + def create_nfs_export(self, nfs_export, **kwargs): """ - Delete a a HDFS proxyuser. + Create a new NFS export. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -372,17 +372,19 @@ def delete_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_hdfs_proxyuser(hdfs_proxyuser_id, callback=callback_function) + >>> thread = api.create_nfs_export(nfs_export, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str hdfs_proxyuser_id: Delete a a HDFS proxyuser. (required) - :return: None + :param NfsExport nfs_export: (required) + :param bool force: If true, the export will be created even if it conflicts with another export. + :param str zone: Access zone + :return: CreateQuotaReportResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_proxyuser_id'] + all_params = ['nfs_export', 'force', 'zone'] all_params.append('callback') params = locals() @@ -390,30 +392,33 @@ def delete_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_hdfs_proxyuser" % key + " to method create_nfs_export" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_proxyuser_id' is set - if ('hdfs_proxyuser_id' not in params) or (params['hdfs_proxyuser_id'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyuser_id` when calling `delete_hdfs_proxyuser`") + # verify the required parameter 'nfs_export' is set + if ('nfs_export' not in params) or (params['nfs_export'] is None): + raise ValueError("Missing the required parameter `nfs_export` when calling `create_nfs_export`") - resource_path = '/platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/2/protocols/nfs/exports'.replace('{format}', 'json') path_params = {} - if 'hdfs_proxyuser_id' in params: - path_params['HdfsProxyuserId'] = params['hdfs_proxyuser_id'] query_params = {} + if 'force' in params: + query_params['force'] = params['force'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'nfs_export' in params: + body_params = params['nfs_export'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -428,22 +433,22 @@ def delete_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateQuotaReportResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_hdfs_proxyusers_name_members(self, name, **kwargs): + def create_nfs_netgroup_check_item(self, nfs_netgroup_check_item, **kwargs): """ - List all the members of the HDFS proxyuser. + Update the NFS netgroups in the cache. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -451,17 +456,18 @@ def list_hdfs_proxyusers_name_members(self, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_hdfs_proxyusers_name_members(name, callback=callback_function) + >>> thread = api.create_nfs_netgroup_check_item(nfs_netgroup_check_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: (required) - :return: GroupsGroupMembers + :param Empty nfs_netgroup_check_item: (required) + :param str host: IP address of node to update. If unspecified, the local nodes cache is updated. + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['name'] + all_params = ['nfs_netgroup_check_item', 'host'] all_params.append('callback') params = locals() @@ -469,30 +475,31 @@ def list_hdfs_proxyusers_name_members(self, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_hdfs_proxyusers_name_members" % key + " to method create_nfs_netgroup_check_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `list_hdfs_proxyusers_name_members`") + # verify the required parameter 'nfs_netgroup_check_item' is set + if ('nfs_netgroup_check_item' not in params) or (params['nfs_netgroup_check_item'] is None): + raise ValueError("Missing the required parameter `nfs_netgroup_check_item` when calling `create_nfs_netgroup_check_item`") - resource_path = '/platform/1/protocols/hdfs/proxyusers/{Name}/members'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/nfs/netgroup/check'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['Name'] = params['name'] query_params = {} + if 'host' in params: + query_params['host'] = params['host'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'nfs_netgroup_check_item' in params: + body_params = params['nfs_netgroup_check_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -507,22 +514,22 @@ def list_hdfs_proxyusers_name_members(self, name, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='GroupsGroupMembers', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member, name, **kwargs): + def create_nfs_netgroup_flush_item(self, nfs_netgroup_flush_item, **kwargs): """ - Add a member to the HDFS proxyuser. + Flush the NFS netgroups in the cache. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -530,18 +537,18 @@ def create_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member, name, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_hdfs_proxyusers_name_member(hdfs_proxyusers_name_member, name, callback=callback_function) + >>> thread = api.create_nfs_netgroup_flush_item(nfs_netgroup_flush_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param GroupsGroupMember hdfs_proxyusers_name_member: (required) - :param str name: (required) - :return: CreateResponse + :param Empty nfs_netgroup_flush_item: (required) + :param str host: IP address of node to flush. If unspecified, all nodes on the cluster are flushed. + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_proxyusers_name_member', 'name'] + all_params = ['nfs_netgroup_flush_item', 'host'] all_params.append('callback') params = locals() @@ -549,35 +556,31 @@ def create_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member, name, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_hdfs_proxyusers_name_member" % key + " to method create_nfs_netgroup_flush_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_proxyusers_name_member' is set - if ('hdfs_proxyusers_name_member' not in params) or (params['hdfs_proxyusers_name_member'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyusers_name_member` when calling `create_hdfs_proxyusers_name_member`") - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_hdfs_proxyusers_name_member`") + # verify the required parameter 'nfs_netgroup_flush_item' is set + if ('nfs_netgroup_flush_item' not in params) or (params['nfs_netgroup_flush_item'] is None): + raise ValueError("Missing the required parameter `nfs_netgroup_flush_item` when calling `create_nfs_netgroup_flush_item`") - resource_path = '/platform/1/protocols/hdfs/proxyusers/{Name}/members'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/protocols/nfs/netgroup/flush'.replace('{format}', 'json') path_params = {} - if 'name' in params: - path_params['Name'] = params['name'] query_params = {} + if 'host' in params: + query_params['host'] = params['host'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hdfs_proxyusers_name_member' in params: - body_params = params['hdfs_proxyusers_name_member'] + if 'nfs_netgroup_flush_item' in params: + body_params = params['nfs_netgroup_flush_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -592,22 +595,22 @@ def create_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member, name, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member, hdfs_proxyusers_name_member_id, name, **kwargs): + def create_nfs_nlm_sessions_check_item(self, nfs_nlm_sessions_check_item, **kwargs): """ - Create a new HDFS proxyuser. + Perform an active scan for lost NFSv3 locks. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -615,19 +618,19 @@ def update_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member, hdfs_p >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_hdfs_proxyusers_name_member(hdfs_proxyusers_name_member, hdfs_proxyusers_name_member_id, name, callback=callback_function) + >>> thread = api.create_nfs_nlm_sessions_check_item(nfs_nlm_sessions_check_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty hdfs_proxyusers_name_member: (required) - :param str hdfs_proxyusers_name_member_id: Create a new HDFS proxyuser. (required) - :param str name: (required) - :return: None + :param Empty nfs_nlm_sessions_check_item: (required) + :param str ip: An IP address for which NSM has client records + :param str zone: Represents an extant auth zone + :return: CreateNfsNlmSessionsCheckItemResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_proxyusers_name_member', 'hdfs_proxyusers_name_member_id', 'name'] + all_params = ['nfs_nlm_sessions_check_item', 'ip', 'zone'] all_params.append('callback') params = locals() @@ -635,40 +638,33 @@ def update_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member, hdfs_p if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_hdfs_proxyusers_name_member" % key + " to method create_nfs_nlm_sessions_check_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_proxyusers_name_member' is set - if ('hdfs_proxyusers_name_member' not in params) or (params['hdfs_proxyusers_name_member'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyusers_name_member` when calling `update_hdfs_proxyusers_name_member`") - # verify the required parameter 'hdfs_proxyusers_name_member_id' is set - if ('hdfs_proxyusers_name_member_id' not in params) or (params['hdfs_proxyusers_name_member_id'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyusers_name_member_id` when calling `update_hdfs_proxyusers_name_member`") - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `update_hdfs_proxyusers_name_member`") + # verify the required parameter 'nfs_nlm_sessions_check_item' is set + if ('nfs_nlm_sessions_check_item' not in params) or (params['nfs_nlm_sessions_check_item'] is None): + raise ValueError("Missing the required parameter `nfs_nlm_sessions_check_item` when calling `create_nfs_nlm_sessions_check_item`") - resource_path = '/platform/1/protocols/hdfs/proxyusers/{Name}/members/{HdfsProxyusersNameMemberId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/nfs/nlm/sessions-check'.replace('{format}', 'json') path_params = {} - if 'hdfs_proxyusers_name_member_id' in params: - path_params['HdfsProxyusersNameMemberId'] = params['hdfs_proxyusers_name_member_id'] - if 'name' in params: - path_params['Name'] = params['name'] query_params = {} + if 'ip' in params: + query_params['ip'] = params['ip'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hdfs_proxyusers_name_member' in params: - body_params = params['hdfs_proxyusers_name_member'] + if 'nfs_nlm_sessions_check_item' in params: + body_params = params['nfs_nlm_sessions_check_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -683,22 +679,22 @@ def update_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member, hdfs_p # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateNfsNlmSessionsCheckItemResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member_id, name, **kwargs): + def create_nfs_reload_item(self, nfs_reload_item, **kwargs): """ - Remove a member from the HDFS proxyuser. + Reload default NFS export configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -706,18 +702,18 @@ def delete_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member_id, nam >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_hdfs_proxyusers_name_member(hdfs_proxyusers_name_member_id, name, callback=callback_function) + >>> thread = api.create_nfs_reload_item(nfs_reload_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str hdfs_proxyusers_name_member_id: Remove a member from the HDFS proxyuser. (required) - :param str name: (required) - :return: None + :param Empty nfs_reload_item: (required) + :param str zone: Access zone + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_proxyusers_name_member_id', 'name'] + all_params = ['nfs_reload_item', 'zone'] all_params.append('callback') params = locals() @@ -725,35 +721,31 @@ def delete_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member_id, nam if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_hdfs_proxyusers_name_member" % key + " to method create_nfs_reload_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_proxyusers_name_member_id' is set - if ('hdfs_proxyusers_name_member_id' not in params) or (params['hdfs_proxyusers_name_member_id'] is None): - raise ValueError("Missing the required parameter `hdfs_proxyusers_name_member_id` when calling `delete_hdfs_proxyusers_name_member`") - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_hdfs_proxyusers_name_member`") + # verify the required parameter 'nfs_reload_item' is set + if ('nfs_reload_item' not in params) or (params['nfs_reload_item'] is None): + raise ValueError("Missing the required parameter `nfs_reload_item` when calling `create_nfs_reload_item`") - resource_path = '/platform/1/protocols/hdfs/proxyusers/{Name}/members/{HdfsProxyusersNameMemberId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/nfs/reload'.replace('{format}', 'json') path_params = {} - if 'hdfs_proxyusers_name_member_id' in params: - path_params['HdfsProxyusersNameMemberId'] = params['hdfs_proxyusers_name_member_id'] - if 'name' in params: - path_params['Name'] = params['name'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'nfs_reload_item' in params: + body_params = params['nfs_reload_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -768,22 +760,22 @@ def delete_hdfs_proxyusers_name_member(self, hdfs_proxyusers_name_member_id, nam # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_hdfs_racks(self, **kwargs): + def create_ntp_server(self, ntp_server, **kwargs): """ - List all racks. + Create an NTP server entry. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -791,16 +783,17 @@ def list_hdfs_racks(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_hdfs_racks(callback=callback_function) + >>> thread = api.create_ntp_server(ntp_server, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: HdfsRacksExtended + :param NtpServerCreateParams ntp_server: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['ntp_server'] all_params.append('callback') params = locals() @@ -808,25 +801,29 @@ def list_hdfs_racks(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_hdfs_racks" % key + " to method create_ntp_server" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'ntp_server' is set + if ('ntp_server' not in params) or (params['ntp_server'] is None): + raise ValueError("Missing the required parameter `ntp_server` when calling `create_ntp_server`") - resource_path = '/platform/1/protocols/hdfs/racks'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ntp/servers'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'ntp_server' in params: + body_params = params['ntp_server'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -841,22 +838,22 @@ def list_hdfs_racks(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HdfsRacksExtended', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_hdfs_rack(self, hdfs_rack, **kwargs): + def create_smb_log_level_filter(self, smb_log_level_filter, **kwargs): """ - Create a new HDFS rack. + Add an SMB log filter. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -864,17 +861,17 @@ def create_hdfs_rack(self, hdfs_rack, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_hdfs_rack(hdfs_rack, callback=callback_function) + >>> thread = api.create_smb_log_level_filter(smb_log_level_filter, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param HdfsRack hdfs_rack: (required) - :return: CreateResponse + :param SmbLogLevelFilter smb_log_level_filter: (required) + :return: CreateAuthRefreshItemResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_rack'] + all_params = ['smb_log_level_filter'] all_params.append('callback') params = locals() @@ -882,30 +879,29 @@ def create_hdfs_rack(self, hdfs_rack, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_hdfs_rack" % key + " to method create_smb_log_level_filter" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_rack' is set - if ('hdfs_rack' not in params) or (params['hdfs_rack'] is None): - raise ValueError("Missing the required parameter `hdfs_rack` when calling `create_hdfs_rack`") + # verify the required parameter 'smb_log_level_filter' is set + if ('smb_log_level_filter' not in params) or (params['smb_log_level_filter'] is None): + raise ValueError("Missing the required parameter `smb_log_level_filter` when calling `create_smb_log_level_filter`") - resource_path = '/platform/1/protocols/hdfs/racks'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/protocols/smb/log-level/filters'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hdfs_rack' in params: - body_params = params['hdfs_rack'] + if 'smb_log_level_filter' in params: + body_params = params['smb_log_level_filter'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -920,22 +916,22 @@ def create_hdfs_rack(self, hdfs_rack, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='CreateAuthRefreshItemResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_hdfs_rack(self, hdfs_rack_id, **kwargs): + def create_smb_share(self, smb_share, **kwargs): """ - Retrieve the HDFS rack. + Create a new share. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -943,17 +939,18 @@ def get_hdfs_rack(self, hdfs_rack_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_hdfs_rack(hdfs_rack_id, callback=callback_function) + >>> thread = api.create_smb_share(smb_share, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str hdfs_rack_id: Retrieve the HDFS rack. (required) - :return: HdfsRacks + :param SmbShareCreateParams smb_share: (required) + :param str zone: Zone which contains this share. + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_rack_id'] + all_params = ['smb_share', 'zone'] all_params.append('callback') params = locals() @@ -961,30 +958,31 @@ def get_hdfs_rack(self, hdfs_rack_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_hdfs_rack" % key + " to method create_smb_share" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_rack_id' is set - if ('hdfs_rack_id' not in params) or (params['hdfs_rack_id'] is None): - raise ValueError("Missing the required parameter `hdfs_rack_id` when calling `get_hdfs_rack`") + # verify the required parameter 'smb_share' is set + if ('smb_share' not in params) or (params['smb_share'] is None): + raise ValueError("Missing the required parameter `smb_share` when calling `create_smb_share`") - resource_path = '/platform/1/protocols/hdfs/racks/{HdfsRackId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/smb/shares'.replace('{format}', 'json') path_params = {} - if 'hdfs_rack_id' in params: - path_params['HdfsRackId'] = params['hdfs_rack_id'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'smb_share' in params: + body_params = params['smb_share'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -999,22 +997,22 @@ def get_hdfs_rack(self, hdfs_rack_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HdfsRacks', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_hdfs_rack(self, hdfs_rack, hdfs_rack_id, **kwargs): + def create_swift_account(self, swift_account, **kwargs): """ - Modify the HDFS rack + Create a new Swift account This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1022,18 +1020,17 @@ def update_hdfs_rack(self, hdfs_rack, hdfs_rack_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_hdfs_rack(hdfs_rack, hdfs_rack_id, callback=callback_function) + >>> thread = api.create_swift_account(swift_account, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param HdfsRack hdfs_rack: (required) - :param str hdfs_rack_id: Modify the HDFS rack (required) - :return: None + :param SwiftAccount swift_account: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_rack', 'hdfs_rack_id'] + all_params = ['swift_account'] all_params.append('callback') params = locals() @@ -1041,35 +1038,29 @@ def update_hdfs_rack(self, hdfs_rack, hdfs_rack_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_hdfs_rack" % key + " to method create_swift_account" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_rack' is set - if ('hdfs_rack' not in params) or (params['hdfs_rack'] is None): - raise ValueError("Missing the required parameter `hdfs_rack` when calling `update_hdfs_rack`") - # verify the required parameter 'hdfs_rack_id' is set - if ('hdfs_rack_id' not in params) or (params['hdfs_rack_id'] is None): - raise ValueError("Missing the required parameter `hdfs_rack_id` when calling `update_hdfs_rack`") + # verify the required parameter 'swift_account' is set + if ('swift_account' not in params) or (params['swift_account'] is None): + raise ValueError("Missing the required parameter `swift_account` when calling `create_swift_account`") - resource_path = '/platform/1/protocols/hdfs/racks/{HdfsRackId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/swift/accounts'.replace('{format}', 'json') path_params = {} - if 'hdfs_rack_id' in params: - path_params['HdfsRackId'] = params['hdfs_rack_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hdfs_rack' in params: - body_params = params['hdfs_rack'] + if 'swift_account' in params: + body_params = params['swift_account'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1084,22 +1075,22 @@ def update_hdfs_rack(self, hdfs_rack, hdfs_rack_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_hdfs_rack(self, hdfs_rack_id, **kwargs): + def delete_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): """ - Delete the HDFS rack. + Delete a a HDFS proxyuser. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1107,17 +1098,17 @@ def delete_hdfs_rack(self, hdfs_rack_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_hdfs_rack(hdfs_rack_id, callback=callback_function) + >>> thread = api.delete_hdfs_proxyuser(hdfs_proxyuser_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str hdfs_rack_id: Delete the HDFS rack. (required) + :param str hdfs_proxyuser_id: Delete a a HDFS proxyuser. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_rack_id'] + all_params = ['hdfs_proxyuser_id'] all_params.append('callback') params = locals() @@ -1125,28 +1116,27 @@ def delete_hdfs_rack(self, hdfs_rack_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_hdfs_rack" % key + " to method delete_hdfs_proxyuser" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_rack_id' is set - if ('hdfs_rack_id' not in params) or (params['hdfs_rack_id'] is None): - raise ValueError("Missing the required parameter `hdfs_rack_id` when calling `delete_hdfs_rack`") + # verify the required parameter 'hdfs_proxyuser_id' is set + if ('hdfs_proxyuser_id' not in params) or (params['hdfs_proxyuser_id'] is None): + raise ValueError("Missing the required parameter `hdfs_proxyuser_id` when calling `delete_hdfs_proxyuser`") - resource_path = '/platform/1/protocols/hdfs/racks/{HdfsRackId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId}'.replace('{format}', 'json') path_params = {} - if 'hdfs_rack_id' in params: - path_params['HdfsRackId'] = params['hdfs_rack_id'] + if 'hdfs_proxyuser_id' in params: + path_params['HdfsProxyuserId'] = params['hdfs_proxyuser_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1163,22 +1153,22 @@ def delete_hdfs_rack(self, hdfs_rack_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_smb_openfiles(self, **kwargs): + def delete_hdfs_rack(self, hdfs_rack_id, **kwargs): """ - List open files. + Delete the HDFS rack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1186,20 +1176,17 @@ def get_smb_openfiles(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_smb_openfiles(callback=callback_function) + >>> thread = api.delete_hdfs_rack(hdfs_rack_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: Order results by this field. Default is id. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: SmbOpenfiles + :param str hdfs_rack_id: Delete the HDFS rack. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = ['hdfs_rack_id'] all_params.append('callback') params = locals() @@ -1207,31 +1194,27 @@ def get_smb_openfiles(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_smb_openfiles" % key + " to method delete_hdfs_rack" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'hdfs_rack_id' is set + if ('hdfs_rack_id' not in params) or (params['hdfs_rack_id'] is None): + raise ValueError("Missing the required parameter `hdfs_rack_id` when calling `delete_hdfs_rack`") - resource_path = '/platform/1/protocols/smb/openfiles'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/protocols/hdfs/racks/{HdfsRackId}'.replace('{format}', 'json') path_params = {} + if 'hdfs_rack_id' in params: + path_params['HdfsRackId'] = params['hdfs_rack_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1248,22 +1231,22 @@ def get_smb_openfiles(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbOpenfiles', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_smb_openfile(self, smb_openfile_id, **kwargs): + def delete_ndmp_user(self, ndmp_user_id, **kwargs): """ - Close the file in the SMB server. + Delete the user. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1271,17 +1254,17 @@ def delete_smb_openfile(self, smb_openfile_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_smb_openfile(smb_openfile_id, callback=callback_function) + >>> thread = api.delete_ndmp_user(ndmp_user_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str smb_openfile_id: Close the file in the SMB server. (required) + :param str ndmp_user_id: Delete the user. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_openfile_id'] + all_params = ['ndmp_user_id'] all_params.append('callback') params = locals() @@ -1289,28 +1272,27 @@ def delete_smb_openfile(self, smb_openfile_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_smb_openfile" % key + " to method delete_ndmp_user" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_openfile_id' is set - if ('smb_openfile_id' not in params) or (params['smb_openfile_id'] is None): - raise ValueError("Missing the required parameter `smb_openfile_id` when calling `delete_smb_openfile`") + # verify the required parameter 'ndmp_user_id' is set + if ('ndmp_user_id' not in params) or (params['ndmp_user_id'] is None): + raise ValueError("Missing the required parameter `ndmp_user_id` when calling `delete_ndmp_user`") - resource_path = '/platform/1/protocols/smb/openfiles/{SmbOpenfileId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/ndmp/users/{NdmpUserId}'.replace('{format}', 'json') path_params = {} - if 'smb_openfile_id' in params: - path_params['SmbOpenfileId'] = params['smb_openfile_id'] + if 'ndmp_user_id' in params: + path_params['NdmpUserId'] = params['ndmp_user_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1327,22 +1309,22 @@ def delete_smb_openfile(self, smb_openfile_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_smb_sessions(self, **kwargs): + def delete_nfs_aliase(self, nfs_aliase_id, **kwargs): """ - List open sessions. + Delete the export. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1350,20 +1332,18 @@ def get_smb_sessions(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_smb_sessions(callback=callback_function) + >>> thread = api.delete_nfs_aliase(nfs_aliase_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: Order results by this field. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: SmbSessions + :param str nfs_aliase_id: Delete the export. (required) + :param str zone: Access zone + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = ['nfs_aliase_id', 'zone'] all_params.append('callback') params = locals() @@ -1371,31 +1351,29 @@ def get_smb_sessions(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_smb_sessions" % key + " to method delete_nfs_aliase" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'nfs_aliase_id' is set + if ('nfs_aliase_id' not in params) or (params['nfs_aliase_id'] is None): + raise ValueError("Missing the required parameter `nfs_aliase_id` when calling `delete_nfs_aliase`") - resource_path = '/platform/1/protocols/smb/sessions'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/2/protocols/nfs/aliases/{NfsAliaseId}'.replace('{format}', 'json') path_params = {} + if 'nfs_aliase_id' in params: + path_params['NfsAliaseId'] = params['nfs_aliase_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1412,22 +1390,22 @@ def get_smb_sessions(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbSessions', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_smb_sessions_computer_user(self, smb_sessions_computer_user, computer, **kwargs): + def delete_nfs_export(self, nfs_export_id, **kwargs): """ - Close the SMB session. + Delete the export. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1435,18 +1413,18 @@ def delete_smb_sessions_computer_user(self, smb_sessions_computer_user, computer >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_smb_sessions_computer_user(smb_sessions_computer_user, computer, callback=callback_function) + >>> thread = api.delete_nfs_export(nfs_export_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str smb_sessions_computer_user: Close the SMB session. (required) - :param str computer: (required) + :param str nfs_export_id: Delete the export. (required) + :param str zone: Access zone :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_sessions_computer_user', 'computer'] + all_params = ['nfs_export_id', 'zone'] all_params.append('callback') params = locals() @@ -1454,33 +1432,29 @@ def delete_smb_sessions_computer_user(self, smb_sessions_computer_user, computer if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_smb_sessions_computer_user" % key + " to method delete_nfs_export" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_sessions_computer_user' is set - if ('smb_sessions_computer_user' not in params) or (params['smb_sessions_computer_user'] is None): - raise ValueError("Missing the required parameter `smb_sessions_computer_user` when calling `delete_smb_sessions_computer_user`") - # verify the required parameter 'computer' is set - if ('computer' not in params) or (params['computer'] is None): - raise ValueError("Missing the required parameter `computer` when calling `delete_smb_sessions_computer_user`") + # verify the required parameter 'nfs_export_id' is set + if ('nfs_export_id' not in params) or (params['nfs_export_id'] is None): + raise ValueError("Missing the required parameter `nfs_export_id` when calling `delete_nfs_export`") - resource_path = '/platform/1/protocols/smb/sessions/{Computer}/{SmbSessionsComputerUser}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/2/protocols/nfs/exports/{NfsExportId}'.replace('{format}', 'json') path_params = {} - if 'smb_sessions_computer_user' in params: - path_params['SmbSessionsComputerUser'] = params['smb_sessions_computer_user'] - if 'computer' in params: - path_params['Computer'] = params['computer'] + if 'nfs_export_id' in params: + path_params['NfsExportId'] = params['nfs_export_id'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1497,22 +1471,22 @@ def delete_smb_sessions_computer_user(self, smb_sessions_computer_user, computer # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_smb_session(self, smb_session_id, **kwargs): + def delete_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): """ - Close the SMB session. + Delete all lock state for this host. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1520,17 +1494,20 @@ def delete_smb_session(self, smb_session_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_smb_session(smb_session_id, callback=callback_function) + >>> thread = api.delete_nfs_nlm_session(nfs_nlm_session_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str smb_session_id: Close the SMB session. (required) + :param str nfs_nlm_session_id: Delete all lock state for this host. (required) + :param str ip: An IP address for which NSM has client records + :param str zone: Represents an extant auth zone + :param bool refresh: if set to true, the client will be given a chance to reclaim its locks before they are destroyed :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_session_id'] + all_params = ['nfs_nlm_session_id', 'ip', 'zone', 'refresh'] all_params.append('callback') params = locals() @@ -1538,359 +1515,33 @@ def delete_smb_session(self, smb_session_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_smb_session" % key + " to method delete_nfs_nlm_session" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_session_id' is set - if ('smb_session_id' not in params) or (params['smb_session_id'] is None): - raise ValueError("Missing the required parameter `smb_session_id` when calling `delete_smb_session`") + # verify the required parameter 'nfs_nlm_session_id' is set + if ('nfs_nlm_session_id' not in params) or (params['nfs_nlm_session_id'] is None): + raise ValueError("Missing the required parameter `nfs_nlm_session_id` when calling `delete_nfs_nlm_session`") - resource_path = '/platform/1/protocols/smb/sessions/{SmbSessionId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'smb_session_id' in params: - path_params['SmbSessionId'] = params['smb_session_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_smb_shares_summary(self, **kwargs): - """ - - Return summary information about shares. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_smb_shares_summary(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: SmbSharesSummary - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_smb_shares_summary" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/protocols/smb/shares-summary'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SmbSharesSummary', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def list_nfs_aliases(self, **kwargs): - """ - - List all NFS aliases. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_nfs_aliases(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str zone: Access zone - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int limit: Return no more than this many results at once (see resume). - :param bool check: Check for conflicts when listing exports. - :param str dir: The direction of the sort. - :return: NfsAliasesExtended - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['sort', 'zone', 'resume', 'limit', 'check', 'dir'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_nfs_aliases" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/2/protocols/nfs/aliases'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'check' in params: - query_params['check'] = params['check'] - if 'dir' in params: - query_params['dir'] = params['dir'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='NfsAliasesExtended', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_nfs_aliase(self, nfs_aliase, **kwargs): - """ - - Create a new NFS alias. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_nfs_aliase(nfs_aliase, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param NfsAliase nfs_aliase: (required) - :param str zone: Access zone - :return: CreateNfsAliaseResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nfs_aliase', 'zone'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_nfs_aliase" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nfs_aliase' is set - if ('nfs_aliase' not in params) or (params['nfs_aliase'] is None): - raise ValueError("Missing the required parameter `nfs_aliase` when calling `create_nfs_aliase`") - - resource_path = '/platform/2/protocols/nfs/aliases'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'nfs_aliase' in params: - body_params = params['nfs_aliase'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='CreateNfsAliaseResponse', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_nfs_aliase(self, nfs_aliase_id, **kwargs): - """ - - Retrieve export information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_nfs_aliase(nfs_aliase_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str nfs_aliase_id: Retrieve export information. (required) - :param str scope: When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. - :param str zone: Access zone - :return: NfsAliases - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['nfs_aliase_id', 'scope', 'zone'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_nfs_aliase" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'nfs_aliase_id' is set - if ('nfs_aliase_id' not in params) or (params['nfs_aliase_id'] is None): - raise ValueError("Missing the required parameter `nfs_aliase_id` when calling `get_nfs_aliase`") - - resource_path = '/platform/2/protocols/nfs/aliases/{NfsAliaseId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/nfs/nlm/sessions/{NfsNlmSessionId}'.replace('{format}', 'json') path_params = {} - if 'nfs_aliase_id' in params: - path_params['NfsAliaseId'] = params['nfs_aliase_id'] + if 'nfs_nlm_session_id' in params: + path_params['NfsNlmSessionId'] = params['nfs_nlm_session_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] + if 'ip' in params: + query_params['ip'] = params['ip'] if 'zone' in params: query_params['zone'] = params['zone'] + if 'refresh' in params: + query_params['refresh'] = params['refresh'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1907,22 +1558,22 @@ def get_nfs_aliase(self, nfs_aliase_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsAliases', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_nfs_aliase(self, nfs_aliase, nfs_aliase_id, **kwargs): + def delete_ntp_server(self, ntp_server_id, **kwargs): """ - Modify the alias. All input fields are optional, but one or more must be supplied. + Delete an NTP server entry. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1930,19 +1581,17 @@ def update_nfs_aliase(self, nfs_aliase, nfs_aliase_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_nfs_aliase(nfs_aliase, nfs_aliase_id, callback=callback_function) + >>> thread = api.delete_ntp_server(ntp_server_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NfsAliase nfs_aliase: (required) - :param str nfs_aliase_id: Modify the alias. All input fields are optional, but one or more must be supplied. (required) - :param str zone: Access zone + :param str ntp_server_id: Delete an NTP server entry. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_aliase', 'nfs_aliase_id', 'zone'] + all_params = ['ntp_server_id'] all_params.append('callback') params = locals() @@ -1950,37 +1599,29 @@ def update_nfs_aliase(self, nfs_aliase, nfs_aliase_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_nfs_aliase" % key + " to method delete_ntp_server" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_aliase' is set - if ('nfs_aliase' not in params) or (params['nfs_aliase'] is None): - raise ValueError("Missing the required parameter `nfs_aliase` when calling `update_nfs_aliase`") - # verify the required parameter 'nfs_aliase_id' is set - if ('nfs_aliase_id' not in params) or (params['nfs_aliase_id'] is None): - raise ValueError("Missing the required parameter `nfs_aliase_id` when calling `update_nfs_aliase`") + # verify the required parameter 'ntp_server_id' is set + if ('ntp_server_id' not in params) or (params['ntp_server_id'] is None): + raise ValueError("Missing the required parameter `ntp_server_id` when calling `delete_ntp_server`") - resource_path = '/platform/2/protocols/nfs/aliases/{NfsAliaseId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/ntp/servers/{NtpServerId}'.replace('{format}', 'json') path_params = {} - if 'nfs_aliase_id' in params: - path_params['NfsAliaseId'] = params['nfs_aliase_id'] + if 'ntp_server_id' in params: + path_params['NtpServerId'] = params['ntp_server_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_aliase' in params: - body_params = params['nfs_aliase'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1995,22 +1636,22 @@ def update_nfs_aliase(self, nfs_aliase, nfs_aliase_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_nfs_aliase(self, nfs_aliase_id, **kwargs): + def delete_ntp_servers(self, **kwargs): """ - Delete the export. + Delete all NTP server entries. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2018,18 +1659,16 @@ def delete_nfs_aliase(self, nfs_aliase_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_nfs_aliase(nfs_aliase_id, callback=callback_function) + >>> thread = api.delete_ntp_servers(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str nfs_aliase_id: Delete the export. (required) - :param str zone: Access zone :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_aliase_id', 'zone'] + all_params = [] all_params.append('callback') params = locals() @@ -2037,30 +1676,22 @@ def delete_nfs_aliase(self, nfs_aliase_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_nfs_aliase" % key + " to method delete_ntp_servers" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_aliase_id' is set - if ('nfs_aliase_id' not in params) or (params['nfs_aliase_id'] is None): - raise ValueError("Missing the required parameter `nfs_aliase_id` when calling `delete_nfs_aliase`") - resource_path = '/platform/2/protocols/nfs/aliases/{NfsAliaseId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/ntp/servers'.replace('{format}', 'json') path_params = {} - if 'nfs_aliase_id' in params: - path_params['NfsAliaseId'] = params['nfs_aliase_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2077,22 +1708,22 @@ def delete_nfs_aliase(self, nfs_aliase_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_check(self, **kwargs): + def delete_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): """ - Retrieve NFS export validation information. + Delete log filter. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2100,17 +1731,17 @@ def get_nfs_check(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_check(callback=callback_function) + >>> thread = api.delete_smb_log_level_filter(smb_log_level_filter_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str zone: Access zone - :return: NfsCheckExtended + :param str smb_log_level_filter_id: Delete log filter. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['zone'] + all_params = ['smb_log_level_filter_id'] all_params.append('callback') params = locals() @@ -2118,25 +1749,27 @@ def get_nfs_check(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_check" % key + " to method delete_smb_log_level_filter" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'smb_log_level_filter_id' is set + if ('smb_log_level_filter_id' not in params) or (params['smb_log_level_filter_id'] is None): + raise ValueError("Missing the required parameter `smb_log_level_filter_id` when calling `delete_smb_log_level_filter`") - resource_path = '/platform/2/protocols/nfs/check'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/smb/log-level/filters/{SmbLogLevelFilterId}'.replace('{format}', 'json') path_params = {} + if 'smb_log_level_filter_id' in params: + path_params['SmbLogLevelFilterId'] = params['smb_log_level_filter_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2153,22 +1786,22 @@ def get_nfs_check(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsCheckExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_nfs_exports(self, **kwargs): + def delete_smb_log_level_filters(self, **kwargs): """ - List all NFS exports. + Delete an existing SMB log filter. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2176,24 +1809,16 @@ def list_nfs_exports(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_nfs_exports(callback=callback_function) + >>> thread = api.delete_smb_log_level_filters(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str paths: If specified, only exports that explicitly reference at least one of the given paths will be returned. - :param str zone: Access zone - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int limit: Return no more than this many results at once (see resume). - :param str scope: When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. - :param bool check: Check for conflicts when listing exports. - :param str dir: The direction of the sort. - :return: NfsExportsExtended + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'paths', 'zone', 'resume', 'limit', 'scope', 'check', 'dir'] + all_params = [] all_params.append('callback') params = locals() @@ -2201,39 +1826,22 @@ def list_nfs_exports(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_nfs_exports" % key + " to method delete_smb_log_level_filters" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/2/protocols/nfs/exports'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/smb/log-level/filters'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'paths' in params: - query_params['paths'] = params['paths'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'scope' in params: - query_params['scope'] = params['scope'] - if 'check' in params: - query_params['check'] = params['check'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2250,22 +1858,22 @@ def list_nfs_exports(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsExportsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_nfs_export(self, nfs_export, **kwargs): + def delete_smb_openfile(self, smb_openfile_id, **kwargs): """ - Create a new NFS export. + Close the file in the SMB server. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2273,19 +1881,17 @@ def create_nfs_export(self, nfs_export, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_nfs_export(nfs_export, callback=callback_function) + >>> thread = api.delete_smb_openfile(smb_openfile_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NfsExport nfs_export: (required) - :param bool force: If true, the export will be created even if it conflicts with another export. - :param str zone: Access zone - :return: CreateQuotaReportResponse + :param str smb_openfile_id: Close the file in the SMB server. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_export', 'force', 'zone'] + all_params = ['smb_openfile_id'] all_params.append('callback') params = locals() @@ -2293,34 +1899,29 @@ def create_nfs_export(self, nfs_export, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_nfs_export" % key + " to method delete_smb_openfile" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_export' is set - if ('nfs_export' not in params) or (params['nfs_export'] is None): - raise ValueError("Missing the required parameter `nfs_export` when calling `create_nfs_export`") + # verify the required parameter 'smb_openfile_id' is set + if ('smb_openfile_id' not in params) or (params['smb_openfile_id'] is None): + raise ValueError("Missing the required parameter `smb_openfile_id` when calling `delete_smb_openfile`") - resource_path = '/platform/2/protocols/nfs/exports'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/protocols/smb/openfiles/{SmbOpenfileId}'.replace('{format}', 'json') path_params = {} + if 'smb_openfile_id' in params: + path_params['SmbOpenfileId'] = params['smb_openfile_id'] query_params = {} - if 'force' in params: - query_params['force'] = params['force'] - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_export' in params: - body_params = params['nfs_export'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2335,22 +1936,22 @@ def create_nfs_export(self, nfs_export, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateQuotaReportResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_exports_summary(self, **kwargs): + def delete_smb_session(self, smb_session_id, **kwargs): """ - Retrieve NFS export summary information. + Close the SMB session. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2358,17 +1959,17 @@ def get_nfs_exports_summary(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_exports_summary(callback=callback_function) + >>> thread = api.delete_smb_session(smb_session_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str zone: Access zone - :return: NfsExportsSummary + :param str smb_session_id: Close the SMB session. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['zone'] + all_params = ['smb_session_id'] all_params.append('callback') params = locals() @@ -2376,25 +1977,27 @@ def get_nfs_exports_summary(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_exports_summary" % key + " to method delete_smb_session" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'smb_session_id' is set + if ('smb_session_id' not in params) or (params['smb_session_id'] is None): + raise ValueError("Missing the required parameter `smb_session_id` when calling `delete_smb_session`") - resource_path = '/platform/2/protocols/nfs/exports-summary'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/protocols/smb/sessions/{SmbSessionId}'.replace('{format}', 'json') path_params = {} + if 'smb_session_id' in params: + path_params['SmbSessionId'] = params['smb_session_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2411,22 +2014,22 @@ def get_nfs_exports_summary(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsExportsSummary', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_export(self, nfs_export_id, **kwargs): + def delete_smb_sessions_computer_user(self, smb_sessions_computer_user, computer, **kwargs): """ - Retrieve export information. + Close the SMB session. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2434,19 +2037,18 @@ def get_nfs_export(self, nfs_export_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_export(nfs_export_id, callback=callback_function) + >>> thread = api.delete_smb_sessions_computer_user(smb_sessions_computer_user, computer, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str nfs_export_id: Retrieve export information. (required) - :param str scope: When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. - :param str zone: Access zone - :return: NfsExports + :param str smb_sessions_computer_user: Close the SMB session. (required) + :param str computer: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_export_id', 'scope', 'zone'] + all_params = ['smb_sessions_computer_user', 'computer'] all_params.append('callback') params = locals() @@ -2454,32 +2056,32 @@ def get_nfs_export(self, nfs_export_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_export" % key + " to method delete_smb_sessions_computer_user" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_export_id' is set - if ('nfs_export_id' not in params) or (params['nfs_export_id'] is None): - raise ValueError("Missing the required parameter `nfs_export_id` when calling `get_nfs_export`") + # verify the required parameter 'smb_sessions_computer_user' is set + if ('smb_sessions_computer_user' not in params) or (params['smb_sessions_computer_user'] is None): + raise ValueError("Missing the required parameter `smb_sessions_computer_user` when calling `delete_smb_sessions_computer_user`") + # verify the required parameter 'computer' is set + if ('computer' not in params) or (params['computer'] is None): + raise ValueError("Missing the required parameter `computer` when calling `delete_smb_sessions_computer_user`") - resource_path = '/platform/2/protocols/nfs/exports/{NfsExportId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/protocols/smb/sessions/{Computer}/{SmbSessionsComputerUser}'.replace('{format}', 'json') path_params = {} - if 'nfs_export_id' in params: - path_params['NfsExportId'] = params['nfs_export_id'] + if 'smb_sessions_computer_user' in params: + path_params['SmbSessionsComputerUser'] = params['smb_sessions_computer_user'] + if 'computer' in params: + path_params['Computer'] = params['computer'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2496,22 +2098,22 @@ def get_nfs_export(self, nfs_export_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsExports', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_nfs_export(self, nfs_export, nfs_export_id, **kwargs): + def delete_smb_share(self, smb_share_id, **kwargs): """ - Modify the export. All input fields are optional, but one or more must be supplied. + Delete the share. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2519,20 +2121,18 @@ def update_nfs_export(self, nfs_export, nfs_export_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_nfs_export(nfs_export, nfs_export_id, callback=callback_function) + >>> thread = api.delete_smb_share(smb_share_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NfsExport nfs_export: (required) - :param str nfs_export_id: Modify the export. All input fields are optional, but one or more must be supplied. (required) - :param bool force: If true, the export will be updated even if that change conflicts with another export. - :param str zone: Access zone + :param str smb_share_id: Delete the share. (required) + :param str zone: Zone which contains this share. :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_export', 'nfs_export_id', 'force', 'zone'] + all_params = ['smb_share_id', 'zone'] all_params.append('callback') params = locals() @@ -2540,39 +2140,31 @@ def update_nfs_export(self, nfs_export, nfs_export_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_nfs_export" % key + " to method delete_smb_share" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_export' is set - if ('nfs_export' not in params) or (params['nfs_export'] is None): - raise ValueError("Missing the required parameter `nfs_export` when calling `update_nfs_export`") - # verify the required parameter 'nfs_export_id' is set - if ('nfs_export_id' not in params) or (params['nfs_export_id'] is None): - raise ValueError("Missing the required parameter `nfs_export_id` when calling `update_nfs_export`") + # verify the required parameter 'smb_share_id' is set + if ('smb_share_id' not in params) or (params['smb_share_id'] is None): + raise ValueError("Missing the required parameter `smb_share_id` when calling `delete_smb_share`") - resource_path = '/platform/2/protocols/nfs/exports/{NfsExportId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/smb/shares/{SmbShareId}'.replace('{format}', 'json') path_params = {} - if 'nfs_export_id' in params: - path_params['NfsExportId'] = params['nfs_export_id'] + if 'smb_share_id' in params: + path_params['SmbShareId'] = params['smb_share_id'] query_params = {} - if 'force' in params: - query_params['force'] = params['force'] if 'zone' in params: query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_export' in params: - body_params = params['nfs_export'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2587,22 +2179,22 @@ def update_nfs_export(self, nfs_export, nfs_export_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_nfs_export(self, nfs_export_id, **kwargs): + def delete_smb_shares(self, **kwargs): """ - Delete the export. + Delete multiple smb shares. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2610,18 +2202,16 @@ def delete_nfs_export(self, nfs_export_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_nfs_export(nfs_export_id, callback=callback_function) + >>> thread = api.delete_smb_shares(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str nfs_export_id: Delete the export. (required) - :param str zone: Access zone :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_export_id', 'zone'] + all_params = [] all_params.append('callback') params = locals() @@ -2629,30 +2219,22 @@ def delete_nfs_export(self, nfs_export_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_nfs_export" % key + " to method delete_smb_shares" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_export_id' is set - if ('nfs_export_id' not in params) or (params['nfs_export_id'] is None): - raise ValueError("Missing the required parameter `nfs_export_id` when calling `delete_nfs_export`") - resource_path = '/platform/2/protocols/nfs/exports/{NfsExportId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/smb/shares'.replace('{format}', 'json') path_params = {} - if 'nfs_export_id' in params: - path_params['NfsExportId'] = params['nfs_export_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2669,22 +2251,22 @@ def delete_nfs_export(self, nfs_export_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_nlm_locks(self, **kwargs): + def delete_swift_account(self, swift_account_id, **kwargs): """ - List all NLM locks. + Delete a Swift account. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2692,20 +2274,17 @@ def get_nfs_nlm_locks(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_nlm_locks(callback=callback_function) + >>> thread = api.delete_swift_account(swift_account_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: NfsNlmLocks + :param str swift_account_id: Delete a Swift account. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = ['swift_account_id'] all_params.append('callback') params = locals() @@ -2713,31 +2292,27 @@ def get_nfs_nlm_locks(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_nlm_locks" % key + " to method delete_swift_account" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'swift_account_id' is set + if ('swift_account_id' not in params) or (params['swift_account_id'] is None): + raise ValueError("Missing the required parameter `swift_account_id` when calling `delete_swift_account`") - resource_path = '/platform/2/protocols/nfs/nlm/locks'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/swift/accounts/{SwiftAccountId}'.replace('{format}', 'json') path_params = {} + if 'swift_account_id' in params: + path_params['SwiftAccountId'] = params['swift_account_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2754,22 +2329,22 @@ def get_nfs_nlm_locks(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsNlmLocks', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_nlm_waiters(self, **kwargs): + def get_ftp_settings(self, **kwargs): """ - List all NLM lock waiters. + Retrieve the FTP settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2777,20 +2352,16 @@ def get_nfs_nlm_waiters(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_nlm_waiters(callback=callback_function) + >>> thread = api.get_ftp_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: NfsNlmWaiters + :return: FtpSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = [] all_params.append('callback') params = locals() @@ -2798,31 +2369,22 @@ def get_nfs_nlm_waiters(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_nlm_waiters" % key + " to method get_ftp_settings" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/2/protocols/nfs/nlm/waiters'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ftp/settings'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2839,22 +2401,22 @@ def get_nfs_nlm_waiters(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsNlmWaiters', + files=local_var_files, + response_type='FtpSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_settings_export(self, **kwargs): + def get_hdfs_log_level(self, **kwargs): """ - Retrieve export information. + Retrieve the HDFS service log-level. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2862,18 +2424,16 @@ def get_nfs_settings_export(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_settings_export(callback=callback_function) + >>> thread = api.get_hdfs_log_level(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :param str zone: Access zone - :return: NfsSettingsExport + :return: HdfsLogLevel If the method is called asynchronously, returns the request thread. """ - all_params = ['scope', 'zone'] + all_params = [] all_params.append('callback') params = locals() @@ -2881,27 +2441,22 @@ def get_nfs_settings_export(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_settings_export" % key + " to method get_hdfs_log_level" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/2/protocols/nfs/settings/export'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/hdfs/log-level'.replace('{format}', 'json') path_params = {} query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2918,22 +2473,22 @@ def get_nfs_settings_export(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsSettingsExport', + files=local_var_files, + response_type='HdfsLogLevel', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_nfs_settings_export(self, nfs_settings_export, **kwargs): + def get_hdfs_proxyuser(self, hdfs_proxyuser_id, **kwargs): """ - Modify the default values for NFS exports. All input fields are optional, but one or more must be supplied. + List all proxyusers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2941,18 +2496,17 @@ def update_nfs_settings_export(self, nfs_settings_export, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_nfs_settings_export(nfs_settings_export, callback=callback_function) + >>> thread = api.get_hdfs_proxyuser(hdfs_proxyuser_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NfsSettingsExportSettings nfs_settings_export: (required) - :param str zone: Access zone - :return: None + :param str hdfs_proxyuser_id: List all proxyusers. (required) + :return: HdfsProxyusers If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_settings_export', 'zone'] + all_params = ['hdfs_proxyuser_id'] all_params.append('callback') params = locals() @@ -2960,32 +2514,29 @@ def update_nfs_settings_export(self, nfs_settings_export, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_nfs_settings_export" % key + " to method get_hdfs_proxyuser" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_settings_export' is set - if ('nfs_settings_export' not in params) or (params['nfs_settings_export'] is None): - raise ValueError("Missing the required parameter `nfs_settings_export` when calling `update_nfs_settings_export`") + # verify the required parameter 'hdfs_proxyuser_id' is set + if ('hdfs_proxyuser_id' not in params) or (params['hdfs_proxyuser_id'] is None): + raise ValueError("Missing the required parameter `hdfs_proxyuser_id` when calling `get_hdfs_proxyuser`") - resource_path = '/platform/2/protocols/nfs/settings/export'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId}'.replace('{format}', 'json') path_params = {} + if 'hdfs_proxyuser_id' in params: + path_params['HdfsProxyuserId'] = params['hdfs_proxyuser_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_settings_export' in params: - body_params = params['nfs_settings_export'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3000,22 +2551,22 @@ def update_nfs_settings_export(self, nfs_settings_export, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='HdfsProxyusers', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_settings_zone(self, **kwargs): + def get_hdfs_rack(self, hdfs_rack_id, **kwargs): """ - Retrieve the NFS server settings for this zone. + Retrieve the HDFS rack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3023,16 +2574,17 @@ def get_nfs_settings_zone(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_settings_zone(callback=callback_function) + >>> thread = api.get_hdfs_rack(hdfs_rack_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NfsSettingsZone + :param str hdfs_rack_id: Retrieve the HDFS rack. (required) + :return: HdfsRacks If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['hdfs_rack_id'] all_params.append('callback') params = locals() @@ -3040,23 +2592,27 @@ def get_nfs_settings_zone(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_settings_zone" % key + " to method get_hdfs_rack" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'hdfs_rack_id' is set + if ('hdfs_rack_id' not in params) or (params['hdfs_rack_id'] is None): + raise ValueError("Missing the required parameter `hdfs_rack_id` when calling `get_hdfs_rack`") - resource_path = '/platform/2/protocols/nfs/settings/zone'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/protocols/hdfs/racks/{HdfsRackId}'.replace('{format}', 'json') path_params = {} + if 'hdfs_rack_id' in params: + path_params['HdfsRackId'] = params['hdfs_rack_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3073,22 +2629,22 @@ def get_nfs_settings_zone(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsSettingsZone', + files=local_var_files, + response_type='HdfsRacks', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_nfs_settings_zone(self, nfs_settings_zone, **kwargs): + def get_hdfs_settings(self, **kwargs): """ - Modify the NFS server settings for this zone. + Retrieve HDFS properties. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3096,17 +2652,16 @@ def update_nfs_settings_zone(self, nfs_settings_zone, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_nfs_settings_zone(nfs_settings_zone, callback=callback_function) + >>> thread = api.get_hdfs_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NfsSettingsZoneSettings nfs_settings_zone: (required) - :return: None + :return: HdfsSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_settings_zone'] + all_params = [] all_params.append('callback') params = locals() @@ -3114,30 +2669,24 @@ def update_nfs_settings_zone(self, nfs_settings_zone, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_nfs_settings_zone" % key + " to method get_hdfs_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_settings_zone' is set - if ('nfs_settings_zone' not in params) or (params['nfs_settings_zone'] is None): - raise ValueError("Missing the required parameter `nfs_settings_zone` when calling `update_nfs_settings_zone`") - resource_path = '/platform/2/protocols/nfs/settings/zone'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/hdfs/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_settings_zone' in params: - body_params = params['nfs_settings_zone'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3152,22 +2701,22 @@ def update_nfs_settings_zone(self, nfs_settings_zone, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='HdfsSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ftp_settings(self, **kwargs): + def get_http_settings(self, **kwargs): """ - Retrieve the FTP settings. + Retrieve HTTP properties. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3175,11 +2724,11 @@ def get_ftp_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ftp_settings(callback=callback_function) + >>> thread = api.get_http_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: FtpSettings + :return: HttpSettings If the method is called asynchronously, returns the request thread. """ @@ -3192,23 +2741,22 @@ def get_ftp_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ftp_settings" % key + " to method get_http_settings" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ftp/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/http/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3225,22 +2773,22 @@ def get_ftp_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='FtpSettings', + files=local_var_files, + response_type='HttpSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_ftp_settings(self, ftp_settings, **kwargs): + def get_ndmp_contexts_bre(self, **kwargs): """ - Modify the FTP settings. All input fields are optional, but one or more must be supplied. + Get list of NDMP BRE Contexts. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3248,17 +2796,16 @@ def update_ftp_settings(self, ftp_settings, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_ftp_settings(ftp_settings, callback=callback_function) + >>> thread = api.get_ndmp_contexts_bre(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param FtpSettingsSettings ftp_settings: (required) - :return: None + :return: NdmpContextsBre If the method is called asynchronously, returns the request thread. """ - all_params = ['ftp_settings'] + all_params = [] all_params.append('callback') params = locals() @@ -3266,30 +2813,24 @@ def update_ftp_settings(self, ftp_settings, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_ftp_settings" % key + " to method get_ndmp_contexts_bre" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ftp_settings' is set - if ('ftp_settings' not in params) or (params['ftp_settings'] is None): - raise ValueError("Missing the required parameter `ftp_settings` when calling `update_ftp_settings`") - resource_path = '/platform/3/protocols/ftp/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/ndmp/contexts/bre'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'ftp_settings' in params: - body_params = params['ftp_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3304,22 +2845,22 @@ def update_ftp_settings(self, ftp_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NdmpContextsBre', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_hdfs_log_level(self, **kwargs): + def get_ndmp_diagnostics(self, **kwargs): """ - Retrieve the HDFS service log-level. + List ndmp diagnostics settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3327,11 +2868,11 @@ def get_hdfs_log_level(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_hdfs_log_level(callback=callback_function) + >>> thread = api.get_ndmp_diagnostics(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: HdfsLogLevel + :return: NdmpDiagnostics If the method is called asynchronously, returns the request thread. """ @@ -3344,23 +2885,22 @@ def get_hdfs_log_level(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_hdfs_log_level" % key + " to method get_ndmp_diagnostics" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/hdfs/log-level'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ndmp/diagnostics'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3377,22 +2917,22 @@ def get_hdfs_log_level(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HdfsLogLevel', + files=local_var_files, + response_type='NdmpDiagnostics', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_hdfs_log_level(self, hdfs_log_level, **kwargs): + def get_ndmp_logs(self, **kwargs): """ - Modify the HDFS service log-level. + Get NDMP logs This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3400,17 +2940,16 @@ def update_hdfs_log_level(self, hdfs_log_level, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_hdfs_log_level(hdfs_log_level, callback=callback_function) + >>> thread = api.get_ndmp_logs(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param HdfsLogLevel hdfs_log_level: (required) - :return: None + :return: NdmpLogs If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_log_level'] + all_params = [] all_params.append('callback') params = locals() @@ -3418,30 +2957,24 @@ def update_hdfs_log_level(self, hdfs_log_level, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_hdfs_log_level" % key + " to method get_ndmp_logs" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_log_level' is set - if ('hdfs_log_level' not in params) or (params['hdfs_log_level'] is None): - raise ValueError("Missing the required parameter `hdfs_log_level` when calling `update_hdfs_log_level`") - resource_path = '/platform/3/protocols/hdfs/log-level'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/ndmp/logs'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hdfs_log_level' in params: - body_params = params['hdfs_log_level'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3456,22 +2989,22 @@ def update_hdfs_log_level(self, hdfs_log_level, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NdmpLogs', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_hdfs_settings(self, **kwargs): + def get_ndmp_sessions(self, **kwargs): """ - Retrieve HDFS properties. + List all ndmp sessions. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3479,11 +3012,11 @@ def get_hdfs_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_hdfs_settings(callback=callback_function) + >>> thread = api.get_ndmp_sessions(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: HdfsSettings + :return: NdmpSessions If the method is called asynchronously, returns the request thread. """ @@ -3496,23 +3029,22 @@ def get_hdfs_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_hdfs_settings" % key + " to method get_ndmp_sessions" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/hdfs/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ndmp/sessions'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3529,22 +3061,22 @@ def get_hdfs_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HdfsSettings', + files=local_var_files, + response_type='NdmpSessions', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_hdfs_settings(self, hdfs_settings, **kwargs): + def get_ndmp_settings_global(self, **kwargs): """ - Modify HDFS properties. + List global ndmp settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3552,17 +3084,16 @@ def update_hdfs_settings(self, hdfs_settings, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_hdfs_settings(hdfs_settings, callback=callback_function) + >>> thread = api.get_ndmp_settings_global(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param HdfsSettingsSettings hdfs_settings: (required) - :return: None + :return: NdmpSettingsGlobal If the method is called asynchronously, returns the request thread. """ - all_params = ['hdfs_settings'] + all_params = [] all_params.append('callback') params = locals() @@ -3570,30 +3101,24 @@ def update_hdfs_settings(self, hdfs_settings, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_hdfs_settings" % key + " to method get_ndmp_settings_global" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'hdfs_settings' is set - if ('hdfs_settings' not in params) or (params['hdfs_settings'] is None): - raise ValueError("Missing the required parameter `hdfs_settings` when calling `update_hdfs_settings`") - resource_path = '/platform/3/protocols/hdfs/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/ndmp/settings/global'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'hdfs_settings' in params: - body_params = params['hdfs_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3608,22 +3133,22 @@ def update_hdfs_settings(self, hdfs_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NdmpSettingsGlobal', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_http_settings(self, **kwargs): + def get_ndmp_user(self, ndmp_user_id, **kwargs): """ - Retrieve HTTP properties. + Retrieve the user. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3631,16 +3156,17 @@ def get_http_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_http_settings(callback=callback_function) + >>> thread = api.get_ndmp_user(ndmp_user_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: HttpSettings + :param str ndmp_user_id: Retrieve the user. (required) + :return: NdmpUsers If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['ndmp_user_id'] all_params.append('callback') params = locals() @@ -3648,23 +3174,27 @@ def get_http_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_http_settings" % key + " to method get_ndmp_user" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'ndmp_user_id' is set + if ('ndmp_user_id' not in params) or (params['ndmp_user_id'] is None): + raise ValueError("Missing the required parameter `ndmp_user_id` when calling `get_ndmp_user`") - resource_path = '/platform/3/protocols/http/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ndmp/users/{NdmpUserId}'.replace('{format}', 'json') path_params = {} + if 'ndmp_user_id' in params: + path_params['NdmpUserId'] = params['ndmp_user_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3681,22 +3211,22 @@ def get_http_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HttpSettings', + files=local_var_files, + response_type='NdmpUsers', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_http_settings(self, http_settings, **kwargs): + def get_nfs_aliase(self, nfs_aliase_id, **kwargs): """ - Modify HTTP properties. + Retrieve export information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3704,17 +3234,19 @@ def update_http_settings(self, http_settings, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_http_settings(http_settings, callback=callback_function) + >>> thread = api.get_nfs_aliase(nfs_aliase_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param HttpSettingsSettings http_settings: (required) - :return: None + :param str nfs_aliase_id: Retrieve export information. (required) + :param str scope: When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. + :param str zone: Access zone + :return: NfsAliases If the method is called asynchronously, returns the request thread. """ - all_params = ['http_settings'] + all_params = ['nfs_aliase_id', 'scope', 'zone'] all_params.append('callback') params = locals() @@ -3722,30 +3254,33 @@ def update_http_settings(self, http_settings, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_http_settings" % key + " to method get_nfs_aliase" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'http_settings' is set - if ('http_settings' not in params) or (params['http_settings'] is None): - raise ValueError("Missing the required parameter `http_settings` when calling `update_http_settings`") + # verify the required parameter 'nfs_aliase_id' is set + if ('nfs_aliase_id' not in params) or (params['nfs_aliase_id'] is None): + raise ValueError("Missing the required parameter `nfs_aliase_id` when calling `get_nfs_aliase`") - resource_path = '/platform/3/protocols/http/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/2/protocols/nfs/aliases/{NfsAliaseId}'.replace('{format}', 'json') path_params = {} + if 'nfs_aliase_id' in params: + path_params['NfsAliaseId'] = params['nfs_aliase_id'] query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'http_settings' in params: - body_params = params['http_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3760,22 +3295,22 @@ def update_http_settings(self, http_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NfsAliases', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ndmp_contexts_bre(self, **kwargs): + def get_nfs_check(self, **kwargs): """ - Get list of NDMP BRE Contexts. + Retrieve NFS export validation information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3783,16 +3318,17 @@ def get_ndmp_contexts_bre(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ndmp_contexts_bre(callback=callback_function) + >>> thread = api.get_nfs_check(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NdmpContextsBre + :param str zone: Access zone + :return: NfsCheckExtended If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['zone'] all_params.append('callback') params = locals() @@ -3800,23 +3336,24 @@ def get_ndmp_contexts_bre(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ndmp_contexts_bre" % key + " to method get_nfs_check" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ndmp/contexts/bre'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/2/protocols/nfs/check'.replace('{format}', 'json') path_params = {} query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3833,22 +3370,22 @@ def get_ndmp_contexts_bre(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NdmpContextsBre', + files=local_var_files, + response_type='NfsCheckExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ndmp_diagnostics(self, **kwargs): + def get_nfs_export(self, nfs_export_id, **kwargs): """ - List ndmp diagnostics settings. + Retrieve export information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3856,16 +3393,19 @@ def get_ndmp_diagnostics(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ndmp_diagnostics(callback=callback_function) + >>> thread = api.get_nfs_export(nfs_export_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NdmpDiagnostics + :param str nfs_export_id: Retrieve export information. (required) + :param str scope: When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. + :param str zone: Access zone + :return: NfsExports If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['nfs_export_id', 'scope', 'zone'] all_params.append('callback') params = locals() @@ -3873,23 +3413,31 @@ def get_ndmp_diagnostics(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ndmp_diagnostics" % key + " to method get_nfs_export" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'nfs_export_id' is set + if ('nfs_export_id' not in params) or (params['nfs_export_id'] is None): + raise ValueError("Missing the required parameter `nfs_export_id` when calling `get_nfs_export`") - resource_path = '/platform/3/protocols/ndmp/diagnostics'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/2/protocols/nfs/exports/{NfsExportId}'.replace('{format}', 'json') path_params = {} + if 'nfs_export_id' in params: + path_params['NfsExportId'] = params['nfs_export_id'] query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -3906,22 +3454,22 @@ def get_ndmp_diagnostics(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NdmpDiagnostics', + files=local_var_files, + response_type='NfsExports', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_ndmp_diagnostics(self, ndmp_diagnostics, **kwargs): + def get_nfs_exports_summary(self, **kwargs): """ - Modify ndmp diagnostics settings. + Retrieve NFS export summary information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3929,17 +3477,17 @@ def update_ndmp_diagnostics(self, ndmp_diagnostics, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_ndmp_diagnostics(ndmp_diagnostics, callback=callback_function) + >>> thread = api.get_nfs_exports_summary(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NdmpDiagnosticsDiagnostics ndmp_diagnostics: (required) - :return: None + :param str zone: Access zone + :return: NfsExportsSummary If the method is called asynchronously, returns the request thread. """ - all_params = ['ndmp_diagnostics'] + all_params = ['zone'] all_params.append('callback') params = locals() @@ -3947,30 +3495,26 @@ def update_ndmp_diagnostics(self, ndmp_diagnostics, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_ndmp_diagnostics" % key + " to method get_nfs_exports_summary" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ndmp_diagnostics' is set - if ('ndmp_diagnostics' not in params) or (params['ndmp_diagnostics'] is None): - raise ValueError("Missing the required parameter `ndmp_diagnostics` when calling `update_ndmp_diagnostics`") - resource_path = '/platform/3/protocols/ndmp/diagnostics'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/2/protocols/nfs/exports-summary'.replace('{format}', 'json') path_params = {} query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'ndmp_diagnostics' in params: - body_params = params['ndmp_diagnostics'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3985,22 +3529,22 @@ def update_ndmp_diagnostics(self, ndmp_diagnostics, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NfsExportsSummary', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ndmp_logs(self, **kwargs): + def get_nfs_log_level(self, **kwargs): """ - Get NDMP logs + Get the current NFS service logging level. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4008,11 +3552,11 @@ def get_ndmp_logs(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ndmp_logs(callback=callback_function) + >>> thread = api.get_nfs_log_level(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NdmpLogs + :return: NfsLogLevel If the method is called asynchronously, returns the request thread. """ @@ -4025,23 +3569,22 @@ def get_ndmp_logs(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ndmp_logs" % key + " to method get_nfs_log_level" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ndmp/logs'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/nfs/log-level'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4058,22 +3601,22 @@ def get_ndmp_logs(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NdmpLogs', + files=local_var_files, + response_type='NfsLogLevel', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ndmp_sessions(self, **kwargs): + def get_nfs_netgroup(self, **kwargs): """ - List all ndmp sessions. + Get the current NFS netgroup cache settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4081,16 +3624,17 @@ def get_ndmp_sessions(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ndmp_sessions(callback=callback_function) + >>> thread = api.get_nfs_netgroup(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NdmpSessions + :param str host: Host to retrieve netgroup cache settings from. + :return: NfsNetgroup If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['host'] all_params.append('callback') params = locals() @@ -4098,23 +3642,24 @@ def get_ndmp_sessions(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ndmp_sessions" % key + " to method get_nfs_netgroup" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ndmp/sessions'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/nfs/netgroup'.replace('{format}', 'json') path_params = {} query_params = {} + if 'host' in params: + query_params['host'] = params['host'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4131,22 +3676,22 @@ def get_ndmp_sessions(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NdmpSessions', + files=local_var_files, + response_type='NfsNetgroup', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ndmp_settings_global(self, **kwargs): + def get_nfs_nlm_locks(self, **kwargs): """ - List global ndmp settings. + List all NLM locks. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4154,16 +3699,20 @@ def get_ndmp_settings_global(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ndmp_settings_global(callback=callback_function) + >>> thread = api.get_nfs_nlm_locks(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NdmpSettingsGlobal + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: NfsNlmLocks If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -4171,23 +3720,32 @@ def get_ndmp_settings_global(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ndmp_settings_global" % key + " to method get_nfs_nlm_locks" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ndmp/settings/global'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_nfs_nlm_locks`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/2/protocols/nfs/nlm/locks'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4204,22 +3762,22 @@ def get_ndmp_settings_global(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NdmpSettingsGlobal', + files=local_var_files, + response_type='NfsNlmLocks', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_ndmp_settings_global(self, ndmp_settings_global, **kwargs): + def get_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): """ - Modify one or more settings. + Retrieve all lock state for a single client. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4227,17 +3785,19 @@ def update_ndmp_settings_global(self, ndmp_settings_global, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_ndmp_settings_global(ndmp_settings_global, callback=callback_function) + >>> thread = api.get_nfs_nlm_session(nfs_nlm_session_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NdmpSettingsGlobalGlobal ndmp_settings_global: (required) - :return: None + :param str nfs_nlm_session_id: Retrieve all lock state for a single client. (required) + :param str ip: An IP address for which NSM has client records + :param str zone: Represents an extant auth zone + :return: NfsNlmSessions If the method is called asynchronously, returns the request thread. """ - all_params = ['ndmp_settings_global'] + all_params = ['nfs_nlm_session_id', 'ip', 'zone'] all_params.append('callback') params = locals() @@ -4245,30 +3805,33 @@ def update_ndmp_settings_global(self, ndmp_settings_global, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_ndmp_settings_global" % key + " to method get_nfs_nlm_session" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ndmp_settings_global' is set - if ('ndmp_settings_global' not in params) or (params['ndmp_settings_global'] is None): - raise ValueError("Missing the required parameter `ndmp_settings_global` when calling `update_ndmp_settings_global`") + # verify the required parameter 'nfs_nlm_session_id' is set + if ('nfs_nlm_session_id' not in params) or (params['nfs_nlm_session_id'] is None): + raise ValueError("Missing the required parameter `nfs_nlm_session_id` when calling `get_nfs_nlm_session`") - resource_path = '/platform/3/protocols/ndmp/settings/global'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/nfs/nlm/sessions/{NfsNlmSessionId}'.replace('{format}', 'json') path_params = {} + if 'nfs_nlm_session_id' in params: + path_params['NfsNlmSessionId'] = params['nfs_nlm_session_id'] query_params = {} + if 'ip' in params: + query_params['ip'] = params['ip'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'ndmp_settings_global' in params: - body_params = params['ndmp_settings_global'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4283,22 +3846,22 @@ def update_ndmp_settings_global(self, ndmp_settings_global, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NfsNlmSessions', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_ndmp_users(self, **kwargs): + def get_nfs_nlm_sessions(self, **kwargs): """ - List all ndmp administrators. + List all NSM clients (optionally filtered by either zone or IP) This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4306,16 +3869,18 @@ def list_ndmp_users(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_ndmp_users(callback=callback_function) + >>> thread = api.get_nfs_nlm_sessions(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NdmpUsersExtended + :param str ip: An IP address for which NSM has client records + :param str zone: Represents an extant auth zone + :return: NfsNlmSessionsExtended If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['ip', 'zone'] all_params.append('callback') params = locals() @@ -4323,23 +3888,26 @@ def list_ndmp_users(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_ndmp_users" % key + " to method get_nfs_nlm_sessions" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ndmp/users'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/nfs/nlm/sessions'.replace('{format}', 'json') path_params = {} query_params = {} + if 'ip' in params: + query_params['ip'] = params['ip'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4356,22 +3924,22 @@ def list_ndmp_users(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NdmpUsersExtended', + files=local_var_files, + response_type='NfsNlmSessionsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_ndmp_user(self, ndmp_user, **kwargs): + def get_nfs_nlm_waiters(self, **kwargs): """ - Created a new user. + List all NLM lock waiters. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4379,17 +3947,20 @@ def create_ndmp_user(self, ndmp_user, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_ndmp_user(ndmp_user, callback=callback_function) + >>> thread = api.get_nfs_nlm_waiters(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NdmpUserCreateParams ndmp_user: (required) - :return: Empty + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: NfsNlmWaiters If the method is called asynchronously, returns the request thread. """ - all_params = ['ndmp_user'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -4397,30 +3968,34 @@ def create_ndmp_user(self, ndmp_user, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_ndmp_user" % key + " to method get_nfs_nlm_waiters" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ndmp_user' is set - if ('ndmp_user' not in params) or (params['ndmp_user'] is None): - raise ValueError("Missing the required parameter `ndmp_user` when calling `create_ndmp_user`") - resource_path = '/platform/3/protocols/ndmp/users'.replace('{format}', 'json') - method = 'POST' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_nfs_nlm_waiters`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/2/protocols/nfs/nlm/waiters'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'ndmp_user' in params: - body_params = params['ndmp_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4435,22 +4010,22 @@ def create_ndmp_user(self, ndmp_user, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='NfsNlmWaiters', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ndmp_user(self, ndmp_user_id, **kwargs): + def get_nfs_settings_export(self, **kwargs): """ - Retrieve the user. + Retrieve export information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4458,17 +4033,18 @@ def get_ndmp_user(self, ndmp_user_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ndmp_user(ndmp_user_id, callback=callback_function) + >>> thread = api.get_nfs_settings_export(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str ndmp_user_id: Retrieve the user. (required) - :return: NdmpUsers + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :param str zone: Access zone + :return: NfsSettingsExport If the method is called asynchronously, returns the request thread. """ - all_params = ['ndmp_user_id'] + all_params = ['scope', 'zone'] all_params.append('callback') params = locals() @@ -4476,28 +4052,26 @@ def get_ndmp_user(self, ndmp_user_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ndmp_user" % key + " to method get_nfs_settings_export" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ndmp_user_id' is set - if ('ndmp_user_id' not in params) or (params['ndmp_user_id'] is None): - raise ValueError("Missing the required parameter `ndmp_user_id` when calling `get_ndmp_user`") - resource_path = '/platform/3/protocols/ndmp/users/{NdmpUserId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/2/protocols/nfs/settings/export'.replace('{format}', 'json') path_params = {} - if 'ndmp_user_id' in params: - path_params['NdmpUserId'] = params['ndmp_user_id'] query_params = {} + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4514,22 +4088,22 @@ def get_ndmp_user(self, ndmp_user_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NdmpUsers', + files=local_var_files, + response_type='NfsSettingsExport', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_ndmp_user(self, ndmp_user, ndmp_user_id, **kwargs): + def get_nfs_settings_global(self, **kwargs): """ - Modify the user + Retrieve the NFS configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4537,18 +4111,16 @@ def update_ndmp_user(self, ndmp_user, ndmp_user_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_ndmp_user(ndmp_user, ndmp_user_id, callback=callback_function) + >>> thread = api.get_nfs_settings_global(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NdmpUser ndmp_user: (required) - :param str ndmp_user_id: Modify the user (required) - :return: None + :return: NfsSettingsGlobal If the method is called asynchronously, returns the request thread. """ - all_params = ['ndmp_user', 'ndmp_user_id'] + all_params = [] all_params.append('callback') params = locals() @@ -4556,35 +4128,24 @@ def update_ndmp_user(self, ndmp_user, ndmp_user_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_ndmp_user" % key + " to method get_nfs_settings_global" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ndmp_user' is set - if ('ndmp_user' not in params) or (params['ndmp_user'] is None): - raise ValueError("Missing the required parameter `ndmp_user` when calling `update_ndmp_user`") - # verify the required parameter 'ndmp_user_id' is set - if ('ndmp_user_id' not in params) or (params['ndmp_user_id'] is None): - raise ValueError("Missing the required parameter `ndmp_user_id` when calling `update_ndmp_user`") - resource_path = '/platform/3/protocols/ndmp/users/{NdmpUserId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/nfs/settings/global'.replace('{format}', 'json') path_params = {} - if 'ndmp_user_id' in params: - path_params['NdmpUserId'] = params['ndmp_user_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'ndmp_user' in params: - body_params = params['ndmp_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4599,22 +4160,22 @@ def update_ndmp_user(self, ndmp_user, ndmp_user_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NfsSettingsGlobal', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_ndmp_user(self, ndmp_user_id, **kwargs): + def get_nfs_settings_zone(self, **kwargs): """ - Delete the user. + Retrieve the NFS server settings for this zone. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4622,17 +4183,16 @@ def delete_ndmp_user(self, ndmp_user_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_ndmp_user(ndmp_user_id, callback=callback_function) + >>> thread = api.get_nfs_settings_zone(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str ndmp_user_id: Delete the user. (required) - :return: None + :return: NfsSettingsZone If the method is called asynchronously, returns the request thread. """ - all_params = ['ndmp_user_id'] + all_params = [] all_params.append('callback') params = locals() @@ -4640,28 +4200,22 @@ def delete_ndmp_user(self, ndmp_user_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_ndmp_user" % key + " to method get_nfs_settings_zone" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ndmp_user_id' is set - if ('ndmp_user_id' not in params) or (params['ndmp_user_id'] is None): - raise ValueError("Missing the required parameter `ndmp_user_id` when calling `delete_ndmp_user`") - resource_path = '/platform/3/protocols/ndmp/users/{NdmpUserId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/2/protocols/nfs/settings/zone'.replace('{format}', 'json') path_params = {} - if 'ndmp_user_id' in params: - path_params['NdmpUserId'] = params['ndmp_user_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4678,22 +4232,22 @@ def delete_ndmp_user(self, ndmp_user_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NfsSettingsZone', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_log_level(self, **kwargs): + def get_ntp_server(self, ntp_server_id, **kwargs): """ - Get the current NFS service logging level. + Retrieve one NTP server. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4701,16 +4255,17 @@ def get_nfs_log_level(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_log_level(callback=callback_function) + >>> thread = api.get_ntp_server(ntp_server_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NfsLogLevel + :param str ntp_server_id: Retrieve one NTP server. (required) + :return: NtpServers If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['ntp_server_id'] all_params.append('callback') params = locals() @@ -4718,23 +4273,27 @@ def get_nfs_log_level(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_log_level" % key + " to method get_ntp_server" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'ntp_server_id' is set + if ('ntp_server_id' not in params) or (params['ntp_server_id'] is None): + raise ValueError("Missing the required parameter `ntp_server_id` when calling `get_ntp_server`") - resource_path = '/platform/3/protocols/nfs/log-level'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ntp/servers/{NtpServerId}'.replace('{format}', 'json') path_params = {} + if 'ntp_server_id' in params: + path_params['NtpServerId'] = params['ntp_server_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4751,22 +4310,22 @@ def get_nfs_log_level(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsLogLevel', + files=local_var_files, + response_type='NtpServers', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_nfs_log_level(self, nfs_log_level, **kwargs): + def get_ntp_settings(self, **kwargs): """ - Set the current NFS service logging level. + Retrieve the NTP settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4774,17 +4333,16 @@ def update_nfs_log_level(self, nfs_log_level, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_nfs_log_level(nfs_log_level, callback=callback_function) + >>> thread = api.get_ntp_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NfsLogLevel nfs_log_level: (required) - :return: None + :return: NtpSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_log_level'] + all_params = [] all_params.append('callback') params = locals() @@ -4792,30 +4350,24 @@ def update_nfs_log_level(self, nfs_log_level, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_nfs_log_level" % key + " to method get_ntp_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_log_level' is set - if ('nfs_log_level' not in params) or (params['nfs_log_level'] is None): - raise ValueError("Missing the required parameter `nfs_log_level` when calling `update_nfs_log_level`") - resource_path = '/platform/3/protocols/nfs/log-level'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/ntp/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_log_level' in params: - body_params = params['nfs_log_level'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4830,22 +4382,22 @@ def update_nfs_log_level(self, nfs_log_level, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NtpSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_netgroup(self, **kwargs): + def get_smb_log_level(self, **kwargs): """ - Get the current NFS netgroup cache settings. + Get the current SMB logging level. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4853,17 +4405,16 @@ def get_nfs_netgroup(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_netgroup(callback=callback_function) + >>> thread = api.get_smb_log_level(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str host: Host to retrieve netgroup cache settings from. - :return: NfsNetgroup + :return: SmbLogLevel If the method is called asynchronously, returns the request thread. """ - all_params = ['host'] + all_params = [] all_params.append('callback') params = locals() @@ -4871,25 +4422,22 @@ def get_nfs_netgroup(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_netgroup" % key + " to method get_smb_log_level" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/nfs/netgroup'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/smb/log-level'.replace('{format}', 'json') path_params = {} query_params = {} - if 'host' in params: - query_params['host'] = params['host'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -4906,22 +4454,22 @@ def get_nfs_netgroup(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsNetgroup', + files=local_var_files, + response_type='SmbLogLevel', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_nfs_netgroup(self, nfs_netgroup, **kwargs): + def get_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): """ - Modify the current NFS netgroup settings. + View log filter. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -4929,18 +4477,17 @@ def update_nfs_netgroup(self, nfs_netgroup, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_nfs_netgroup(nfs_netgroup, callback=callback_function) + >>> thread = api.get_smb_log_level_filter(smb_log_level_filter_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NfsNetgroup nfs_netgroup: (required) - :param str host: Host to retrieve netgroup cache settings for. - :return: None + :param str smb_log_level_filter_id: View log filter. (required) + :return: SmbLogLevelFilters If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_netgroup', 'host'] + all_params = ['smb_log_level_filter_id'] all_params.append('callback') params = locals() @@ -4948,32 +4495,29 @@ def update_nfs_netgroup(self, nfs_netgroup, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_nfs_netgroup" % key + " to method get_smb_log_level_filter" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_netgroup' is set - if ('nfs_netgroup' not in params) or (params['nfs_netgroup'] is None): - raise ValueError("Missing the required parameter `nfs_netgroup` when calling `update_nfs_netgroup`") + # verify the required parameter 'smb_log_level_filter_id' is set + if ('smb_log_level_filter_id' not in params) or (params['smb_log_level_filter_id'] is None): + raise ValueError("Missing the required parameter `smb_log_level_filter_id` when calling `get_smb_log_level_filter`") - resource_path = '/platform/3/protocols/nfs/netgroup'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/smb/log-level/filters/{SmbLogLevelFilterId}'.replace('{format}', 'json') path_params = {} + if 'smb_log_level_filter_id' in params: + path_params['SmbLogLevelFilterId'] = params['smb_log_level_filter_id'] query_params = {} - if 'host' in params: - query_params['host'] = params['host'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_netgroup' in params: - body_params = params['nfs_netgroup'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -4988,22 +4532,22 @@ def update_nfs_netgroup(self, nfs_netgroup, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SmbLogLevelFilters', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_nfs_netgroup_check_item(self, nfs_netgroup_check_item, **kwargs): + def get_smb_openfiles(self, **kwargs): """ - Update the NFS netgroups in the cache. + List open files. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5011,18 +4555,20 @@ def create_nfs_netgroup_check_item(self, nfs_netgroup_check_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_nfs_netgroup_check_item(nfs_netgroup_check_item, callback=callback_function) + >>> thread = api.get_smb_openfiles(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty nfs_netgroup_check_item: (required) - :param str host: IP address of node to update. If unspecified, the local nodes cache is updated. - :return: Empty + :param str sort: Order results by this field. Default is id. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: SmbOpenfiles If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_netgroup_check_item', 'host'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -5030,32 +4576,34 @@ def create_nfs_netgroup_check_item(self, nfs_netgroup_check_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_nfs_netgroup_check_item" % key + " to method get_smb_openfiles" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_netgroup_check_item' is set - if ('nfs_netgroup_check_item' not in params) or (params['nfs_netgroup_check_item'] is None): - raise ValueError("Missing the required parameter `nfs_netgroup_check_item` when calling `create_nfs_netgroup_check_item`") - resource_path = '/platform/3/protocols/nfs/netgroup/check'.replace('{format}', 'json') - method = 'POST' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_smb_openfiles`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/protocols/smb/openfiles'.replace('{format}', 'json') path_params = {} query_params = {} - if 'host' in params: - query_params['host'] = params['host'] + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_netgroup_check_item' in params: - body_params = params['nfs_netgroup_check_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5070,22 +4618,22 @@ def create_nfs_netgroup_check_item(self, nfs_netgroup_check_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='SmbOpenfiles', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_nfs_netgroup_flush_item(self, nfs_netgroup_flush_item, **kwargs): + def get_smb_sessions(self, **kwargs): """ - Flush the NFS netgroups in the cache. + List open sessions. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5093,18 +4641,20 @@ def create_nfs_netgroup_flush_item(self, nfs_netgroup_flush_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_nfs_netgroup_flush_item(nfs_netgroup_flush_item, callback=callback_function) + >>> thread = api.get_smb_sessions(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty nfs_netgroup_flush_item: (required) - :param str host: IP address of node to flush. If unspecified, all nodes on the cluster are flushed. - :return: Empty + :param str sort: Order results by this field. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: SmbSessions If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_netgroup_flush_item', 'host'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -5112,32 +4662,34 @@ def create_nfs_netgroup_flush_item(self, nfs_netgroup_flush_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_nfs_netgroup_flush_item" % key + " to method get_smb_sessions" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_netgroup_flush_item' is set - if ('nfs_netgroup_flush_item' not in params) or (params['nfs_netgroup_flush_item'] is None): - raise ValueError("Missing the required parameter `nfs_netgroup_flush_item` when calling `create_nfs_netgroup_flush_item`") - resource_path = '/platform/3/protocols/nfs/netgroup/flush'.replace('{format}', 'json') - method = 'POST' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_smb_sessions`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/protocols/smb/sessions'.replace('{format}', 'json') path_params = {} query_params = {} - if 'host' in params: - query_params['host'] = params['host'] + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_netgroup_flush_item' in params: - body_params = params['nfs_netgroup_flush_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5152,22 +4704,22 @@ def create_nfs_netgroup_flush_item(self, nfs_netgroup_flush_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='SmbSessions', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_nlm_sessions(self, **kwargs): + def get_smb_settings_global(self, **kwargs): """ - List all NSM clients (optionally filtered by either zone or IP) + List all settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5175,18 +4727,17 @@ def get_nfs_nlm_sessions(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_nlm_sessions(callback=callback_function) + >>> thread = api.get_smb_settings_global(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str ip: An IP address for which NSM has client records - :param str zone: Represents an extant auth zone - :return: NfsNlmSessionsExtended + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :return: SmbSettingsGlobal If the method is called asynchronously, returns the request thread. """ - all_params = ['ip', 'zone'] + all_params = ['scope'] all_params.append('callback') params = locals() @@ -5194,27 +4745,24 @@ def get_nfs_nlm_sessions(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_nlm_sessions" % key + " to method get_smb_settings_global" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/nfs/nlm/sessions'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/smb/settings/global'.replace('{format}', 'json') path_params = {} query_params = {} - if 'ip' in params: - query_params['ip'] = params['ip'] - if 'zone' in params: - query_params['zone'] = params['zone'] + if 'scope' in params: + query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5231,22 +4779,22 @@ def get_nfs_nlm_sessions(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsNlmSessionsExtended', + files=local_var_files, + response_type='SmbSettingsGlobal', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_nfs_nlm_sessions_check_item(self, nfs_nlm_sessions_check_item, **kwargs): + def get_smb_settings_share(self, **kwargs): """ - Perform an active scan for lost NFSv3 locks. + List all settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5254,19 +4802,18 @@ def create_nfs_nlm_sessions_check_item(self, nfs_nlm_sessions_check_item, **kwar >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_nfs_nlm_sessions_check_item(nfs_nlm_sessions_check_item, callback=callback_function) + >>> thread = api.get_smb_settings_share(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty nfs_nlm_sessions_check_item: (required) - :param str ip: An IP address for which NSM has client records - :param str zone: Represents an extant auth zone - :return: CreateNfsNlmSessionsCheckItemResponse + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :param str zone: Zone which contains these share settings. + :return: SmbSettingsShare If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_nlm_sessions_check_item', 'ip', 'zone'] + all_params = ['scope', 'zone'] all_params.append('callback') params = locals() @@ -5274,34 +4821,28 @@ def create_nfs_nlm_sessions_check_item(self, nfs_nlm_sessions_check_item, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_nfs_nlm_sessions_check_item" % key + " to method get_smb_settings_share" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_nlm_sessions_check_item' is set - if ('nfs_nlm_sessions_check_item' not in params) or (params['nfs_nlm_sessions_check_item'] is None): - raise ValueError("Missing the required parameter `nfs_nlm_sessions_check_item` when calling `create_nfs_nlm_sessions_check_item`") - resource_path = '/platform/3/protocols/nfs/nlm/sessions-check'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/protocols/smb/settings/share'.replace('{format}', 'json') path_params = {} query_params = {} - if 'ip' in params: - query_params['ip'] = params['ip'] + if 'scope' in params: + query_params['scope'] = params['scope'] if 'zone' in params: query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_nlm_sessions_check_item' in params: - body_params = params['nfs_nlm_sessions_check_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5316,22 +4857,22 @@ def create_nfs_nlm_sessions_check_item(self, nfs_nlm_sessions_check_item, **kwar # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateNfsNlmSessionsCheckItemResponse', + files=local_var_files, + response_type='SmbSettingsShare', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): + def get_smb_share(self, smb_share_id, **kwargs): """ - Retrieve all lock state for a single client. + Retrieve share. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5339,19 +4880,20 @@ def get_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_nlm_session(nfs_nlm_session_id, callback=callback_function) + >>> thread = api.get_smb_share(smb_share_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str nfs_nlm_session_id: Retrieve all lock state for a single client. (required) - :param str ip: An IP address for which NSM has client records - :param str zone: Represents an extant auth zone - :return: NfsNlmSessions + :param str smb_share_id: Retrieve share. (required) + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :param bool resolve_names: If true, resolve group and user names in personas. + :param str zone: Zone which contains this share. + :return: SmbShares If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_nlm_session_id', 'ip', 'zone'] + all_params = ['smb_share_id', 'scope', 'resolve_names', 'zone'] all_params.append('callback') params = locals() @@ -5359,32 +4901,33 @@ def get_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_nlm_session" % key + " to method get_smb_share" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_nlm_session_id' is set - if ('nfs_nlm_session_id' not in params) or (params['nfs_nlm_session_id'] is None): - raise ValueError("Missing the required parameter `nfs_nlm_session_id` when calling `get_nfs_nlm_session`") + # verify the required parameter 'smb_share_id' is set + if ('smb_share_id' not in params) or (params['smb_share_id'] is None): + raise ValueError("Missing the required parameter `smb_share_id` when calling `get_smb_share`") - resource_path = '/platform/3/protocols/nfs/nlm/sessions/{NfsNlmSessionId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/smb/shares/{SmbShareId}'.replace('{format}', 'json') path_params = {} - if 'nfs_nlm_session_id' in params: - path_params['NfsNlmSessionId'] = params['nfs_nlm_session_id'] + if 'smb_share_id' in params: + path_params['SmbShareId'] = params['smb_share_id'] query_params = {} - if 'ip' in params: - query_params['ip'] = params['ip'] + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] if 'zone' in params: query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5401,22 +4944,22 @@ def get_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsNlmSessions', + files=local_var_files, + response_type='SmbShares', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): + def get_smb_shares_summary(self, **kwargs): """ - Delete all lock state for this host. + Return summary information about shares. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5424,20 +4967,16 @@ def delete_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_nfs_nlm_session(nfs_nlm_session_id, callback=callback_function) + >>> thread = api.get_smb_shares_summary(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str nfs_nlm_session_id: Delete all lock state for this host. (required) - :param str ip: An IP address for which NSM has client records - :param str zone: Represents an extant auth zone - :param bool refresh: if set to true, the client will be given a chance to reclaim its locks before they are destroyed - :return: None + :return: SmbSharesSummary If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_nlm_session_id', 'ip', 'zone', 'refresh'] + all_params = [] all_params.append('callback') params = locals() @@ -5445,34 +4984,22 @@ def delete_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_nfs_nlm_session" % key + " to method get_smb_shares_summary" % key ) params[key] = val - del params['kwargs'] - - # verify the required parameter 'nfs_nlm_session_id' is set - if ('nfs_nlm_session_id' not in params) or (params['nfs_nlm_session_id'] is None): - raise ValueError("Missing the required parameter `nfs_nlm_session_id` when calling `delete_nfs_nlm_session`") + del params['kwargs'] - resource_path = '/platform/3/protocols/nfs/nlm/sessions/{NfsNlmSessionId}'.replace('{format}', 'json') - method = 'DELETE' + + resource_path = '/platform/1/protocols/smb/shares-summary'.replace('{format}', 'json') path_params = {} - if 'nfs_nlm_session_id' in params: - path_params['NfsNlmSessionId'] = params['nfs_nlm_session_id'] query_params = {} - if 'ip' in params: - query_params['ip'] = params['ip'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'refresh' in params: - query_params['refresh'] = params['refresh'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5489,22 +5016,22 @@ def delete_nfs_nlm_session(self, nfs_nlm_session_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SmbSharesSummary', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_nfs_reload_item(self, nfs_reload_item, **kwargs): + def get_snmp_settings(self, **kwargs): """ - Reload default NFS export configuration. + Retrieve the SNMP settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5512,18 +5039,16 @@ def create_nfs_reload_item(self, nfs_reload_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_nfs_reload_item(nfs_reload_item, callback=callback_function) + >>> thread = api.get_snmp_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty nfs_reload_item: (required) - :param str zone: Access zone - :return: Empty + :return: SnmpSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_reload_item', 'zone'] + all_params = [] all_params.append('callback') params = locals() @@ -5531,32 +5056,24 @@ def create_nfs_reload_item(self, nfs_reload_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_nfs_reload_item" % key + " to method get_snmp_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_reload_item' is set - if ('nfs_reload_item' not in params) or (params['nfs_reload_item'] is None): - raise ValueError("Missing the required parameter `nfs_reload_item` when calling `create_nfs_reload_item`") - resource_path = '/platform/3/protocols/nfs/reload'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/protocols/snmp/settings'.replace('{format}', 'json') path_params = {} query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_reload_item' in params: - body_params = params['nfs_reload_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5571,22 +5088,22 @@ def create_nfs_reload_item(self, nfs_reload_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='SnmpSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_nfs_settings_global(self, **kwargs): + def get_swift_account(self, swift_account_id, **kwargs): """ - Retrieve the NFS configuration. + List a swift account. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5594,16 +5111,17 @@ def get_nfs_settings_global(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_nfs_settings_global(callback=callback_function) + >>> thread = api.get_swift_account(swift_account_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NfsSettingsGlobal + :param str swift_account_id: List a swift account. (required) + :return: SwiftAccounts If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['swift_account_id'] all_params.append('callback') params = locals() @@ -5611,23 +5129,27 @@ def get_nfs_settings_global(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_nfs_settings_global" % key + " to method get_swift_account" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'swift_account_id' is set + if ('swift_account_id' not in params) or (params['swift_account_id'] is None): + raise ValueError("Missing the required parameter `swift_account_id` when calling `get_swift_account`") - resource_path = '/platform/3/protocols/nfs/settings/global'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/swift/accounts/{SwiftAccountId}'.replace('{format}', 'json') path_params = {} + if 'swift_account_id' in params: + path_params['SwiftAccountId'] = params['swift_account_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5644,22 +5166,22 @@ def get_nfs_settings_global(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NfsSettingsGlobal', + files=local_var_files, + response_type='SwiftAccounts', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_nfs_settings_global(self, nfs_settings_global, **kwargs): + def list_hdfs_proxyusers(self, **kwargs): """ - Modify the default values for NFS exports. All input fields are optional, but one or more must be supplied. + List all proxyusers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5667,17 +5189,16 @@ def update_nfs_settings_global(self, nfs_settings_global, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_nfs_settings_global(nfs_settings_global, callback=callback_function) + >>> thread = api.list_hdfs_proxyusers(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NfsSettingsGlobalSettings nfs_settings_global: (required) - :return: None + :return: HdfsProxyusers If the method is called asynchronously, returns the request thread. """ - all_params = ['nfs_settings_global'] + all_params = [] all_params.append('callback') params = locals() @@ -5685,30 +5206,24 @@ def update_nfs_settings_global(self, nfs_settings_global, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_nfs_settings_global" % key + " to method list_hdfs_proxyusers" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'nfs_settings_global' is set - if ('nfs_settings_global' not in params) or (params['nfs_settings_global'] is None): - raise ValueError("Missing the required parameter `nfs_settings_global` when calling `update_nfs_settings_global`") - resource_path = '/platform/3/protocols/nfs/settings/global'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/protocols/hdfs/proxyusers'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'nfs_settings_global' in params: - body_params = params['nfs_settings_global'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5723,22 +5238,22 @@ def update_nfs_settings_global(self, nfs_settings_global, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='HdfsProxyusers', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_ntp_servers(self, **kwargs): + def list_hdfs_racks(self, **kwargs): """ - List all NTP servers. + List all racks. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5746,20 +5261,16 @@ def list_ntp_servers(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_ntp_servers(callback=callback_function) + >>> thread = api.list_hdfs_racks(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: NtpServersExtended + :return: HdfsRacksExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = [] all_params.append('callback') params = locals() @@ -5767,31 +5278,22 @@ def list_ntp_servers(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_ntp_servers" % key + " to method list_hdfs_racks" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ntp/servers'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/protocols/hdfs/racks'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5808,22 +5310,22 @@ def list_ntp_servers(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NtpServersExtended', + files=local_var_files, + response_type='HdfsRacksExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_ntp_server(self, ntp_server, **kwargs): + def list_ndmp_users(self, **kwargs): """ - Create an NTP server entry. + List all ndmp administrators. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5831,17 +5333,16 @@ def create_ntp_server(self, ntp_server, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_ntp_server(ntp_server, callback=callback_function) + >>> thread = api.list_ndmp_users(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NtpServerCreateParams ntp_server: (required) - :return: CreateResponse + :return: NdmpUsersExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['ntp_server'] + all_params = [] all_params.append('callback') params = locals() @@ -5849,30 +5350,24 @@ def create_ntp_server(self, ntp_server, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_ntp_server" % key + " to method list_ndmp_users" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ntp_server' is set - if ('ntp_server' not in params) or (params['ntp_server'] is None): - raise ValueError("Missing the required parameter `ntp_server` when calling `create_ntp_server`") - resource_path = '/platform/3/protocols/ntp/servers'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/protocols/ndmp/users'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'ntp_server' in params: - body_params = params['ntp_server'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -5887,22 +5382,22 @@ def create_ntp_server(self, ntp_server, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='NdmpUsersExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_ntp_servers(self, **kwargs): + def list_nfs_aliases(self, **kwargs): """ - Delete all NTP server entries. + List all NFS aliases. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5910,16 +5405,22 @@ def delete_ntp_servers(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_ntp_servers(callback=callback_function) + >>> thread = api.list_nfs_aliases(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param str sort: The field that will be used for sorting. + :param str zone: Access zone + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int limit: Return no more than this many results at once (see resume). + :param bool check: Check for conflicts when listing exports. + :param str dir: The direction of the sort. + :return: NfsAliasesExtended If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['sort', 'zone', 'resume', 'limit', 'check', 'dir'] all_params.append('callback') params = locals() @@ -5927,23 +5428,36 @@ def delete_ntp_servers(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_ntp_servers" % key + " to method list_nfs_aliases" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ntp/servers'.replace('{format}', 'json') - method = 'DELETE' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_nfs_aliases`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/2/protocols/nfs/aliases'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'check' in params: + query_params['check'] = params['check'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -5960,22 +5474,22 @@ def delete_ntp_servers(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NfsAliasesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ntp_server(self, ntp_server_id, **kwargs): + def list_nfs_exports(self, **kwargs): """ - Retrieve one NTP server. + List all NFS exports. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -5983,17 +5497,24 @@ def get_ntp_server(self, ntp_server_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ntp_server(ntp_server_id, callback=callback_function) + >>> thread = api.list_nfs_exports(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str ntp_server_id: Retrieve one NTP server. (required) - :return: NtpServers + :param str sort: The field that will be used for sorting. + :param str paths: If specified, only exports that explicitly reference at least one of the given paths will be returned. + :param str zone: Access zone + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int limit: Return no more than this many results at once (see resume). + :param str scope: When specified as 'effective', or not specified, all fields are returned. When specified as 'user', only fields with non-default values are shown. When specified as 'default', the original values are returned. + :param bool check: Check for conflicts when listing exports. + :param str dir: The direction of the sort. + :return: NfsExportsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['ntp_server_id'] + all_params = ['sort', 'paths', 'zone', 'resume', 'limit', 'scope', 'check', 'dir'] all_params.append('callback') params = locals() @@ -6001,28 +5522,40 @@ def get_ntp_server(self, ntp_server_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ntp_server" % key + " to method list_nfs_exports" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ntp_server_id' is set - if ('ntp_server_id' not in params) or (params['ntp_server_id'] is None): - raise ValueError("Missing the required parameter `ntp_server_id` when calling `get_ntp_server`") - resource_path = '/platform/3/protocols/ntp/servers/{NtpServerId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_nfs_exports`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/2/protocols/nfs/exports'.replace('{format}', 'json') path_params = {} - if 'ntp_server_id' in params: - path_params['NtpServerId'] = params['ntp_server_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'paths' in params: + query_params['paths'] = params['paths'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'check' in params: + query_params['check'] = params['check'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6039,22 +5572,22 @@ def get_ntp_server(self, ntp_server_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NtpServers', + files=local_var_files, + response_type='NfsExportsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_ntp_server(self, ntp_server, ntp_server_id, **kwargs): + def list_ntp_servers(self, **kwargs): """ - Modify the key value for an NTP server. + List all NTP servers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6062,18 +5595,20 @@ def update_ntp_server(self, ntp_server, ntp_server_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_ntp_server(ntp_server, ntp_server_id, callback=callback_function) + >>> thread = api.list_ntp_servers(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NtpServer ntp_server: (required) - :param str ntp_server_id: Modify the key value for an NTP server. (required) - :return: None + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: NtpServersExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['ntp_server', 'ntp_server_id'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -6081,35 +5616,34 @@ def update_ntp_server(self, ntp_server, ntp_server_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_ntp_server" % key + " to method list_ntp_servers" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ntp_server' is set - if ('ntp_server' not in params) or (params['ntp_server'] is None): - raise ValueError("Missing the required parameter `ntp_server` when calling `update_ntp_server`") - # verify the required parameter 'ntp_server_id' is set - if ('ntp_server_id' not in params) or (params['ntp_server_id'] is None): - raise ValueError("Missing the required parameter `ntp_server_id` when calling `update_ntp_server`") - resource_path = '/platform/3/protocols/ntp/servers/{NtpServerId}'.replace('{format}', 'json') - method = 'PUT' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_ntp_servers`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/protocols/ntp/servers'.replace('{format}', 'json') path_params = {} - if 'ntp_server_id' in params: - path_params['NtpServerId'] = params['ntp_server_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'ntp_server' in params: - body_params = params['ntp_server'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6124,22 +5658,22 @@ def update_ntp_server(self, ntp_server, ntp_server_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='NtpServersExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_ntp_server(self, ntp_server_id, **kwargs): + def list_smb_log_level_filters(self, **kwargs): """ - Delete an NTP server entry. + Get the current SMB log filters. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6147,17 +5681,16 @@ def delete_ntp_server(self, ntp_server_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_ntp_server(ntp_server_id, callback=callback_function) + >>> thread = api.list_smb_log_level_filters(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str ntp_server_id: Delete an NTP server entry. (required) - :return: None + :return: SmbLogLevelFiltersExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['ntp_server_id'] + all_params = [] all_params.append('callback') params = locals() @@ -6165,28 +5698,22 @@ def delete_ntp_server(self, ntp_server_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_ntp_server" % key + " to method list_smb_log_level_filters" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ntp_server_id' is set - if ('ntp_server_id' not in params) or (params['ntp_server_id'] is None): - raise ValueError("Missing the required parameter `ntp_server_id` when calling `delete_ntp_server`") - resource_path = '/platform/3/protocols/ntp/servers/{NtpServerId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/smb/log-level/filters'.replace('{format}', 'json') path_params = {} - if 'ntp_server_id' in params: - path_params['NtpServerId'] = params['ntp_server_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6203,22 +5730,22 @@ def delete_ntp_server(self, ntp_server_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SmbLogLevelFiltersExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_ntp_settings(self, **kwargs): + def list_smb_shares(self, **kwargs): """ - Retrieve the NTP settings. + List all shares. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6226,16 +5753,23 @@ def get_ntp_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_ntp_settings(callback=callback_function) + >>> thread = api.list_smb_shares(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: NtpSettings + :param str sort: Order results by this field. Default is id. + :param str zone: Zone which contains this share. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param bool resolve_names: If true, resolve group and user names in personas. + :param int limit: Return no more than this many results at once (see resume). + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :param str dir: The direction of the sort. + :return: SmbSharesExtended If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['sort', 'zone', 'resume', 'resolve_names', 'limit', 'scope', 'dir'] all_params.append('callback') params = locals() @@ -6243,23 +5777,38 @@ def get_ntp_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_ntp_settings" % key + " to method list_smb_shares" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/protocols/ntp/settings'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_smb_shares`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/protocols/smb/shares'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -6276,22 +5825,22 @@ def get_ntp_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='NtpSettings', + files=local_var_files, + response_type='SmbSharesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_ntp_settings(self, ntp_settings, **kwargs): + def list_swift_accounts(self, **kwargs): """ - Modify the NTP settings. All input fields are optional, but one or more must be supplied. + List all swift accounts. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6299,17 +5848,16 @@ def update_ntp_settings(self, ntp_settings, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_ntp_settings(ntp_settings, callback=callback_function) + >>> thread = api.list_swift_accounts(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param NtpSettingsSettings ntp_settings: (required) - :return: None + :return: SwiftAccounts If the method is called asynchronously, returns the request thread. """ - all_params = ['ntp_settings'] + all_params = [] all_params.append('callback') params = locals() @@ -6317,30 +5865,24 @@ def update_ntp_settings(self, ntp_settings, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_ntp_settings" % key + " to method list_swift_accounts" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'ntp_settings' is set - if ('ntp_settings' not in params) or (params['ntp_settings'] is None): - raise ValueError("Missing the required parameter `ntp_settings` when calling `update_ntp_settings`") - resource_path = '/platform/3/protocols/ntp/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/swift/accounts'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'ntp_settings' in params: - body_params = params['ntp_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6355,22 +5897,22 @@ def update_ntp_settings(self, ntp_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SwiftAccounts', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_smb_log_level(self, **kwargs): + def update_ftp_settings(self, ftp_settings, **kwargs): """ - Get the current SMB logging level. + Modify the FTP settings. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6378,16 +5920,17 @@ def get_smb_log_level(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_smb_log_level(callback=callback_function) + >>> thread = api.update_ftp_settings(ftp_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SmbLogLevel + :param FtpSettingsSettings ftp_settings: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['ftp_settings'] all_params.append('callback') params = locals() @@ -6395,25 +5938,29 @@ def get_smb_log_level(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_smb_log_level" % key + " to method update_ftp_settings" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'ftp_settings' is set + if ('ftp_settings' not in params) or (params['ftp_settings'] is None): + raise ValueError("Missing the required parameter `ftp_settings` when calling `update_ftp_settings`") - resource_path = '/platform/3/protocols/smb/log-level'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ftp/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'ftp_settings' in params: + body_params = params['ftp_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6428,22 +5975,22 @@ def get_smb_log_level(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbLogLevel', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_smb_log_level(self, smb_log_level, **kwargs): + def update_hdfs_log_level(self, hdfs_log_level, **kwargs): """ - Set the current SMB logging level. + Modify the HDFS service log-level. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6451,17 +5998,17 @@ def update_smb_log_level(self, smb_log_level, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_smb_log_level(smb_log_level, callback=callback_function) + >>> thread = api.update_hdfs_log_level(hdfs_log_level, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SmbLogLevel smb_log_level: (required) + :param HdfsLogLevel hdfs_log_level: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_log_level'] + all_params = ['hdfs_log_level'] all_params.append('callback') params = locals() @@ -6469,30 +6016,29 @@ def update_smb_log_level(self, smb_log_level, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_smb_log_level" % key + " to method update_hdfs_log_level" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_log_level' is set - if ('smb_log_level' not in params) or (params['smb_log_level'] is None): - raise ValueError("Missing the required parameter `smb_log_level` when calling `update_smb_log_level`") + # verify the required parameter 'hdfs_log_level' is set + if ('hdfs_log_level' not in params) or (params['hdfs_log_level'] is None): + raise ValueError("Missing the required parameter `hdfs_log_level` when calling `update_hdfs_log_level`") - resource_path = '/platform/3/protocols/smb/log-level'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/hdfs/log-level'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'smb_log_level' in params: - body_params = params['smb_log_level'] + if 'hdfs_log_level' in params: + body_params = params['hdfs_log_level'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6507,22 +6053,22 @@ def update_smb_log_level(self, smb_log_level, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_smb_log_level_filters(self, **kwargs): + def update_hdfs_proxyuser(self, hdfs_proxyuser, hdfs_proxyuser_id, **kwargs): """ - Get the current SMB log filters. + Create a new HDFS proxyuser. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6530,16 +6076,18 @@ def list_smb_log_level_filters(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_smb_log_level_filters(callback=callback_function) + >>> thread = api.update_hdfs_proxyuser(hdfs_proxyuser, hdfs_proxyuser_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SmbLogLevelFiltersExtended + :param Empty hdfs_proxyuser: (required) + :param str hdfs_proxyuser_id: Create a new HDFS proxyuser. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['hdfs_proxyuser', 'hdfs_proxyuser_id'] all_params.append('callback') params = locals() @@ -6547,25 +6095,34 @@ def list_smb_log_level_filters(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_smb_log_level_filters" % key + " to method update_hdfs_proxyuser" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'hdfs_proxyuser' is set + if ('hdfs_proxyuser' not in params) or (params['hdfs_proxyuser'] is None): + raise ValueError("Missing the required parameter `hdfs_proxyuser` when calling `update_hdfs_proxyuser`") + # verify the required parameter 'hdfs_proxyuser_id' is set + if ('hdfs_proxyuser_id' not in params) or (params['hdfs_proxyuser_id'] is None): + raise ValueError("Missing the required parameter `hdfs_proxyuser_id` when calling `update_hdfs_proxyuser`") - resource_path = '/platform/3/protocols/smb/log-level/filters'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/protocols/hdfs/proxyusers/{HdfsProxyuserId}'.replace('{format}', 'json') path_params = {} + if 'hdfs_proxyuser_id' in params: + path_params['HdfsProxyuserId'] = params['hdfs_proxyuser_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'hdfs_proxyuser' in params: + body_params = params['hdfs_proxyuser'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6580,22 +6137,22 @@ def list_smb_log_level_filters(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbLogLevelFiltersExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_smb_log_level_filter(self, smb_log_level_filter, **kwargs): + def update_hdfs_rack(self, hdfs_rack, hdfs_rack_id, **kwargs): """ - Add an SMB log filter. + Modify the HDFS rack This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6603,17 +6160,18 @@ def create_smb_log_level_filter(self, smb_log_level_filter, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_smb_log_level_filter(smb_log_level_filter, callback=callback_function) + >>> thread = api.update_hdfs_rack(hdfs_rack, hdfs_rack_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SmbLogLevelFilter smb_log_level_filter: (required) - :return: CreateAuthRefreshItemResponse + :param HdfsRack hdfs_rack: (required) + :param str hdfs_rack_id: Modify the HDFS rack (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_log_level_filter'] + all_params = ['hdfs_rack', 'hdfs_rack_id'] all_params.append('callback') params = locals() @@ -6621,30 +6179,34 @@ def create_smb_log_level_filter(self, smb_log_level_filter, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_smb_log_level_filter" % key + " to method update_hdfs_rack" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_log_level_filter' is set - if ('smb_log_level_filter' not in params) or (params['smb_log_level_filter'] is None): - raise ValueError("Missing the required parameter `smb_log_level_filter` when calling `create_smb_log_level_filter`") + # verify the required parameter 'hdfs_rack' is set + if ('hdfs_rack' not in params) or (params['hdfs_rack'] is None): + raise ValueError("Missing the required parameter `hdfs_rack` when calling `update_hdfs_rack`") + # verify the required parameter 'hdfs_rack_id' is set + if ('hdfs_rack_id' not in params) or (params['hdfs_rack_id'] is None): + raise ValueError("Missing the required parameter `hdfs_rack_id` when calling `update_hdfs_rack`") - resource_path = '/platform/3/protocols/smb/log-level/filters'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/protocols/hdfs/racks/{HdfsRackId}'.replace('{format}', 'json') path_params = {} + if 'hdfs_rack_id' in params: + path_params['HdfsRackId'] = params['hdfs_rack_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'smb_log_level_filter' in params: - body_params = params['smb_log_level_filter'] + if 'hdfs_rack' in params: + body_params = params['hdfs_rack'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6659,22 +6221,22 @@ def create_smb_log_level_filter(self, smb_log_level_filter, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateAuthRefreshItemResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_smb_log_level_filters(self, **kwargs): + def update_hdfs_settings(self, hdfs_settings, **kwargs): """ - Delete an existing SMB log filter. + Modify HDFS properties. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6682,16 +6244,17 @@ def delete_smb_log_level_filters(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_smb_log_level_filters(callback=callback_function) + >>> thread = api.update_hdfs_settings(hdfs_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param HdfsSettingsSettings hdfs_settings: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['hdfs_settings'] all_params.append('callback') params = locals() @@ -6699,25 +6262,29 @@ def delete_smb_log_level_filters(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_smb_log_level_filters" % key + " to method update_hdfs_settings" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'hdfs_settings' is set + if ('hdfs_settings' not in params) or (params['hdfs_settings'] is None): + raise ValueError("Missing the required parameter `hdfs_settings` when calling `update_hdfs_settings`") - resource_path = '/platform/3/protocols/smb/log-level/filters'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/hdfs/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'hdfs_settings' in params: + body_params = params['hdfs_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6732,22 +6299,22 @@ def delete_smb_log_level_filters(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): + def update_http_settings(self, http_settings, **kwargs): """ - View log filter. + Modify HTTP properties. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6755,17 +6322,17 @@ def get_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_smb_log_level_filter(smb_log_level_filter_id, callback=callback_function) + >>> thread = api.update_http_settings(http_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str smb_log_level_filter_id: View log filter. (required) - :return: SmbLogLevelFilters + :param HttpSettingsSettings http_settings: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_log_level_filter_id'] + all_params = ['http_settings'] all_params.append('callback') params = locals() @@ -6773,30 +6340,29 @@ def get_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_smb_log_level_filter" % key + " to method update_http_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_log_level_filter_id' is set - if ('smb_log_level_filter_id' not in params) or (params['smb_log_level_filter_id'] is None): - raise ValueError("Missing the required parameter `smb_log_level_filter_id` when calling `get_smb_log_level_filter`") + # verify the required parameter 'http_settings' is set + if ('http_settings' not in params) or (params['http_settings'] is None): + raise ValueError("Missing the required parameter `http_settings` when calling `update_http_settings`") - resource_path = '/platform/3/protocols/smb/log-level/filters/{SmbLogLevelFilterId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/http/settings'.replace('{format}', 'json') path_params = {} - if 'smb_log_level_filter_id' in params: - path_params['SmbLogLevelFilterId'] = params['smb_log_level_filter_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'http_settings' in params: + body_params = params['http_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6811,22 +6377,22 @@ def get_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbLogLevelFilters', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): + def update_ndmp_diagnostics(self, ndmp_diagnostics, **kwargs): """ - Delete log filter. + Modify ndmp diagnostics settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6834,17 +6400,17 @@ def delete_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_smb_log_level_filter(smb_log_level_filter_id, callback=callback_function) + >>> thread = api.update_ndmp_diagnostics(ndmp_diagnostics, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str smb_log_level_filter_id: Delete log filter. (required) + :param NdmpDiagnosticsDiagnostics ndmp_diagnostics: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_log_level_filter_id'] + all_params = ['ndmp_diagnostics'] all_params.append('callback') params = locals() @@ -6852,30 +6418,29 @@ def delete_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_smb_log_level_filter" % key + " to method update_ndmp_diagnostics" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_log_level_filter_id' is set - if ('smb_log_level_filter_id' not in params) or (params['smb_log_level_filter_id'] is None): - raise ValueError("Missing the required parameter `smb_log_level_filter_id` when calling `delete_smb_log_level_filter`") + # verify the required parameter 'ndmp_diagnostics' is set + if ('ndmp_diagnostics' not in params) or (params['ndmp_diagnostics'] is None): + raise ValueError("Missing the required parameter `ndmp_diagnostics` when calling `update_ndmp_diagnostics`") - resource_path = '/platform/3/protocols/smb/log-level/filters/{SmbLogLevelFilterId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/ndmp/diagnostics'.replace('{format}', 'json') path_params = {} - if 'smb_log_level_filter_id' in params: - path_params['SmbLogLevelFilterId'] = params['smb_log_level_filter_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'ndmp_diagnostics' in params: + body_params = params['ndmp_diagnostics'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6890,22 +6455,22 @@ def delete_smb_log_level_filter(self, smb_log_level_filter_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_smb_settings_global(self, **kwargs): + def update_ndmp_settings_global(self, ndmp_settings_global, **kwargs): """ - List all settings. + Modify one or more settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6913,17 +6478,17 @@ def get_smb_settings_global(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_smb_settings_global(callback=callback_function) + >>> thread = api.update_ndmp_settings_global(ndmp_settings_global, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :return: SmbSettingsGlobal + :param NdmpSettingsGlobalGlobal ndmp_settings_global: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['scope'] + all_params = ['ndmp_settings_global'] all_params.append('callback') params = locals() @@ -6931,27 +6496,29 @@ def get_smb_settings_global(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_smb_settings_global" % key + " to method update_ndmp_settings_global" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'ndmp_settings_global' is set + if ('ndmp_settings_global' not in params) or (params['ndmp_settings_global'] is None): + raise ValueError("Missing the required parameter `ndmp_settings_global` when calling `update_ndmp_settings_global`") - resource_path = '/platform/3/protocols/smb/settings/global'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ndmp/settings/global'.replace('{format}', 'json') path_params = {} query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'ndmp_settings_global' in params: + body_params = params['ndmp_settings_global'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -6966,22 +6533,22 @@ def get_smb_settings_global(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbSettingsGlobal', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_smb_settings_global(self, smb_settings_global, **kwargs): + def update_ndmp_user(self, ndmp_user, ndmp_user_id, **kwargs): """ - Modify one or more settings. + Modify the user This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -6989,17 +6556,18 @@ def update_smb_settings_global(self, smb_settings_global, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_smb_settings_global(smb_settings_global, callback=callback_function) + >>> thread = api.update_ndmp_user(ndmp_user, ndmp_user_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SmbSettingsGlobalSettings smb_settings_global: (required) + :param NdmpUser ndmp_user: (required) + :param str ndmp_user_id: Modify the user (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_settings_global'] + all_params = ['ndmp_user', 'ndmp_user_id'] all_params.append('callback') params = locals() @@ -7007,30 +6575,34 @@ def update_smb_settings_global(self, smb_settings_global, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_smb_settings_global" % key + " to method update_ndmp_user" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_settings_global' is set - if ('smb_settings_global' not in params) or (params['smb_settings_global'] is None): - raise ValueError("Missing the required parameter `smb_settings_global` when calling `update_smb_settings_global`") + # verify the required parameter 'ndmp_user' is set + if ('ndmp_user' not in params) or (params['ndmp_user'] is None): + raise ValueError("Missing the required parameter `ndmp_user` when calling `update_ndmp_user`") + # verify the required parameter 'ndmp_user_id' is set + if ('ndmp_user_id' not in params) or (params['ndmp_user_id'] is None): + raise ValueError("Missing the required parameter `ndmp_user_id` when calling `update_ndmp_user`") - resource_path = '/platform/3/protocols/smb/settings/global'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/ndmp/users/{NdmpUserId}'.replace('{format}', 'json') path_params = {} + if 'ndmp_user_id' in params: + path_params['NdmpUserId'] = params['ndmp_user_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'smb_settings_global' in params: - body_params = params['smb_settings_global'] + if 'ndmp_user' in params: + body_params = params['ndmp_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7045,22 +6617,22 @@ def update_smb_settings_global(self, smb_settings_global, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_smb_settings_share(self, **kwargs): + def update_nfs_aliase(self, nfs_aliase, nfs_aliase_id, **kwargs): """ - List all settings. + Modify the alias. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7068,18 +6640,19 @@ def get_smb_settings_share(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_smb_settings_share(callback=callback_function) + >>> thread = api.update_nfs_aliase(nfs_aliase, nfs_aliase_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :param str zone: Zone which contains these share settings. - :return: SmbSettingsShare + :param NfsAliase nfs_aliase: (required) + :param str nfs_aliase_id: Modify the alias. All input fields are optional, but one or more must be supplied. (required) + :param str zone: Access zone + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['scope', 'zone'] + all_params = ['nfs_aliase', 'nfs_aliase_id', 'zone'] all_params.append('callback') params = locals() @@ -7087,29 +6660,36 @@ def get_smb_settings_share(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_smb_settings_share" % key + " to method update_nfs_aliase" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'nfs_aliase' is set + if ('nfs_aliase' not in params) or (params['nfs_aliase'] is None): + raise ValueError("Missing the required parameter `nfs_aliase` when calling `update_nfs_aliase`") + # verify the required parameter 'nfs_aliase_id' is set + if ('nfs_aliase_id' not in params) or (params['nfs_aliase_id'] is None): + raise ValueError("Missing the required parameter `nfs_aliase_id` when calling `update_nfs_aliase`") - resource_path = '/platform/3/protocols/smb/settings/share'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/2/protocols/nfs/aliases/{NfsAliaseId}'.replace('{format}', 'json') path_params = {} + if 'nfs_aliase_id' in params: + path_params['NfsAliaseId'] = params['nfs_aliase_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] if 'zone' in params: query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'nfs_aliase' in params: + body_params = params['nfs_aliase'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7124,22 +6704,22 @@ def get_smb_settings_share(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbSettingsShare', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_smb_settings_share(self, smb_settings_share, **kwargs): + def update_nfs_export(self, nfs_export, nfs_export_id, **kwargs): """ - Modify one or more settings. + Modify the export. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7147,18 +6727,20 @@ def update_smb_settings_share(self, smb_settings_share, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_smb_settings_share(smb_settings_share, callback=callback_function) + >>> thread = api.update_nfs_export(nfs_export, nfs_export_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SmbSettingsShareSettings smb_settings_share: (required) - :param str zone: Zone which contains these share settings. + :param NfsExport nfs_export: (required) + :param str nfs_export_id: Modify the export. All input fields are optional, but one or more must be supplied. (required) + :param bool force: If true, the export will be updated even if that change conflicts with another export. + :param str zone: Access zone :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_settings_share', 'zone'] + all_params = ['nfs_export', 'nfs_export_id', 'force', 'zone'] all_params.append('callback') params = locals() @@ -7166,32 +6748,38 @@ def update_smb_settings_share(self, smb_settings_share, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_smb_settings_share" % key + " to method update_nfs_export" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_settings_share' is set - if ('smb_settings_share' not in params) or (params['smb_settings_share'] is None): - raise ValueError("Missing the required parameter `smb_settings_share` when calling `update_smb_settings_share`") + # verify the required parameter 'nfs_export' is set + if ('nfs_export' not in params) or (params['nfs_export'] is None): + raise ValueError("Missing the required parameter `nfs_export` when calling `update_nfs_export`") + # verify the required parameter 'nfs_export_id' is set + if ('nfs_export_id' not in params) or (params['nfs_export_id'] is None): + raise ValueError("Missing the required parameter `nfs_export_id` when calling `update_nfs_export`") - resource_path = '/platform/3/protocols/smb/settings/share'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/2/protocols/nfs/exports/{NfsExportId}'.replace('{format}', 'json') path_params = {} + if 'nfs_export_id' in params: + path_params['NfsExportId'] = params['nfs_export_id'] query_params = {} + if 'force' in params: + query_params['force'] = params['force'] if 'zone' in params: query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'smb_settings_share' in params: - body_params = params['smb_settings_share'] + if 'nfs_export' in params: + body_params = params['nfs_export'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7206,22 +6794,22 @@ def update_smb_settings_share(self, smb_settings_share, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_smb_shares(self, **kwargs): + def update_nfs_log_level(self, nfs_log_level, **kwargs): """ - List all shares. + Set the current NFS service logging level. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7229,23 +6817,17 @@ def list_smb_shares(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_smb_shares(callback=callback_function) + >>> thread = api.update_nfs_log_level(nfs_log_level, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: Order results by this field. Default is id. - :param str zone: Zone which contains this share. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param bool resolve_names: If true, resolve group and user names in personas. - :param int limit: Return no more than this many results at once (see resume). - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :param str dir: The direction of the sort. - :return: SmbSharesExtended + :param NfsLogLevel nfs_log_level: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'zone', 'resume', 'resolve_names', 'limit', 'scope', 'dir'] + all_params = ['nfs_log_level'] all_params.append('callback') params = locals() @@ -7253,39 +6835,29 @@ def list_smb_shares(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_smb_shares" % key + " to method update_nfs_log_level" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'nfs_log_level' is set + if ('nfs_log_level' not in params) or (params['nfs_log_level'] is None): + raise ValueError("Missing the required parameter `nfs_log_level` when calling `update_nfs_log_level`") - resource_path = '/platform/3/protocols/smb/shares'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/nfs/log-level'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'scope' in params: - query_params['scope'] = params['scope'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'nfs_log_level' in params: + body_params = params['nfs_log_level'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7300,22 +6872,22 @@ def list_smb_shares(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbSharesExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_smb_share(self, smb_share, **kwargs): + def update_nfs_netgroup(self, nfs_netgroup, **kwargs): """ - Create a new share. + Modify the current NFS netgroup settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7323,18 +6895,18 @@ def create_smb_share(self, smb_share, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_smb_share(smb_share, callback=callback_function) + >>> thread = api.update_nfs_netgroup(nfs_netgroup, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SmbShareCreateParams smb_share: (required) - :param str zone: Zone which contains this share. - :return: CreateResponse + :param NfsNetgroup nfs_netgroup: (required) + :param str host: Host to retrieve netgroup cache settings for. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_share', 'zone'] + all_params = ['nfs_netgroup', 'host'] all_params.append('callback') params = locals() @@ -7342,32 +6914,31 @@ def create_smb_share(self, smb_share, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_smb_share" % key + " to method update_nfs_netgroup" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_share' is set - if ('smb_share' not in params) or (params['smb_share'] is None): - raise ValueError("Missing the required parameter `smb_share` when calling `create_smb_share`") + # verify the required parameter 'nfs_netgroup' is set + if ('nfs_netgroup' not in params) or (params['nfs_netgroup'] is None): + raise ValueError("Missing the required parameter `nfs_netgroup` when calling `update_nfs_netgroup`") - resource_path = '/platform/3/protocols/smb/shares'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/protocols/nfs/netgroup'.replace('{format}', 'json') path_params = {} query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] + if 'host' in params: + query_params['host'] = params['host'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'smb_share' in params: - body_params = params['smb_share'] + if 'nfs_netgroup' in params: + body_params = params['nfs_netgroup'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7382,22 +6953,22 @@ def create_smb_share(self, smb_share, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_smb_shares(self, **kwargs): + def update_nfs_settings_export(self, nfs_settings_export, **kwargs): """ - Delete multiple smb shares. + Modify the default values for NFS exports. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7405,16 +6976,18 @@ def delete_smb_shares(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_smb_shares(callback=callback_function) + >>> thread = api.update_nfs_settings_export(nfs_settings_export, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param NfsSettingsExportSettings nfs_settings_export: (required) + :param str zone: Access zone :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['nfs_settings_export', 'zone'] all_params.append('callback') params = locals() @@ -7422,25 +6995,31 @@ def delete_smb_shares(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_smb_shares" % key + " to method update_nfs_settings_export" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'nfs_settings_export' is set + if ('nfs_settings_export' not in params) or (params['nfs_settings_export'] is None): + raise ValueError("Missing the required parameter `nfs_settings_export` when calling `update_nfs_settings_export`") - resource_path = '/platform/3/protocols/smb/shares'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/2/protocols/nfs/settings/export'.replace('{format}', 'json') path_params = {} query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'nfs_settings_export' in params: + body_params = params['nfs_settings_export'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7455,22 +7034,22 @@ def delete_smb_shares(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_smb_share(self, smb_share_id, **kwargs): + def update_nfs_settings_global(self, nfs_settings_global, **kwargs): """ - Retrieve share. + Modify the default values for NFS exports. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7478,20 +7057,17 @@ def get_smb_share(self, smb_share_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_smb_share(smb_share_id, callback=callback_function) + >>> thread = api.update_nfs_settings_global(nfs_settings_global, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str smb_share_id: Retrieve share. (required) - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :param bool resolve_names: If true, resolve group and user names in personas. - :param str zone: Zone which contains this share. - :return: SmbShares + :param NfsSettingsGlobalSettings nfs_settings_global: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_share_id', 'scope', 'resolve_names', 'zone'] + all_params = ['nfs_settings_global'] all_params.append('callback') params = locals() @@ -7499,36 +7075,29 @@ def get_smb_share(self, smb_share_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_smb_share" % key + " to method update_nfs_settings_global" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_share_id' is set - if ('smb_share_id' not in params) or (params['smb_share_id'] is None): - raise ValueError("Missing the required parameter `smb_share_id` when calling `get_smb_share`") + # verify the required parameter 'nfs_settings_global' is set + if ('nfs_settings_global' not in params) or (params['nfs_settings_global'] is None): + raise ValueError("Missing the required parameter `nfs_settings_global` when calling `update_nfs_settings_global`") - resource_path = '/platform/3/protocols/smb/shares/{SmbShareId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/nfs/settings/global'.replace('{format}', 'json') path_params = {} - if 'smb_share_id' in params: - path_params['SmbShareId'] = params['smb_share_id'] query_params = {} - if 'scope' in params: - query_params['scope'] = params['scope'] - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'nfs_settings_global' in params: + body_params = params['nfs_settings_global'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7543,22 +7112,22 @@ def get_smb_share(self, smb_share_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SmbShares', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_smb_share(self, smb_share, smb_share_id, **kwargs): + def update_nfs_settings_zone(self, nfs_settings_zone, **kwargs): """ - Modify share. All input fields are optional, but one or must be supplied. + Modify the NFS server settings for this zone. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7566,19 +7135,17 @@ def update_smb_share(self, smb_share, smb_share_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_smb_share(smb_share, smb_share_id, callback=callback_function) + >>> thread = api.update_nfs_settings_zone(nfs_settings_zone, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SmbShare smb_share: (required) - :param str smb_share_id: Modify share. All input fields are optional, but one or must be supplied. (required) - :param str zone: Zone which contains this share. + :param NfsSettingsZoneSettings nfs_settings_zone: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_share', 'smb_share_id', 'zone'] + all_params = ['nfs_settings_zone'] all_params.append('callback') params = locals() @@ -7586,37 +7153,29 @@ def update_smb_share(self, smb_share, smb_share_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_smb_share" % key + " to method update_nfs_settings_zone" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_share' is set - if ('smb_share' not in params) or (params['smb_share'] is None): - raise ValueError("Missing the required parameter `smb_share` when calling `update_smb_share`") - # verify the required parameter 'smb_share_id' is set - if ('smb_share_id' not in params) or (params['smb_share_id'] is None): - raise ValueError("Missing the required parameter `smb_share_id` when calling `update_smb_share`") + # verify the required parameter 'nfs_settings_zone' is set + if ('nfs_settings_zone' not in params) or (params['nfs_settings_zone'] is None): + raise ValueError("Missing the required parameter `nfs_settings_zone` when calling `update_nfs_settings_zone`") - resource_path = '/platform/3/protocols/smb/shares/{SmbShareId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/2/protocols/nfs/settings/zone'.replace('{format}', 'json') path_params = {} - if 'smb_share_id' in params: - path_params['SmbShareId'] = params['smb_share_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'smb_share' in params: - body_params = params['smb_share'] + if 'nfs_settings_zone' in params: + body_params = params['nfs_settings_zone'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7631,22 +7190,22 @@ def update_smb_share(self, smb_share, smb_share_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_smb_share(self, smb_share_id, **kwargs): + def update_ntp_server(self, ntp_server, ntp_server_id, **kwargs): """ - Delete the share. + Modify the key value for an NTP server. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7654,18 +7213,18 @@ def delete_smb_share(self, smb_share_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_smb_share(smb_share_id, callback=callback_function) + >>> thread = api.update_ntp_server(ntp_server, ntp_server_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str smb_share_id: Delete the share. (required) - :param str zone: Zone which contains this share. + :param NtpServer ntp_server: (required) + :param str ntp_server_id: Modify the key value for an NTP server. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['smb_share_id', 'zone'] + all_params = ['ntp_server', 'ntp_server_id'] all_params.append('callback') params = locals() @@ -7673,32 +7232,34 @@ def delete_smb_share(self, smb_share_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_smb_share" % key + " to method update_ntp_server" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'smb_share_id' is set - if ('smb_share_id' not in params) or (params['smb_share_id'] is None): - raise ValueError("Missing the required parameter `smb_share_id` when calling `delete_smb_share`") + # verify the required parameter 'ntp_server' is set + if ('ntp_server' not in params) or (params['ntp_server'] is None): + raise ValueError("Missing the required parameter `ntp_server` when calling `update_ntp_server`") + # verify the required parameter 'ntp_server_id' is set + if ('ntp_server_id' not in params) or (params['ntp_server_id'] is None): + raise ValueError("Missing the required parameter `ntp_server_id` when calling `update_ntp_server`") - resource_path = '/platform/3/protocols/smb/shares/{SmbShareId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/ntp/servers/{NtpServerId}'.replace('{format}', 'json') path_params = {} - if 'smb_share_id' in params: - path_params['SmbShareId'] = params['smb_share_id'] + if 'ntp_server_id' in params: + path_params['NtpServerId'] = params['ntp_server_id'] query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'ntp_server' in params: + body_params = params['ntp_server'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7713,22 +7274,22 @@ def delete_smb_share(self, smb_share_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_snmp_settings(self, **kwargs): + def update_ntp_settings(self, ntp_settings, **kwargs): """ - Retrieve the SNMP settings. + Modify the NTP settings. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7736,16 +7297,17 @@ def get_snmp_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_snmp_settings(callback=callback_function) + >>> thread = api.update_ntp_settings(ntp_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SnmpSettings + :param NtpSettingsSettings ntp_settings: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['ntp_settings'] all_params.append('callback') params = locals() @@ -7753,25 +7315,29 @@ def get_snmp_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_snmp_settings" % key + " to method update_ntp_settings" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'ntp_settings' is set + if ('ntp_settings' not in params) or (params['ntp_settings'] is None): + raise ValueError("Missing the required parameter `ntp_settings` when calling `update_ntp_settings`") - resource_path = '/platform/3/protocols/snmp/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/ntp/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'ntp_settings' in params: + body_params = params['ntp_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7786,22 +7352,22 @@ def get_snmp_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnmpSettings', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_snmp_settings(self, snmp_settings, **kwargs): + def update_smb_log_level(self, smb_log_level, **kwargs): """ - Modify the SNMO settings. All input fields are optional, but one or more must be supplied. + Set the current SMB logging level. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7809,17 +7375,17 @@ def update_snmp_settings(self, snmp_settings, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_snmp_settings(snmp_settings, callback=callback_function) + >>> thread = api.update_smb_log_level(smb_log_level, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnmpSettingsExtended snmp_settings: (required) + :param SmbLogLevel smb_log_level: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['snmp_settings'] + all_params = ['smb_log_level'] all_params.append('callback') params = locals() @@ -7827,30 +7393,29 @@ def update_snmp_settings(self, snmp_settings, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_snmp_settings" % key + " to method update_smb_log_level" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snmp_settings' is set - if ('snmp_settings' not in params) or (params['snmp_settings'] is None): - raise ValueError("Missing the required parameter `snmp_settings` when calling `update_snmp_settings`") + # verify the required parameter 'smb_log_level' is set + if ('smb_log_level' not in params) or (params['smb_log_level'] is None): + raise ValueError("Missing the required parameter `smb_log_level` when calling `update_smb_log_level`") - resource_path = '/platform/3/protocols/snmp/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/smb/log-level'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snmp_settings' in params: - body_params = params['snmp_settings'] + if 'smb_log_level' in params: + body_params = params['smb_log_level'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7865,22 +7430,22 @@ def update_snmp_settings(self, snmp_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_swift_accounts(self, **kwargs): + def update_smb_settings_global(self, smb_settings_global, **kwargs): """ - List all swift accounts. + Modify one or more settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7888,16 +7453,17 @@ def list_swift_accounts(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_swift_accounts(callback=callback_function) + >>> thread = api.update_smb_settings_global(smb_settings_global, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SwiftAccounts + :param SmbSettingsGlobalSettings smb_settings_global: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['smb_settings_global'] all_params.append('callback') params = locals() @@ -7905,25 +7471,29 @@ def list_swift_accounts(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_swift_accounts" % key + " to method update_smb_settings_global" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'smb_settings_global' is set + if ('smb_settings_global' not in params) or (params['smb_settings_global'] is None): + raise ValueError("Missing the required parameter `smb_settings_global` when calling `update_smb_settings_global`") - resource_path = '/platform/3/protocols/swift/accounts'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/smb/settings/global'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'smb_settings_global' in params: + body_params = params['smb_settings_global'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -7938,22 +7508,22 @@ def list_swift_accounts(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SwiftAccounts', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_swift_account(self, swift_account, **kwargs): + def update_smb_settings_share(self, smb_settings_share, **kwargs): """ - Create a new Swift account + Modify one or more settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -7961,17 +7531,18 @@ def create_swift_account(self, swift_account, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_swift_account(swift_account, callback=callback_function) + >>> thread = api.update_smb_settings_share(smb_settings_share, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SwiftAccount swift_account: (required) - :return: CreateResponse + :param SmbSettingsShareSettings smb_settings_share: (required) + :param str zone: Zone which contains these share settings. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['swift_account'] + all_params = ['smb_settings_share', 'zone'] all_params.append('callback') params = locals() @@ -7979,30 +7550,31 @@ def create_swift_account(self, swift_account, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_swift_account" % key + " to method update_smb_settings_share" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'swift_account' is set - if ('swift_account' not in params) or (params['swift_account'] is None): - raise ValueError("Missing the required parameter `swift_account` when calling `create_swift_account`") + # verify the required parameter 'smb_settings_share' is set + if ('smb_settings_share' not in params) or (params['smb_settings_share'] is None): + raise ValueError("Missing the required parameter `smb_settings_share` when calling `update_smb_settings_share`") - resource_path = '/platform/3/protocols/swift/accounts'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/protocols/smb/settings/share'.replace('{format}', 'json') path_params = {} query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'swift_account' in params: - body_params = params['swift_account'] + if 'smb_settings_share' in params: + body_params = params['smb_settings_share'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8017,22 +7589,22 @@ def create_swift_account(self, swift_account, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_swift_account(self, swift_account_id, **kwargs): + def update_smb_share(self, smb_share, smb_share_id, **kwargs): """ - List a swift account. + Modify share. All input fields are optional, but one or must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8040,17 +7612,19 @@ def get_swift_account(self, swift_account_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_swift_account(swift_account_id, callback=callback_function) + >>> thread = api.update_smb_share(smb_share, smb_share_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str swift_account_id: List a swift account. (required) - :return: SwiftAccounts + :param SmbShare smb_share: (required) + :param str smb_share_id: Modify share. All input fields are optional, but one or must be supplied. (required) + :param str zone: Zone which contains this share. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['swift_account_id'] + all_params = ['smb_share', 'smb_share_id', 'zone'] all_params.append('callback') params = locals() @@ -8058,30 +7632,36 @@ def get_swift_account(self, swift_account_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_swift_account" % key + " to method update_smb_share" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'swift_account_id' is set - if ('swift_account_id' not in params) or (params['swift_account_id'] is None): - raise ValueError("Missing the required parameter `swift_account_id` when calling `get_swift_account`") + # verify the required parameter 'smb_share' is set + if ('smb_share' not in params) or (params['smb_share'] is None): + raise ValueError("Missing the required parameter `smb_share` when calling `update_smb_share`") + # verify the required parameter 'smb_share_id' is set + if ('smb_share_id' not in params) or (params['smb_share_id'] is None): + raise ValueError("Missing the required parameter `smb_share_id` when calling `update_smb_share`") - resource_path = '/platform/3/protocols/swift/accounts/{SwiftAccountId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/protocols/smb/shares/{SmbShareId}'.replace('{format}', 'json') path_params = {} - if 'swift_account_id' in params: - path_params['SwiftAccountId'] = params['swift_account_id'] + if 'smb_share_id' in params: + path_params['SmbShareId'] = params['smb_share_id'] query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'smb_share' in params: + body_params = params['smb_share'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8096,22 +7676,22 @@ def get_swift_account(self, swift_account_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SwiftAccounts', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_swift_account(self, swift_account, swift_account_id, **kwargs): + def update_snmp_settings(self, snmp_settings, **kwargs): """ - Modify a Swift account + Modify the SNMO settings. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8119,18 +7699,17 @@ def update_swift_account(self, swift_account, swift_account_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_swift_account(swift_account, swift_account_id, callback=callback_function) + >>> thread = api.update_snmp_settings(snmp_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SwiftAccount swift_account: (required) - :param str swift_account_id: Modify a Swift account (required) + :param SnmpSettingsExtended snmp_settings: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['swift_account', 'swift_account_id'] + all_params = ['snmp_settings'] all_params.append('callback') params = locals() @@ -8138,35 +7717,29 @@ def update_swift_account(self, swift_account, swift_account_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_swift_account" % key + " to method update_snmp_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'swift_account' is set - if ('swift_account' not in params) or (params['swift_account'] is None): - raise ValueError("Missing the required parameter `swift_account` when calling `update_swift_account`") - # verify the required parameter 'swift_account_id' is set - if ('swift_account_id' not in params) or (params['swift_account_id'] is None): - raise ValueError("Missing the required parameter `swift_account_id` when calling `update_swift_account`") + # verify the required parameter 'snmp_settings' is set + if ('snmp_settings' not in params) or (params['snmp_settings'] is None): + raise ValueError("Missing the required parameter `snmp_settings` when calling `update_snmp_settings`") - resource_path = '/platform/3/protocols/swift/accounts/{SwiftAccountId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/protocols/snmp/settings'.replace('{format}', 'json') path_params = {} - if 'swift_account_id' in params: - path_params['SwiftAccountId'] = params['swift_account_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'swift_account' in params: - body_params = params['swift_account'] + if 'snmp_settings' in params: + body_params = params['snmp_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8181,22 +7754,22 @@ def update_swift_account(self, swift_account, swift_account_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_swift_account(self, swift_account_id, **kwargs): + def update_swift_account(self, swift_account, swift_account_id, **kwargs): """ - Delete a Swift account. + Modify a Swift account This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -8204,17 +7777,18 @@ def delete_swift_account(self, swift_account_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_swift_account(swift_account_id, callback=callback_function) + >>> thread = api.update_swift_account(swift_account, swift_account_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str swift_account_id: Delete a Swift account. (required) + :param SwiftAccount swift_account: (required) + :param str swift_account_id: Modify a Swift account (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['swift_account_id'] + all_params = ['swift_account', 'swift_account_id'] all_params.append('callback') params = locals() @@ -8222,18 +7796,20 @@ def delete_swift_account(self, swift_account_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_swift_account" % key + " to method update_swift_account" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'swift_account' is set + if ('swift_account' not in params) or (params['swift_account'] is None): + raise ValueError("Missing the required parameter `swift_account` when calling `update_swift_account`") # verify the required parameter 'swift_account_id' is set if ('swift_account_id' not in params) or (params['swift_account_id'] is None): - raise ValueError("Missing the required parameter `swift_account_id` when calling `delete_swift_account`") + raise ValueError("Missing the required parameter `swift_account_id` when calling `update_swift_account`") - resource_path = '/platform/3/protocols/swift/accounts/{SwiftAccountId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/protocols/swift/accounts/{SwiftAccountId}'.replace('{format}', 'json') path_params = {} if 'swift_account_id' in params: path_params['SwiftAccountId'] = params['swift_account_id'] @@ -8242,10 +7818,12 @@ def delete_swift_account(self, swift_account_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'swift_account' in params: + body_params = params['swift_account'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -8260,13 +7838,13 @@ def delete_swift_account(self, swift_account_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/protocols_hdfs_api.py b/isi_sdk/apis/protocols_hdfs_api.py new file mode 100644 index 000000000..72a01cf65 --- /dev/null +++ b/isi_sdk/apis/protocols_hdfs_api.py @@ -0,0 +1,383 @@ +# coding: utf-8 + +""" +ProtocolsHdfsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ProtocolsHdfsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_proxyusers_name_member(self, proxyusers_name_member, name, **kwargs): + """ + + Add a member to the HDFS proxyuser. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_proxyusers_name_member(proxyusers_name_member, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param GroupMember proxyusers_name_member: (required) + :param str name: (required) + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['proxyusers_name_member', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_proxyusers_name_member" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'proxyusers_name_member' is set + if ('proxyusers_name_member' not in params) or (params['proxyusers_name_member'] is None): + raise ValueError("Missing the required parameter `proxyusers_name_member` when calling `create_proxyusers_name_member`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `create_proxyusers_name_member`") + + + resource_path = '/platform/1/protocols/hdfs/proxyusers/{Name}/members'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['Name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'proxyusers_name_member' in params: + body_params = params['proxyusers_name_member'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_proxyusers_name_member(self, proxyusers_name_member_id, name, **kwargs): + """ + + Remove a member from the HDFS proxyuser. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_proxyusers_name_member(proxyusers_name_member_id, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str proxyusers_name_member_id: Remove a member from the HDFS proxyuser. (required) + :param str name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['proxyusers_name_member_id', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_proxyusers_name_member" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'proxyusers_name_member_id' is set + if ('proxyusers_name_member_id' not in params) or (params['proxyusers_name_member_id'] is None): + raise ValueError("Missing the required parameter `proxyusers_name_member_id` when calling `delete_proxyusers_name_member`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_proxyusers_name_member`") + + + resource_path = '/platform/1/protocols/hdfs/proxyusers/{Name}/members/{ProxyusersNameMemberId}'.replace('{format}', 'json') + path_params = {} + if 'proxyusers_name_member_id' in params: + path_params['ProxyusersNameMemberId'] = params['proxyusers_name_member_id'] + if 'name' in params: + path_params['Name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_proxyusers_name_members(self, name, **kwargs): + """ + + List all the members of the HDFS proxyuser. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_proxyusers_name_members(name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: (required) + :return: GroupMembers + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_proxyusers_name_members" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `list_proxyusers_name_members`") + + + resource_path = '/platform/1/protocols/hdfs/proxyusers/{Name}/members'.replace('{format}', 'json') + path_params = {} + if 'name' in params: + path_params['Name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupMembers', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_proxyusers_name_member(self, proxyusers_name_member, proxyusers_name_member_id, name, **kwargs): + """ + + Create a new HDFS proxyuser. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_proxyusers_name_member(proxyusers_name_member, proxyusers_name_member_id, name, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty proxyusers_name_member: (required) + :param str proxyusers_name_member_id: Create a new HDFS proxyuser. (required) + :param str name: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['proxyusers_name_member', 'proxyusers_name_member_id', 'name'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_proxyusers_name_member" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'proxyusers_name_member' is set + if ('proxyusers_name_member' not in params) or (params['proxyusers_name_member'] is None): + raise ValueError("Missing the required parameter `proxyusers_name_member` when calling `update_proxyusers_name_member`") + # verify the required parameter 'proxyusers_name_member_id' is set + if ('proxyusers_name_member_id' not in params) or (params['proxyusers_name_member_id'] is None): + raise ValueError("Missing the required parameter `proxyusers_name_member_id` when calling `update_proxyusers_name_member`") + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `update_proxyusers_name_member`") + + + resource_path = '/platform/1/protocols/hdfs/proxyusers/{Name}/members/{ProxyusersNameMemberId}'.replace('{format}', 'json') + path_params = {} + if 'proxyusers_name_member_id' in params: + path_params['ProxyusersNameMemberId'] = params['proxyusers_name_member_id'] + if 'name' in params: + path_params['Name'] = params['name'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'proxyusers_name_member' in params: + body_params = params['proxyusers_name_member'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/quota_api.py b/isi_sdk/apis/quota_api.py index 36219939f..b626df6a8 100644 --- a/isi_sdk/apis/quota_api.py +++ b/isi_sdk/apis/quota_api.py @@ -2,7 +2,7 @@ """ QuotaApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_quota_license(self, **kwargs): + def create_quota_quota(self, quota_quota, **kwargs): """ - Retrieve license information. + Create a new quota. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,18 @@ def get_quota_license(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_quota_license(callback=callback_function) + >>> thread = api.create_quota_quota(quota_quota, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: LicenseLicense + :param QuotaQuotaCreateParams quota_quota: (required) + :param str zone: Optional named zone to use for user and group resolution. + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['quota_quota', 'zone'] all_params.append('callback') params = locals() @@ -73,25 +76,31 @@ def get_quota_license(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_quota_license" % key + " to method create_quota_quota" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'quota_quota' is set + if ('quota_quota' not in params) or (params['quota_quota'] is None): + raise ValueError("Missing the required parameter `quota_quota` when calling `create_quota_quota`") - resource_path = '/platform/1/quota/license'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/quotas'.replace('{format}', 'json') path_params = {} query_params = {} + if 'zone' in params: + query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'quota_quota' in params: + body_params = params['quota_quota'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +115,22 @@ def get_quota_license(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='LicenseLicense', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_quota_quotas(self, **kwargs): + def create_quota_report(self, quota_report, **kwargs): """ - List all or matching quotas. Can also be used to retrieve quota state from existing reports. For any query argument not supplied, the default behavior is return all. + Create a new report. The type of this report is 'manual'; it is also sometimes called 'live' or 'ad-hoc'. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,29 +138,17 @@ def list_quota_quotas(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_quota_quotas(callback=callback_function) + >>> thread = api.create_quota_report(quota_report, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param bool enforced: Only list quotas with this enforcement (non-accounting). - :param bool include_snapshots: Only list quotas with this setting for include_snapshots. - :param str zone: Optional named zone to use for user and group resolution. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param bool recurse_path_children: If used with the path argument, match all quotas at that path or any descendent sub-directory. - :param bool resolve_names: If true, resolve group and user names in personas. - :param bool recurse_path_parents: If used with the path argument, match all quotas at that path or any parent directory. - :param str persona: Only list user or group quotas matching this persona (must be used with the corresponding type argument). Format is :, where PERSONA_TYPE is one of USER, GROUP, SID, ID, or GID. - :param int limit: Return no more than this many results at once (see resume). - :param bool exceeded: Set to true to only list quotas which have exceeded one or more of their thresholds. - :param str path: Only list quotas matching this path (see also recurse_path_*). - :param str type: Only list quotas matching this type. - :param str report_id: Use the named report as a source rather than the live quotas. See the /q/quota/reports resource for a list of valid reports. - :return: QuotaQuotasExtended + :param Empty quota_report: (required) + :return: CreateQuotaReportResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['enforced', 'include_snapshots', 'zone', 'resume', 'recurse_path_children', 'resolve_names', 'recurse_path_parents', 'persona', 'limit', 'exceeded', 'path', 'type', 'report_id'] + all_params = ['quota_report'] all_params.append('callback') params = locals() @@ -159,51 +156,29 @@ def list_quota_quotas(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_quota_quotas" % key + " to method create_quota_report" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'quota_report' is set + if ('quota_report' not in params) or (params['quota_report'] is None): + raise ValueError("Missing the required parameter `quota_report` when calling `create_quota_report`") - resource_path = '/platform/1/quota/quotas'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/reports'.replace('{format}', 'json') path_params = {} query_params = {} - if 'enforced' in params: - query_params['enforced'] = params['enforced'] - if 'include_snapshots' in params: - query_params['include_snapshots'] = params['include_snapshots'] - if 'zone' in params: - query_params['zone'] = params['zone'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'recurse_path_children' in params: - query_params['recurse_path_children'] = params['recurse_path_children'] - if 'resolve_names' in params: - query_params['resolve_names'] = params['resolve_names'] - if 'recurse_path_parents' in params: - query_params['recurse_path_parents'] = params['recurse_path_parents'] - if 'persona' in params: - query_params['persona'] = params['persona'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'exceeded' in params: - query_params['exceeded'] = params['exceeded'] - if 'path' in params: - query_params['path'] = params['path'] - if 'type' in params: - query_params['type'] = params['type'] - if 'report_id' in params: - query_params['report_id'] = params['report_id'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'quota_report' in params: + body_params = params['quota_report'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -218,22 +193,22 @@ def list_quota_quotas(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='QuotaQuotasExtended', + files=local_var_files, + response_type='CreateQuotaReportResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_quota_quota(self, quota_quota, **kwargs): + def create_settings_mapping(self, settings_mapping, **kwargs): """ - Create a new quota. + Create a new rule. The new rule must not conflict with an existing rule (e.g. match both the type and domain fields). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -241,18 +216,17 @@ def create_quota_quota(self, quota_quota, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_quota_quota(quota_quota, callback=callback_function) + >>> thread = api.create_settings_mapping(settings_mapping, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param QuotaQuotaCreateParams quota_quota: (required) - :param str zone: Optional named zone to use for user and group resolution. + :param SettingsMappingExtended settings_mapping: (required) :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['quota_quota', 'zone'] + all_params = ['settings_mapping'] all_params.append('callback') params = locals() @@ -260,32 +234,29 @@ def create_quota_quota(self, quota_quota, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_quota_quota" % key + " to method create_settings_mapping" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quota_quota' is set - if ('quota_quota' not in params) or (params['quota_quota'] is None): - raise ValueError("Missing the required parameter `quota_quota` when calling `create_quota_quota`") + # verify the required parameter 'settings_mapping' is set + if ('settings_mapping' not in params) or (params['settings_mapping'] is None): + raise ValueError("Missing the required parameter `settings_mapping` when calling `create_settings_mapping`") - resource_path = '/platform/1/quota/quotas'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/quota/settings/mappings'.replace('{format}', 'json') path_params = {} query_params = {} - if 'zone' in params: - query_params['zone'] = params['zone'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'quota_quota' in params: - body_params = params['quota_quota'] + if 'settings_mapping' in params: + body_params = params['settings_mapping'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -300,22 +271,22 @@ def create_quota_quota(self, quota_quota, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_quota_quotas(self, **kwargs): + def create_settings_notification(self, settings_notification, **kwargs): """ - Delete all or matching quotas. + Create a new global notification rule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -323,23 +294,17 @@ def delete_quota_quotas(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_quota_quotas(callback=callback_function) + >>> thread = api.create_settings_notification(settings_notification, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param bool enforced: Only delete quotas with this enforcement (non-accounting). - :param bool include_snapshots: Only delete quotas with this setting for include_snapshots. - :param bool recurse_path_children: If used with the path argument, delete all quotas at that path or any descendent sub-directory. - :param bool recurse_path_parents: If used with the path argument, delete all quotas at that path or any parent directory. - :param str persona: Only delete user or group quotas matching this persona (must be used with the corresponding type argument). Format is :, where PERSONA_TYPE is one of USER, GROUP, SID, ID, or GID. - :param str path: Only delete quotas matching this path (see also recurse_path_*). - :param str type: Only delete quotas matching this type. - :return: None + :param SettingsNotificationCreateParams settings_notification: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['enforced', 'include_snapshots', 'recurse_path_children', 'recurse_path_parents', 'persona', 'path', 'type'] + all_params = ['settings_notification'] all_params.append('callback') params = locals() @@ -347,39 +312,29 @@ def delete_quota_quotas(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_quota_quotas" % key + " to method create_settings_notification" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'settings_notification' is set + if ('settings_notification' not in params) or (params['settings_notification'] is None): + raise ValueError("Missing the required parameter `settings_notification` when calling `create_settings_notification`") - resource_path = '/platform/1/quota/quotas'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/quota/settings/notifications'.replace('{format}', 'json') path_params = {} query_params = {} - if 'enforced' in params: - query_params['enforced'] = params['enforced'] - if 'include_snapshots' in params: - query_params['include_snapshots'] = params['include_snapshots'] - if 'recurse_path_children' in params: - query_params['recurse_path_children'] = params['recurse_path_children'] - if 'recurse_path_parents' in params: - query_params['recurse_path_parents'] = params['recurse_path_parents'] - if 'persona' in params: - query_params['persona'] = params['persona'] - if 'path' in params: - query_params['path'] = params['path'] - if 'type' in params: - query_params['type'] = params['type'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'settings_notification' in params: + body_params = params['settings_notification'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -394,22 +349,22 @@ def delete_quota_quotas(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_quota_quotas_summary(self, **kwargs): + def delete_quota_quota(self, quota_quota_id, **kwargs): """ - Return summary information about quotas. + Delete the quota. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -417,16 +372,17 @@ def get_quota_quotas_summary(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_quota_quotas_summary(callback=callback_function) + >>> thread = api.delete_quota_quota(quota_quota_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: QuotaQuotasSummary + :param str quota_quota_id: Delete the quota. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['quota_quota_id'] all_params.append('callback') params = locals() @@ -434,23 +390,27 @@ def get_quota_quotas_summary(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_quota_quotas_summary" % key + " to method delete_quota_quota" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'quota_quota_id' is set + if ('quota_quota_id' not in params) or (params['quota_quota_id'] is None): + raise ValueError("Missing the required parameter `quota_quota_id` when calling `delete_quota_quota`") - resource_path = '/platform/1/quota/quotas-summary'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/quotas/{QuotaQuotaId}'.replace('{format}', 'json') path_params = {} + if 'quota_quota_id' in params: + path_params['QuotaQuotaId'] = params['quota_quota_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -467,22 +427,22 @@ def get_quota_quotas_summary(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='QuotaQuotasSummary', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_quotas_qid_notifications(self, qid, **kwargs): + def delete_quota_quotas(self, **kwargs): """ - List all rules. + Delete all or matching quotas. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -490,17 +450,23 @@ def list_quotas_qid_notifications(self, qid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_quotas_qid_notifications(qid, callback=callback_function) + >>> thread = api.delete_quota_quotas(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str qid: (required) - :return: QuotasQidNotificationsExtended + :param bool enforced: Only delete quotas with this enforcement (non-accounting). + :param bool include_snapshots: Only delete quotas with this setting for include_snapshots. + :param bool recurse_path_children: If used with the path argument, delete all quotas at that path or any descendent sub-directory. + :param bool recurse_path_parents: If used with the path argument, delete all quotas at that path or any parent directory. + :param str persona: Only delete user or group quotas matching this persona (must be used with the corresponding type argument). Format is :, where PERSONA_TYPE is one of USER, GROUP, SID, ID, or GID. + :param str path: Only delete quotas matching this path (see also recurse_path_*). + :param str type: Only delete quotas matching this type. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['qid'] + all_params = ['enforced', 'include_snapshots', 'recurse_path_children', 'recurse_path_parents', 'persona', 'path', 'type'] all_params.append('callback') params = locals() @@ -508,28 +474,36 @@ def list_quotas_qid_notifications(self, qid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_quotas_qid_notifications" % key + " to method delete_quota_quotas" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'qid' is set - if ('qid' not in params) or (params['qid'] is None): - raise ValueError("Missing the required parameter `qid` when calling `list_quotas_qid_notifications`") - resource_path = '/platform/1/quota/quotas/{Qid}/notifications'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/quotas'.replace('{format}', 'json') path_params = {} - if 'qid' in params: - path_params['Qid'] = params['qid'] query_params = {} + if 'enforced' in params: + query_params['enforced'] = params['enforced'] + if 'include_snapshots' in params: + query_params['include_snapshots'] = params['include_snapshots'] + if 'recurse_path_children' in params: + query_params['recurse_path_children'] = params['recurse_path_children'] + if 'recurse_path_parents' in params: + query_params['recurse_path_parents'] = params['recurse_path_parents'] + if 'persona' in params: + query_params['persona'] = params['persona'] + if 'path' in params: + query_params['path'] = params['path'] + if 'type' in params: + query_params['type'] = params['type'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -546,22 +520,22 @@ def list_quotas_qid_notifications(self, qid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='QuotasQidNotificationsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_quotas_qid_notifications(self, quotas_qid_notifications, qid, **kwargs): + def delete_quota_report(self, quota_report_id, **kwargs): """ - This method creates an empty set of rules so that the global rules are not used. The input must be an empty JSON object. + Delete the report. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -569,18 +543,17 @@ def update_quotas_qid_notifications(self, quotas_qid_notifications, qid, **kwarg >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_quotas_qid_notifications(quotas_qid_notifications, qid, callback=callback_function) + >>> thread = api.delete_quota_report(quota_report_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty quotas_qid_notifications: (required) - :param str qid: (required) + :param str quota_report_id: Delete the report. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['quotas_qid_notifications', 'qid'] + all_params = ['quota_report_id'] all_params.append('callback') params = locals() @@ -588,35 +561,29 @@ def update_quotas_qid_notifications(self, quotas_qid_notifications, qid, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_quotas_qid_notifications" % key + " to method delete_quota_report" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quotas_qid_notifications' is set - if ('quotas_qid_notifications' not in params) or (params['quotas_qid_notifications'] is None): - raise ValueError("Missing the required parameter `quotas_qid_notifications` when calling `update_quotas_qid_notifications`") - # verify the required parameter 'qid' is set - if ('qid' not in params) or (params['qid'] is None): - raise ValueError("Missing the required parameter `qid` when calling `update_quotas_qid_notifications`") + # verify the required parameter 'quota_report_id' is set + if ('quota_report_id' not in params) or (params['quota_report_id'] is None): + raise ValueError("Missing the required parameter `quota_report_id` when calling `delete_quota_report`") - resource_path = '/platform/1/quota/quotas/{Qid}/notifications'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/quota/reports/{QuotaReportId}'.replace('{format}', 'json') path_params = {} - if 'qid' in params: - path_params['Qid'] = params['qid'] + if 'quota_report_id' in params: + path_params['QuotaReportId'] = params['quota_report_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'quotas_qid_notifications' in params: - body_params = params['quotas_qid_notifications'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -631,22 +598,22 @@ def update_quotas_qid_notifications(self, quotas_qid_notifications, qid, **kwarg # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_quotas_qid_notification(self, quotas_qid_notification, qid, **kwargs): + def delete_settings_mapping(self, settings_mapping_id, **kwargs): """ - Create a new notification rule specific to this quota. + Delete the mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -654,18 +621,17 @@ def create_quotas_qid_notification(self, quotas_qid_notification, qid, **kwargs) >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_quotas_qid_notification(quotas_qid_notification, qid, callback=callback_function) + >>> thread = api.delete_settings_mapping(settings_mapping_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param QuotasQidNotificationCreateParams quotas_qid_notification: (required) - :param str qid: (required) - :return: CreateResponse + :param str settings_mapping_id: Delete the mapping. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['quotas_qid_notification', 'qid'] + all_params = ['settings_mapping_id'] all_params.append('callback') params = locals() @@ -673,35 +639,29 @@ def create_quotas_qid_notification(self, quotas_qid_notification, qid, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_quotas_qid_notification" % key + " to method delete_settings_mapping" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quotas_qid_notification' is set - if ('quotas_qid_notification' not in params) or (params['quotas_qid_notification'] is None): - raise ValueError("Missing the required parameter `quotas_qid_notification` when calling `create_quotas_qid_notification`") - # verify the required parameter 'qid' is set - if ('qid' not in params) or (params['qid'] is None): - raise ValueError("Missing the required parameter `qid` when calling `create_quotas_qid_notification`") + # verify the required parameter 'settings_mapping_id' is set + if ('settings_mapping_id' not in params) or (params['settings_mapping_id'] is None): + raise ValueError("Missing the required parameter `settings_mapping_id` when calling `delete_settings_mapping`") - resource_path = '/platform/1/quota/quotas/{Qid}/notifications'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/quota/settings/mappings/{SettingsMappingId}'.replace('{format}', 'json') path_params = {} - if 'qid' in params: - path_params['Qid'] = params['qid'] + if 'settings_mapping_id' in params: + path_params['SettingsMappingId'] = params['settings_mapping_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'quotas_qid_notification' in params: - body_params = params['quotas_qid_notification'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -716,22 +676,22 @@ def create_quotas_qid_notification(self, quotas_qid_notification, qid, **kwargs) # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_quotas_qid_notifications(self, qid, **kwargs): + def delete_settings_mappings(self, **kwargs): """ - Delete all quota specific rules. The quota will then use the global rules. + Delete all rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -739,17 +699,16 @@ def delete_quotas_qid_notifications(self, qid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_quotas_qid_notifications(qid, callback=callback_function) + >>> thread = api.delete_settings_mappings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str qid: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['qid'] + all_params = [] all_params.append('callback') params = locals() @@ -757,28 +716,22 @@ def delete_quotas_qid_notifications(self, qid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_quotas_qid_notifications" % key + " to method delete_settings_mappings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'qid' is set - if ('qid' not in params) or (params['qid'] is None): - raise ValueError("Missing the required parameter `qid` when calling `delete_quotas_qid_notifications`") - resource_path = '/platform/1/quota/quotas/{Qid}/notifications'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/quota/settings/mappings'.replace('{format}', 'json') path_params = {} - if 'qid' in params: - path_params['Qid'] = params['qid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -795,22 +748,22 @@ def delete_quotas_qid_notifications(self, qid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_quotas_qid_notification(self, quotas_qid_notification_id, qid, **kwargs): + def delete_settings_notification(self, settings_notification_id, **kwargs): """ - Retrieve notification rule information. + Delete the notification rule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -818,18 +771,17 @@ def get_quotas_qid_notification(self, quotas_qid_notification_id, qid, **kwargs) >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_quotas_qid_notification(quotas_qid_notification_id, qid, callback=callback_function) + >>> thread = api.delete_settings_notification(settings_notification_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str quotas_qid_notification_id: Retrieve notification rule information. (required) - :param str qid: (required) - :return: QuotasQidNotifications + :param str settings_notification_id: Delete the notification rule. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['quotas_qid_notification_id', 'qid'] + all_params = ['settings_notification_id'] all_params.append('callback') params = locals() @@ -837,33 +789,27 @@ def get_quotas_qid_notification(self, quotas_qid_notification_id, qid, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_quotas_qid_notification" % key + " to method delete_settings_notification" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quotas_qid_notification_id' is set - if ('quotas_qid_notification_id' not in params) or (params['quotas_qid_notification_id'] is None): - raise ValueError("Missing the required parameter `quotas_qid_notification_id` when calling `get_quotas_qid_notification`") - # verify the required parameter 'qid' is set - if ('qid' not in params) or (params['qid'] is None): - raise ValueError("Missing the required parameter `qid` when calling `get_quotas_qid_notification`") + # verify the required parameter 'settings_notification_id' is set + if ('settings_notification_id' not in params) or (params['settings_notification_id'] is None): + raise ValueError("Missing the required parameter `settings_notification_id` when calling `delete_settings_notification`") - resource_path = '/platform/1/quota/quotas/{Qid}/notifications/{QuotasQidNotificationId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/settings/notifications/{SettingsNotificationId}'.replace('{format}', 'json') path_params = {} - if 'quotas_qid_notification_id' in params: - path_params['QuotasQidNotificationId'] = params['quotas_qid_notification_id'] - if 'qid' in params: - path_params['Qid'] = params['qid'] + if 'settings_notification_id' in params: + path_params['SettingsNotificationId'] = params['settings_notification_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -880,22 +826,22 @@ def get_quotas_qid_notification(self, quotas_qid_notification_id, qid, **kwargs) # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='QuotasQidNotifications', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_quotas_qid_notification(self, quotas_qid_notification, quotas_qid_notification_id, qid, **kwargs): + def delete_settings_notifications(self, **kwargs): """ - Modify notification rule. All input fields are optional, but one or must be supplied. + Delete all rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -903,19 +849,16 @@ def update_quotas_qid_notification(self, quotas_qid_notification, quotas_qid_not >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_quotas_qid_notification(quotas_qid_notification, quotas_qid_notification_id, qid, callback=callback_function) + >>> thread = api.delete_settings_notifications(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param QuotasQidNotification quotas_qid_notification: (required) - :param str quotas_qid_notification_id: Modify notification rule. All input fields are optional, but one or must be supplied. (required) - :param str qid: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['quotas_qid_notification', 'quotas_qid_notification_id', 'qid'] + all_params = [] all_params.append('callback') params = locals() @@ -923,40 +866,24 @@ def update_quotas_qid_notification(self, quotas_qid_notification, quotas_qid_not if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_quotas_qid_notification" % key + " to method delete_settings_notifications" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quotas_qid_notification' is set - if ('quotas_qid_notification' not in params) or (params['quotas_qid_notification'] is None): - raise ValueError("Missing the required parameter `quotas_qid_notification` when calling `update_quotas_qid_notification`") - # verify the required parameter 'quotas_qid_notification_id' is set - if ('quotas_qid_notification_id' not in params) or (params['quotas_qid_notification_id'] is None): - raise ValueError("Missing the required parameter `quotas_qid_notification_id` when calling `update_quotas_qid_notification`") - # verify the required parameter 'qid' is set - if ('qid' not in params) or (params['qid'] is None): - raise ValueError("Missing the required parameter `qid` when calling `update_quotas_qid_notification`") - resource_path = '/platform/1/quota/quotas/{Qid}/notifications/{QuotasQidNotificationId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/quota/settings/notifications'.replace('{format}', 'json') path_params = {} - if 'quotas_qid_notification_id' in params: - path_params['QuotasQidNotificationId'] = params['quotas_qid_notification_id'] - if 'qid' in params: - path_params['Qid'] = params['qid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'quotas_qid_notification' in params: - body_params = params['quotas_qid_notification'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -971,22 +898,22 @@ def update_quotas_qid_notification(self, quotas_qid_notification, quotas_qid_not # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_quotas_qid_notification(self, quotas_qid_notification_id, qid, **kwargs): + def get_quota_license(self, **kwargs): """ - Delete the notification rule. + Retrieve license information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -994,18 +921,16 @@ def delete_quotas_qid_notification(self, quotas_qid_notification_id, qid, **kwar >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_quotas_qid_notification(quotas_qid_notification_id, qid, callback=callback_function) + >>> thread = api.get_quota_license(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str quotas_qid_notification_id: Delete the notification rule. (required) - :param str qid: (required) - :return: None + :return: LicenseLicense If the method is called asynchronously, returns the request thread. """ - all_params = ['quotas_qid_notification_id', 'qid'] + all_params = [] all_params.append('callback') params = locals() @@ -1013,33 +938,22 @@ def delete_quotas_qid_notification(self, quotas_qid_notification_id, qid, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_quotas_qid_notification" % key + " to method get_quota_license" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quotas_qid_notification_id' is set - if ('quotas_qid_notification_id' not in params) or (params['quotas_qid_notification_id'] is None): - raise ValueError("Missing the required parameter `quotas_qid_notification_id` when calling `delete_quotas_qid_notification`") - # verify the required parameter 'qid' is set - if ('qid' not in params) or (params['qid'] is None): - raise ValueError("Missing the required parameter `qid` when calling `delete_quotas_qid_notification`") - resource_path = '/platform/1/quota/quotas/{Qid}/notifications/{QuotasQidNotificationId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/quota/license'.replace('{format}', 'json') path_params = {} - if 'quotas_qid_notification_id' in params: - path_params['QuotasQidNotificationId'] = params['quotas_qid_notification_id'] - if 'qid' in params: - path_params['Qid'] = params['qid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1056,14 +970,14 @@ def delete_quotas_qid_notification(self, quotas_qid_notification_id, qid, **kwar # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='LicenseLicense', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1108,9 +1022,8 @@ def get_quota_quota(self, quota_quota_id, **kwargs): if ('quota_quota_id' not in params) or (params['quota_quota_id'] is None): raise ValueError("Missing the required parameter `quota_quota_id` when calling `get_quota_quota`") - resource_path = '/platform/1/quota/quotas/{QuotaQuotaId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/quotas/{QuotaQuotaId}'.replace('{format}', 'json') path_params = {} if 'quota_quota_id' in params: path_params['QuotaQuotaId'] = params['quota_quota_id'] @@ -1123,8 +1036,8 @@ def get_quota_quota(self, quota_quota_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1141,22 +1054,22 @@ def get_quota_quota(self, quota_quota_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='QuotaQuotas', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_quota_quota(self, quota_quota, quota_quota_id, **kwargs): + def get_quota_quotas_summary(self, **kwargs): """ - Modify quota. All input fields are optional, but one or more must be supplied. + Return summary information about quotas. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1164,18 +1077,16 @@ def update_quota_quota(self, quota_quota, quota_quota_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_quota_quota(quota_quota, quota_quota_id, callback=callback_function) + >>> thread = api.get_quota_quotas_summary(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param QuotaQuota quota_quota: (required) - :param str quota_quota_id: Modify quota. All input fields are optional, but one or more must be supplied. (required) - :return: None + :return: QuotaQuotasSummary If the method is called asynchronously, returns the request thread. """ - all_params = ['quota_quota', 'quota_quota_id'] + all_params = [] all_params.append('callback') params = locals() @@ -1183,35 +1094,24 @@ def update_quota_quota(self, quota_quota, quota_quota_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_quota_quota" % key + " to method get_quota_quotas_summary" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quota_quota' is set - if ('quota_quota' not in params) or (params['quota_quota'] is None): - raise ValueError("Missing the required parameter `quota_quota` when calling `update_quota_quota`") - # verify the required parameter 'quota_quota_id' is set - if ('quota_quota_id' not in params) or (params['quota_quota_id'] is None): - raise ValueError("Missing the required parameter `quota_quota_id` when calling `update_quota_quota`") - resource_path = '/platform/1/quota/quotas/{QuotaQuotaId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/quota/quotas-summary'.replace('{format}', 'json') path_params = {} - if 'quota_quota_id' in params: - path_params['QuotaQuotaId'] = params['quota_quota_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'quota_quota' in params: - body_params = params['quota_quota'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1226,22 +1126,22 @@ def update_quota_quota(self, quota_quota, quota_quota_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='QuotaQuotasSummary', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_quota_quota(self, quota_quota_id, **kwargs): + def get_quota_report(self, quota_report_id, **kwargs): """ - Delete the quota. + Retrieve report data (XML) or contents (meta-data). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1249,17 +1149,18 @@ def delete_quota_quota(self, quota_quota_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_quota_quota(quota_quota_id, callback=callback_function) + >>> thread = api.get_quota_report(quota_report_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str quota_quota_id: Delete the quota. (required) - :return: None + :param str quota_report_id: Retrieve report data (XML) or contents (meta-data). (required) + :param bool contents: Display JSON meta-data contents instead of report data. + :return: ReportAbout If the method is called asynchronously, returns the request thread. """ - all_params = ['quota_quota_id'] + all_params = ['quota_report_id', 'contents'] all_params.append('callback') params = locals() @@ -1267,28 +1168,29 @@ def delete_quota_quota(self, quota_quota_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_quota_quota" % key + " to method get_quota_report" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quota_quota_id' is set - if ('quota_quota_id' not in params) or (params['quota_quota_id'] is None): - raise ValueError("Missing the required parameter `quota_quota_id` when calling `delete_quota_quota`") + # verify the required parameter 'quota_report_id' is set + if ('quota_report_id' not in params) or (params['quota_report_id'] is None): + raise ValueError("Missing the required parameter `quota_report_id` when calling `get_quota_report`") - resource_path = '/platform/1/quota/quotas/{QuotaQuotaId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/quota/reports/{QuotaReportId}'.replace('{format}', 'json') path_params = {} - if 'quota_quota_id' in params: - path_params['QuotaQuotaId'] = params['quota_quota_id'] + if 'quota_report_id' in params: + path_params['QuotaReportId'] = params['quota_report_id'] query_params = {} + if 'contents' in params: + query_params['contents'] = params['contents'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1305,22 +1207,22 @@ def delete_quota_quota(self, quota_quota_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='ReportAbout', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_quota_reports(self, **kwargs): + def get_settings_mapping(self, settings_mapping_id, **kwargs): """ - List all or matching reports. + Retrieve the mapping information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1328,22 +1230,17 @@ def list_quota_reports(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_quota_reports(callback=callback_function) + >>> thread = api.get_settings_mapping(settings_mapping_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: Order results by this field. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str generated: Only list reports matching this source. - :param int limit: Return no more than this many results at once (see resume). - :param str type: Only list reports matching this type. - :param str dir: The direction of the sort. - :return: QuotaReports + :param str settings_mapping_id: Retrieve the mapping information. (required) + :return: SettingsMappings If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'resume', 'generated', 'limit', 'type', 'dir'] + all_params = ['settings_mapping_id'] all_params.append('callback') params = locals() @@ -1351,35 +1248,27 @@ def list_quota_reports(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_quota_reports" % key + " to method get_settings_mapping" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'settings_mapping_id' is set + if ('settings_mapping_id' not in params) or (params['settings_mapping_id'] is None): + raise ValueError("Missing the required parameter `settings_mapping_id` when calling `get_settings_mapping`") - resource_path = '/platform/1/quota/reports'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/settings/mappings/{SettingsMappingId}'.replace('{format}', 'json') path_params = {} + if 'settings_mapping_id' in params: + path_params['SettingsMappingId'] = params['settings_mapping_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'generated' in params: - query_params['generated'] = params['generated'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'type' in params: - query_params['type'] = params['type'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1396,22 +1285,22 @@ def list_quota_reports(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='QuotaReports', + files=local_var_files, + response_type='SettingsMappings', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_quota_report(self, quota_report, **kwargs): + def get_settings_notification(self, settings_notification_id, **kwargs): """ - Create a new report. The type of this report is 'manual'; it is also sometimes called 'live' or 'ad-hoc'. + Retrieve notification rule information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1419,17 +1308,17 @@ def create_quota_report(self, quota_report, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_quota_report(quota_report, callback=callback_function) + >>> thread = api.get_settings_notification(settings_notification_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty quota_report: (required) - :return: CreateQuotaReportResponse + :param str settings_notification_id: Retrieve notification rule information. (required) + :return: SettingsNotifications If the method is called asynchronously, returns the request thread. """ - all_params = ['quota_report'] + all_params = ['settings_notification_id'] all_params.append('callback') params = locals() @@ -1437,30 +1326,29 @@ def create_quota_report(self, quota_report, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_quota_report" % key + " to method get_settings_notification" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quota_report' is set - if ('quota_report' not in params) or (params['quota_report'] is None): - raise ValueError("Missing the required parameter `quota_report` when calling `create_quota_report`") + # verify the required parameter 'settings_notification_id' is set + if ('settings_notification_id' not in params) or (params['settings_notification_id'] is None): + raise ValueError("Missing the required parameter `settings_notification_id` when calling `get_settings_notification`") - resource_path = '/platform/1/quota/reports'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/quota/settings/notifications/{SettingsNotificationId}'.replace('{format}', 'json') path_params = {} + if 'settings_notification_id' in params: + path_params['SettingsNotificationId'] = params['settings_notification_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'quota_report' in params: - body_params = params['quota_report'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1475,22 +1363,22 @@ def create_quota_report(self, quota_report, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateQuotaReportResponse', + files=local_var_files, + response_type='SettingsNotifications', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_quota_report(self, quota_report_id, **kwargs): + def get_settings_reports(self, **kwargs): """ - Retrieve report data (XML) or contents (meta-data). + List all settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1498,18 +1386,16 @@ def get_quota_report(self, quota_report_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_quota_report(quota_report_id, callback=callback_function) + >>> thread = api.get_settings_reports(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str quota_report_id: Retrieve report data (XML) or contents (meta-data). (required) - :param bool contents: Display JSON meta-data contents instead of report data. - :return: ReportsRidAbout + :return: SettingsReports If the method is called asynchronously, returns the request thread. """ - all_params = ['quota_report_id', 'contents'] + all_params = [] all_params.append('callback') params = locals() @@ -1517,30 +1403,22 @@ def get_quota_report(self, quota_report_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_quota_report" % key + " to method get_settings_reports" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quota_report_id' is set - if ('quota_report_id' not in params) or (params['quota_report_id'] is None): - raise ValueError("Missing the required parameter `quota_report_id` when calling `get_quota_report`") - resource_path = '/platform/1/quota/reports/{QuotaReportId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/settings/reports'.replace('{format}', 'json') path_params = {} - if 'quota_report_id' in params: - path_params['QuotaReportId'] = params['quota_report_id'] query_params = {} - if 'contents' in params: - query_params['contents'] = params['contents'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1557,22 +1435,22 @@ def get_quota_report(self, quota_report_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ReportsRidAbout', + files=local_var_files, + response_type='SettingsReports', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_quota_report(self, quota_report_id, **kwargs): + def list_quota_quotas(self, **kwargs): """ - Delete the report. + List all or matching quotas. Can also be used to retrieve quota state from existing reports. For any query argument not supplied, the default behavior is return all. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1580,17 +1458,29 @@ def delete_quota_report(self, quota_report_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_quota_report(quota_report_id, callback=callback_function) + >>> thread = api.list_quota_quotas(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str quota_report_id: Delete the report. (required) - :return: None + :param bool enforced: Only list quotas with this enforcement (non-accounting). + :param bool include_snapshots: Only list quotas with this setting for include_snapshots. + :param str zone: Optional named zone to use for user and group resolution. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param bool recurse_path_children: If used with the path argument, match all quotas at that path or any descendent sub-directory. + :param bool resolve_names: If true, resolve group and user names in personas. + :param bool recurse_path_parents: If used with the path argument, match all quotas at that path or any parent directory. + :param str persona: Only list user or group quotas matching this persona (must be used with the corresponding type argument). Format is :, where PERSONA_TYPE is one of USER, GROUP, SID, ID, or GID. + :param int limit: Return no more than this many results at once (see resume). + :param bool exceeded: Set to true to only list quotas which have exceeded one or more of their thresholds. + :param str path: Only list quotas matching this path (see also recurse_path_*). + :param str type: Only list quotas matching this type. + :param str report_id: Use the named report as a source rather than the live quotas. See the /q/quota/reports resource for a list of valid reports. + :return: QuotaQuotasExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['quota_report_id'] + all_params = ['enforced', 'include_snapshots', 'zone', 'resume', 'recurse_path_children', 'resolve_names', 'recurse_path_parents', 'persona', 'limit', 'exceeded', 'path', 'type', 'report_id'] all_params.append('callback') params = locals() @@ -1598,28 +1488,50 @@ def delete_quota_report(self, quota_report_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_quota_report" % key + " to method list_quota_quotas" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'quota_report_id' is set - if ('quota_report_id' not in params) or (params['quota_report_id'] is None): - raise ValueError("Missing the required parameter `quota_report_id` when calling `delete_quota_report`") - resource_path = '/platform/1/quota/reports/{QuotaReportId}'.replace('{format}', 'json') - method = 'DELETE' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_quota_quotas`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/quota/quotas'.replace('{format}', 'json') path_params = {} - if 'quota_report_id' in params: - path_params['QuotaReportId'] = params['quota_report_id'] query_params = {} + if 'enforced' in params: + query_params['enforced'] = params['enforced'] + if 'include_snapshots' in params: + query_params['include_snapshots'] = params['include_snapshots'] + if 'zone' in params: + query_params['zone'] = params['zone'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'recurse_path_children' in params: + query_params['recurse_path_children'] = params['recurse_path_children'] + if 'resolve_names' in params: + query_params['resolve_names'] = params['resolve_names'] + if 'recurse_path_parents' in params: + query_params['recurse_path_parents'] = params['recurse_path_parents'] + if 'persona' in params: + query_params['persona'] = params['persona'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'exceeded' in params: + query_params['exceeded'] = params['exceeded'] + if 'path' in params: + query_params['path'] = params['path'] + if 'type' in params: + query_params['type'] = params['type'] + if 'report_id' in params: + query_params['report_id'] = params['report_id'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1636,22 +1548,22 @@ def delete_quota_report(self, quota_report_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='QuotaQuotasExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_reports_rid_about(self, rid, **kwargs): + def list_quota_reports(self, **kwargs): """ - Retrieve report meta-data information. + List all or matching reports. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1659,17 +1571,22 @@ def get_reports_rid_about(self, rid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_reports_rid_about(rid, callback=callback_function) + >>> thread = api.list_quota_reports(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str rid: (required) - :return: ReportsRidAbout + :param str sort: Order results by this field. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param str generated: Only list reports matching this source. + :param int limit: Return no more than this many results at once (see resume). + :param str type: Only list reports matching this type. + :param str dir: The direction of the sort. + :return: QuotaReports If the method is called asynchronously, returns the request thread. """ - all_params = ['rid'] + all_params = ['sort', 'resume', 'generated', 'limit', 'type', 'dir'] all_params.append('callback') params = locals() @@ -1677,28 +1594,36 @@ def get_reports_rid_about(self, rid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_reports_rid_about" % key + " to method list_quota_reports" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'rid' is set - if ('rid' not in params) or (params['rid'] is None): - raise ValueError("Missing the required parameter `rid` when calling `get_reports_rid_about`") - resource_path = '/platform/1/quota/reports/{Rid}/about'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_quota_reports`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/quota/reports'.replace('{format}', 'json') path_params = {} - if 'rid' in params: - path_params['Rid'] = params['rid'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'generated' in params: + query_params['generated'] = params['generated'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'type' in params: + query_params['type'] = params['type'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1715,14 +1640,14 @@ def get_reports_rid_about(self, rid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ReportsRidAbout', + files=local_var_files, + response_type='QuotaReports', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1761,485 +1686,16 @@ def list_settings_mappings(self, **kwargs): del params['kwargs'] - resource_path = '/platform/1/quota/settings/mappings'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SettingsMappings', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_settings_mapping(self, settings_mapping, **kwargs): - """ - - Create a new rule. The new rule must not conflict with an existing rule (e.g. match both the type and domain fields). - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_settings_mapping(settings_mapping, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param SettingsMappingCreateParams settings_mapping: (required) - :return: CreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['settings_mapping'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_settings_mapping" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'settings_mapping' is set - if ('settings_mapping' not in params) or (params['settings_mapping'] is None): - raise ValueError("Missing the required parameter `settings_mapping` when calling `create_settings_mapping`") - - resource_path = '/platform/1/quota/settings/mappings'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'settings_mapping' in params: - body_params = params['settings_mapping'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='CreateResponse', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_settings_mappings(self, **kwargs): - """ - - Delete all rules. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_settings_mappings(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_settings_mappings" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/quota/settings/mappings'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_settings_mapping(self, settings_mapping_id, **kwargs): - """ - - Retrieve the mapping information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_settings_mapping(settings_mapping_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str settings_mapping_id: Retrieve the mapping information. (required) - :return: SettingsMappings - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['settings_mapping_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_settings_mapping" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'settings_mapping_id' is set - if ('settings_mapping_id' not in params) or (params['settings_mapping_id'] is None): - raise ValueError("Missing the required parameter `settings_mapping_id` when calling `get_settings_mapping`") - - resource_path = '/platform/1/quota/settings/mappings/{SettingsMappingId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'settings_mapping_id' in params: - path_params['SettingsMappingId'] = params['settings_mapping_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SettingsMappings', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_settings_mapping(self, settings_mapping, settings_mapping_id, **kwargs): - """ - - Modify the mapping. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_settings_mapping(settings_mapping, settings_mapping_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param SettingsMappingExtended settings_mapping: (required) - :param str settings_mapping_id: Modify the mapping. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['settings_mapping', 'settings_mapping_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_settings_mapping" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'settings_mapping' is set - if ('settings_mapping' not in params) or (params['settings_mapping'] is None): - raise ValueError("Missing the required parameter `settings_mapping` when calling `update_settings_mapping`") - # verify the required parameter 'settings_mapping_id' is set - if ('settings_mapping_id' not in params) or (params['settings_mapping_id'] is None): - raise ValueError("Missing the required parameter `settings_mapping_id` when calling `update_settings_mapping`") - - resource_path = '/platform/1/quota/settings/mappings/{SettingsMappingId}'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'settings_mapping_id' in params: - path_params['SettingsMappingId'] = params['settings_mapping_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'settings_mapping' in params: - body_params = params['settings_mapping'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_settings_mapping(self, settings_mapping_id, **kwargs): - """ - - Delete the mapping. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_settings_mapping(settings_mapping_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str settings_mapping_id: Delete the mapping. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['settings_mapping_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_settings_mapping" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'settings_mapping_id' is set - if ('settings_mapping_id' not in params) or (params['settings_mapping_id'] is None): - raise ValueError("Missing the required parameter `settings_mapping_id` when calling `delete_settings_mapping`") - - resource_path = '/platform/1/quota/settings/mappings/{SettingsMappingId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'settings_mapping_id' in params: - path_params['SettingsMappingId'] = params['settings_mapping_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def list_settings_notifications(self, **kwargs): - """ - - List all rules. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_settings_notifications(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: SettingsNotifications - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_settings_notifications" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/quota/settings/notifications'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/settings/mappings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2256,22 +1712,22 @@ def list_settings_notifications(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SettingsNotifications', + files=local_var_files, + response_type='SettingsMappings', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_settings_notification(self, settings_notification, **kwargs): + def list_settings_notifications(self, **kwargs): """ - Create a new global notification rule. + List all rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2279,17 +1735,16 @@ def create_settings_notification(self, settings_notification, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_settings_notification(settings_notification, callback=callback_function) + >>> thread = api.list_settings_notifications(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SettingsNotification settings_notification: (required) - :return: CreateResponse + :return: SettingsNotificationsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_notification'] + all_params = [] all_params.append('callback') params = locals() @@ -2297,30 +1752,24 @@ def create_settings_notification(self, settings_notification, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_settings_notification" % key + " to method list_settings_notifications" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_notification' is set - if ('settings_notification' not in params) or (params['settings_notification'] is None): - raise ValueError("Missing the required parameter `settings_notification` when calling `create_settings_notification`") - resource_path = '/platform/1/quota/settings/notifications'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/quota/settings/notifications'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'settings_notification' in params: - body_params = params['settings_notification'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2335,22 +1784,22 @@ def create_settings_notification(self, settings_notification, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='SettingsNotificationsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_settings_notifications(self, **kwargs): + def update_quota_quota(self, quota_quota, quota_quota_id, **kwargs): """ - Delete all rules. + Modify quota. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2358,16 +1807,18 @@ def delete_settings_notifications(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_settings_notifications(callback=callback_function) + >>> thread = api.update_quota_quota(quota_quota, quota_quota_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param QuotaQuota quota_quota: (required) + :param str quota_quota_id: Modify quota. All input fields are optional, but one or more must be supplied. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['quota_quota', 'quota_quota_id'] all_params.append('callback') params = locals() @@ -2375,25 +1826,34 @@ def delete_settings_notifications(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_settings_notifications" % key + " to method update_quota_quota" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'quota_quota' is set + if ('quota_quota' not in params) or (params['quota_quota'] is None): + raise ValueError("Missing the required parameter `quota_quota` when calling `update_quota_quota`") + # verify the required parameter 'quota_quota_id' is set + if ('quota_quota_id' not in params) or (params['quota_quota_id'] is None): + raise ValueError("Missing the required parameter `quota_quota_id` when calling `update_quota_quota`") - resource_path = '/platform/1/quota/settings/notifications'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/quota/quotas/{QuotaQuotaId}'.replace('{format}', 'json') path_params = {} + if 'quota_quota_id' in params: + path_params['QuotaQuotaId'] = params['quota_quota_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'quota_quota' in params: + body_params = params['quota_quota'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2408,22 +1868,22 @@ def delete_settings_notifications(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_notification(self, settings_notification_id, **kwargs): + def update_settings_mapping(self, settings_mapping, settings_mapping_id, **kwargs): """ - Retrieve notification rule information. + Modify the mapping. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2431,17 +1891,18 @@ def get_settings_notification(self, settings_notification_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_settings_notification(settings_notification_id, callback=callback_function) + >>> thread = api.update_settings_mapping(settings_mapping, settings_mapping_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str settings_notification_id: Retrieve notification rule information. (required) - :return: QuotasQidNotifications + :param SettingsMappingExtended settings_mapping: (required) + :param str settings_mapping_id: Modify the mapping. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['settings_notification_id'] + all_params = ['settings_mapping', 'settings_mapping_id'] all_params.append('callback') params = locals() @@ -2449,30 +1910,34 @@ def get_settings_notification(self, settings_notification_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_settings_notification" % key + " to method update_settings_mapping" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'settings_notification_id' is set - if ('settings_notification_id' not in params) or (params['settings_notification_id'] is None): - raise ValueError("Missing the required parameter `settings_notification_id` when calling `get_settings_notification`") + # verify the required parameter 'settings_mapping' is set + if ('settings_mapping' not in params) or (params['settings_mapping'] is None): + raise ValueError("Missing the required parameter `settings_mapping` when calling `update_settings_mapping`") + # verify the required parameter 'settings_mapping_id' is set + if ('settings_mapping_id' not in params) or (params['settings_mapping_id'] is None): + raise ValueError("Missing the required parameter `settings_mapping_id` when calling `update_settings_mapping`") - resource_path = '/platform/1/quota/settings/notifications/{SettingsNotificationId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/quota/settings/mappings/{SettingsMappingId}'.replace('{format}', 'json') path_params = {} - if 'settings_notification_id' in params: - path_params['SettingsNotificationId'] = params['settings_notification_id'] + if 'settings_mapping_id' in params: + path_params['SettingsMappingId'] = params['settings_mapping_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'settings_mapping' in params: + body_params = params['settings_mapping'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2487,14 +1952,14 @@ def get_settings_notification(self, settings_notification_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='QuotasQidNotifications', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -2514,7 +1979,7 @@ def update_settings_notification(self, settings_notification, settings_notificat :param callback function: The callback function for asynchronous request. (optional) - :param QuotasQidNotification settings_notification: (required) + :param QuotaNotification settings_notification: (required) :param str settings_notification_id: Modify notification rule. All input fields are optional, but one or must be supplied. (required) :return: None If the method is called asynchronously, @@ -2541,9 +2006,8 @@ def update_settings_notification(self, settings_notification, settings_notificat if ('settings_notification_id' not in params) or (params['settings_notification_id'] is None): raise ValueError("Missing the required parameter `settings_notification_id` when calling `update_settings_notification`") - resource_path = '/platform/1/quota/settings/notifications/{SettingsNotificationId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/quota/settings/notifications/{SettingsNotificationId}'.replace('{format}', 'json') path_params = {} if 'settings_notification_id' in params: path_params['SettingsNotificationId'] = params['settings_notification_id'] @@ -2552,8 +2016,8 @@ def update_settings_notification(self, settings_notification, settings_notificat header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'settings_notification' in params: @@ -2572,170 +2036,18 @@ def update_settings_notification(self, settings_notification, settings_notificat # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_settings_notification(self, settings_notification_id, **kwargs): - """ - - Delete the notification rule. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_settings_notification(settings_notification_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str settings_notification_id: Delete the notification rule. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['settings_notification_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_settings_notification" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'settings_notification_id' is set - if ('settings_notification_id' not in params) or (params['settings_notification_id'] is None): - raise ValueError("Missing the required parameter `settings_notification_id` when calling `delete_settings_notification`") - - resource_path = '/platform/1/quota/settings/notifications/{SettingsNotificationId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'settings_notification_id' in params: - path_params['SettingsNotificationId'] = params['settings_notification_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_settings_reports(self, **kwargs): - """ - - List all settings. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_settings_reports(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: SettingsReports - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_settings_reports" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/quota/settings/reports'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SettingsReports', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def update_settings_reports(self, settings_reports, **kwargs): """ @@ -2774,17 +2086,16 @@ def update_settings_reports(self, settings_reports, **kwargs): if ('settings_reports' not in params) or (params['settings_reports'] is None): raise ValueError("Missing the required parameter `settings_reports` when calling `update_settings_reports`") - resource_path = '/platform/1/quota/settings/reports'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/quota/settings/reports'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'settings_reports' in params: @@ -2803,13 +2114,13 @@ def update_settings_reports(self, settings_reports, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/quota_quotas_api.py b/isi_sdk/apis/quota_quotas_api.py new file mode 100644 index 000000000..f0e4624d1 --- /dev/null +++ b/isi_sdk/apis/quota_quotas_api.py @@ -0,0 +1,629 @@ +# coding: utf-8 + +""" +QuotaQuotasApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class QuotaQuotasApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_quota_notification(self, quota_notification, qid, **kwargs): + """ + + Create a new notification rule specific to this quota. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_quota_notification(quota_notification, qid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param QuotaNotificationCreateParams quota_notification: (required) + :param str qid: (required) + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['quota_notification', 'qid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_quota_notification" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'quota_notification' is set + if ('quota_notification' not in params) or (params['quota_notification'] is None): + raise ValueError("Missing the required parameter `quota_notification` when calling `create_quota_notification`") + # verify the required parameter 'qid' is set + if ('qid' not in params) or (params['qid'] is None): + raise ValueError("Missing the required parameter `qid` when calling `create_quota_notification`") + + + resource_path = '/platform/1/quota/quotas/{Qid}/notifications'.replace('{format}', 'json') + path_params = {} + if 'qid' in params: + path_params['Qid'] = params['qid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'quota_notification' in params: + body_params = params['quota_notification'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_quota_notification(self, quota_notification_id, qid, **kwargs): + """ + + Delete the notification rule. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_quota_notification(quota_notification_id, qid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str quota_notification_id: Delete the notification rule. (required) + :param str qid: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['quota_notification_id', 'qid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_quota_notification" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'quota_notification_id' is set + if ('quota_notification_id' not in params) or (params['quota_notification_id'] is None): + raise ValueError("Missing the required parameter `quota_notification_id` when calling `delete_quota_notification`") + # verify the required parameter 'qid' is set + if ('qid' not in params) or (params['qid'] is None): + raise ValueError("Missing the required parameter `qid` when calling `delete_quota_notification`") + + + resource_path = '/platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId}'.replace('{format}', 'json') + path_params = {} + if 'quota_notification_id' in params: + path_params['QuotaNotificationId'] = params['quota_notification_id'] + if 'qid' in params: + path_params['Qid'] = params['qid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_quota_notifications(self, qid, **kwargs): + """ + + Delete all quota specific rules. The quota will then use the global rules. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_quota_notifications(qid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str qid: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['qid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_quota_notifications" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'qid' is set + if ('qid' not in params) or (params['qid'] is None): + raise ValueError("Missing the required parameter `qid` when calling `delete_quota_notifications`") + + + resource_path = '/platform/1/quota/quotas/{Qid}/notifications'.replace('{format}', 'json') + path_params = {} + if 'qid' in params: + path_params['Qid'] = params['qid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_quota_notification(self, quota_notification_id, qid, **kwargs): + """ + + Retrieve notification rule information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_quota_notification(quota_notification_id, qid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str quota_notification_id: Retrieve notification rule information. (required) + :param str qid: (required) + :return: QuotaNotifications + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['quota_notification_id', 'qid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_quota_notification" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'quota_notification_id' is set + if ('quota_notification_id' not in params) or (params['quota_notification_id'] is None): + raise ValueError("Missing the required parameter `quota_notification_id` when calling `get_quota_notification`") + # verify the required parameter 'qid' is set + if ('qid' not in params) or (params['qid'] is None): + raise ValueError("Missing the required parameter `qid` when calling `get_quota_notification`") + + + resource_path = '/platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId}'.replace('{format}', 'json') + path_params = {} + if 'quota_notification_id' in params: + path_params['QuotaNotificationId'] = params['quota_notification_id'] + if 'qid' in params: + path_params['Qid'] = params['qid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='QuotaNotifications', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_quota_notifications(self, qid, **kwargs): + """ + + List all rules. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_quota_notifications(qid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str qid: (required) + :return: QuotaNotificationsExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['qid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_quota_notifications" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'qid' is set + if ('qid' not in params) or (params['qid'] is None): + raise ValueError("Missing the required parameter `qid` when calling `list_quota_notifications`") + + + resource_path = '/platform/1/quota/quotas/{Qid}/notifications'.replace('{format}', 'json') + path_params = {} + if 'qid' in params: + path_params['Qid'] = params['qid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='QuotaNotificationsExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_quota_notification(self, quota_notification, quota_notification_id, qid, **kwargs): + """ + + Modify notification rule. All input fields are optional, but one or must be supplied. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_quota_notification(quota_notification, quota_notification_id, qid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param QuotaNotification quota_notification: (required) + :param str quota_notification_id: Modify notification rule. All input fields are optional, but one or must be supplied. (required) + :param str qid: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['quota_notification', 'quota_notification_id', 'qid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_quota_notification" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'quota_notification' is set + if ('quota_notification' not in params) or (params['quota_notification'] is None): + raise ValueError("Missing the required parameter `quota_notification` when calling `update_quota_notification`") + # verify the required parameter 'quota_notification_id' is set + if ('quota_notification_id' not in params) or (params['quota_notification_id'] is None): + raise ValueError("Missing the required parameter `quota_notification_id` when calling `update_quota_notification`") + # verify the required parameter 'qid' is set + if ('qid' not in params) or (params['qid'] is None): + raise ValueError("Missing the required parameter `qid` when calling `update_quota_notification`") + + + resource_path = '/platform/1/quota/quotas/{Qid}/notifications/{QuotaNotificationId}'.replace('{format}', 'json') + path_params = {} + if 'quota_notification_id' in params: + path_params['QuotaNotificationId'] = params['quota_notification_id'] + if 'qid' in params: + path_params['Qid'] = params['qid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'quota_notification' in params: + body_params = params['quota_notification'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_quota_notifications(self, quota_notifications, qid, **kwargs): + """ + + This method creates an empty set of rules so that the global rules are not used. The input must be an empty JSON object. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_quota_notifications(quota_notifications, qid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty quota_notifications: (required) + :param str qid: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['quota_notifications', 'qid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_quota_notifications" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'quota_notifications' is set + if ('quota_notifications' not in params) or (params['quota_notifications'] is None): + raise ValueError("Missing the required parameter `quota_notifications` when calling `update_quota_notifications`") + # verify the required parameter 'qid' is set + if ('qid' not in params) or (params['qid'] is None): + raise ValueError("Missing the required parameter `qid` when calling `update_quota_notifications`") + + + resource_path = '/platform/1/quota/quotas/{Qid}/notifications'.replace('{format}', 'json') + path_params = {} + if 'qid' in params: + path_params['Qid'] = params['qid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'quota_notifications' in params: + body_params = params['quota_notifications'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/quota_reports_api.py b/isi_sdk/apis/quota_reports_api.py new file mode 100644 index 000000000..cf984da85 --- /dev/null +++ b/isi_sdk/apis/quota_reports_api.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" +QuotaReportsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class QuotaReportsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_report_about(self, rid, **kwargs): + """ + + Retrieve report meta-data information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_report_about(rid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str rid: (required) + :return: ReportAbout + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['rid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_report_about" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'rid' is set + if ('rid' not in params) or (params['rid'] is None): + raise ValueError("Missing the required parameter `rid` when calling `get_report_about`") + + + resource_path = '/platform/1/quota/reports/{Rid}/about'.replace('{format}', 'json') + path_params = {} + if 'rid' in params: + path_params['Rid'] = params['rid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportAbout', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/remotesupport_api.py b/isi_sdk/apis/remotesupport_api.py index 20673c420..260d0ae3d 100644 --- a/isi_sdk/apis/remotesupport_api.py +++ b/isi_sdk/apis/remotesupport_api.py @@ -2,7 +2,7 @@ """ RemotesupportApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -79,17 +80,16 @@ def get_remotesupport_connectemc(self, **kwargs): del params['kwargs'] - resource_path = '/platform/1/remotesupport/connectemc'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/remotesupport/connectemc'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -106,13 +106,13 @@ def get_remotesupport_connectemc(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='RemotesupportConnectemc', auth_settings=auth_settings, callback=params.get('callback')) @@ -156,17 +156,16 @@ def update_remotesupport_connectemc(self, remotesupport_connectemc, **kwargs): if ('remotesupport_connectemc' not in params) or (params['remotesupport_connectemc'] is None): raise ValueError("Missing the required parameter `remotesupport_connectemc` when calling `update_remotesupport_connectemc`") - resource_path = '/platform/1/remotesupport/connectemc'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/remotesupport/connectemc'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'remotesupport_connectemc' in params: @@ -185,13 +184,13 @@ def update_remotesupport_connectemc(self, remotesupport_connectemc, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/snapshot_api.py b/isi_sdk/apis/snapshot_api.py index 1a43b3d49..49deac9bb 100644 --- a/isi_sdk/apis/snapshot_api.py +++ b/isi_sdk/apis/snapshot_api.py @@ -2,7 +2,7 @@ """ SnapshotApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_snapshot_aliases(self, **kwargs): + def create_snapshot_aliase(self, snapshot_aliase, **kwargs): """ - List all or matching snapshot aliases. + Create a new snapshot alias. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,20 +57,17 @@ def list_snapshot_aliases(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_snapshot_aliases(callback=callback_function) + >>> thread = api.create_snapshot_aliase(snapshot_aliase, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. Choices are id, name, snapshot, and created. Default is id. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: SnapshotAliasesExtended + :param SnapshotAliaseCreateParams snapshot_aliase: (required) + :return: CreateSnapshotAliaseResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = ['snapshot_aliase'] all_params.append('callback') params = locals() @@ -77,33 +75,29 @@ def list_snapshot_aliases(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_snapshot_aliases" % key + " to method create_snapshot_aliase" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'snapshot_aliase' is set + if ('snapshot_aliase' not in params) or (params['snapshot_aliase'] is None): + raise ValueError("Missing the required parameter `snapshot_aliase` when calling `create_snapshot_aliase`") + resource_path = '/platform/1/snapshot/aliases'.replace('{format}', 'json') - method = 'GET' - path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'snapshot_aliase' in params: + body_params = params['snapshot_aliase'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -118,22 +112,22 @@ def list_snapshot_aliases(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotAliasesExtended', + files=local_var_files, + response_type='CreateSnapshotAliaseResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_snapshot_aliase(self, snapshot_aliase, **kwargs): + def create_snapshot_changelist(self, snapshot_changelist, **kwargs): """ - Create a new snapshot alias. + Create a new changelist. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -141,17 +135,17 @@ def create_snapshot_aliase(self, snapshot_aliase, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_snapshot_aliase(snapshot_aliase, callback=callback_function) + >>> thread = api.create_snapshot_changelist(snapshot_changelist, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotAliaseCreateParams snapshot_aliase: (required) - :return: CreateSnapshotAliaseResponse + :param SnapshotChangelists snapshot_changelist: (required) + :return: CreateSnapshotChangelistResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_aliase'] + all_params = ['snapshot_changelist'] all_params.append('callback') params = locals() @@ -159,30 +153,29 @@ def create_snapshot_aliase(self, snapshot_aliase, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_snapshot_aliase" % key + " to method create_snapshot_changelist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_aliase' is set - if ('snapshot_aliase' not in params) or (params['snapshot_aliase'] is None): - raise ValueError("Missing the required parameter `snapshot_aliase` when calling `create_snapshot_aliase`") + # verify the required parameter 'snapshot_changelist' is set + if ('snapshot_changelist' not in params) or (params['snapshot_changelist'] is None): + raise ValueError("Missing the required parameter `snapshot_changelist` when calling `create_snapshot_changelist`") - resource_path = '/platform/1/snapshot/aliases'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/snapshot/changelists'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshot_aliase' in params: - body_params = params['snapshot_aliase'] + if 'snapshot_changelist' in params: + body_params = params['snapshot_changelist'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -197,22 +190,22 @@ def create_snapshot_aliase(self, snapshot_aliase, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateSnapshotAliaseResponse', + files=local_var_files, + response_type='CreateSnapshotChangelistResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_snapshot_aliases(self, **kwargs): + def create_snapshot_repstate(self, snapshot_repstate, **kwargs): """ - Delete all or matching snapshot aliases. + Create a new repstates. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -220,16 +213,17 @@ def delete_snapshot_aliases(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_snapshot_aliases(callback=callback_function) + >>> thread = api.create_snapshot_repstate(snapshot_repstate, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param SnapshotRepstates snapshot_repstate: (required) + :return: CreateSnapshotRepstateResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['snapshot_repstate'] all_params.append('callback') params = locals() @@ -237,25 +231,29 @@ def delete_snapshot_aliases(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_snapshot_aliases" % key + " to method create_snapshot_repstate" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'snapshot_repstate' is set + if ('snapshot_repstate' not in params) or (params['snapshot_repstate'] is None): + raise ValueError("Missing the required parameter `snapshot_repstate` when calling `create_snapshot_repstate`") - resource_path = '/platform/1/snapshot/aliases'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/snapshot/repstates'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'snapshot_repstate' in params: + body_params = params['snapshot_repstate'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -270,22 +268,22 @@ def delete_snapshot_aliases(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateSnapshotRepstateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_snapshot_aliase(self, snapshot_aliase_id, **kwargs): + def create_snapshot_schedule(self, snapshot_schedule, **kwargs): """ - Retrieve snapshot alias information. + Create a new schedule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -293,17 +291,17 @@ def get_snapshot_aliase(self, snapshot_aliase_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_snapshot_aliase(snapshot_aliase_id, callback=callback_function) + >>> thread = api.create_snapshot_schedule(snapshot_schedule, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshot_aliase_id: Retrieve snapshot alias information. (required) - :return: SnapshotAliases + :param SnapshotSchedule snapshot_schedule: (required) + :return: CreateSnapshotScheduleResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_aliase_id'] + all_params = ['snapshot_schedule'] all_params.append('callback') params = locals() @@ -311,30 +309,29 @@ def get_snapshot_aliase(self, snapshot_aliase_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_snapshot_aliase" % key + " to method create_snapshot_schedule" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_aliase_id' is set - if ('snapshot_aliase_id' not in params) or (params['snapshot_aliase_id'] is None): - raise ValueError("Missing the required parameter `snapshot_aliase_id` when calling `get_snapshot_aliase`") + # verify the required parameter 'snapshot_schedule' is set + if ('snapshot_schedule' not in params) or (params['snapshot_schedule'] is None): + raise ValueError("Missing the required parameter `snapshot_schedule` when calling `create_snapshot_schedule`") - resource_path = '/platform/1/snapshot/aliases/{SnapshotAliaseId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/snapshot/schedules'.replace('{format}', 'json') path_params = {} - if 'snapshot_aliase_id' in params: - path_params['SnapshotAliaseId'] = params['snapshot_aliase_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'snapshot_schedule' in params: + body_params = params['snapshot_schedule'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -349,22 +346,22 @@ def get_snapshot_aliase(self, snapshot_aliase_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotAliases', + files=local_var_files, + response_type='CreateSnapshotScheduleResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_snapshot_aliase(self, snapshot_aliase, snapshot_aliase_id, **kwargs): + def create_snapshot_snapshot(self, snapshot_snapshot, **kwargs): """ - Modify snapshot alias. All input fields are optional, but one or more must be supplied. + Create a new snapshot. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -372,18 +369,17 @@ def update_snapshot_aliase(self, snapshot_aliase, snapshot_aliase_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_snapshot_aliase(snapshot_aliase, snapshot_aliase_id, callback=callback_function) + >>> thread = api.create_snapshot_snapshot(snapshot_snapshot, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotAliase snapshot_aliase: (required) - :param str snapshot_aliase_id: Modify snapshot alias. All input fields are optional, but one or more must be supplied. (required) - :return: None + :param SnapshotSnapshotCreateParams snapshot_snapshot: (required) + :return: CreateSnapshotSnapshotResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_aliase', 'snapshot_aliase_id'] + all_params = ['snapshot_snapshot'] all_params.append('callback') params = locals() @@ -391,35 +387,29 @@ def update_snapshot_aliase(self, snapshot_aliase, snapshot_aliase_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_snapshot_aliase" % key + " to method create_snapshot_snapshot" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_aliase' is set - if ('snapshot_aliase' not in params) or (params['snapshot_aliase'] is None): - raise ValueError("Missing the required parameter `snapshot_aliase` when calling `update_snapshot_aliase`") - # verify the required parameter 'snapshot_aliase_id' is set - if ('snapshot_aliase_id' not in params) or (params['snapshot_aliase_id'] is None): - raise ValueError("Missing the required parameter `snapshot_aliase_id` when calling `update_snapshot_aliase`") + # verify the required parameter 'snapshot_snapshot' is set + if ('snapshot_snapshot' not in params) or (params['snapshot_snapshot'] is None): + raise ValueError("Missing the required parameter `snapshot_snapshot` when calling `create_snapshot_snapshot`") - resource_path = '/platform/1/snapshot/aliases/{SnapshotAliaseId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/snapshot/snapshots'.replace('{format}', 'json') path_params = {} - if 'snapshot_aliase_id' in params: - path_params['SnapshotAliaseId'] = params['snapshot_aliase_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshot_aliase' in params: - body_params = params['snapshot_aliase'] + if 'snapshot_snapshot' in params: + body_params = params['snapshot_snapshot'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -434,14 +424,14 @@ def update_snapshot_aliase(self, snapshot_aliase, snapshot_aliase_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateSnapshotSnapshotResponse', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -484,9 +474,8 @@ def delete_snapshot_aliase(self, snapshot_aliase_id, **kwargs): if ('snapshot_aliase_id' not in params) or (params['snapshot_aliase_id'] is None): raise ValueError("Missing the required parameter `snapshot_aliase_id` when calling `delete_snapshot_aliase`") - resource_path = '/platform/1/snapshot/aliases/{SnapshotAliaseId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/snapshot/aliases/{SnapshotAliaseId}'.replace('{format}', 'json') path_params = {} if 'snapshot_aliase_id' in params: path_params['SnapshotAliaseId'] = params['snapshot_aliase_id'] @@ -495,8 +484,8 @@ def delete_snapshot_aliase(self, snapshot_aliase_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -513,22 +502,22 @@ def delete_snapshot_aliase(self, snapshot_aliase_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_snapshot_changelists(self, **kwargs): + def delete_snapshot_aliases(self, **kwargs): """ - List all changelists. + Delete all or matching snapshot aliases. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -536,11 +525,11 @@ def list_snapshot_changelists(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_snapshot_changelists(callback=callback_function) + >>> thread = api.delete_snapshot_aliases(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SnapshotChangelistsExtended + :return: None If the method is called asynchronously, returns the request thread. """ @@ -553,23 +542,22 @@ def list_snapshot_changelists(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_snapshot_changelists" % key + " to method delete_snapshot_aliases" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/snapshot/changelists'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/snapshot/aliases'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -586,22 +574,22 @@ def list_snapshot_changelists(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotChangelistsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_snapshot_changelist(self, snapshot_changelist, **kwargs): + def delete_snapshot_changelist(self, snapshot_changelist_id, **kwargs): """ - Create a new changelist. + Delete the specified changelist. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -609,17 +597,17 @@ def create_snapshot_changelist(self, snapshot_changelist, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_snapshot_changelist(snapshot_changelist, callback=callback_function) + >>> thread = api.delete_snapshot_changelist(snapshot_changelist_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotChangelists snapshot_changelist: (required) - :return: CreateSnapshotChangelistResponse + :param str snapshot_changelist_id: Delete the specified changelist. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_changelist'] + all_params = ['snapshot_changelist_id'] all_params.append('callback') params = locals() @@ -627,30 +615,29 @@ def create_snapshot_changelist(self, snapshot_changelist, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_snapshot_changelist" % key + " to method delete_snapshot_changelist" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_changelist' is set - if ('snapshot_changelist' not in params) or (params['snapshot_changelist'] is None): - raise ValueError("Missing the required parameter `snapshot_changelist` when calling `create_snapshot_changelist`") + # verify the required parameter 'snapshot_changelist_id' is set + if ('snapshot_changelist_id' not in params) or (params['snapshot_changelist_id'] is None): + raise ValueError("Missing the required parameter `snapshot_changelist_id` when calling `delete_snapshot_changelist`") - resource_path = '/platform/1/snapshot/changelists'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/snapshot/changelists/{SnapshotChangelistId}'.replace('{format}', 'json') path_params = {} + if 'snapshot_changelist_id' in params: + path_params['SnapshotChangelistId'] = params['snapshot_changelist_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshot_changelist' in params: - body_params = params['snapshot_changelist'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -665,22 +652,22 @@ def create_snapshot_changelist(self, snapshot_changelist, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateSnapshotChangelistResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_changelists_changelist_lins(self, changelist, **kwargs): + def delete_snapshot_repstate(self, snapshot_repstate_id, **kwargs): """ - Get entries from a changelist. + Delete the specified repstate. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -688,17 +675,17 @@ def get_changelists_changelist_lins(self, changelist, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_changelists_changelist_lins(changelist, callback=callback_function) + >>> thread = api.delete_snapshot_repstate(snapshot_repstate_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str changelist: (required) - :return: ChangelistsChangelistLinsExtended + :param str snapshot_repstate_id: Delete the specified repstate. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['changelist'] + all_params = ['snapshot_repstate_id'] all_params.append('callback') params = locals() @@ -706,28 +693,27 @@ def get_changelists_changelist_lins(self, changelist, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_changelists_changelist_lins" % key + " to method delete_snapshot_repstate" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'changelist' is set - if ('changelist' not in params) or (params['changelist'] is None): - raise ValueError("Missing the required parameter `changelist` when calling `get_changelists_changelist_lins`") + # verify the required parameter 'snapshot_repstate_id' is set + if ('snapshot_repstate_id' not in params) or (params['snapshot_repstate_id'] is None): + raise ValueError("Missing the required parameter `snapshot_repstate_id` when calling `delete_snapshot_repstate`") - resource_path = '/platform/1/snapshot/changelists/{Changelist}/lins'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/snapshot/repstates/{SnapshotRepstateId}'.replace('{format}', 'json') path_params = {} - if 'changelist' in params: - path_params['Changelist'] = params['changelist'] + if 'snapshot_repstate_id' in params: + path_params['SnapshotRepstateId'] = params['snapshot_repstate_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -744,22 +730,22 @@ def get_changelists_changelist_lins(self, changelist, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ChangelistsChangelistLinsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_changelists_changelist_lin(self, changelists_changelist_lin_id, changelist, **kwargs): + def delete_snapshot_schedule(self, snapshot_schedule_id, **kwargs): """ - Get a single entry from the changelist. + Delete the schedule. This does not affect already created snapshots. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -767,18 +753,17 @@ def get_changelists_changelist_lin(self, changelists_changelist_lin_id, changeli >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_changelists_changelist_lin(changelists_changelist_lin_id, changelist, callback=callback_function) + >>> thread = api.delete_snapshot_schedule(snapshot_schedule_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int changelists_changelist_lin_id: Get a single entry from the changelist. (required) - :param str changelist: (required) - :return: ChangelistsChangelistLins + :param str snapshot_schedule_id: Delete the schedule. This does not affect already created snapshots. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['changelists_changelist_lin_id', 'changelist'] + all_params = ['snapshot_schedule_id'] all_params.append('callback') params = locals() @@ -786,33 +771,27 @@ def get_changelists_changelist_lin(self, changelists_changelist_lin_id, changeli if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_changelists_changelist_lin" % key + " to method delete_snapshot_schedule" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'changelists_changelist_lin_id' is set - if ('changelists_changelist_lin_id' not in params) or (params['changelists_changelist_lin_id'] is None): - raise ValueError("Missing the required parameter `changelists_changelist_lin_id` when calling `get_changelists_changelist_lin`") - # verify the required parameter 'changelist' is set - if ('changelist' not in params) or (params['changelist'] is None): - raise ValueError("Missing the required parameter `changelist` when calling `get_changelists_changelist_lin`") + # verify the required parameter 'snapshot_schedule_id' is set + if ('snapshot_schedule_id' not in params) or (params['snapshot_schedule_id'] is None): + raise ValueError("Missing the required parameter `snapshot_schedule_id` when calling `delete_snapshot_schedule`") - resource_path = '/platform/1/snapshot/changelists/{Changelist}/lins/{ChangelistsChangelistLinId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/snapshot/schedules/{SnapshotScheduleId}'.replace('{format}', 'json') path_params = {} - if 'changelists_changelist_lin_id' in params: - path_params['ChangelistsChangelistLinId'] = params['changelists_changelist_lin_id'] - if 'changelist' in params: - path_params['Changelist'] = params['changelist'] + if 'snapshot_schedule_id' in params: + path_params['SnapshotScheduleId'] = params['snapshot_schedule_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -829,22 +808,22 @@ def get_changelists_changelist_lin(self, changelists_changelist_lin_id, changeli # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ChangelistsChangelistLins', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_snapshot_changelist(self, snapshot_changelist_id, **kwargs): + def delete_snapshot_schedules(self, **kwargs): """ - Retrieve basic information on a changelist. + Delete all snapshot schedules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -852,17 +831,16 @@ def get_snapshot_changelist(self, snapshot_changelist_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_snapshot_changelist(snapshot_changelist_id, callback=callback_function) + >>> thread = api.delete_snapshot_schedules(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshot_changelist_id: Retrieve basic information on a changelist. (required) - :return: SnapshotChangelists + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_changelist_id'] + all_params = [] all_params.append('callback') params = locals() @@ -870,28 +848,22 @@ def get_snapshot_changelist(self, snapshot_changelist_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_snapshot_changelist" % key + " to method delete_snapshot_schedules" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_changelist_id' is set - if ('snapshot_changelist_id' not in params) or (params['snapshot_changelist_id'] is None): - raise ValueError("Missing the required parameter `snapshot_changelist_id` when calling `get_snapshot_changelist`") - resource_path = '/platform/1/snapshot/changelists/{SnapshotChangelistId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/snapshot/schedules'.replace('{format}', 'json') path_params = {} - if 'snapshot_changelist_id' in params: - path_params['SnapshotChangelistId'] = params['snapshot_changelist_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -908,22 +880,22 @@ def get_snapshot_changelist(self, snapshot_changelist_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotChangelists', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_snapshot_changelist(self, snapshot_changelist_id, **kwargs): + def delete_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): """ - Delete the specified changelist. + Delete the snapshot. Deleted snapshots will be placed into a deleting state until the system can reclaim the space used by the snapshot. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -931,17 +903,17 @@ def delete_snapshot_changelist(self, snapshot_changelist_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_snapshot_changelist(snapshot_changelist_id, callback=callback_function) + >>> thread = api.delete_snapshot_snapshot(snapshot_snapshot_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshot_changelist_id: Delete the specified changelist. (required) + :param str snapshot_snapshot_id: Delete the snapshot. Deleted snapshots will be placed into a deleting state until the system can reclaim the space used by the snapshot. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_changelist_id'] + all_params = ['snapshot_snapshot_id'] all_params.append('callback') params = locals() @@ -949,653 +921,29 @@ def delete_snapshot_changelist(self, snapshot_changelist_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_snapshot_changelist" % key + " to method delete_snapshot_snapshot" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_changelist_id' is set - if ('snapshot_changelist_id' not in params) or (params['snapshot_changelist_id'] is None): - raise ValueError("Missing the required parameter `snapshot_changelist_id` when calling `delete_snapshot_changelist`") - - resource_path = '/platform/1/snapshot/changelists/{SnapshotChangelistId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'snapshot_changelist_id' in params: - path_params['SnapshotChangelistId'] = params['snapshot_changelist_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_snapshot_license(self, **kwargs): - """ - - Retrieve license information. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_snapshot_license(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: LicenseLicense - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_snapshot_license" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/snapshot/license'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='LicenseLicense', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_snapshot_pending(self, **kwargs): - """ - - Return list of snapshots to be taken. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_snapshot_pending(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int limit: Return no more than this many result at once (see resume). - :param int begin: Unix Epoch time to start generating matches. Default is now. - :param str schedule: Limit output only to the named schedule. - :param int end: Unix Epoch time to end generating matches. Default is forever. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: SnapshotPending - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['limit', 'begin', 'schedule', 'end', 'resume'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_snapshot_pending" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/snapshot/pending'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'schedule' in params: - query_params['schedule'] = params['schedule'] - if 'end' in params: - query_params['end'] = params['end'] - if 'resume' in params: - query_params['resume'] = params['resume'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SnapshotPending', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def list_snapshot_repstates(self, **kwargs): - """ - - List all repstates. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.list_snapshot_repstates(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: SnapshotRepstatesExtended - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_snapshot_repstates" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/snapshot/repstates'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SnapshotRepstatesExtended', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_snapshot_repstate(self, snapshot_repstate, **kwargs): - """ - - Create a new repstates. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_snapshot_repstate(snapshot_repstate, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param SnapshotRepstates snapshot_repstate: (required) - :return: CreateSnapshotRepstateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['snapshot_repstate'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_snapshot_repstate" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'snapshot_repstate' is set - if ('snapshot_repstate' not in params) or (params['snapshot_repstate'] is None): - raise ValueError("Missing the required parameter `snapshot_repstate` when calling `create_snapshot_repstate`") - - resource_path = '/platform/1/snapshot/repstates'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'snapshot_repstate' in params: - body_params = params['snapshot_repstate'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='CreateSnapshotRepstateResponse', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_snapshot_repstate(self, snapshot_repstate_id, **kwargs): - """ - - Retrieve basic information on a repstate. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_snapshot_repstate(snapshot_repstate_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str snapshot_repstate_id: Retrieve basic information on a repstate. (required) - :return: SnapshotRepstates - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['snapshot_repstate_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_snapshot_repstate" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'snapshot_repstate_id' is set - if ('snapshot_repstate_id' not in params) or (params['snapshot_repstate_id'] is None): - raise ValueError("Missing the required parameter `snapshot_repstate_id` when calling `get_snapshot_repstate`") - - resource_path = '/platform/1/snapshot/repstates/{SnapshotRepstateId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'snapshot_repstate_id' in params: - path_params['SnapshotRepstateId'] = params['snapshot_repstate_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SnapshotRepstates', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_snapshot_repstate(self, snapshot_repstate_id, **kwargs): - """ - - Delete the specified repstate. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_snapshot_repstate(snapshot_repstate_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str snapshot_repstate_id: Delete the specified repstate. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['snapshot_repstate_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_snapshot_repstate" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'snapshot_repstate_id' is set - if ('snapshot_repstate_id' not in params) or (params['snapshot_repstate_id'] is None): - raise ValueError("Missing the required parameter `snapshot_repstate_id` when calling `delete_snapshot_repstate`") - - resource_path = '/platform/1/snapshot/repstates/{SnapshotRepstateId}'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - if 'snapshot_repstate_id' in params: - path_params['SnapshotRepstateId'] = params['snapshot_repstate_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_snapshot_settings(self, **kwargs): - """ - - List all settings - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_snapshot_settings(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: SnapshotSettings - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_snapshot_settings" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/1/snapshot/settings'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SnapshotSettings', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_snapshot_settings(self, snapshot_settings, **kwargs): - """ - - Modify one or more settings. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_snapshot_settings(snapshot_settings, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param SnapshotSettingsSettings snapshot_settings: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['snapshot_settings'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_snapshot_settings" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'snapshot_settings' is set - if ('snapshot_settings' not in params) or (params['snapshot_settings'] is None): - raise ValueError("Missing the required parameter `snapshot_settings` when calling `update_snapshot_settings`") + # verify the required parameter 'snapshot_snapshot_id' is set + if ('snapshot_snapshot_id' not in params) or (params['snapshot_snapshot_id'] is None): + raise ValueError("Missing the required parameter `snapshot_snapshot_id` when calling `delete_snapshot_snapshot`") - resource_path = '/platform/1/snapshot/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/snapshot/snapshots/{SnapshotSnapshotId}'.replace('{format}', 'json') path_params = {} + if 'snapshot_snapshot_id' in params: + path_params['SnapshotSnapshotId'] = params['snapshot_snapshot_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshot_settings' in params: - body_params = params['snapshot_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1610,22 +958,22 @@ def update_snapshot_settings(self, snapshot_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_snapshot_snapshots(self, **kwargs): + def delete_snapshot_snapshots(self, **kwargs): """ - List all or matching snapshots. + Delete all or matching snapshots. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1633,23 +981,18 @@ def list_snapshot_snapshots(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_snapshot_snapshots(callback=callback_function) + >>> thread = api.delete_snapshot_snapshots(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. Choices are id, name, path, created, expires, size, has_locks, schedule, alias_target, alias_target_name, pct_filesystem, pct_reserve, and state. Default is id. - :param str schedule: Only list snapshots created by this schedule. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param str state: Only list snapshots matching this state. - :param int limit: Return no more than this many results at once (see resume). :param str type: Only list snapshots matching this type. - :param str dir: The direction of the sort. - :return: SnapshotSnapshotsExtended + :param str schedule: Only list snapshots created by this schedule. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'schedule', 'resume', 'state', 'limit', 'type', 'dir'] + all_params = ['type', 'schedule'] all_params.append('callback') params = locals() @@ -1657,37 +1000,26 @@ def list_snapshot_snapshots(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_snapshot_snapshots" % key + " to method delete_snapshot_snapshots" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/snapshot/snapshots'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/snapshot/snapshots'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'schedule' in params: - query_params['schedule'] = params['schedule'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'state' in params: - query_params['state'] = params['state'] - if 'limit' in params: - query_params['limit'] = params['limit'] if 'type' in params: query_params['type'] = params['type'] - if 'dir' in params: - query_params['dir'] = params['dir'] + if 'schedule' in params: + query_params['schedule'] = params['schedule'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1704,22 +1036,22 @@ def list_snapshot_snapshots(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotSnapshotsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_snapshot_snapshot(self, snapshot_snapshot, **kwargs): + def get_snapshot_aliase(self, snapshot_aliase_id, **kwargs): """ - Create a new snapshot. + Retrieve snapshot alias information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1727,17 +1059,17 @@ def create_snapshot_snapshot(self, snapshot_snapshot, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_snapshot_snapshot(snapshot_snapshot, callback=callback_function) + >>> thread = api.get_snapshot_aliase(snapshot_aliase_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotSnapshotCreateParams snapshot_snapshot: (required) - :return: CreateSnapshotSnapshotResponse + :param str snapshot_aliase_id: Retrieve snapshot alias information. (required) + :return: SnapshotAliases If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_snapshot'] + all_params = ['snapshot_aliase_id'] all_params.append('callback') params = locals() @@ -1745,30 +1077,29 @@ def create_snapshot_snapshot(self, snapshot_snapshot, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_snapshot_snapshot" % key + " to method get_snapshot_aliase" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_snapshot' is set - if ('snapshot_snapshot' not in params) or (params['snapshot_snapshot'] is None): - raise ValueError("Missing the required parameter `snapshot_snapshot` when calling `create_snapshot_snapshot`") + # verify the required parameter 'snapshot_aliase_id' is set + if ('snapshot_aliase_id' not in params) or (params['snapshot_aliase_id'] is None): + raise ValueError("Missing the required parameter `snapshot_aliase_id` when calling `get_snapshot_aliase`") - resource_path = '/platform/1/snapshot/snapshots'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/snapshot/aliases/{SnapshotAliaseId}'.replace('{format}', 'json') path_params = {} + if 'snapshot_aliase_id' in params: + path_params['SnapshotAliaseId'] = params['snapshot_aliase_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshot_snapshot' in params: - body_params = params['snapshot_snapshot'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1783,22 +1114,22 @@ def create_snapshot_snapshot(self, snapshot_snapshot, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateSnapshotSnapshotResponse', + files=local_var_files, + response_type='SnapshotAliases', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_snapshot_snapshots(self, **kwargs): + def get_snapshot_changelist(self, snapshot_changelist_id, **kwargs): """ - Delete all or matching snapshots. + Retrieve basic information on a changelist. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1806,18 +1137,17 @@ def delete_snapshot_snapshots(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_snapshot_snapshots(callback=callback_function) + >>> thread = api.get_snapshot_changelist(snapshot_changelist_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str type: Only list snapshots matching this type. - :param str schedule: Only list snapshots created by this schedule. - :return: None + :param str snapshot_changelist_id: Retrieve basic information on a changelist. (required) + :return: SnapshotChangelists If the method is called asynchronously, returns the request thread. """ - all_params = ['type', 'schedule'] + all_params = ['snapshot_changelist_id'] all_params.append('callback') params = locals() @@ -1825,27 +1155,27 @@ def delete_snapshot_snapshots(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_snapshot_snapshots" % key + " to method get_snapshot_changelist" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'snapshot_changelist_id' is set + if ('snapshot_changelist_id' not in params) or (params['snapshot_changelist_id'] is None): + raise ValueError("Missing the required parameter `snapshot_changelist_id` when calling `get_snapshot_changelist`") - resource_path = '/platform/1/snapshot/snapshots'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/snapshot/changelists/{SnapshotChangelistId}'.replace('{format}', 'json') path_params = {} + if 'snapshot_changelist_id' in params: + path_params['SnapshotChangelistId'] = params['snapshot_changelist_id'] query_params = {} - if 'type' in params: - query_params['type'] = params['type'] - if 'schedule' in params: - query_params['schedule'] = params['schedule'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1862,22 +1192,22 @@ def delete_snapshot_snapshots(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SnapshotChangelists', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_snapshot_snapshots_summary(self, **kwargs): + def get_snapshot_license(self, **kwargs): """ - Return summary information about snapshots. + Retrieve license information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1885,11 +1215,11 @@ def get_snapshot_snapshots_summary(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_snapshot_snapshots_summary(callback=callback_function) + >>> thread = api.get_snapshot_license(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SnapshotSnapshotsSummary + :return: LicenseLicense If the method is called asynchronously, returns the request thread. """ @@ -1902,23 +1232,22 @@ def get_snapshot_snapshots_summary(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_snapshot_snapshots_summary" % key + " to method get_snapshot_license" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/snapshot/snapshots-summary'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/snapshot/license'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1935,22 +1264,22 @@ def get_snapshot_snapshots_summary(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotSnapshotsSummary', + files=local_var_files, + response_type='LicenseLicense', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_snapshots_sid_locks(self, sid, **kwargs): + def get_snapshot_pending(self, **kwargs): """ - List all locks. + Return list of snapshots to be taken. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1958,21 +1287,21 @@ def list_snapshots_sid_locks(self, sid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_snapshots_sid_locks(sid, callback=callback_function) + >>> thread = api.get_snapshot_pending(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sid: (required) - :param str sort: The field that will be used for sorting. Choices are id, expires, and comment. Default is id. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. + :param int limit: Return no more than this many result at once (see resume). + :param int begin: Unix Epoch time to start generating matches. Default is now. + :param str schedule: Limit output only to the named schedule. + :param int end: Unix Epoch time to end generating matches. Default is forever. :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: SnapshotsSidLocksExtended + :return: SnapshotPending If the method is called asynchronously, returns the request thread. """ - all_params = ['sid', 'sort', 'limit', 'dir', 'resume'] + all_params = ['limit', 'begin', 'schedule', 'end', 'resume'] all_params.append('callback') params = locals() @@ -1980,36 +1309,32 @@ def list_snapshots_sid_locks(self, sid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_snapshots_sid_locks" % key + " to method get_snapshot_pending" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sid' is set - if ('sid' not in params) or (params['sid'] is None): - raise ValueError("Missing the required parameter `sid` when calling `list_snapshots_sid_locks`") - resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/snapshot/pending'.replace('{format}', 'json') path_params = {} - if 'sid' in params: - path_params['Sid'] = params['sid'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] if 'limit' in params: query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'schedule' in params: + query_params['schedule'] = params['schedule'] + if 'end' in params: + query_params['end'] = params['end'] if 'resume' in params: query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2026,22 +1351,22 @@ def list_snapshots_sid_locks(self, sid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotsSidLocksExtended', + files=local_var_files, + response_type='SnapshotPending', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_snapshots_sid_lock(self, snapshots_sid_lock, sid, **kwargs): + def get_snapshot_repstate(self, snapshot_repstate_id, **kwargs): """ - Create a new lock on this snapshot. + Retrieve basic information on a repstate. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2049,18 +1374,17 @@ def create_snapshots_sid_lock(self, snapshots_sid_lock, sid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_snapshots_sid_lock(snapshots_sid_lock, sid, callback=callback_function) + >>> thread = api.get_snapshot_repstate(snapshot_repstate_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotsSidLockCreateParams snapshots_sid_lock: (required) - :param str sid: (required) - :return: CreateSnapshotsSidLockResponse + :param str snapshot_repstate_id: Retrieve basic information on a repstate. (required) + :return: SnapshotRepstates If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshots_sid_lock', 'sid'] + all_params = ['snapshot_repstate_id'] all_params.append('callback') params = locals() @@ -2068,35 +1392,29 @@ def create_snapshots_sid_lock(self, snapshots_sid_lock, sid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_snapshots_sid_lock" % key + " to method get_snapshot_repstate" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshots_sid_lock' is set - if ('snapshots_sid_lock' not in params) or (params['snapshots_sid_lock'] is None): - raise ValueError("Missing the required parameter `snapshots_sid_lock` when calling `create_snapshots_sid_lock`") - # verify the required parameter 'sid' is set - if ('sid' not in params) or (params['sid'] is None): - raise ValueError("Missing the required parameter `sid` when calling `create_snapshots_sid_lock`") + # verify the required parameter 'snapshot_repstate_id' is set + if ('snapshot_repstate_id' not in params) or (params['snapshot_repstate_id'] is None): + raise ValueError("Missing the required parameter `snapshot_repstate_id` when calling `get_snapshot_repstate`") - resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/snapshot/repstates/{SnapshotRepstateId}'.replace('{format}', 'json') path_params = {} - if 'sid' in params: - path_params['Sid'] = params['sid'] + if 'snapshot_repstate_id' in params: + path_params['SnapshotRepstateId'] = params['snapshot_repstate_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshots_sid_lock' in params: - body_params = params['snapshots_sid_lock'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2111,22 +1429,22 @@ def create_snapshots_sid_lock(self, snapshots_sid_lock, sid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateSnapshotsSidLockResponse', + files=local_var_files, + response_type='SnapshotRepstates', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_snapshots_sid_locks(self, sid, **kwargs): + def get_snapshot_schedule(self, snapshot_schedule_id, **kwargs): """ - Delete all locks. Will try to drain count of recursively held locks so that the snapshot can be deleted. + Retrieve the schedule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2134,17 +1452,17 @@ def delete_snapshots_sid_locks(self, sid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_snapshots_sid_locks(sid, callback=callback_function) + >>> thread = api.get_snapshot_schedule(snapshot_schedule_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sid: (required) - :return: None + :param str snapshot_schedule_id: Retrieve the schedule. (required) + :return: SnapshotSchedules If the method is called asynchronously, returns the request thread. """ - all_params = ['sid'] + all_params = ['snapshot_schedule_id'] all_params.append('callback') params = locals() @@ -2152,28 +1470,27 @@ def delete_snapshots_sid_locks(self, sid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_snapshots_sid_locks" % key + " to method get_snapshot_schedule" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sid' is set - if ('sid' not in params) or (params['sid'] is None): - raise ValueError("Missing the required parameter `sid` when calling `delete_snapshots_sid_locks`") + # verify the required parameter 'snapshot_schedule_id' is set + if ('snapshot_schedule_id' not in params) or (params['snapshot_schedule_id'] is None): + raise ValueError("Missing the required parameter `snapshot_schedule_id` when calling `get_snapshot_schedule`") - resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/snapshot/schedules/{SnapshotScheduleId}'.replace('{format}', 'json') path_params = {} - if 'sid' in params: - path_params['Sid'] = params['sid'] + if 'snapshot_schedule_id' in params: + path_params['SnapshotScheduleId'] = params['snapshot_schedule_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2190,22 +1507,22 @@ def delete_snapshots_sid_locks(self, sid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SnapshotSchedules', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_snapshots_sid_lock(self, snapshots_sid_lock_id, sid, **kwargs): + def get_snapshot_settings(self, **kwargs): """ - Retrieve lock information. + List all settings This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2213,18 +1530,16 @@ def get_snapshots_sid_lock(self, snapshots_sid_lock_id, sid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_snapshots_sid_lock(snapshots_sid_lock_id, sid, callback=callback_function) + >>> thread = api.get_snapshot_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshots_sid_lock_id: Retrieve lock information. (required) - :param str sid: (required) - :return: SnapshotsSidLocks + :return: SnapshotSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshots_sid_lock_id', 'sid'] + all_params = [] all_params.append('callback') params = locals() @@ -2232,33 +1547,22 @@ def get_snapshots_sid_lock(self, snapshots_sid_lock_id, sid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_snapshots_sid_lock" % key + " to method get_snapshot_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshots_sid_lock_id' is set - if ('snapshots_sid_lock_id' not in params) or (params['snapshots_sid_lock_id'] is None): - raise ValueError("Missing the required parameter `snapshots_sid_lock_id` when calling `get_snapshots_sid_lock`") - # verify the required parameter 'sid' is set - if ('sid' not in params) or (params['sid'] is None): - raise ValueError("Missing the required parameter `sid` when calling `get_snapshots_sid_lock`") - resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotsSidLockId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/snapshot/settings'.replace('{format}', 'json') path_params = {} - if 'snapshots_sid_lock_id' in params: - path_params['SnapshotsSidLockId'] = params['snapshots_sid_lock_id'] - if 'sid' in params: - path_params['Sid'] = params['sid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2275,22 +1579,22 @@ def get_snapshots_sid_lock(self, snapshots_sid_lock_id, sid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotsSidLocks', + files=local_var_files, + response_type='SnapshotSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_snapshots_sid_lock(self, snapshots_sid_lock, snapshots_sid_lock_id, sid, **kwargs): + def get_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): """ - Modify lock. All input fields are optional, but one or more must be supplied. + Retrieve snapshot information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2298,19 +1602,17 @@ def update_snapshots_sid_lock(self, snapshots_sid_lock, snapshots_sid_lock_id, s >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_snapshots_sid_lock(snapshots_sid_lock, snapshots_sid_lock_id, sid, callback=callback_function) + >>> thread = api.get_snapshot_snapshot(snapshot_snapshot_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotsSidLock snapshots_sid_lock: (required) - :param str snapshots_sid_lock_id: Modify lock. All input fields are optional, but one or more must be supplied. (required) - :param str sid: (required) - :return: None + :param str snapshot_snapshot_id: Retrieve snapshot information. (required) + :return: SnapshotSnapshots If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshots_sid_lock', 'snapshots_sid_lock_id', 'sid'] + all_params = ['snapshot_snapshot_id'] all_params.append('callback') params = locals() @@ -2318,40 +1620,29 @@ def update_snapshots_sid_lock(self, snapshots_sid_lock, snapshots_sid_lock_id, s if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_snapshots_sid_lock" % key + " to method get_snapshot_snapshot" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshots_sid_lock' is set - if ('snapshots_sid_lock' not in params) or (params['snapshots_sid_lock'] is None): - raise ValueError("Missing the required parameter `snapshots_sid_lock` when calling `update_snapshots_sid_lock`") - # verify the required parameter 'snapshots_sid_lock_id' is set - if ('snapshots_sid_lock_id' not in params) or (params['snapshots_sid_lock_id'] is None): - raise ValueError("Missing the required parameter `snapshots_sid_lock_id` when calling `update_snapshots_sid_lock`") - # verify the required parameter 'sid' is set - if ('sid' not in params) or (params['sid'] is None): - raise ValueError("Missing the required parameter `sid` when calling `update_snapshots_sid_lock`") + # verify the required parameter 'snapshot_snapshot_id' is set + if ('snapshot_snapshot_id' not in params) or (params['snapshot_snapshot_id'] is None): + raise ValueError("Missing the required parameter `snapshot_snapshot_id` when calling `get_snapshot_snapshot`") - resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotsSidLockId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/snapshot/snapshots/{SnapshotSnapshotId}'.replace('{format}', 'json') path_params = {} - if 'snapshots_sid_lock_id' in params: - path_params['SnapshotsSidLockId'] = params['snapshots_sid_lock_id'] - if 'sid' in params: - path_params['Sid'] = params['sid'] + if 'snapshot_snapshot_id' in params: + path_params['SnapshotSnapshotId'] = params['snapshot_snapshot_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshots_sid_lock' in params: - body_params = params['snapshots_sid_lock'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2366,22 +1657,22 @@ def update_snapshots_sid_lock(self, snapshots_sid_lock, snapshots_sid_lock_id, s # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SnapshotSnapshots', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_snapshots_sid_lock(self, snapshots_sid_lock_id, sid, **kwargs): + def get_snapshot_snapshots_summary(self, **kwargs): """ - Delete the snapshot lock. + Return summary information about snapshots. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2389,18 +1680,16 @@ def delete_snapshots_sid_lock(self, snapshots_sid_lock_id, sid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_snapshots_sid_lock(snapshots_sid_lock_id, sid, callback=callback_function) + >>> thread = api.get_snapshot_snapshots_summary(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshots_sid_lock_id: Delete the snapshot lock. (required) - :param str sid: (required) - :return: None + :return: SnapshotSnapshotsSummary If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshots_sid_lock_id', 'sid'] + all_params = [] all_params.append('callback') params = locals() @@ -2408,33 +1697,22 @@ def delete_snapshots_sid_lock(self, snapshots_sid_lock_id, sid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_snapshots_sid_lock" % key + " to method get_snapshot_snapshots_summary" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshots_sid_lock_id' is set - if ('snapshots_sid_lock_id' not in params) or (params['snapshots_sid_lock_id'] is None): - raise ValueError("Missing the required parameter `snapshots_sid_lock_id` when calling `delete_snapshots_sid_lock`") - # verify the required parameter 'sid' is set - if ('sid' not in params) or (params['sid'] is None): - raise ValueError("Missing the required parameter `sid` when calling `delete_snapshots_sid_lock`") - resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotsSidLockId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/snapshot/snapshots-summary'.replace('{format}', 'json') path_params = {} - if 'snapshots_sid_lock_id' in params: - path_params['SnapshotsSidLockId'] = params['snapshots_sid_lock_id'] - if 'sid' in params: - path_params['Sid'] = params['sid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2451,22 +1729,22 @@ def delete_snapshots_sid_lock(self, snapshots_sid_lock_id, sid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SnapshotSnapshotsSummary', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): + def list_snapshot_aliases(self, **kwargs): """ - Retrieve snapshot information. + List all or matching snapshot aliases. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2474,17 +1752,20 @@ def get_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_snapshot_snapshot(snapshot_snapshot_id, callback=callback_function) + >>> thread = api.list_snapshot_aliases(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshot_snapshot_id: Retrieve snapshot information. (required) - :return: SnapshotSnapshots + :param str sort: The field that will be used for sorting. Choices are id, name, snapshot, and created. Default is id. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: SnapshotAliasesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_snapshot_id'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -2492,28 +1773,32 @@ def get_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_snapshot_snapshot" % key + " to method list_snapshot_aliases" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_snapshot_id' is set - if ('snapshot_snapshot_id' not in params) or (params['snapshot_snapshot_id'] is None): - raise ValueError("Missing the required parameter `snapshot_snapshot_id` when calling `get_snapshot_snapshot`") - resource_path = '/platform/1/snapshot/snapshots/{SnapshotSnapshotId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_snapshot_aliases`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/snapshot/aliases'.replace('{format}', 'json') path_params = {} - if 'snapshot_snapshot_id' in params: - path_params['SnapshotSnapshotId'] = params['snapshot_snapshot_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2530,22 +1815,22 @@ def get_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotSnapshots', + files=local_var_files, + response_type='SnapshotAliasesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_snapshot_snapshot(self, snapshot_snapshot, snapshot_snapshot_id, **kwargs): + def list_snapshot_changelists(self, **kwargs): """ - Modify snapshot. All input fields are optional, but one or more must be supplied. + List all changelists. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2553,18 +1838,16 @@ def update_snapshot_snapshot(self, snapshot_snapshot, snapshot_snapshot_id, **kw >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_snapshot_snapshot(snapshot_snapshot, snapshot_snapshot_id, callback=callback_function) + >>> thread = api.list_snapshot_changelists(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotSnapshot snapshot_snapshot: (required) - :param str snapshot_snapshot_id: Modify snapshot. All input fields are optional, but one or more must be supplied. (required) - :return: None + :return: SnapshotChangelistsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_snapshot', 'snapshot_snapshot_id'] + all_params = [] all_params.append('callback') params = locals() @@ -2572,35 +1855,24 @@ def update_snapshot_snapshot(self, snapshot_snapshot, snapshot_snapshot_id, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_snapshot_snapshot" % key + " to method list_snapshot_changelists" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_snapshot' is set - if ('snapshot_snapshot' not in params) or (params['snapshot_snapshot'] is None): - raise ValueError("Missing the required parameter `snapshot_snapshot` when calling `update_snapshot_snapshot`") - # verify the required parameter 'snapshot_snapshot_id' is set - if ('snapshot_snapshot_id' not in params) or (params['snapshot_snapshot_id'] is None): - raise ValueError("Missing the required parameter `snapshot_snapshot_id` when calling `update_snapshot_snapshot`") - resource_path = '/platform/1/snapshot/snapshots/{SnapshotSnapshotId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/snapshot/changelists'.replace('{format}', 'json') path_params = {} - if 'snapshot_snapshot_id' in params: - path_params['SnapshotSnapshotId'] = params['snapshot_snapshot_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshot_snapshot' in params: - body_params = params['snapshot_snapshot'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2615,22 +1887,22 @@ def update_snapshot_snapshot(self, snapshot_snapshot, snapshot_snapshot_id, **kw # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SnapshotChangelistsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): + def list_snapshot_repstates(self, **kwargs): """ - Delete the snapshot. Deleted snapshots will be placed into a deleting state until the system can reclaim the space used by the snapshot. + List all repstates. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2638,17 +1910,16 @@ def delete_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_snapshot_snapshot(snapshot_snapshot_id, callback=callback_function) + >>> thread = api.list_snapshot_repstates(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshot_snapshot_id: Delete the snapshot. Deleted snapshots will be placed into a deleting state until the system can reclaim the space used by the snapshot. (required) - :return: None + :return: SnapshotRepstatesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_snapshot_id'] + all_params = [] all_params.append('callback') params = locals() @@ -2656,28 +1927,22 @@ def delete_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_snapshot_snapshot" % key + " to method list_snapshot_repstates" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_snapshot_id' is set - if ('snapshot_snapshot_id' not in params) or (params['snapshot_snapshot_id'] is None): - raise ValueError("Missing the required parameter `snapshot_snapshot_id` when calling `delete_snapshot_snapshot`") - resource_path = '/platform/1/snapshot/snapshots/{SnapshotSnapshotId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/snapshot/repstates'.replace('{format}', 'json') path_params = {} - if 'snapshot_snapshot_id' in params: - path_params['SnapshotSnapshotId'] = params['snapshot_snapshot_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2694,14 +1959,14 @@ def delete_snapshot_snapshot(self, snapshot_snapshot_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SnapshotRepstatesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -2744,9 +2009,10 @@ def list_snapshot_schedules(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/snapshot/schedules'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_snapshot_schedules`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/snapshot/schedules'.replace('{format}', 'json') path_params = {} query_params = {} @@ -2761,8 +2027,8 @@ def list_snapshot_schedules(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2779,22 +2045,22 @@ def list_snapshot_schedules(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='SnapshotSchedulesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_snapshot_schedule(self, snapshot_schedule, **kwargs): + def list_snapshot_snapshots(self, **kwargs): """ - Create a new schedule. + List all or matching snapshots. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2802,17 +2068,23 @@ def create_snapshot_schedule(self, snapshot_schedule, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_snapshot_schedule(snapshot_schedule, callback=callback_function) + >>> thread = api.list_snapshot_snapshots(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotSchedule snapshot_schedule: (required) - :return: CreateSnapshotScheduleResponse + :param str sort: The field that will be used for sorting. Choices are id, name, path, created, expires, size, has_locks, schedule, alias_target, alias_target_name, pct_filesystem, pct_reserve, and state. Default is id. + :param str schedule: Only list snapshots created by this schedule. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param str state: Only list snapshots matching this state. + :param int limit: Return no more than this many results at once (see resume). + :param str type: Only list snapshots matching this type. + :param str dir: The direction of the sort. + :return: SnapshotSnapshotsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_schedule'] + all_params = ['sort', 'schedule', 'resume', 'state', 'limit', 'type', 'dir'] all_params.append('callback') params = locals() @@ -2820,30 +2092,40 @@ def create_snapshot_schedule(self, snapshot_schedule, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_snapshot_schedule" % key + " to method list_snapshot_snapshots" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_schedule' is set - if ('snapshot_schedule' not in params) or (params['snapshot_schedule'] is None): - raise ValueError("Missing the required parameter `snapshot_schedule` when calling `create_snapshot_schedule`") - resource_path = '/platform/3/snapshot/schedules'.replace('{format}', 'json') - method = 'POST' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_snapshot_snapshots`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/snapshot/snapshots'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'schedule' in params: + query_params['schedule'] = params['schedule'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'state' in params: + query_params['state'] = params['state'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'type' in params: + query_params['type'] = params['type'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshot_schedule' in params: - body_params = params['snapshot_schedule'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2858,22 +2140,22 @@ def create_snapshot_schedule(self, snapshot_schedule, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateSnapshotScheduleResponse', + files=local_var_files, + response_type='SnapshotSnapshotsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_snapshot_schedules(self, **kwargs): + def update_snapshot_aliase(self, snapshot_aliase, snapshot_aliase_id, **kwargs): """ - Delete all snapshot schedules. + Modify snapshot alias. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2881,16 +2163,18 @@ def delete_snapshot_schedules(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_snapshot_schedules(callback=callback_function) + >>> thread = api.update_snapshot_aliase(snapshot_aliase, snapshot_aliase_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) + :param SnapshotAliase snapshot_aliase: (required) + :param str snapshot_aliase_id: Modify snapshot alias. All input fields are optional, but one or more must be supplied. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['snapshot_aliase', 'snapshot_aliase_id'] all_params.append('callback') params = locals() @@ -2898,25 +2182,34 @@ def delete_snapshot_schedules(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_snapshot_schedules" % key + " to method update_snapshot_aliase" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'snapshot_aliase' is set + if ('snapshot_aliase' not in params) or (params['snapshot_aliase'] is None): + raise ValueError("Missing the required parameter `snapshot_aliase` when calling `update_snapshot_aliase`") + # verify the required parameter 'snapshot_aliase_id' is set + if ('snapshot_aliase_id' not in params) or (params['snapshot_aliase_id'] is None): + raise ValueError("Missing the required parameter `snapshot_aliase_id` when calling `update_snapshot_aliase`") - resource_path = '/platform/3/snapshot/schedules'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/snapshot/aliases/{SnapshotAliaseId}'.replace('{format}', 'json') path_params = {} + if 'snapshot_aliase_id' in params: + path_params['SnapshotAliaseId'] = params['snapshot_aliase_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'snapshot_aliase' in params: + body_params = params['snapshot_aliase'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2931,22 +2224,22 @@ def delete_snapshot_schedules(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_snapshot_schedule(self, snapshot_schedule_id, **kwargs): + def update_snapshot_schedule(self, snapshot_schedule, snapshot_schedule_id, **kwargs): """ - Retrieve the schedule. + Modify the schedule. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2954,17 +2247,18 @@ def get_snapshot_schedule(self, snapshot_schedule_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_snapshot_schedule(snapshot_schedule_id, callback=callback_function) + >>> thread = api.update_snapshot_schedule(snapshot_schedule, snapshot_schedule_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshot_schedule_id: Retrieve the schedule. (required) - :return: SnapshotSchedules + :param SnapshotSchedule snapshot_schedule: (required) + :param str snapshot_schedule_id: Modify the schedule. All input fields are optional, but one or more must be supplied. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_schedule_id'] + all_params = ['snapshot_schedule', 'snapshot_schedule_id'] all_params.append('callback') params = locals() @@ -2972,18 +2266,20 @@ def get_snapshot_schedule(self, snapshot_schedule_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_snapshot_schedule" % key + " to method update_snapshot_schedule" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'snapshot_schedule' is set + if ('snapshot_schedule' not in params) or (params['snapshot_schedule'] is None): + raise ValueError("Missing the required parameter `snapshot_schedule` when calling `update_snapshot_schedule`") # verify the required parameter 'snapshot_schedule_id' is set if ('snapshot_schedule_id' not in params) or (params['snapshot_schedule_id'] is None): - raise ValueError("Missing the required parameter `snapshot_schedule_id` when calling `get_snapshot_schedule`") + raise ValueError("Missing the required parameter `snapshot_schedule_id` when calling `update_snapshot_schedule`") - resource_path = '/platform/3/snapshot/schedules/{SnapshotScheduleId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/snapshot/schedules/{SnapshotScheduleId}'.replace('{format}', 'json') path_params = {} if 'snapshot_schedule_id' in params: path_params['SnapshotScheduleId'] = params['snapshot_schedule_id'] @@ -2992,10 +2288,12 @@ def get_snapshot_schedule(self, snapshot_schedule_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'snapshot_schedule' in params: + body_params = params['snapshot_schedule'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3010,22 +2308,22 @@ def get_snapshot_schedule(self, snapshot_schedule_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SnapshotSchedules', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_snapshot_schedule(self, snapshot_schedule, snapshot_schedule_id, **kwargs): + def update_snapshot_settings(self, snapshot_settings, **kwargs): """ - Modify the schedule. All input fields are optional, but one or more must be supplied. + Modify one or more settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3033,18 +2331,17 @@ def update_snapshot_schedule(self, snapshot_schedule, snapshot_schedule_id, **kw >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_snapshot_schedule(snapshot_schedule, snapshot_schedule_id, callback=callback_function) + >>> thread = api.update_snapshot_settings(snapshot_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SnapshotSchedule snapshot_schedule: (required) - :param str snapshot_schedule_id: Modify the schedule. All input fields are optional, but one or more must be supplied. (required) + :param SnapshotSettingsSettings snapshot_settings: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_schedule', 'snapshot_schedule_id'] + all_params = ['snapshot_settings'] all_params.append('callback') params = locals() @@ -3052,35 +2349,29 @@ def update_snapshot_schedule(self, snapshot_schedule, snapshot_schedule_id, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_snapshot_schedule" % key + " to method update_snapshot_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_schedule' is set - if ('snapshot_schedule' not in params) or (params['snapshot_schedule'] is None): - raise ValueError("Missing the required parameter `snapshot_schedule` when calling `update_snapshot_schedule`") - # verify the required parameter 'snapshot_schedule_id' is set - if ('snapshot_schedule_id' not in params) or (params['snapshot_schedule_id'] is None): - raise ValueError("Missing the required parameter `snapshot_schedule_id` when calling `update_snapshot_schedule`") + # verify the required parameter 'snapshot_settings' is set + if ('snapshot_settings' not in params) or (params['snapshot_settings'] is None): + raise ValueError("Missing the required parameter `snapshot_settings` when calling `update_snapshot_settings`") - resource_path = '/platform/3/snapshot/schedules/{SnapshotScheduleId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/snapshot/settings'.replace('{format}', 'json') path_params = {} - if 'snapshot_schedule_id' in params: - path_params['SnapshotScheduleId'] = params['snapshot_schedule_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'snapshot_schedule' in params: - body_params = params['snapshot_schedule'] + if 'snapshot_settings' in params: + body_params = params['snapshot_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3095,22 +2386,22 @@ def update_snapshot_schedule(self, snapshot_schedule, snapshot_schedule_id, **kw # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_snapshot_schedule(self, snapshot_schedule_id, **kwargs): + def update_snapshot_snapshot(self, snapshot_snapshot, snapshot_snapshot_id, **kwargs): """ - Delete the schedule. This does not affect already created snapshots. + Modify snapshot. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3118,17 +2409,18 @@ def delete_snapshot_schedule(self, snapshot_schedule_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_snapshot_schedule(snapshot_schedule_id, callback=callback_function) + >>> thread = api.update_snapshot_snapshot(snapshot_snapshot, snapshot_snapshot_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str snapshot_schedule_id: Delete the schedule. This does not affect already created snapshots. (required) + :param SnapshotSnapshot snapshot_snapshot: (required) + :param str snapshot_snapshot_id: Modify snapshot. All input fields are optional, but one or more must be supplied. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['snapshot_schedule_id'] + all_params = ['snapshot_snapshot', 'snapshot_snapshot_id'] all_params.append('callback') params = locals() @@ -3136,30 +2428,34 @@ def delete_snapshot_schedule(self, snapshot_schedule_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_snapshot_schedule" % key + " to method update_snapshot_snapshot" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'snapshot_schedule_id' is set - if ('snapshot_schedule_id' not in params) or (params['snapshot_schedule_id'] is None): - raise ValueError("Missing the required parameter `snapshot_schedule_id` when calling `delete_snapshot_schedule`") + # verify the required parameter 'snapshot_snapshot' is set + if ('snapshot_snapshot' not in params) or (params['snapshot_snapshot'] is None): + raise ValueError("Missing the required parameter `snapshot_snapshot` when calling `update_snapshot_snapshot`") + # verify the required parameter 'snapshot_snapshot_id' is set + if ('snapshot_snapshot_id' not in params) or (params['snapshot_snapshot_id'] is None): + raise ValueError("Missing the required parameter `snapshot_snapshot_id` when calling `update_snapshot_snapshot`") - resource_path = '/platform/3/snapshot/schedules/{SnapshotScheduleId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/snapshot/snapshots/{SnapshotSnapshotId}'.replace('{format}', 'json') path_params = {} - if 'snapshot_schedule_id' in params: - path_params['SnapshotScheduleId'] = params['snapshot_schedule_id'] + if 'snapshot_snapshot_id' in params: + path_params['SnapshotSnapshotId'] = params['snapshot_snapshot_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'snapshot_snapshot' in params: + body_params = params['snapshot_snapshot'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3174,13 +2470,13 @@ def delete_snapshot_schedule(self, snapshot_schedule_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/snapshot_changelists_api.py b/isi_sdk/apis/snapshot_changelists_api.py new file mode 100644 index 000000000..8d9bc389e --- /dev/null +++ b/isi_sdk/apis/snapshot_changelists_api.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" +SnapshotChangelistsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SnapshotChangelistsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_changelist_lin(self, changelist_lin_id, changelist, **kwargs): + """ + + Get a single entry from the changelist. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_changelist_lin(changelist_lin_id, changelist, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int changelist_lin_id: Get a single entry from the changelist. (required) + :param str changelist: (required) + :return: ChangelistLins + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['changelist_lin_id', 'changelist'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_changelist_lin" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'changelist_lin_id' is set + if ('changelist_lin_id' not in params) or (params['changelist_lin_id'] is None): + raise ValueError("Missing the required parameter `changelist_lin_id` when calling `get_changelist_lin`") + # verify the required parameter 'changelist' is set + if ('changelist' not in params) or (params['changelist'] is None): + raise ValueError("Missing the required parameter `changelist` when calling `get_changelist_lin`") + + + resource_path = '/platform/1/snapshot/changelists/{Changelist}/lins/{ChangelistLinId}'.replace('{format}', 'json') + path_params = {} + if 'changelist_lin_id' in params: + path_params['ChangelistLinId'] = params['changelist_lin_id'] + if 'changelist' in params: + path_params['Changelist'] = params['changelist'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ChangelistLins', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_changelist_lins(self, changelist, **kwargs): + """ + + Get entries from a changelist. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_changelist_lins(changelist, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str changelist: (required) + :return: ChangelistLinsExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['changelist'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_changelist_lins" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'changelist' is set + if ('changelist' not in params) or (params['changelist'] is None): + raise ValueError("Missing the required parameter `changelist` when calling `get_changelist_lins`") + + + resource_path = '/platform/1/snapshot/changelists/{Changelist}/lins'.replace('{format}', 'json') + path_params = {} + if 'changelist' in params: + path_params['Changelist'] = params['changelist'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ChangelistLinsExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/snapshot_snapshots_api.py b/isi_sdk/apis/snapshot_snapshots_api.py new file mode 100644 index 000000000..1e3f7a6ad --- /dev/null +++ b/isi_sdk/apis/snapshot_snapshots_api.py @@ -0,0 +1,559 @@ +# coding: utf-8 + +""" +SnapshotSnapshotsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SnapshotSnapshotsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_snapshot_lock(self, snapshot_lock, sid, **kwargs): + """ + + Create a new lock on this snapshot. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_snapshot_lock(snapshot_lock, sid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SnapshotLockCreateParams snapshot_lock: (required) + :param str sid: (required) + :return: CreateSnapshotLockResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['snapshot_lock', 'sid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_snapshot_lock" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'snapshot_lock' is set + if ('snapshot_lock' not in params) or (params['snapshot_lock'] is None): + raise ValueError("Missing the required parameter `snapshot_lock` when calling `create_snapshot_lock`") + # verify the required parameter 'sid' is set + if ('sid' not in params) or (params['sid'] is None): + raise ValueError("Missing the required parameter `sid` when calling `create_snapshot_lock`") + + + resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks'.replace('{format}', 'json') + path_params = {} + if 'sid' in params: + path_params['Sid'] = params['sid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'snapshot_lock' in params: + body_params = params['snapshot_lock'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateSnapshotLockResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_snapshot_lock(self, snapshot_lock_id, sid, **kwargs): + """ + + Delete the snapshot lock. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_snapshot_lock(snapshot_lock_id, sid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str snapshot_lock_id: Delete the snapshot lock. (required) + :param str sid: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['snapshot_lock_id', 'sid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_snapshot_lock" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'snapshot_lock_id' is set + if ('snapshot_lock_id' not in params) or (params['snapshot_lock_id'] is None): + raise ValueError("Missing the required parameter `snapshot_lock_id` when calling `delete_snapshot_lock`") + # verify the required parameter 'sid' is set + if ('sid' not in params) or (params['sid'] is None): + raise ValueError("Missing the required parameter `sid` when calling `delete_snapshot_lock`") + + + resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId}'.replace('{format}', 'json') + path_params = {} + if 'snapshot_lock_id' in params: + path_params['SnapshotLockId'] = params['snapshot_lock_id'] + if 'sid' in params: + path_params['Sid'] = params['sid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def delete_snapshot_locks(self, sid, **kwargs): + """ + + Delete all locks. Will try to drain count of recursively held locks so that the snapshot can be deleted. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_snapshot_locks(sid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str sid: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['sid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_snapshot_locks" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'sid' is set + if ('sid' not in params) or (params['sid'] is None): + raise ValueError("Missing the required parameter `sid` when calling `delete_snapshot_locks`") + + + resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks'.replace('{format}', 'json') + path_params = {} + if 'sid' in params: + path_params['Sid'] = params['sid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_snapshot_lock(self, snapshot_lock_id, sid, **kwargs): + """ + + Retrieve lock information. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_snapshot_lock(snapshot_lock_id, sid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str snapshot_lock_id: Retrieve lock information. (required) + :param str sid: (required) + :return: SnapshotLocks + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['snapshot_lock_id', 'sid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_snapshot_lock" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'snapshot_lock_id' is set + if ('snapshot_lock_id' not in params) or (params['snapshot_lock_id'] is None): + raise ValueError("Missing the required parameter `snapshot_lock_id` when calling `get_snapshot_lock`") + # verify the required parameter 'sid' is set + if ('sid' not in params) or (params['sid'] is None): + raise ValueError("Missing the required parameter `sid` when calling `get_snapshot_lock`") + + + resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId}'.replace('{format}', 'json') + path_params = {} + if 'snapshot_lock_id' in params: + path_params['SnapshotLockId'] = params['snapshot_lock_id'] + if 'sid' in params: + path_params['Sid'] = params['sid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SnapshotLocks', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def list_snapshot_locks(self, sid, **kwargs): + """ + + List all locks. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.list_snapshot_locks(sid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str sid: (required) + :param str sort: The field that will be used for sorting. Choices are id, expires, and comment. Default is id. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: SnapshotLocksExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['sid', 'sort', 'limit', 'dir', 'resume'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_snapshot_locks" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'sid' is set + if ('sid' not in params) or (params['sid'] is None): + raise ValueError("Missing the required parameter `sid` when calling `list_snapshot_locks`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_snapshot_locks`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks'.replace('{format}', 'json') + path_params = {} + if 'sid' in params: + path_params['Sid'] = params['sid'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SnapshotLocksExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def update_snapshot_lock(self, snapshot_lock, snapshot_lock_id, sid, **kwargs): + """ + + Modify lock. All input fields are optional, but one or more must be supplied. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.update_snapshot_lock(snapshot_lock, snapshot_lock_id, sid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SnapshotLock snapshot_lock: (required) + :param str snapshot_lock_id: Modify lock. All input fields are optional, but one or more must be supplied. (required) + :param str sid: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['snapshot_lock', 'snapshot_lock_id', 'sid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_snapshot_lock" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'snapshot_lock' is set + if ('snapshot_lock' not in params) or (params['snapshot_lock'] is None): + raise ValueError("Missing the required parameter `snapshot_lock` when calling `update_snapshot_lock`") + # verify the required parameter 'snapshot_lock_id' is set + if ('snapshot_lock_id' not in params) or (params['snapshot_lock_id'] is None): + raise ValueError("Missing the required parameter `snapshot_lock_id` when calling `update_snapshot_lock`") + # verify the required parameter 'sid' is set + if ('sid' not in params) or (params['sid'] is None): + raise ValueError("Missing the required parameter `sid` when calling `update_snapshot_lock`") + + + resource_path = '/platform/1/snapshot/snapshots/{Sid}/locks/{SnapshotLockId}'.replace('{format}', 'json') + path_params = {} + if 'snapshot_lock_id' in params: + path_params['SnapshotLockId'] = params['snapshot_lock_id'] + if 'sid' in params: + path_params['Sid'] = params['sid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'snapshot_lock' in params: + body_params = params['snapshot_lock'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/statistics_api.py b/isi_sdk/apis/statistics_api.py index 72b2f75c7..05a92a9dd 100644 --- a/isi_sdk/apis/statistics_api.py +++ b/isi_sdk/apis/statistics_api.py @@ -2,7 +2,7 @@ """ StatisticsApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -86,9 +87,8 @@ def get_statistics_current(self, **kwargs): del params['kwargs'] - resource_path = '/platform/1/statistics/current'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/statistics/current'.replace('{format}', 'json') path_params = {} query_params = {} @@ -109,8 +109,8 @@ def get_statistics_current(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -127,13 +127,13 @@ def get_statistics_current(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='StatisticsCurrent', auth_settings=auth_settings, callback=params.get('callback')) @@ -185,9 +185,8 @@ def get_statistics_history(self, **kwargs): del params['kwargs'] - resource_path = '/platform/1/statistics/history'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/statistics/history'.replace('{format}', 'json') path_params = {} query_params = {} @@ -218,8 +217,8 @@ def get_statistics_history(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -236,22 +235,22 @@ def get_statistics_history(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='StatisticsHistory', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_statistics_keys(self, **kwargs): + def get_statistics_key(self, statistics_key_id, **kwargs): """ - List meta-data for matching keys. + List key meta-data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -259,20 +258,17 @@ def get_statistics_keys(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_statistics_keys(callback=callback_function) + >>> thread = api.get_statistics_key(statistics_key_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param bool count: Only count matching keys, do not return meta-data. - :param int limit: Return no more than this many results at once (see resume). - :param bool queryable: Only list keys that can/cannot be queries. Default is true. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: StatisticsKeysExtended + :param str statistics_key_id: List key meta-data. (required) + :return: StatisticsKeys If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'limit', 'queryable', 'resume'] + all_params = ['statistics_key_id'] all_params.append('callback') params = locals() @@ -280,31 +276,27 @@ def get_statistics_keys(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_statistics_keys" % key + " to method get_statistics_key" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'statistics_key_id' is set + if ('statistics_key_id' not in params) or (params['statistics_key_id'] is None): + raise ValueError("Missing the required parameter `statistics_key_id` when calling `get_statistics_key`") - resource_path = '/platform/1/statistics/keys'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/statistics/keys/{StatisticsKeyId}'.replace('{format}', 'json') path_params = {} + if 'statistics_key_id' in params: + path_params['StatisticsKeyId'] = params['statistics_key_id'] query_params = {} - if 'count' in params: - query_params['count'] = params['count'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'queryable' in params: - query_params['queryable'] = params['queryable'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -321,22 +313,22 @@ def get_statistics_keys(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StatisticsKeysExtended', + files=local_var_files, + response_type='StatisticsKeys', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_statistics_key(self, statistics_key_id, **kwargs): + def get_statistics_keys(self, **kwargs): """ - List key meta-data. + List meta-data for matching keys. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -344,17 +336,20 @@ def get_statistics_key(self, statistics_key_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_statistics_key(statistics_key_id, callback=callback_function) + >>> thread = api.get_statistics_keys(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str statistics_key_id: List key meta-data. (required) - :return: StatisticsKeys + :param bool count: Only count matching keys, do not return meta-data. + :param int limit: Return no more than this many results at once (see resume). + :param bool queryable: Only list keys that can/cannot be queries. Default is true. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: StatisticsKeysExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['statistics_key_id'] + all_params = ['count', 'limit', 'queryable', 'resume'] all_params.append('callback') params = locals() @@ -362,28 +357,32 @@ def get_statistics_key(self, statistics_key_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_statistics_key" % key + " to method get_statistics_keys" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'statistics_key_id' is set - if ('statistics_key_id' not in params) or (params['statistics_key_id'] is None): - raise ValueError("Missing the required parameter `statistics_key_id` when calling `get_statistics_key`") - resource_path = '/platform/1/statistics/keys/{StatisticsKeyId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_statistics_keys`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/statistics/keys'.replace('{format}', 'json') path_params = {} - if 'statistics_key_id' in params: - path_params['StatisticsKeyId'] = params['statistics_key_id'] query_params = {} + if 'count' in params: + query_params['count'] = params['count'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'queryable' in params: + query_params['queryable'] = params['queryable'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -400,22 +399,22 @@ def get_statistics_key(self, statistics_key_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StatisticsKeys', + files=local_var_files, + response_type='StatisticsKeysExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_statistics_protocols(self, **kwargs): + def get_statistics_operations(self, **kwargs): """ - Retrieve protocol list. + Retrieve operations list. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -423,11 +422,11 @@ def get_statistics_protocols(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_statistics_protocols(callback=callback_function) + >>> thread = api.get_statistics_operations(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: StatisticsProtocols + :return: StatisticsOperations If the method is called asynchronously, returns the request thread. """ @@ -440,23 +439,22 @@ def get_statistics_protocols(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_statistics_protocols" % key + " to method get_statistics_operations" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/statistics/protocols'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/statistics/operations'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -473,22 +471,22 @@ def get_statistics_protocols(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StatisticsProtocols', + files=local_var_files, + response_type='StatisticsOperations', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_statistics_operations(self, **kwargs): + def get_statistics_protocols(self, **kwargs): """ - Retrieve operations list. + Retrieve protocol list. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -496,11 +494,11 @@ def get_statistics_operations(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_statistics_operations(callback=callback_function) + >>> thread = api.get_statistics_protocols(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: StatisticsOperations + :return: StatisticsProtocols If the method is called asynchronously, returns the request thread. """ @@ -513,23 +511,22 @@ def get_statistics_operations(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_statistics_operations" % key + " to method get_statistics_protocols" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/statistics/operations'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/statistics/protocols'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -546,14 +543,14 @@ def get_statistics_operations(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StatisticsOperations', + files=local_var_files, + response_type='StatisticsProtocols', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -606,9 +603,8 @@ def get_summary_client(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/statistics/summary/client'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/statistics/summary/client'.replace('{format}', 'json') path_params = {} query_params = {} @@ -643,8 +639,8 @@ def get_summary_client(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -661,13 +657,13 @@ def get_summary_client(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='SummaryClient', auth_settings=auth_settings, callback=params.get('callback')) @@ -712,9 +708,8 @@ def get_summary_drive(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/statistics/summary/drive'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/statistics/summary/drive'.replace('{format}', 'json') path_params = {} query_params = {} @@ -731,8 +726,8 @@ def get_summary_drive(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -749,13 +744,13 @@ def get_summary_drive(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='SummaryDrive', auth_settings=auth_settings, callback=params.get('callback')) @@ -806,9 +801,8 @@ def get_summary_heat(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/statistics/summary/heat'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/statistics/summary/heat'.replace('{format}', 'json') path_params = {} query_params = {} @@ -837,8 +831,8 @@ def get_summary_heat(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -855,13 +849,13 @@ def get_summary_heat(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='SummaryHeat', auth_settings=auth_settings, callback=params.get('callback')) @@ -910,9 +904,8 @@ def get_summary_protocol(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/statistics/summary/protocol'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/statistics/summary/protocol'.replace('{format}', 'json') path_params = {} query_params = {} @@ -937,8 +930,8 @@ def get_summary_protocol(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -955,13 +948,13 @@ def get_summary_protocol(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='SummaryProtocol', auth_settings=auth_settings, callback=params.get('callback')) @@ -1006,9 +999,8 @@ def get_summary_system(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/statistics/summary/system'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/statistics/summary/system'.replace('{format}', 'json') path_params = {} query_params = {} @@ -1025,8 +1017,8 @@ def get_summary_system(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1043,13 +1035,13 @@ def get_summary_system(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='SummarySystem', auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/storagepool_api.py b/isi_sdk/apis/storagepool_api.py index f79b8d25d..caca76cd8 100644 --- a/isi_sdk/apis/storagepool_api.py +++ b/isi_sdk/apis/storagepool_api.py @@ -2,7 +2,7 @@ """ StoragepoolApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_compatibilities_class_active(self, **kwargs): + def create_compatibilities_class_active_item(self, compatibilities_class_active_item, **kwargs): """ - Get a list of active compatibilities + Create a new compatibility This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def list_compatibilities_class_active(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_compatibilities_class_active(callback=callback_function) + >>> thread = api.create_compatibilities_class_active_item(compatibilities_class_active_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: CompatibilitiesClassActiveExtended + :param CompatibilitiesClassActiveItem compatibilities_class_active_item: (required) + :return: CreateCompatibilitiesClassActiveItemResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['compatibilities_class_active_item'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def list_compatibilities_class_active(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_compatibilities_class_active" % key + " to method create_compatibilities_class_active_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'compatibilities_class_active_item' is set + if ('compatibilities_class_active_item' not in params) or (params['compatibilities_class_active_item'] is None): + raise ValueError("Missing the required parameter `compatibilities_class_active_item` when calling `create_compatibilities_class_active_item`") + resource_path = '/platform/1/storagepool/compatibilities/class/active'.replace('{format}', 'json') - method = 'GET' - path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'compatibilities_class_active_item' in params: + body_params = params['compatibilities_class_active_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def list_compatibilities_class_active(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CompatibilitiesClassActiveExtended', + files=local_var_files, + response_type='CreateCompatibilitiesClassActiveItemResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_compatibilities_class_active_item(self, compatibilities_class_active_item, **kwargs): + def create_compatibilities_ssd_active_item(self, compatibilities_ssd_active_item, **kwargs): """ - Create a new compatibility + Create a new ssd compatibility This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,17 @@ def create_compatibilities_class_active_item(self, compatibilities_class_active_ >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_compatibilities_class_active_item(compatibilities_class_active_item, callback=callback_function) + >>> thread = api.create_compatibilities_ssd_active_item(compatibilities_ssd_active_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CompatibilitiesClassActiveItem compatibilities_class_active_item: (required) + :param CompatibilitiesSsdActiveItem compatibilities_ssd_active_item: (required) :return: CreateCompatibilitiesClassActiveItemResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['compatibilities_class_active_item'] + all_params = ['compatibilities_ssd_active_item'] all_params.append('callback') params = locals() @@ -147,30 +153,29 @@ def create_compatibilities_class_active_item(self, compatibilities_class_active_ if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_compatibilities_class_active_item" % key + " to method create_compatibilities_ssd_active_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'compatibilities_class_active_item' is set - if ('compatibilities_class_active_item' not in params) or (params['compatibilities_class_active_item'] is None): - raise ValueError("Missing the required parameter `compatibilities_class_active_item` when calling `create_compatibilities_class_active_item`") + # verify the required parameter 'compatibilities_ssd_active_item' is set + if ('compatibilities_ssd_active_item' not in params) or (params['compatibilities_ssd_active_item'] is None): + raise ValueError("Missing the required parameter `compatibilities_ssd_active_item` when calling `create_compatibilities_ssd_active_item`") - resource_path = '/platform/1/storagepool/compatibilities/class/active'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/storagepool/compatibilities/ssd/active'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'compatibilities_class_active_item' in params: - body_params = params['compatibilities_class_active_item'] + if 'compatibilities_ssd_active_item' in params: + body_params = params['compatibilities_ssd_active_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,22 +190,22 @@ def create_compatibilities_class_active_item(self, compatibilities_class_active_ # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateCompatibilitiesClassActiveItemResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_compatibilities_class_active_id(self, compatibilities_class_active_id, **kwargs): + def create_storagepool_nodepool(self, storagepool_nodepool, **kwargs): """ - Get an active compatibilities by id + Create a new node pool. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -208,17 +213,17 @@ def get_compatibilities_class_active_id(self, compatibilities_class_active_id, * >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_compatibilities_class_active_id(compatibilities_class_active_id, callback=callback_function) + >>> thread = api.create_storagepool_nodepool(storagepool_nodepool, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str compatibilities_class_active_id: Get an active compatibilities by id (required) - :return: CompatibilitiesClassActive + :param StoragepoolNodepool storagepool_nodepool: (required) + :return: CreateStoragepoolTierResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['compatibilities_class_active_id'] + all_params = ['storagepool_nodepool'] all_params.append('callback') params = locals() @@ -226,30 +231,29 @@ def get_compatibilities_class_active_id(self, compatibilities_class_active_id, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_compatibilities_class_active_id" % key + " to method create_storagepool_nodepool" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'compatibilities_class_active_id' is set - if ('compatibilities_class_active_id' not in params) or (params['compatibilities_class_active_id'] is None): - raise ValueError("Missing the required parameter `compatibilities_class_active_id` when calling `get_compatibilities_class_active_id`") + # verify the required parameter 'storagepool_nodepool' is set + if ('storagepool_nodepool' not in params) or (params['storagepool_nodepool'] is None): + raise ValueError("Missing the required parameter `storagepool_nodepool` when calling `create_storagepool_nodepool`") - resource_path = '/platform/1/storagepool/compatibilities/class/active/{CompatibilitiesClassActiveId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/storagepool/nodepools'.replace('{format}', 'json') path_params = {} - if 'compatibilities_class_active_id' in params: - path_params['CompatibilitiesClassActiveId'] = params['compatibilities_class_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'storagepool_nodepool' in params: + body_params = params['storagepool_nodepool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -264,22 +268,22 @@ def get_compatibilities_class_active_id(self, compatibilities_class_active_id, * # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CompatibilitiesClassActive', + files=local_var_files, + response_type='CreateStoragepoolTierResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_compatibilities_class_active_id(self, compatibilities_class_active_id, **kwargs): + def create_storagepool_tier(self, storagepool_tier, **kwargs): """ - Delete an active compatibility by id + Create a new tier. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -287,17 +291,17 @@ def delete_compatibilities_class_active_id(self, compatibilities_class_active_id >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_compatibilities_class_active_id(compatibilities_class_active_id, callback=callback_function) + >>> thread = api.create_storagepool_tier(storagepool_tier, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str compatibilities_class_active_id: Delete an active compatibility by id (required) - :return: None + :param StoragepoolTier storagepool_tier: (required) + :return: CreateStoragepoolTierResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['compatibilities_class_active_id'] + all_params = ['storagepool_tier'] all_params.append('callback') params = locals() @@ -305,30 +309,29 @@ def delete_compatibilities_class_active_id(self, compatibilities_class_active_id if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_compatibilities_class_active_id" % key + " to method create_storagepool_tier" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'compatibilities_class_active_id' is set - if ('compatibilities_class_active_id' not in params) or (params['compatibilities_class_active_id'] is None): - raise ValueError("Missing the required parameter `compatibilities_class_active_id` when calling `delete_compatibilities_class_active_id`") + # verify the required parameter 'storagepool_tier' is set + if ('storagepool_tier' not in params) or (params['storagepool_tier'] is None): + raise ValueError("Missing the required parameter `storagepool_tier` when calling `create_storagepool_tier`") - resource_path = '/platform/1/storagepool/compatibilities/class/active/{CompatibilitiesClassActiveId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/storagepool/tiers'.replace('{format}', 'json') path_params = {} - if 'compatibilities_class_active_id' in params: - path_params['CompatibilitiesClassActiveId'] = params['compatibilities_class_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'storagepool_tier' in params: + body_params = params['storagepool_tier'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -343,22 +346,22 @@ def delete_compatibilities_class_active_id(self, compatibilities_class_active_id # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CreateStoragepoolTierResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_compatibilities_class_available(self, **kwargs): + def delete_compatibilities_class_active_by_id(self, compatibilities_class_active_id, **kwargs): """ - Get a list of available compatibilities + Delete an active compatibility by id This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -366,16 +369,17 @@ def get_compatibilities_class_available(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_compatibilities_class_available(callback=callback_function) + >>> thread = api.delete_compatibilities_class_active_by_id(compatibilities_class_active_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: CompatibilitiesClassAvailable + :param str compatibilities_class_active_id: Delete an active compatibility by id (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['compatibilities_class_active_id'] all_params.append('callback') params = locals() @@ -383,23 +387,27 @@ def get_compatibilities_class_available(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_compatibilities_class_available" % key + " to method delete_compatibilities_class_active_by_id" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'compatibilities_class_active_id' is set + if ('compatibilities_class_active_id' not in params) or (params['compatibilities_class_active_id'] is None): + raise ValueError("Missing the required parameter `compatibilities_class_active_id` when calling `delete_compatibilities_class_active_by_id`") - resource_path = '/platform/1/storagepool/compatibilities/class/available'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/storagepool/compatibilities/class/active/{CompatibilitiesClassActiveId}'.replace('{format}', 'json') path_params = {} + if 'compatibilities_class_active_id' in params: + path_params['CompatibilitiesClassActiveId'] = params['compatibilities_class_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -416,22 +424,22 @@ def get_compatibilities_class_available(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CompatibilitiesClassAvailable', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_compatibilities_ssd_available(self, **kwargs): + def delete_compatibilities_ssd_active_by_id(self, compatibilities_ssd_active_id, **kwargs): """ - Get a list of available ssd compatibilities + Delete an active ssd compatibility by id This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -439,16 +447,17 @@ def get_compatibilities_ssd_available(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_compatibilities_ssd_available(callback=callback_function) + >>> thread = api.delete_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: CompatibilitiesSsdAvailable + :param str compatibilities_ssd_active_id: Delete an active ssd compatibility by id (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['compatibilities_ssd_active_id'] all_params.append('callback') params = locals() @@ -456,23 +465,27 @@ def get_compatibilities_ssd_available(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_compatibilities_ssd_available" % key + " to method delete_compatibilities_ssd_active_by_id" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'compatibilities_ssd_active_id' is set + if ('compatibilities_ssd_active_id' not in params) or (params['compatibilities_ssd_active_id'] is None): + raise ValueError("Missing the required parameter `compatibilities_ssd_active_id` when calling `delete_compatibilities_ssd_active_by_id`") - resource_path = '/platform/1/storagepool/compatibilities/ssd/available'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId}'.replace('{format}', 'json') path_params = {} + if 'compatibilities_ssd_active_id' in params: + path_params['CompatibilitiesSsdActiveId'] = params['compatibilities_ssd_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -489,22 +502,22 @@ def get_compatibilities_ssd_available(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CompatibilitiesSsdAvailable', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_storagepool_settings(self, **kwargs): + def delete_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): """ - List all settings. + Delete node pool. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -512,16 +525,17 @@ def get_storagepool_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_storagepool_settings(callback=callback_function) + >>> thread = api.delete_storagepool_nodepool(storagepool_nodepool_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: StoragepoolSettings + :param str storagepool_nodepool_id: Delete node pool. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['storagepool_nodepool_id'] all_params.append('callback') params = locals() @@ -529,23 +543,27 @@ def get_storagepool_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_storagepool_settings" % key + " to method delete_storagepool_nodepool" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'storagepool_nodepool_id' is set + if ('storagepool_nodepool_id' not in params) or (params['storagepool_nodepool_id'] is None): + raise ValueError("Missing the required parameter `storagepool_nodepool_id` when calling `delete_storagepool_nodepool`") - resource_path = '/platform/1/storagepool/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/storagepool/nodepools/{StoragepoolNodepoolId}'.replace('{format}', 'json') path_params = {} + if 'storagepool_nodepool_id' in params: + path_params['StoragepoolNodepoolId'] = params['storagepool_nodepool_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -562,22 +580,22 @@ def get_storagepool_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StoragepoolSettings', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def update_storagepool_settings(self, storagepool_settings, **kwargs): + def delete_storagepool_tier(self, storagepool_tier_id, **kwargs): """ - Modify one or more settings. + Delete tier. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -585,17 +603,17 @@ def update_storagepool_settings(self, storagepool_settings, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_storagepool_settings(storagepool_settings, callback=callback_function) + >>> thread = api.delete_storagepool_tier(storagepool_tier_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param StoragepoolSettingsExtended storagepool_settings: (required) + :param str storagepool_tier_id: Delete tier. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_settings'] + all_params = ['storagepool_tier_id'] all_params.append('callback') params = locals() @@ -603,30 +621,29 @@ def update_storagepool_settings(self, storagepool_settings, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_storagepool_settings" % key + " to method delete_storagepool_tier" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_settings' is set - if ('storagepool_settings' not in params) or (params['storagepool_settings'] is None): - raise ValueError("Missing the required parameter `storagepool_settings` when calling `update_storagepool_settings`") + # verify the required parameter 'storagepool_tier_id' is set + if ('storagepool_tier_id' not in params) or (params['storagepool_tier_id'] is None): + raise ValueError("Missing the required parameter `storagepool_tier_id` when calling `delete_storagepool_tier`") - resource_path = '/platform/1/storagepool/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/storagepool/tiers/{StoragepoolTierId}'.replace('{format}', 'json') path_params = {} + if 'storagepool_tier_id' in params: + path_params['StoragepoolTierId'] = params['storagepool_tier_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'storagepool_settings' in params: - body_params = params['storagepool_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -641,22 +658,22 @@ def update_storagepool_settings(self, storagepool_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_storagepool_status(self, **kwargs): + def delete_storagepool_tiers(self, **kwargs): """ - List any health conditions detected. + Delete all tiers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -664,11 +681,11 @@ def get_storagepool_status(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_storagepool_status(callback=callback_function) + >>> thread = api.delete_storagepool_tiers(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: StoragepoolStatus + :return: None If the method is called asynchronously, returns the request thread. """ @@ -681,23 +698,22 @@ def get_storagepool_status(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_storagepool_status" % key + " to method delete_storagepool_tiers" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/storagepool/status'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/storagepool/tiers'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -714,22 +730,22 @@ def get_storagepool_status(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StoragepoolStatus', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_storagepool_suggested_protection_nid(self, storagepool_suggested_protection_nid, **kwargs): + def get_compatibilities_class_active_by_id(self, compatibilities_class_active_id, **kwargs): """ - Retrieve the suggested protection policy. + Get an active compatibilities by id This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -737,17 +753,17 @@ def get_storagepool_suggested_protection_nid(self, storagepool_suggested_protect >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_storagepool_suggested_protection_nid(storagepool_suggested_protection_nid, callback=callback_function) + >>> thread = api.get_compatibilities_class_active_by_id(compatibilities_class_active_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str storagepool_suggested_protection_nid: Retrieve the suggested protection policy. (required) - :return: StoragepoolSuggestedProtection + :param str compatibilities_class_active_id: Get an active compatibilities by id (required) + :return: CompatibilitiesClassActive If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_suggested_protection_nid'] + all_params = ['compatibilities_class_active_id'] all_params.append('callback') params = locals() @@ -755,28 +771,27 @@ def get_storagepool_suggested_protection_nid(self, storagepool_suggested_protect if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_storagepool_suggested_protection_nid" % key + " to method get_compatibilities_class_active_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_suggested_protection_nid' is set - if ('storagepool_suggested_protection_nid' not in params) or (params['storagepool_suggested_protection_nid'] is None): - raise ValueError("Missing the required parameter `storagepool_suggested_protection_nid` when calling `get_storagepool_suggested_protection_nid`") + # verify the required parameter 'compatibilities_class_active_id' is set + if ('compatibilities_class_active_id' not in params) or (params['compatibilities_class_active_id'] is None): + raise ValueError("Missing the required parameter `compatibilities_class_active_id` when calling `get_compatibilities_class_active_by_id`") - resource_path = '/platform/1/storagepool/suggested_protection/{StoragepoolSuggestedProtectionNid}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/storagepool/compatibilities/class/active/{CompatibilitiesClassActiveId}'.replace('{format}', 'json') path_params = {} - if 'storagepool_suggested_protection_nid' in params: - path_params['StoragepoolSuggestedProtectionNid'] = params['storagepool_suggested_protection_nid'] + if 'compatibilities_class_active_id' in params: + path_params['CompatibilitiesClassActiveId'] = params['compatibilities_class_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -793,22 +808,22 @@ def get_storagepool_suggested_protection_nid(self, storagepool_suggested_protect # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StoragepoolSuggestedProtection', + files=local_var_files, + response_type='CompatibilitiesClassActive', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_storagepool_tiers(self, **kwargs): + def get_compatibilities_class_available(self, **kwargs): """ - List all tiers. + Get a list of available compatibilities This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -816,11 +831,11 @@ def list_storagepool_tiers(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_storagepool_tiers(callback=callback_function) + >>> thread = api.get_compatibilities_class_available(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: StoragepoolTiersExtended + :return: CompatibilitiesClassAvailable If the method is called asynchronously, returns the request thread. """ @@ -833,23 +848,22 @@ def list_storagepool_tiers(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_storagepool_tiers" % key + " to method get_compatibilities_class_available" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/storagepool/tiers'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/storagepool/compatibilities/class/available'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -866,22 +880,22 @@ def list_storagepool_tiers(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StoragepoolTiersExtended', + files=local_var_files, + response_type='CompatibilitiesClassAvailable', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_storagepool_tier(self, storagepool_tier, **kwargs): + def get_compatibilities_ssd_active_by_id(self, compatibilities_ssd_active_id, **kwargs): """ - Create a new tier. + Get a active ssd compatibilities by id This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -889,17 +903,17 @@ def create_storagepool_tier(self, storagepool_tier, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_storagepool_tier(storagepool_tier, callback=callback_function) + >>> thread = api.get_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param StoragepoolTier storagepool_tier: (required) - :return: CreateStoragepoolTierResponse + :param str compatibilities_ssd_active_id: Get a active ssd compatibilities by id (required) + :return: CompatibilitiesSsdActive If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_tier'] + all_params = ['compatibilities_ssd_active_id'] all_params.append('callback') params = locals() @@ -907,30 +921,29 @@ def create_storagepool_tier(self, storagepool_tier, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_storagepool_tier" % key + " to method get_compatibilities_ssd_active_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_tier' is set - if ('storagepool_tier' not in params) or (params['storagepool_tier'] is None): - raise ValueError("Missing the required parameter `storagepool_tier` when calling `create_storagepool_tier`") + # verify the required parameter 'compatibilities_ssd_active_id' is set + if ('compatibilities_ssd_active_id' not in params) or (params['compatibilities_ssd_active_id'] is None): + raise ValueError("Missing the required parameter `compatibilities_ssd_active_id` when calling `get_compatibilities_ssd_active_by_id`") - resource_path = '/platform/1/storagepool/tiers'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId}'.replace('{format}', 'json') path_params = {} + if 'compatibilities_ssd_active_id' in params: + path_params['CompatibilitiesSsdActiveId'] = params['compatibilities_ssd_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'storagepool_tier' in params: - body_params = params['storagepool_tier'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -945,22 +958,22 @@ def create_storagepool_tier(self, storagepool_tier, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateStoragepoolTierResponse', + files=local_var_files, + response_type='CompatibilitiesSsdActive', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_storagepool_tiers(self, **kwargs): + def get_compatibilities_ssd_available(self, **kwargs): """ - Delete all tiers. + Get a list of available ssd compatibilities This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -968,11 +981,11 @@ def delete_storagepool_tiers(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_storagepool_tiers(callback=callback_function) + >>> thread = api.get_compatibilities_ssd_available(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :return: CompatibilitiesSsdAvailable If the method is called asynchronously, returns the request thread. """ @@ -985,23 +998,22 @@ def delete_storagepool_tiers(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_storagepool_tiers" % key + " to method get_compatibilities_ssd_available" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/storagepool/tiers'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/storagepool/compatibilities/ssd/available'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1018,22 +1030,22 @@ def delete_storagepool_tiers(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CompatibilitiesSsdAvailable', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_storagepool_tier(self, storagepool_tier_id, **kwargs): + def get_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): """ - Retrieve tier information. + Retrieve node pool information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1041,17 +1053,17 @@ def get_storagepool_tier(self, storagepool_tier_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_storagepool_tier(storagepool_tier_id, callback=callback_function) + >>> thread = api.get_storagepool_nodepool(storagepool_nodepool_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str storagepool_tier_id: Retrieve tier information. (required) - :return: StoragepoolTiers + :param str storagepool_nodepool_id: Retrieve node pool information. (required) + :return: StoragepoolNodepools If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_tier_id'] + all_params = ['storagepool_nodepool_id'] all_params.append('callback') params = locals() @@ -1059,28 +1071,27 @@ def get_storagepool_tier(self, storagepool_tier_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_storagepool_tier" % key + " to method get_storagepool_nodepool" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_tier_id' is set - if ('storagepool_tier_id' not in params) or (params['storagepool_tier_id'] is None): - raise ValueError("Missing the required parameter `storagepool_tier_id` when calling `get_storagepool_tier`") + # verify the required parameter 'storagepool_nodepool_id' is set + if ('storagepool_nodepool_id' not in params) or (params['storagepool_nodepool_id'] is None): + raise ValueError("Missing the required parameter `storagepool_nodepool_id` when calling `get_storagepool_nodepool`") - resource_path = '/platform/1/storagepool/tiers/{StoragepoolTierId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/storagepool/nodepools/{StoragepoolNodepoolId}'.replace('{format}', 'json') path_params = {} - if 'storagepool_tier_id' in params: - path_params['StoragepoolTierId'] = params['storagepool_tier_id'] + if 'storagepool_nodepool_id' in params: + path_params['StoragepoolNodepoolId'] = params['storagepool_nodepool_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1097,22 +1108,22 @@ def get_storagepool_tier(self, storagepool_tier_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StoragepoolTiers', + files=local_var_files, + response_type='StoragepoolNodepools', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_storagepool_tier(self, storagepool_tier, storagepool_tier_id, **kwargs): + def get_storagepool_settings(self, **kwargs): """ - Modify tier. All input fields are optional, but one or more must be supplied. + List all settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1120,18 +1131,16 @@ def update_storagepool_tier(self, storagepool_tier, storagepool_tier_id, **kwarg >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_storagepool_tier(storagepool_tier, storagepool_tier_id, callback=callback_function) + >>> thread = api.get_storagepool_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param StoragepoolTier storagepool_tier: (required) - :param str storagepool_tier_id: Modify tier. All input fields are optional, but one or more must be supplied. (required) - :return: None + :return: StoragepoolSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_tier', 'storagepool_tier_id'] + all_params = [] all_params.append('callback') params = locals() @@ -1139,35 +1148,24 @@ def update_storagepool_tier(self, storagepool_tier, storagepool_tier_id, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_storagepool_tier" % key + " to method get_storagepool_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_tier' is set - if ('storagepool_tier' not in params) or (params['storagepool_tier'] is None): - raise ValueError("Missing the required parameter `storagepool_tier` when calling `update_storagepool_tier`") - # verify the required parameter 'storagepool_tier_id' is set - if ('storagepool_tier_id' not in params) or (params['storagepool_tier_id'] is None): - raise ValueError("Missing the required parameter `storagepool_tier_id` when calling `update_storagepool_tier`") - resource_path = '/platform/1/storagepool/tiers/{StoragepoolTierId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/storagepool/settings'.replace('{format}', 'json') path_params = {} - if 'storagepool_tier_id' in params: - path_params['StoragepoolTierId'] = params['storagepool_tier_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'storagepool_tier' in params: - body_params = params['storagepool_tier'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1182,22 +1180,22 @@ def update_storagepool_tier(self, storagepool_tier, storagepool_tier_id, **kwarg # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='StoragepoolSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_storagepool_tier(self, storagepool_tier_id, **kwargs): + def get_storagepool_status(self, **kwargs): """ - Delete tier. + List any health conditions detected. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1205,17 +1203,16 @@ def delete_storagepool_tier(self, storagepool_tier_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_storagepool_tier(storagepool_tier_id, callback=callback_function) + >>> thread = api.get_storagepool_status(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str storagepool_tier_id: Delete tier. (required) - :return: None + :return: StoragepoolStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_tier_id'] + all_params = [] all_params.append('callback') params = locals() @@ -1223,28 +1220,22 @@ def delete_storagepool_tier(self, storagepool_tier_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_storagepool_tier" % key + " to method get_storagepool_status" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_tier_id' is set - if ('storagepool_tier_id' not in params) or (params['storagepool_tier_id'] is None): - raise ValueError("Missing the required parameter `storagepool_tier_id` when calling `delete_storagepool_tier`") - resource_path = '/platform/1/storagepool/tiers/{StoragepoolTierId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/storagepool/status'.replace('{format}', 'json') path_params = {} - if 'storagepool_tier_id' in params: - path_params['StoragepoolTierId'] = params['storagepool_tier_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1261,22 +1252,22 @@ def delete_storagepool_tier(self, storagepool_tier_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='StoragepoolStatus', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_storagepool_unprovisioned(self, **kwargs): + def get_storagepool_storagepools(self, **kwargs): """ - Get the unprovisioned nodes and drives + List all storage pools. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1284,11 +1275,11 @@ def get_storagepool_unprovisioned(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_storagepool_unprovisioned(callback=callback_function) + >>> thread = api.get_storagepool_storagepools(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: StoragepoolUnprovisioned + :return: StoragepoolStoragepools If the method is called asynchronously, returns the request thread. """ @@ -1301,23 +1292,22 @@ def get_storagepool_unprovisioned(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_storagepool_unprovisioned" % key + " to method get_storagepool_storagepools" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/storagepool/unprovisioned'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/storagepool/storagepools'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1334,22 +1324,22 @@ def get_storagepool_unprovisioned(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StoragepoolUnprovisioned', + files=local_var_files, + response_type='StoragepoolStoragepools', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_compatibilities_ssd_active(self, **kwargs): + def get_storagepool_suggested_protection_nid(self, storagepool_suggested_protection_nid, **kwargs): """ - Get a list of active ssd compatibilities + Retrieve the suggested protection policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1357,16 +1347,17 @@ def list_compatibilities_ssd_active(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_compatibilities_ssd_active(callback=callback_function) + >>> thread = api.get_storagepool_suggested_protection_nid(storagepool_suggested_protection_nid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: CompatibilitiesSsdActiveExtended + :param str storagepool_suggested_protection_nid: Retrieve the suggested protection policy. (required) + :return: StoragepoolSuggestedProtection If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['storagepool_suggested_protection_nid'] all_params.append('callback') params = locals() @@ -1374,23 +1365,27 @@ def list_compatibilities_ssd_active(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_compatibilities_ssd_active" % key + " to method get_storagepool_suggested_protection_nid" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'storagepool_suggested_protection_nid' is set + if ('storagepool_suggested_protection_nid' not in params) or (params['storagepool_suggested_protection_nid'] is None): + raise ValueError("Missing the required parameter `storagepool_suggested_protection_nid` when calling `get_storagepool_suggested_protection_nid`") - resource_path = '/platform/3/storagepool/compatibilities/ssd/active'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/storagepool/suggested-protection/{StoragepoolSuggestedProtectionNid}'.replace('{format}', 'json') path_params = {} + if 'storagepool_suggested_protection_nid' in params: + path_params['StoragepoolSuggestedProtectionNid'] = params['storagepool_suggested_protection_nid'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1407,22 +1402,22 @@ def list_compatibilities_ssd_active(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CompatibilitiesSsdActiveExtended', + files=local_var_files, + response_type='StoragepoolSuggestedProtection', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_compatibilities_ssd_active_item(self, compatibilities_ssd_active_item, **kwargs): + def get_storagepool_tier(self, storagepool_tier_id, **kwargs): """ - Create a new ssd compatibility + Retrieve tier information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1430,17 +1425,17 @@ def create_compatibilities_ssd_active_item(self, compatibilities_ssd_active_item >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_compatibilities_ssd_active_item(compatibilities_ssd_active_item, callback=callback_function) + >>> thread = api.get_storagepool_tier(storagepool_tier_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CompatibilitiesSsdActiveItem compatibilities_ssd_active_item: (required) - :return: CreateCompatibilitiesClassActiveItemResponse + :param str storagepool_tier_id: Retrieve tier information. (required) + :return: StoragepoolTiers If the method is called asynchronously, returns the request thread. """ - all_params = ['compatibilities_ssd_active_item'] + all_params = ['storagepool_tier_id'] all_params.append('callback') params = locals() @@ -1448,30 +1443,29 @@ def create_compatibilities_ssd_active_item(self, compatibilities_ssd_active_item if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_compatibilities_ssd_active_item" % key + " to method get_storagepool_tier" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'compatibilities_ssd_active_item' is set - if ('compatibilities_ssd_active_item' not in params) or (params['compatibilities_ssd_active_item'] is None): - raise ValueError("Missing the required parameter `compatibilities_ssd_active_item` when calling `create_compatibilities_ssd_active_item`") + # verify the required parameter 'storagepool_tier_id' is set + if ('storagepool_tier_id' not in params) or (params['storagepool_tier_id'] is None): + raise ValueError("Missing the required parameter `storagepool_tier_id` when calling `get_storagepool_tier`") - resource_path = '/platform/3/storagepool/compatibilities/ssd/active'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/storagepool/tiers/{StoragepoolTierId}'.replace('{format}', 'json') path_params = {} + if 'storagepool_tier_id' in params: + path_params['StoragepoolTierId'] = params['storagepool_tier_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'compatibilities_ssd_active_item' in params: - body_params = params['compatibilities_ssd_active_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1486,22 +1480,22 @@ def create_compatibilities_ssd_active_item(self, compatibilities_ssd_active_item # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateCompatibilitiesClassActiveItemResponse', + files=local_var_files, + response_type='StoragepoolTiers', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id, **kwargs): + def get_storagepool_unprovisioned(self, **kwargs): """ - Get a active ssd compatibilities by id + Get the unprovisioned nodes and drives This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1509,17 +1503,16 @@ def get_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id, **kwa >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_compatibilities_ssd_active_id(compatibilities_ssd_active_id, callback=callback_function) + >>> thread = api.get_storagepool_unprovisioned(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str compatibilities_ssd_active_id: Get a active ssd compatibilities by id (required) - :return: CompatibilitiesSsdActive + :return: StoragepoolUnprovisioned If the method is called asynchronously, returns the request thread. """ - all_params = ['compatibilities_ssd_active_id'] + all_params = [] all_params.append('callback') params = locals() @@ -1527,28 +1520,22 @@ def get_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_compatibilities_ssd_active_id" % key + " to method get_storagepool_unprovisioned" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'compatibilities_ssd_active_id' is set - if ('compatibilities_ssd_active_id' not in params) or (params['compatibilities_ssd_active_id'] is None): - raise ValueError("Missing the required parameter `compatibilities_ssd_active_id` when calling `get_compatibilities_ssd_active_id`") - resource_path = '/platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/storagepool/unprovisioned'.replace('{format}', 'json') path_params = {} - if 'compatibilities_ssd_active_id' in params: - path_params['CompatibilitiesSsdActiveId'] = params['compatibilities_ssd_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1565,22 +1552,22 @@ def get_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id, **kwa # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CompatibilitiesSsdActive', + files=local_var_files, + response_type='StoragepoolUnprovisioned', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id_params, compatibilities_ssd_active_id, **kwargs): + def list_compatibilities_class_active(self, **kwargs): """ - Modify an ssd compatibility by id + Get a list of active compatibilities This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1588,18 +1575,16 @@ def update_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id_par >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_compatibilities_ssd_active_id(compatibilities_ssd_active_id_params, compatibilities_ssd_active_id, callback=callback_function) + >>> thread = api.list_compatibilities_class_active(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CompatibilitiesSsdActiveIdParams compatibilities_ssd_active_id_params: (required) - :param str compatibilities_ssd_active_id: Modify an ssd compatibility by id (required) - :return: None + :return: CompatibilitiesClassActiveExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['compatibilities_ssd_active_id_params', 'compatibilities_ssd_active_id'] + all_params = [] all_params.append('callback') params = locals() @@ -1607,35 +1592,24 @@ def update_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id_par if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_compatibilities_ssd_active_id" % key + " to method list_compatibilities_class_active" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'compatibilities_ssd_active_id_params' is set - if ('compatibilities_ssd_active_id_params' not in params) or (params['compatibilities_ssd_active_id_params'] is None): - raise ValueError("Missing the required parameter `compatibilities_ssd_active_id_params` when calling `update_compatibilities_ssd_active_id`") - # verify the required parameter 'compatibilities_ssd_active_id' is set - if ('compatibilities_ssd_active_id' not in params) or (params['compatibilities_ssd_active_id'] is None): - raise ValueError("Missing the required parameter `compatibilities_ssd_active_id` when calling `update_compatibilities_ssd_active_id`") - resource_path = '/platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/storagepool/compatibilities/class/active'.replace('{format}', 'json') path_params = {} - if 'compatibilities_ssd_active_id' in params: - path_params['CompatibilitiesSsdActiveId'] = params['compatibilities_ssd_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'compatibilities_ssd_active_id_params' in params: - body_params = params['compatibilities_ssd_active_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1650,22 +1624,22 @@ def update_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id_par # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CompatibilitiesClassActiveExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id, **kwargs): + def list_compatibilities_ssd_active(self, **kwargs): """ - Delete an active ssd compatibility by id + Get a list of active ssd compatibilities This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1673,17 +1647,16 @@ def delete_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id, ** >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_compatibilities_ssd_active_id(compatibilities_ssd_active_id, callback=callback_function) + >>> thread = api.list_compatibilities_ssd_active(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str compatibilities_ssd_active_id: Delete an active ssd compatibility by id (required) - :return: None + :return: CompatibilitiesSsdActiveExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['compatibilities_ssd_active_id'] + all_params = [] all_params.append('callback') params = locals() @@ -1691,28 +1664,22 @@ def delete_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_compatibilities_ssd_active_id" % key + " to method list_compatibilities_ssd_active" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'compatibilities_ssd_active_id' is set - if ('compatibilities_ssd_active_id' not in params) or (params['compatibilities_ssd_active_id'] is None): - raise ValueError("Missing the required parameter `compatibilities_ssd_active_id` when calling `delete_compatibilities_ssd_active_id`") - resource_path = '/platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/storagepool/compatibilities/ssd/active'.replace('{format}', 'json') path_params = {} - if 'compatibilities_ssd_active_id' in params: - path_params['CompatibilitiesSsdActiveId'] = params['compatibilities_ssd_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1729,14 +1696,14 @@ def delete_compatibilities_ssd_active_id(self, compatibilities_ssd_active_id, ** # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='CompatibilitiesSsdActiveExtended', auth_settings=auth_settings, callback=params.get('callback')) return response @@ -1775,17 +1742,16 @@ def list_storagepool_nodepools(self, **kwargs): del params['kwargs'] - resource_path = '/platform/3/storagepool/nodepools'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/storagepool/nodepools'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1802,22 +1768,22 @@ def list_storagepool_nodepools(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='StoragepoolNodepoolsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_storagepool_nodepool(self, storagepool_nodepool, **kwargs): + def list_storagepool_tiers(self, **kwargs): """ - Create a new node pool. + List all tiers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1825,17 +1791,16 @@ def create_storagepool_nodepool(self, storagepool_nodepool, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_storagepool_nodepool(storagepool_nodepool, callback=callback_function) + >>> thread = api.list_storagepool_tiers(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param StoragepoolNodepool storagepool_nodepool: (required) - :return: CreateStoragepoolTierResponse + :return: StoragepoolTiersExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_nodepool'] + all_params = [] all_params.append('callback') params = locals() @@ -1843,30 +1808,24 @@ def create_storagepool_nodepool(self, storagepool_nodepool, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_storagepool_nodepool" % key + " to method list_storagepool_tiers" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_nodepool' is set - if ('storagepool_nodepool' not in params) or (params['storagepool_nodepool'] is None): - raise ValueError("Missing the required parameter `storagepool_nodepool` when calling `create_storagepool_nodepool`") - resource_path = '/platform/3/storagepool/nodepools'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/storagepool/tiers'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'storagepool_nodepool' in params: - body_params = params['storagepool_nodepool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1881,22 +1840,22 @@ def create_storagepool_nodepool(self, storagepool_nodepool, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateStoragepoolTierResponse', + files=local_var_files, + response_type='StoragepoolTiersExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): + def update_compatibilities_ssd_active_by_id(self, compatibilities_ssd_active_id_params, compatibilities_ssd_active_id, **kwargs): """ - Retrieve node pool information. + Modify an ssd compatibility by id This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1904,17 +1863,18 @@ def get_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_storagepool_nodepool(storagepool_nodepool_id, callback=callback_function) + >>> thread = api.update_compatibilities_ssd_active_by_id(compatibilities_ssd_active_id_params, compatibilities_ssd_active_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str storagepool_nodepool_id: Retrieve node pool information. (required) - :return: StoragepoolNodepools + :param CompatibilitiesSsdActiveIdParams compatibilities_ssd_active_id_params: (required) + :param str compatibilities_ssd_active_id: Modify an ssd compatibility by id (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_nodepool_id'] + all_params = ['compatibilities_ssd_active_id_params', 'compatibilities_ssd_active_id'] all_params.append('callback') params = locals() @@ -1922,30 +1882,34 @@ def get_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_storagepool_nodepool" % key + " to method update_compatibilities_ssd_active_by_id" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_nodepool_id' is set - if ('storagepool_nodepool_id' not in params) or (params['storagepool_nodepool_id'] is None): - raise ValueError("Missing the required parameter `storagepool_nodepool_id` when calling `get_storagepool_nodepool`") + # verify the required parameter 'compatibilities_ssd_active_id_params' is set + if ('compatibilities_ssd_active_id_params' not in params) or (params['compatibilities_ssd_active_id_params'] is None): + raise ValueError("Missing the required parameter `compatibilities_ssd_active_id_params` when calling `update_compatibilities_ssd_active_by_id`") + # verify the required parameter 'compatibilities_ssd_active_id' is set + if ('compatibilities_ssd_active_id' not in params) or (params['compatibilities_ssd_active_id'] is None): + raise ValueError("Missing the required parameter `compatibilities_ssd_active_id` when calling `update_compatibilities_ssd_active_by_id`") - resource_path = '/platform/3/storagepool/nodepools/{StoragepoolNodepoolId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/storagepool/compatibilities/ssd/active/{CompatibilitiesSsdActiveId}'.replace('{format}', 'json') path_params = {} - if 'storagepool_nodepool_id' in params: - path_params['StoragepoolNodepoolId'] = params['storagepool_nodepool_id'] + if 'compatibilities_ssd_active_id' in params: + path_params['CompatibilitiesSsdActiveId'] = params['compatibilities_ssd_active_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'compatibilities_ssd_active_id_params' in params: + body_params = params['compatibilities_ssd_active_id_params'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1960,14 +1924,14 @@ def get_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StoragepoolNodepools', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -2014,9 +1978,8 @@ def update_storagepool_nodepool(self, storagepool_nodepool, storagepool_nodepool if ('storagepool_nodepool_id' not in params) or (params['storagepool_nodepool_id'] is None): raise ValueError("Missing the required parameter `storagepool_nodepool_id` when calling `update_storagepool_nodepool`") - resource_path = '/platform/3/storagepool/nodepools/{StoragepoolNodepoolId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/storagepool/nodepools/{StoragepoolNodepoolId}'.replace('{format}', 'json') path_params = {} if 'storagepool_nodepool_id' in params: path_params['StoragepoolNodepoolId'] = params['storagepool_nodepool_id'] @@ -2025,8 +1988,8 @@ def update_storagepool_nodepool(self, storagepool_nodepool, storagepool_nodepool header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'storagepool_nodepool' in params: @@ -2045,22 +2008,22 @@ def update_storagepool_nodepool(self, storagepool_nodepool, storagepool_nodepool # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): + def update_storagepool_settings(self, storagepool_settings, **kwargs): """ - Delete node pool. + Modify one or more settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2068,17 +2031,17 @@ def delete_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_storagepool_nodepool(storagepool_nodepool_id, callback=callback_function) + >>> thread = api.update_storagepool_settings(storagepool_settings, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str storagepool_nodepool_id: Delete node pool. (required) + :param StoragepoolSettingsExtended storagepool_settings: (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_nodepool_id'] + all_params = ['storagepool_settings'] all_params.append('callback') params = locals() @@ -2086,30 +2049,29 @@ def delete_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_storagepool_nodepool" % key + " to method update_storagepool_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_nodepool_id' is set - if ('storagepool_nodepool_id' not in params) or (params['storagepool_nodepool_id'] is None): - raise ValueError("Missing the required parameter `storagepool_nodepool_id` when calling `delete_storagepool_nodepool`") + # verify the required parameter 'storagepool_settings' is set + if ('storagepool_settings' not in params) or (params['storagepool_settings'] is None): + raise ValueError("Missing the required parameter `storagepool_settings` when calling `update_storagepool_settings`") - resource_path = '/platform/3/storagepool/nodepools/{StoragepoolNodepoolId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/storagepool/settings'.replace('{format}', 'json') path_params = {} - if 'storagepool_nodepool_id' in params: - path_params['StoragepoolNodepoolId'] = params['storagepool_nodepool_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'storagepool_settings' in params: + body_params = params['storagepool_settings'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2124,95 +2086,22 @@ def delete_storagepool_nodepool(self, storagepool_nodepool_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_storagepool_storagepools(self, **kwargs): - """ - - List all storage pools. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_storagepool_storagepools(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: StoragepoolStoragepools - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_storagepool_storagepools" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/3/storagepool/storagepools'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='StoragepoolStoragepools', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_storagepool_suggested_protection_nid_1(self, storagepool_suggested_protection_nid, **kwargs): + def update_storagepool_tier(self, storagepool_tier, storagepool_tier_id, **kwargs): """ - Retrieve the suggested protection policy. + Modify tier. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2220,17 +2109,18 @@ def get_storagepool_suggested_protection_nid_1(self, storagepool_suggested_prote >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_storagepool_suggested_protection_nid_1(storagepool_suggested_protection_nid, callback=callback_function) + >>> thread = api.update_storagepool_tier(storagepool_tier, storagepool_tier_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str storagepool_suggested_protection_nid: Retrieve the suggested protection policy. (required) - :return: StoragepoolSuggestedProtection + :param StoragepoolTier storagepool_tier: (required) + :param str storagepool_tier_id: Modify tier. All input fields are optional, but one or more must be supplied. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['storagepool_suggested_protection_nid'] + all_params = ['storagepool_tier', 'storagepool_tier_id'] all_params.append('callback') params = locals() @@ -2238,30 +2128,34 @@ def get_storagepool_suggested_protection_nid_1(self, storagepool_suggested_prote if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_storagepool_suggested_protection_nid_1" % key + " to method update_storagepool_tier" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'storagepool_suggested_protection_nid' is set - if ('storagepool_suggested_protection_nid' not in params) or (params['storagepool_suggested_protection_nid'] is None): - raise ValueError("Missing the required parameter `storagepool_suggested_protection_nid` when calling `get_storagepool_suggested_protection_nid_1`") + # verify the required parameter 'storagepool_tier' is set + if ('storagepool_tier' not in params) or (params['storagepool_tier'] is None): + raise ValueError("Missing the required parameter `storagepool_tier` when calling `update_storagepool_tier`") + # verify the required parameter 'storagepool_tier_id' is set + if ('storagepool_tier_id' not in params) or (params['storagepool_tier_id'] is None): + raise ValueError("Missing the required parameter `storagepool_tier_id` when calling `update_storagepool_tier`") - resource_path = '/platform/3/storagepool/suggested-protection/{StoragepoolSuggestedProtectionNid}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/storagepool/tiers/{StoragepoolTierId}'.replace('{format}', 'json') path_params = {} - if 'storagepool_suggested_protection_nid' in params: - path_params['StoragepoolSuggestedProtectionNid'] = params['storagepool_suggested_protection_nid'] + if 'storagepool_tier_id' in params: + path_params['StoragepoolTierId'] = params['storagepool_tier_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'storagepool_tier' in params: + body_params = params['storagepool_tier'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2276,14 +2170,14 @@ def get_storagepool_suggested_protection_nid_1(self, storagepool_suggested_prote # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='StoragepoolSuggestedProtection', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response diff --git a/isi_sdk/apis/sync_api.py b/isi_sdk/apis/sync_api.py index 3ad6881ce..704a1db80 100644 --- a/isi_sdk/apis/sync_api.py +++ b/isi_sdk/apis/sync_api.py @@ -2,7 +2,7 @@ """ SyncApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_history_file(self, **kwargs): + def create_sync_job(self, sync_job, **kwargs): """ - List file operations performance data. + Start a SyncIQ job. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,18 +57,17 @@ def get_history_file(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_history_file(callback=callback_function) + >>> thread = api.create_sync_job(sync_job, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int begin: Begin timestamp for time-series report. - :param int end: End timestamp for time-series report. - :return: HistoryFile + :param SyncJobCreateParams sync_job: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['begin', 'end'] + all_params = ['sync_job'] all_params.append('callback') params = locals() @@ -75,29 +75,29 @@ def get_history_file(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_history_file" % key + " to method create_sync_job" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'sync_job' is set + if ('sync_job' not in params) or (params['sync_job'] is None): + raise ValueError("Missing the required parameter `sync_job` when calling `create_sync_job`") - resource_path = '/platform/1/sync/history/file'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/jobs'.replace('{format}', 'json') path_params = {} query_params = {} - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'end' in params: - query_params['end'] = params['end'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'sync_job' in params: + body_params = params['sync_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -112,22 +112,22 @@ def get_history_file(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HistoryFile', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_history_network(self, **kwargs): + def create_sync_policy(self, sync_policy, **kwargs): """ - List network operations performance data. + Create a SyncIQ policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -135,18 +135,17 @@ def get_history_network(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_history_network(callback=callback_function) + >>> thread = api.create_sync_policy(sync_policy, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int begin: Begin timestamp for time-series report. - :param int end: End timestamp for time-series report. - :return: HistoryFile + :param SyncPolicyCreateParams sync_policy: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['begin', 'end'] + all_params = ['sync_policy'] all_params.append('callback') params = locals() @@ -154,29 +153,29 @@ def get_history_network(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_history_network" % key + " to method create_sync_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'sync_policy' is set + if ('sync_policy' not in params) or (params['sync_policy'] is None): + raise ValueError("Missing the required parameter `sync_policy` when calling `create_sync_policy`") - resource_path = '/platform/1/sync/history/network'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/policies'.replace('{format}', 'json') path_params = {} query_params = {} - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'end' in params: - query_params['end'] = params['end'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'sync_policy' in params: + body_params = params['sync_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -191,22 +190,22 @@ def get_history_network(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HistoryFile', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_sync_license(self, **kwargs): + def create_sync_reports_rotate_item(self, sync_reports_rotate_item, **kwargs): """ - Retrieve license information. + Rotate the records in the database(s). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -214,16 +213,17 @@ def get_sync_license(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sync_license(callback=callback_function) + >>> thread = api.create_sync_reports_rotate_item(sync_reports_rotate_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: LicenseLicense + :param Empty sync_reports_rotate_item: (required) + :return: CreateSyncReportsRotateItemResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['sync_reports_rotate_item'] all_params.append('callback') params = locals() @@ -231,25 +231,29 @@ def get_sync_license(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sync_license" % key + " to method create_sync_reports_rotate_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'sync_reports_rotate_item' is set + if ('sync_reports_rotate_item' not in params) or (params['sync_reports_rotate_item'] is None): + raise ValueError("Missing the required parameter `sync_reports_rotate_item` when calling `create_sync_reports_rotate_item`") - resource_path = '/platform/1/sync/license'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/sync/reports-rotate'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'sync_reports_rotate_item' in params: + body_params = params['sync_reports_rotate_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -264,22 +268,22 @@ def get_sync_license(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='LicenseLicense', + files=local_var_files, + response_type='CreateSyncReportsRotateItemResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_policies_policy_reset_item(self, policies_policy_reset_item, policy, **kwargs): + def create_sync_rule(self, sync_rule, **kwargs): """ - Reset a SyncIQ policy incremental state and force a full sync/copy. + Create a new SyncIQ performance rule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -287,18 +291,17 @@ def create_policies_policy_reset_item(self, policies_policy_reset_item, policy, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_policies_policy_reset_item(policies_policy_reset_item, policy, callback=callback_function) + >>> thread = api.create_sync_rule(sync_rule, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty policies_policy_reset_item: (required) - :param str policy: (required) + :param SyncRuleCreateParams sync_rule: (required) :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['policies_policy_reset_item', 'policy'] + all_params = ['sync_rule'] all_params.append('callback') params = locals() @@ -306,35 +309,29 @@ def create_policies_policy_reset_item(self, policies_policy_reset_item, policy, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_policies_policy_reset_item" % key + " to method create_sync_rule" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'policies_policy_reset_item' is set - if ('policies_policy_reset_item' not in params) or (params['policies_policy_reset_item'] is None): - raise ValueError("Missing the required parameter `policies_policy_reset_item` when calling `create_policies_policy_reset_item`") - # verify the required parameter 'policy' is set - if ('policy' not in params) or (params['policy'] is None): - raise ValueError("Missing the required parameter `policy` when calling `create_policies_policy_reset_item`") + # verify the required parameter 'sync_rule' is set + if ('sync_rule' not in params) or (params['sync_rule'] is None): + raise ValueError("Missing the required parameter `sync_rule` when calling `create_sync_rule`") - resource_path = '/platform/1/sync/policies/{Policy}/reset'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/sync/rules'.replace('{format}', 'json') path_params = {} - if 'policy' in params: - path_params['Policy'] = params['policy'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'policies_policy_reset_item' in params: - body_params = params['policies_policy_reset_item'] + if 'sync_rule' in params: + body_params = params['sync_rule'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -349,22 +346,22 @@ def create_policies_policy_reset_item(self, policies_policy_reset_item, policy, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_sync_reports(self, **kwargs): + def delete_sync_policies(self, **kwargs): """ - Get a list of SyncIQ reports. By default 10 reports are returned per policy, unless otherwise specified by 'reports_per_policy'. + Delete all SyncIQ policies. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -372,24 +369,18 @@ def get_sync_reports(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sync_reports(callback=callback_function) + >>> thread = api.delete_sync_policies(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int newer_than: Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. - :param str policy_name: Filter the returned reports to include only those with this policy name. - :param str state: Filter the returned reports to include only those whose jobs are in this state. - :param int limit: Return no more than this many results at once (see resume). - :param int reports_per_policy: If specified, only the N most recent reports will be returned per policy. If no other query args are present this argument defaults to 10. - :param str dir: The direction of the sort. - :return: SyncReportsExtended + :param bool local_only: Skip deleting the policy association on the target. + :param bool force: Ignore any running jobs when preparing to delete a policy. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'resume', 'newer_than', 'policy_name', 'state', 'limit', 'reports_per_policy', 'dir'] + all_params = ['local_only', 'force'] all_params.append('callback') params = locals() @@ -397,39 +388,26 @@ def get_sync_reports(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sync_reports" % key + " to method delete_sync_policies" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/sync/reports'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/policies'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'newer_than' in params: - query_params['newer_than'] = params['newer_than'] - if 'policy_name' in params: - query_params['policy_name'] = params['policy_name'] - if 'state' in params: - query_params['state'] = params['state'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'reports_per_policy' in params: - query_params['reports_per_policy'] = params['reports_per_policy'] - if 'dir' in params: - query_params['dir'] = params['dir'] + if 'local_only' in params: + query_params['local_only'] = params['local_only'] + if 'force' in params: + query_params['force'] = params['force'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -446,22 +424,22 @@ def get_sync_reports(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SyncReportsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def list_sync_reports_rotate(self, **kwargs): + def delete_sync_policy(self, sync_policy_id, **kwargs): """ - Whether the rotation is still running or not. + Delete a single SyncIQ policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -469,16 +447,19 @@ def list_sync_reports_rotate(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_sync_reports_rotate(callback=callback_function) + >>> thread = api.delete_sync_policy(sync_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SyncReportsRotate + :param str sync_policy_id: Delete a single SyncIQ policy. (required) + :param bool local_only: Skip deleting the policy association on the target. + :param bool force: Ignore any running jobs when preparing to delete a policy. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['sync_policy_id', 'local_only', 'force'] all_params.append('callback') params = locals() @@ -486,23 +467,31 @@ def list_sync_reports_rotate(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_sync_reports_rotate" % key + " to method delete_sync_policy" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'sync_policy_id' is set + if ('sync_policy_id' not in params) or (params['sync_policy_id'] is None): + raise ValueError("Missing the required parameter `sync_policy_id` when calling `delete_sync_policy`") - resource_path = '/platform/1/sync/reports-rotate'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/policies/{SyncPolicyId}'.replace('{format}', 'json') path_params = {} + if 'sync_policy_id' in params: + path_params['SyncPolicyId'] = params['sync_policy_id'] query_params = {} + if 'local_only' in params: + query_params['local_only'] = params['local_only'] + if 'force' in params: + query_params['force'] = params['force'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -519,22 +508,22 @@ def list_sync_reports_rotate(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SyncReportsRotate', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def create_sync_reports_rotate_item(self, sync_reports_rotate_item, **kwargs): + def delete_sync_rule(self, sync_rule_id, **kwargs): """ - Rotate the records in the database(s). + Delete a single SyncIQ performance rule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -542,17 +531,17 @@ def create_sync_reports_rotate_item(self, sync_reports_rotate_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_sync_reports_rotate_item(sync_reports_rotate_item, callback=callback_function) + >>> thread = api.delete_sync_rule(sync_rule_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty sync_reports_rotate_item: (required) - :return: CreateSyncReportsRotateItemResponse + :param str sync_rule_id: Delete a single SyncIQ performance rule. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_reports_rotate_item'] + all_params = ['sync_rule_id'] all_params.append('callback') params = locals() @@ -560,30 +549,29 @@ def create_sync_reports_rotate_item(self, sync_reports_rotate_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_sync_reports_rotate_item" % key + " to method delete_sync_rule" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_reports_rotate_item' is set - if ('sync_reports_rotate_item' not in params) or (params['sync_reports_rotate_item'] is None): - raise ValueError("Missing the required parameter `sync_reports_rotate_item` when calling `create_sync_reports_rotate_item`") + # verify the required parameter 'sync_rule_id' is set + if ('sync_rule_id' not in params) or (params['sync_rule_id'] is None): + raise ValueError("Missing the required parameter `sync_rule_id` when calling `delete_sync_rule`") - resource_path = '/platform/1/sync/reports-rotate'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/sync/rules/{SyncRuleId}'.replace('{format}', 'json') path_params = {} + if 'sync_rule_id' in params: + path_params['SyncRuleId'] = params['sync_rule_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'sync_reports_rotate_item' in params: - body_params = params['sync_reports_rotate_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -598,22 +586,22 @@ def create_sync_reports_rotate_item(self, sync_reports_rotate_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateSyncReportsRotateItemResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_reports_rid_subreports(self, rid, **kwargs): + def delete_sync_rules(self, **kwargs): """ - Get a list of SyncIQ subreports for a report. + Delete all SyncIQ performance rules or all rules of a specified type. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -621,23 +609,17 @@ def get_reports_rid_subreports(self, rid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_reports_rid_subreports(rid, callback=callback_function) + >>> thread = api.delete_sync_rules(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str rid: (required) - :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int newer_than: Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. - :param str state: Filter the returned reports to include only those whose jobs are in this state. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: ReportsRidSubreportsExtended + :param str type: Delete all rules of the specified rule type only. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['rid', 'sort', 'resume', 'newer_than', 'state', 'limit', 'dir'] + all_params = ['type'] all_params.append('callback') params = locals() @@ -645,40 +627,24 @@ def get_reports_rid_subreports(self, rid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_reports_rid_subreports" % key + " to method delete_sync_rules" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'rid' is set - if ('rid' not in params) or (params['rid'] is None): - raise ValueError("Missing the required parameter `rid` when calling `get_reports_rid_subreports`") - resource_path = '/platform/1/sync/reports/{Rid}/subreports'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/rules'.replace('{format}', 'json') path_params = {} - if 'rid' in params: - path_params['Rid'] = params['rid'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'newer_than' in params: - query_params['newer_than'] = params['newer_than'] - if 'state' in params: - query_params['state'] = params['state'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] + if 'type' in params: + query_params['type'] = params['type'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -695,22 +661,22 @@ def get_reports_rid_subreports(self, rid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ReportsRidSubreportsExtended', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_reports_rid_subreport(self, reports_rid_subreport_id, rid, **kwargs): + def delete_target_policy(self, target_policy_id, **kwargs): """ - View a single SyncIQ subreport. + Break the target association with this cluster for this policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -718,18 +684,18 @@ def get_reports_rid_subreport(self, reports_rid_subreport_id, rid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_reports_rid_subreport(reports_rid_subreport_id, rid, callback=callback_function) + >>> thread = api.delete_target_policy(target_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str reports_rid_subreport_id: View a single SyncIQ subreport. (required) - :param str rid: (required) - :return: ReportsRidSubreports + :param str target_policy_id: Break the target association with this cluster for this policy. (required) + :param bool force: Ignore any running jobs when preparing to delete the policy target association. + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['reports_rid_subreport_id', 'rid'] + all_params = ['target_policy_id', 'force'] all_params.append('callback') params = locals() @@ -737,33 +703,29 @@ def get_reports_rid_subreport(self, reports_rid_subreport_id, rid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_reports_rid_subreport" % key + " to method delete_target_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'reports_rid_subreport_id' is set - if ('reports_rid_subreport_id' not in params) or (params['reports_rid_subreport_id'] is None): - raise ValueError("Missing the required parameter `reports_rid_subreport_id` when calling `get_reports_rid_subreport`") - # verify the required parameter 'rid' is set - if ('rid' not in params) or (params['rid'] is None): - raise ValueError("Missing the required parameter `rid` when calling `get_reports_rid_subreport`") + # verify the required parameter 'target_policy_id' is set + if ('target_policy_id' not in params) or (params['target_policy_id'] is None): + raise ValueError("Missing the required parameter `target_policy_id` when calling `delete_target_policy`") - resource_path = '/platform/1/sync/reports/{Rid}/subreports/{ReportsRidSubreportId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/sync/target/policies/{TargetPolicyId}'.replace('{format}', 'json') path_params = {} - if 'reports_rid_subreport_id' in params: - path_params['ReportsRidSubreportId'] = params['reports_rid_subreport_id'] - if 'rid' in params: - path_params['Rid'] = params['rid'] + if 'target_policy_id' in params: + path_params['TargetPolicyId'] = params['target_policy_id'] query_params = {} + if 'force' in params: + query_params['force'] = params['force'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -780,22 +742,22 @@ def get_reports_rid_subreport(self, reports_rid_subreport_id, rid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ReportsRidSubreports', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_sync_report(self, sync_report_id, **kwargs): + def get_history_cpu(self, **kwargs): """ - View a single SyncIQ report. + List cpu performance data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -803,17 +765,18 @@ def get_sync_report(self, sync_report_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sync_report(sync_report_id, callback=callback_function) + >>> thread = api.get_history_cpu(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sync_report_id: View a single SyncIQ report. (required) - :return: SyncReports + :param int begin: Begin timestamp for time-series report. + :param int end: End timestamp for time-series report. + :return: HistoryFile If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_report_id'] + all_params = ['begin', 'end'] all_params.append('callback') params = locals() @@ -821,28 +784,26 @@ def get_sync_report(self, sync_report_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sync_report" % key + " to method get_history_cpu" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_report_id' is set - if ('sync_report_id' not in params) or (params['sync_report_id'] is None): - raise ValueError("Missing the required parameter `sync_report_id` when calling `get_sync_report`") - resource_path = '/platform/1/sync/reports/{SyncReportId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/history/cpu'.replace('{format}', 'json') path_params = {} - if 'sync_report_id' in params: - path_params['SyncReportId'] = params['sync_report_id'] query_params = {} + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'end' in params: + query_params['end'] = params['end'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -859,22 +820,22 @@ def get_sync_report(self, sync_report_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SyncReports', + files=local_var_files, + response_type='HistoryFile', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_target_policies(self, **kwargs): + def get_history_file(self, **kwargs): """ - List all SyncIQ target policies. + List file operations performance data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -882,21 +843,18 @@ def get_target_policies(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_target_policies(callback=callback_function) + >>> thread = api.get_history_file(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str target_path: Filter the returned policies to include only those with this target path. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: TargetPoliciesExtended + :param int begin: Begin timestamp for time-series report. + :param int end: End timestamp for time-series report. + :return: HistoryFile If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'target_path', 'limit', 'dir', 'resume'] + all_params = ['begin', 'end'] all_params.append('callback') params = locals() @@ -904,33 +862,26 @@ def get_target_policies(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_target_policies" % key + " to method get_history_file" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/sync/target/policies'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/sync/history/file'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'target_path' in params: - query_params['target_path'] = params['target_path'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'end' in params: + query_params['end'] = params['end'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -947,22 +898,22 @@ def get_target_policies(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='TargetPoliciesExtended', + files=local_var_files, + response_type='HistoryFile', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_target_policies_policy_cancel_item(self, target_policies_policy_cancel_item, policy, **kwargs): + def get_history_network(self, **kwargs): """ - Cancel the most recent SyncIQ job for this policy from the target side. + List network operations performance data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -970,18 +921,18 @@ def create_target_policies_policy_cancel_item(self, target_policies_policy_cance >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_target_policies_policy_cancel_item(target_policies_policy_cancel_item, policy, callback=callback_function) + >>> thread = api.get_history_network(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty target_policies_policy_cancel_item: (required) - :param str policy: (required) - :return: CreateResponse + :param int begin: Begin timestamp for time-series report. + :param int end: End timestamp for time-series report. + :return: HistoryFile If the method is called asynchronously, returns the request thread. """ - all_params = ['target_policies_policy_cancel_item', 'policy'] + all_params = ['begin', 'end'] all_params.append('callback') params = locals() @@ -989,35 +940,28 @@ def create_target_policies_policy_cancel_item(self, target_policies_policy_cance if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_target_policies_policy_cancel_item" % key + " to method get_history_network" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'target_policies_policy_cancel_item' is set - if ('target_policies_policy_cancel_item' not in params) or (params['target_policies_policy_cancel_item'] is None): - raise ValueError("Missing the required parameter `target_policies_policy_cancel_item` when calling `create_target_policies_policy_cancel_item`") - # verify the required parameter 'policy' is set - if ('policy' not in params) or (params['policy'] is None): - raise ValueError("Missing the required parameter `policy` when calling `create_target_policies_policy_cancel_item`") - resource_path = '/platform/1/sync/target/policies/{Policy}/cancel'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/sync/history/network'.replace('{format}', 'json') path_params = {} - if 'policy' in params: - path_params['Policy'] = params['policy'] query_params = {} + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'end' in params: + query_params['end'] = params['end'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'target_policies_policy_cancel_item' in params: - body_params = params['target_policies_policy_cancel_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1032,22 +976,22 @@ def create_target_policies_policy_cancel_item(self, target_policies_policy_cance # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='HistoryFile', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_target_policy(self, target_policy_id, **kwargs): + def get_history_worker(self, **kwargs): """ - View a single SyncIQ target policy. + List worker performance data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1055,17 +999,18 @@ def get_target_policy(self, target_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_target_policy(target_policy_id, callback=callback_function) + >>> thread = api.get_history_worker(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str target_policy_id: View a single SyncIQ target policy. (required) - :return: TargetPolicies + :param int begin: Begin timestamp for time-series report. + :param int end: End timestamp for time-series report. + :return: HistoryFile If the method is called asynchronously, returns the request thread. """ - all_params = ['target_policy_id'] + all_params = ['begin', 'end'] all_params.append('callback') params = locals() @@ -1073,28 +1018,26 @@ def get_target_policy(self, target_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_target_policy" % key + " to method get_history_worker" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'target_policy_id' is set - if ('target_policy_id' not in params) or (params['target_policy_id'] is None): - raise ValueError("Missing the required parameter `target_policy_id` when calling `get_target_policy`") - resource_path = '/platform/1/sync/target/policies/{TargetPolicyId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/history/worker'.replace('{format}', 'json') path_params = {} - if 'target_policy_id' in params: - path_params['TargetPolicyId'] = params['target_policy_id'] query_params = {} + if 'begin' in params: + query_params['begin'] = params['begin'] + if 'end' in params: + query_params['end'] = params['end'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1111,22 +1054,22 @@ def get_target_policy(self, target_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='TargetPolicies', + files=local_var_files, + response_type='HistoryFile', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_target_policy(self, target_policy_id, **kwargs): + def get_sync_job(self, sync_job_id, **kwargs): """ - Break the target association with this cluster for this policy. + View a single SyncIQ job. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1134,18 +1077,17 @@ def delete_target_policy(self, target_policy_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_target_policy(target_policy_id, callback=callback_function) + >>> thread = api.get_sync_job(sync_job_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str target_policy_id: Break the target association with this cluster for this policy. (required) - :param bool force: Ignore any running jobs when preparing to delete the policy target association. - :return: None + :param str sync_job_id: View a single SyncIQ job. (required) + :return: SyncJobs If the method is called asynchronously, returns the request thread. """ - all_params = ['target_policy_id', 'force'] + all_params = ['sync_job_id'] all_params.append('callback') params = locals() @@ -1153,30 +1095,27 @@ def delete_target_policy(self, target_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_target_policy" % key + " to method get_sync_job" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'target_policy_id' is set - if ('target_policy_id' not in params) or (params['target_policy_id'] is None): - raise ValueError("Missing the required parameter `target_policy_id` when calling `delete_target_policy`") + # verify the required parameter 'sync_job_id' is set + if ('sync_job_id' not in params) or (params['sync_job_id'] is None): + raise ValueError("Missing the required parameter `sync_job_id` when calling `get_sync_job`") - resource_path = '/platform/1/sync/target/policies/{TargetPolicyId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/sync/jobs/{SyncJobId}'.replace('{format}', 'json') path_params = {} - if 'target_policy_id' in params: - path_params['TargetPolicyId'] = params['target_policy_id'] + if 'sync_job_id' in params: + path_params['SyncJobId'] = params['sync_job_id'] query_params = {} - if 'force' in params: - query_params['force'] = params['force'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1193,22 +1132,22 @@ def delete_target_policy(self, target_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SyncJobs', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_target_reports(self, **kwargs): + def get_sync_license(self, **kwargs): """ - Get a list of SyncIQ target reports. By default 10 reports are returned per policy, unless otherwise specified by 'reports_per_policy'. + Retrieve license information. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1216,24 +1155,16 @@ def get_target_reports(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_target_reports(callback=callback_function) + >>> thread = api.get_sync_license(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int newer_than: Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. - :param str policy_name: Filter the returned reports to include only those with this policy name. - :param str state: Filter the returned reports to include only those whose jobs are in this state. - :param int limit: Return no more than this many results at once (see resume). - :param int reports_per_policy: If specified, only the N most recent reports will be returned per policy. If no other query args are present this argument defaults to 10. - :param str dir: The direction of the sort. - :return: TargetReportsExtended + :return: LicenseLicense If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'resume', 'newer_than', 'policy_name', 'state', 'limit', 'reports_per_policy', 'dir'] + all_params = [] all_params.append('callback') params = locals() @@ -1241,39 +1172,22 @@ def get_target_reports(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_target_reports" % key + " to method get_sync_license" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/1/sync/target/reports'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/sync/license'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'newer_than' in params: - query_params['newer_than'] = params['newer_than'] - if 'policy_name' in params: - query_params['policy_name'] = params['policy_name'] - if 'state' in params: - query_params['state'] = params['state'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'reports_per_policy' in params: - query_params['reports_per_policy'] = params['reports_per_policy'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1290,22 +1204,22 @@ def get_target_reports(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='TargetReportsExtended', + files=local_var_files, + response_type='LicenseLicense', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_target_reports_rid_subreports(self, rid, **kwargs): + def get_sync_policy(self, sync_policy_id, **kwargs): """ - Get a list of SyncIQ target subreports for a report. + View a single SyncIQ policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1313,23 +1227,17 @@ def get_target_reports_rid_subreports(self, rid, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_target_reports_rid_subreports(rid, callback=callback_function) + >>> thread = api.get_sync_policy(sync_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str rid: (required) - :param str sort: The field that will be used for sorting. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :param int newer_than: Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. - :param str state: Filter the returned reports to include only those whose jobs are in this state. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :return: TargetReportsRidSubreportsExtended + :param str sync_policy_id: View a single SyncIQ policy. (required) + :return: SyncPolicies If the method is called asynchronously, returns the request thread. """ - all_params = ['rid', 'sort', 'resume', 'newer_than', 'state', 'limit', 'dir'] + all_params = ['sync_policy_id'] all_params.append('callback') params = locals() @@ -1337,40 +1245,27 @@ def get_target_reports_rid_subreports(self, rid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_target_reports_rid_subreports" % key + " to method get_sync_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'rid' is set - if ('rid' not in params) or (params['rid'] is None): - raise ValueError("Missing the required parameter `rid` when calling `get_target_reports_rid_subreports`") + # verify the required parameter 'sync_policy_id' is set + if ('sync_policy_id' not in params) or (params['sync_policy_id'] is None): + raise ValueError("Missing the required parameter `sync_policy_id` when calling `get_sync_policy`") - resource_path = '/platform/1/sync/target/reports/{Rid}/subreports'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/policies/{SyncPolicyId}'.replace('{format}', 'json') path_params = {} - if 'rid' in params: - path_params['Rid'] = params['rid'] + if 'sync_policy_id' in params: + path_params['SyncPolicyId'] = params['sync_policy_id'] query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'resume' in params: - query_params['resume'] = params['resume'] - if 'newer_than' in params: - query_params['newer_than'] = params['newer_than'] - if 'state' in params: - query_params['state'] = params['state'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1387,22 +1282,22 @@ def get_target_reports_rid_subreports(self, rid, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='TargetReportsRidSubreportsExtended', + files=local_var_files, + response_type='SyncPolicies', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_target_reports_rid_subreport(self, target_reports_rid_subreport_id, rid, **kwargs): + def get_sync_report(self, sync_report_id, **kwargs): """ - View a single SyncIQ target subreport. + View a single SyncIQ report. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1410,18 +1305,17 @@ def get_target_reports_rid_subreport(self, target_reports_rid_subreport_id, rid, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_target_reports_rid_subreport(target_reports_rid_subreport_id, rid, callback=callback_function) + >>> thread = api.get_sync_report(sync_report_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str target_reports_rid_subreport_id: View a single SyncIQ target subreport. (required) - :param str rid: (required) - :return: TargetReportsRidSubreports + :param str sync_report_id: View a single SyncIQ report. (required) + :return: SyncReports If the method is called asynchronously, returns the request thread. """ - all_params = ['target_reports_rid_subreport_id', 'rid'] + all_params = ['sync_report_id'] all_params.append('callback') params = locals() @@ -1429,33 +1323,27 @@ def get_target_reports_rid_subreport(self, target_reports_rid_subreport_id, rid, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_target_reports_rid_subreport" % key + " to method get_sync_report" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'target_reports_rid_subreport_id' is set - if ('target_reports_rid_subreport_id' not in params) or (params['target_reports_rid_subreport_id'] is None): - raise ValueError("Missing the required parameter `target_reports_rid_subreport_id` when calling `get_target_reports_rid_subreport`") - # verify the required parameter 'rid' is set - if ('rid' not in params) or (params['rid'] is None): - raise ValueError("Missing the required parameter `rid` when calling `get_target_reports_rid_subreport`") + # verify the required parameter 'sync_report_id' is set + if ('sync_report_id' not in params) or (params['sync_report_id'] is None): + raise ValueError("Missing the required parameter `sync_report_id` when calling `get_sync_report`") - resource_path = '/platform/1/sync/target/reports/{Rid}/subreports/{TargetReportsRidSubreportId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/sync/reports/{SyncReportId}'.replace('{format}', 'json') path_params = {} - if 'target_reports_rid_subreport_id' in params: - path_params['TargetReportsRidSubreportId'] = params['target_reports_rid_subreport_id'] - if 'rid' in params: - path_params['Rid'] = params['rid'] + if 'sync_report_id' in params: + path_params['SyncReportId'] = params['sync_report_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1472,22 +1360,22 @@ def get_target_reports_rid_subreport(self, target_reports_rid_subreport_id, rid, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='TargetReportsRidSubreports', + files=local_var_files, + response_type='SyncReports', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_target_report(self, target_report_id, **kwargs): + def get_sync_reports(self, **kwargs): """ - View a single SyncIQ target report. + Get a list of SyncIQ reports. By default 10 reports are returned per policy, unless otherwise specified by 'reports_per_policy'. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1495,17 +1383,24 @@ def get_target_report(self, target_report_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_target_report(target_report_id, callback=callback_function) + >>> thread = api.get_sync_reports(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str target_report_id: View a single SyncIQ target report. (required) - :return: TargetReports + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int newer_than: Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. + :param str policy_name: Filter the returned reports to include only those with this policy name. + :param str state: Filter the returned reports to include only those whose jobs are in this state. + :param int limit: Return no more than this many results at once (see resume). + :param int reports_per_policy: If specified, only the N most recent reports will be returned per policy. If no other query args are present this argument defaults to 10. + :param str dir: The direction of the sort. + :return: SyncReportsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['target_report_id'] + all_params = ['sort', 'resume', 'newer_than', 'policy_name', 'state', 'limit', 'reports_per_policy', 'dir'] all_params.append('callback') params = locals() @@ -1513,28 +1408,40 @@ def get_target_report(self, target_report_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_target_report" % key + " to method get_sync_reports" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'target_report_id' is set - if ('target_report_id' not in params) or (params['target_report_id'] is None): - raise ValueError("Missing the required parameter `target_report_id` when calling `get_target_report`") - resource_path = '/platform/1/sync/target/reports/{TargetReportId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_sync_reports`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/sync/reports'.replace('{format}', 'json') path_params = {} - if 'target_report_id' in params: - path_params['TargetReportId'] = params['target_report_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'newer_than' in params: + query_params['newer_than'] = params['newer_than'] + if 'policy_name' in params: + query_params['policy_name'] = params['policy_name'] + if 'state' in params: + query_params['state'] = params['state'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'reports_per_policy' in params: + query_params['reports_per_policy'] = params['reports_per_policy'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1551,22 +1458,22 @@ def get_target_report(self, target_report_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='TargetReports', + files=local_var_files, + response_type='SyncReportsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_history_cpu(self, **kwargs): + def get_sync_rule(self, sync_rule_id, **kwargs): """ - List cpu performance data. + View a single SyncIQ performance rule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1574,18 +1481,17 @@ def get_history_cpu(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_history_cpu(callback=callback_function) + >>> thread = api.get_sync_rule(sync_rule_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int begin: Begin timestamp for time-series report. - :param int end: End timestamp for time-series report. - :return: HistoryFile + :param str sync_rule_id: View a single SyncIQ performance rule. (required) + :return: SyncRules If the method is called asynchronously, returns the request thread. """ - all_params = ['begin', 'end'] + all_params = ['sync_rule_id'] all_params.append('callback') params = locals() @@ -1593,27 +1499,27 @@ def get_history_cpu(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_history_cpu" % key + " to method get_sync_rule" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'sync_rule_id' is set + if ('sync_rule_id' not in params) or (params['sync_rule_id'] is None): + raise ValueError("Missing the required parameter `sync_rule_id` when calling `get_sync_rule`") - resource_path = '/platform/3/sync/history/cpu'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/rules/{SyncRuleId}'.replace('{format}', 'json') path_params = {} + if 'sync_rule_id' in params: + path_params['SyncRuleId'] = params['sync_rule_id'] query_params = {} - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'end' in params: - query_params['end'] = params['end'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1630,22 +1536,22 @@ def get_history_cpu(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HistoryFile', + files=local_var_files, + response_type='SyncRules', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_history_worker(self, **kwargs): + def get_sync_settings(self, **kwargs): """ - List worker performance data. + Retrieve the global SyncIQ settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1653,18 +1559,16 @@ def get_history_worker(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_history_worker(callback=callback_function) + >>> thread = api.get_sync_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int begin: Begin timestamp for time-series report. - :param int end: End timestamp for time-series report. - :return: HistoryFile + :return: SyncSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['begin', 'end'] + all_params = [] all_params.append('callback') params = locals() @@ -1672,27 +1576,22 @@ def get_history_worker(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_history_worker" % key + " to method get_sync_settings" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/sync/history/worker'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/settings'.replace('{format}', 'json') path_params = {} query_params = {} - if 'begin' in params: - query_params['begin'] = params['begin'] - if 'end' in params: - query_params['end'] = params['end'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1709,22 +1608,22 @@ def get_history_worker(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='HistoryFile', + files=local_var_files, + response_type='SyncSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_sync_jobs(self, **kwargs): + def get_target_policies(self, **kwargs): """ - Get a list of SyncIQ jobs. + List all SyncIQ target policies. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1732,21 +1631,21 @@ def list_sync_jobs(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_sync_jobs(callback=callback_function) + >>> thread = api.get_target_policies(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str sort: The field that will be used for sorting. - :param str state: The state of the job. + :param str target_path: Filter the returned policies to include only those with this target path. :param int limit: Return no more than this many results at once (see resume). :param str dir: The direction of the sort. :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: SyncJobsExtended + :return: TargetPoliciesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'state', 'limit', 'dir', 'resume'] + all_params = ['sort', 'target_path', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -1754,22 +1653,23 @@ def list_sync_jobs(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_sync_jobs" % key + " to method get_target_policies" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/sync/jobs'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_target_policies`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/sync/target/policies'.replace('{format}', 'json') path_params = {} query_params = {} if 'sort' in params: query_params['sort'] = params['sort'] - if 'state' in params: - query_params['state'] = params['state'] + if 'target_path' in params: + query_params['target_path'] = params['target_path'] if 'limit' in params: query_params['limit'] = params['limit'] if 'dir' in params: @@ -1779,89 +1679,10 @@ def list_sync_jobs(self, **kwargs): header_params = {} - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SyncJobsExtended', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_sync_job(self, sync_job, **kwargs): - """ - - Start a SyncIQ job. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_sync_job(sync_job, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param SyncJobCreateParams sync_job: (required) - :return: CreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['sync_job'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_sync_job" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'sync_job' is set - if ('sync_job' not in params) or (params['sync_job'] is None): - raise ValueError("Missing the required parameter `sync_job` when calling `create_sync_job`") - - resource_path = '/platform/3/sync/jobs'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'sync_job' in params: - body_params = params['sync_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1876,22 +1697,22 @@ def create_sync_job(self, sync_job, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='TargetPoliciesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_sync_job(self, sync_job_id, **kwargs): + def get_target_policy(self, target_policy_id, **kwargs): """ - View a single SyncIQ job. + View a single SyncIQ target policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1899,17 +1720,17 @@ def get_sync_job(self, sync_job_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sync_job(sync_job_id, callback=callback_function) + >>> thread = api.get_target_policy(target_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sync_job_id: View a single SyncIQ job. (required) - :return: SyncJobs + :param str target_policy_id: View a single SyncIQ target policy. (required) + :return: TargetPolicies If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_job_id'] + all_params = ['target_policy_id'] all_params.append('callback') params = locals() @@ -1917,28 +1738,27 @@ def get_sync_job(self, sync_job_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sync_job" % key + " to method get_target_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_job_id' is set - if ('sync_job_id' not in params) or (params['sync_job_id'] is None): - raise ValueError("Missing the required parameter `sync_job_id` when calling `get_sync_job`") + # verify the required parameter 'target_policy_id' is set + if ('target_policy_id' not in params) or (params['target_policy_id'] is None): + raise ValueError("Missing the required parameter `target_policy_id` when calling `get_target_policy`") - resource_path = '/platform/3/sync/jobs/{SyncJobId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/sync/target/policies/{TargetPolicyId}'.replace('{format}', 'json') path_params = {} - if 'sync_job_id' in params: - path_params['SyncJobId'] = params['sync_job_id'] + if 'target_policy_id' in params: + path_params['TargetPolicyId'] = params['target_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -1955,22 +1775,22 @@ def get_sync_job(self, sync_job_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SyncJobs', + files=local_var_files, + response_type='TargetPolicies', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_sync_job(self, sync_job, sync_job_id, **kwargs): + def get_target_report(self, target_report_id, **kwargs): """ - Perform an action (pause, cancel, etc...) on a single job. + View a single SyncIQ target report. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1978,18 +1798,17 @@ def update_sync_job(self, sync_job, sync_job_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_sync_job(sync_job, sync_job_id, callback=callback_function) + >>> thread = api.get_target_report(target_report_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SyncJob sync_job: (required) - :param str sync_job_id: Perform an action (pause, cancel, etc...) on a single job. (required) - :return: None + :param str target_report_id: View a single SyncIQ target report. (required) + :return: TargetReports If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_job', 'sync_job_id'] + all_params = ['target_report_id'] all_params.append('callback') params = locals() @@ -1997,35 +1816,29 @@ def update_sync_job(self, sync_job, sync_job_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_sync_job" % key + " to method get_target_report" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_job' is set - if ('sync_job' not in params) or (params['sync_job'] is None): - raise ValueError("Missing the required parameter `sync_job` when calling `update_sync_job`") - # verify the required parameter 'sync_job_id' is set - if ('sync_job_id' not in params) or (params['sync_job_id'] is None): - raise ValueError("Missing the required parameter `sync_job_id` when calling `update_sync_job`") + # verify the required parameter 'target_report_id' is set + if ('target_report_id' not in params) or (params['target_report_id'] is None): + raise ValueError("Missing the required parameter `target_report_id` when calling `get_target_report`") - resource_path = '/platform/3/sync/jobs/{SyncJobId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/sync/target/reports/{TargetReportId}'.replace('{format}', 'json') path_params = {} - if 'sync_job_id' in params: - path_params['SyncJobId'] = params['sync_job_id'] + if 'target_report_id' in params: + path_params['TargetReportId'] = params['target_report_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'sync_job' in params: - body_params = params['sync_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2040,22 +1853,22 @@ def update_sync_job(self, sync_job, sync_job_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='TargetReports', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_sync_policies(self, **kwargs): + def get_target_reports(self, **kwargs): """ - List all SyncIQ policies. + Get a list of SyncIQ target reports. By default 10 reports are returned per policy, unless otherwise specified by 'reports_per_policy'. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2063,429 +1876,24 @@ def list_sync_policies(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_sync_policies(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: SyncPoliciesExtended - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['sort', 'scope', 'limit', 'dir', 'resume'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_sync_policies" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/3/sync/policies'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'scope' in params: - query_params['scope'] = params['scope'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SyncPoliciesExtended', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def create_sync_policy(self, sync_policy, **kwargs): - """ - - Create a SyncIQ policy. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.create_sync_policy(sync_policy, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param SyncPolicyCreateParams sync_policy: (required) - :return: CreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['sync_policy'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_sync_policy" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'sync_policy' is set - if ('sync_policy' not in params) or (params['sync_policy'] is None): - raise ValueError("Missing the required parameter `sync_policy` when calling `create_sync_policy`") - - resource_path = '/platform/3/sync/policies'.replace('{format}', 'json') - method = 'POST' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'sync_policy' in params: - body_params = params['sync_policy'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='CreateResponse', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_sync_policies(self, **kwargs): - """ - - Delete all SyncIQ policies. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_sync_policies(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param bool local_only: Skip deleting the policy association on the target. - :param bool force: Ignore any running jobs when preparing to delete a policy. - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['local_only', 'force'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_sync_policies" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/3/sync/policies'.replace('{format}', 'json') - method = 'DELETE' - - path_params = {} - - query_params = {} - if 'local_only' in params: - query_params['local_only'] = params['local_only'] - if 'force' in params: - query_params['force'] = params['force'] - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def get_sync_policy(self, sync_policy_id, **kwargs): - """ - - View a single SyncIQ policy. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_sync_policy(sync_policy_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str sync_policy_id: View a single SyncIQ policy. (required) - :return: SyncPolicies - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['sync_policy_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_sync_policy" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'sync_policy_id' is set - if ('sync_policy_id' not in params) or (params['sync_policy_id'] is None): - raise ValueError("Missing the required parameter `sync_policy_id` when calling `get_sync_policy`") - - resource_path = '/platform/3/sync/policies/{SyncPolicyId}'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - if 'sync_policy_id' in params: - path_params['SyncPolicyId'] = params['sync_policy_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='SyncPolicies', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def update_sync_policy(self, sync_policy, sync_policy_id, **kwargs): - """ - - Modify a single SyncIQ policy. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.update_sync_policy(sync_policy, sync_policy_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param SyncPolicy sync_policy: (required) - :param str sync_policy_id: Modify a single SyncIQ policy. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['sync_policy', 'sync_policy_id'] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_sync_policy" % key - ) - params[key] = val - del params['kwargs'] - - # verify the required parameter 'sync_policy' is set - if ('sync_policy' not in params) or (params['sync_policy'] is None): - raise ValueError("Missing the required parameter `sync_policy` when calling `update_sync_policy`") - # verify the required parameter 'sync_policy_id' is set - if ('sync_policy_id' not in params) or (params['sync_policy_id'] is None): - raise ValueError("Missing the required parameter `sync_policy_id` when calling `update_sync_policy`") - - resource_path = '/platform/3/sync/policies/{SyncPolicyId}'.replace('{format}', 'json') - method = 'PUT' - - path_params = {} - if 'sync_policy_id' in params: - path_params['SyncPolicyId'] = params['sync_policy_id'] - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - if 'sync_policy' in params: - body_params = params['sync_policy'] - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback')) - return response - - def delete_sync_policy(self, sync_policy_id, **kwargs): - """ - - Delete a single SyncIQ policy. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.delete_sync_policy(sync_policy_id, callback=callback_function) + >>> thread = api.get_target_reports(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sync_policy_id: Delete a single SyncIQ policy. (required) - :param bool local_only: Skip deleting the policy association on the target. - :param bool force: Ignore any running jobs when preparing to delete a policy. - :return: None + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int newer_than: Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. + :param str policy_name: Filter the returned reports to include only those with this policy name. + :param str state: Filter the returned reports to include only those whose jobs are in this state. + :param int limit: Return no more than this many results at once (see resume). + :param int reports_per_policy: If specified, only the N most recent reports will be returned per policy. If no other query args are present this argument defaults to 10. + :param str dir: The direction of the sort. + :return: TargetReportsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_policy_id', 'local_only', 'force'] + all_params = ['sort', 'resume', 'newer_than', 'policy_name', 'state', 'limit', 'reports_per_policy', 'dir'] all_params.append('callback') params = locals() @@ -2493,32 +1901,40 @@ def delete_sync_policy(self, sync_policy_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_sync_policy" % key + " to method get_target_reports" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_policy_id' is set - if ('sync_policy_id' not in params) or (params['sync_policy_id'] is None): - raise ValueError("Missing the required parameter `sync_policy_id` when calling `delete_sync_policy`") - resource_path = '/platform/3/sync/policies/{SyncPolicyId}'.replace('{format}', 'json') - method = 'DELETE' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_target_reports`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/sync/target/reports'.replace('{format}', 'json') path_params = {} - if 'sync_policy_id' in params: - path_params['SyncPolicyId'] = params['sync_policy_id'] query_params = {} - if 'local_only' in params: - query_params['local_only'] = params['local_only'] - if 'force' in params: - query_params['force'] = params['force'] + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'newer_than' in params: + query_params['newer_than'] = params['newer_than'] + if 'policy_name' in params: + query_params['policy_name'] = params['policy_name'] + if 'state' in params: + query_params['state'] = params['state'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'reports_per_policy' in params: + query_params['reports_per_policy'] = params['reports_per_policy'] + if 'dir' in params: + query_params['dir'] = params['dir'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2535,22 +1951,22 @@ def delete_sync_policy(self, sync_policy_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='TargetReportsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def list_sync_rules(self, **kwargs): + def list_sync_jobs(self, **kwargs): """ - List all SyncIQ performance rules. + Get a list of SyncIQ jobs. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2558,21 +1974,21 @@ def list_sync_rules(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_sync_rules(callback=callback_function) + >>> thread = api.list_sync_jobs(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str sort: The field that will be used for sorting. - :param str type: Filter the returned rules to include only those with this rule type. + :param str state: The state of the job. :param int limit: Return no more than this many results at once (see resume). :param str dir: The direction of the sort. :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: SyncRulesExtended + :return: SyncJobsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'type', 'limit', 'dir', 'resume'] + all_params = ['sort', 'state', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -2580,22 +1996,23 @@ def list_sync_rules(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_sync_rules" % key + " to method list_sync_jobs" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/sync/rules'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_sync_jobs`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/sync/jobs'.replace('{format}', 'json') path_params = {} query_params = {} if 'sort' in params: query_params['sort'] = params['sort'] - if 'type' in params: - query_params['type'] = params['type'] + if 'state' in params: + query_params['state'] = params['state'] if 'limit' in params: query_params['limit'] = params['limit'] if 'dir' in params: @@ -2605,8 +2022,8 @@ def list_sync_rules(self, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2623,22 +2040,22 @@ def list_sync_rules(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SyncRulesExtended', + files=local_var_files, + response_type='SyncJobsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_sync_rule(self, sync_rule, **kwargs): + def list_sync_policies(self, **kwargs): """ - Create a new SyncIQ performance rule. + List all SyncIQ policies. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2646,17 +2063,21 @@ def create_sync_rule(self, sync_rule, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_sync_rule(sync_rule, callback=callback_function) + >>> thread = api.list_sync_policies(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SyncRuleCreateParams sync_rule: (required) - :return: CreateResponse + :param str sort: The field that will be used for sorting. + :param str scope: If specified as \"effective\" or not specified, all fields are returned. If specified as \"user\", only fields with non-default values are shown. If specified as \"default\", the original values are returned. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: SyncPoliciesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_rule'] + all_params = ['sort', 'scope', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -2664,30 +2085,36 @@ def create_sync_rule(self, sync_rule, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_sync_rule" % key + " to method list_sync_policies" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_rule' is set - if ('sync_rule' not in params) or (params['sync_rule'] is None): - raise ValueError("Missing the required parameter `sync_rule` when calling `create_sync_rule`") - resource_path = '/platform/3/sync/rules'.replace('{format}', 'json') - method = 'POST' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_sync_policies`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/sync/policies'.replace('{format}', 'json') path_params = {} query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'scope' in params: + query_params['scope'] = params['scope'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'sync_rule' in params: - body_params = params['sync_rule'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2702,22 +2129,22 @@ def create_sync_rule(self, sync_rule, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type='SyncPoliciesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_sync_rules(self, **kwargs): + def list_sync_reports_rotate(self, **kwargs): """ - Delete all SyncIQ performance rules or all rules of a specified type. + Whether the rotation is still running or not. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2725,17 +2152,16 @@ def delete_sync_rules(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_sync_rules(callback=callback_function) + >>> thread = api.list_sync_reports_rotate(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str type: Delete all rules of the specified rule type only. - :return: None + :return: SyncReportsRotate If the method is called asynchronously, returns the request thread. """ - all_params = ['type'] + all_params = [] all_params.append('callback') params = locals() @@ -2743,25 +2169,22 @@ def delete_sync_rules(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_sync_rules" % key + " to method list_sync_reports_rotate" % key ) params[key] = val del params['kwargs'] - resource_path = '/platform/3/sync/rules'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/1/sync/reports-rotate'.replace('{format}', 'json') path_params = {} query_params = {} - if 'type' in params: - query_params['type'] = params['type'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2778,22 +2201,22 @@ def delete_sync_rules(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='SyncReportsRotate', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_sync_rule(self, sync_rule_id, **kwargs): + def list_sync_rules(self, **kwargs): """ - View a single SyncIQ performance rule. + List all SyncIQ performance rules. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2801,17 +2224,21 @@ def get_sync_rule(self, sync_rule_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sync_rule(sync_rule_id, callback=callback_function) + >>> thread = api.list_sync_rules(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sync_rule_id: View a single SyncIQ performance rule. (required) - :return: SyncRules + :param str sort: The field that will be used for sorting. + :param str type: Filter the returned rules to include only those with this rule type. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: SyncRulesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_rule_id'] + all_params = ['sort', 'type', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -2819,28 +2246,34 @@ def get_sync_rule(self, sync_rule_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sync_rule" % key + " to method list_sync_rules" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_rule_id' is set - if ('sync_rule_id' not in params) or (params['sync_rule_id'] is None): - raise ValueError("Missing the required parameter `sync_rule_id` when calling `get_sync_rule`") - resource_path = '/platform/3/sync/rules/{SyncRuleId}'.replace('{format}', 'json') - method = 'GET' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_sync_rules`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/3/sync/rules'.replace('{format}', 'json') path_params = {} - if 'sync_rule_id' in params: - path_params['SyncRuleId'] = params['sync_rule_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'type' in params: + query_params['type'] = params['type'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -2857,22 +2290,22 @@ def get_sync_rule(self, sync_rule_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SyncRules', + files=local_var_files, + response_type='SyncRulesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_sync_rule(self, sync_rule, sync_rule_id, **kwargs): + def update_sync_job(self, sync_job, sync_job_id, **kwargs): """ - Modify a single SyncIQ performance rule. + Perform an action (pause, cancel, etc...) on a single job. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2880,18 +2313,18 @@ def update_sync_rule(self, sync_rule, sync_rule_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_sync_rule(sync_rule, sync_rule_id, callback=callback_function) + >>> thread = api.update_sync_job(sync_job, sync_job_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param SyncRule sync_rule: (required) - :param str sync_rule_id: Modify a single SyncIQ performance rule. (required) + :param SyncJob sync_job: (required) + :param str sync_job_id: Perform an action (pause, cancel, etc...) on a single job. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_rule', 'sync_rule_id'] + all_params = ['sync_job', 'sync_job_id'] all_params.append('callback') params = locals() @@ -2899,35 +2332,34 @@ def update_sync_rule(self, sync_rule, sync_rule_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_sync_rule" % key + " to method update_sync_job" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_rule' is set - if ('sync_rule' not in params) or (params['sync_rule'] is None): - raise ValueError("Missing the required parameter `sync_rule` when calling `update_sync_rule`") - # verify the required parameter 'sync_rule_id' is set - if ('sync_rule_id' not in params) or (params['sync_rule_id'] is None): - raise ValueError("Missing the required parameter `sync_rule_id` when calling `update_sync_rule`") + # verify the required parameter 'sync_job' is set + if ('sync_job' not in params) or (params['sync_job'] is None): + raise ValueError("Missing the required parameter `sync_job` when calling `update_sync_job`") + # verify the required parameter 'sync_job_id' is set + if ('sync_job_id' not in params) or (params['sync_job_id'] is None): + raise ValueError("Missing the required parameter `sync_job_id` when calling `update_sync_job`") - resource_path = '/platform/3/sync/rules/{SyncRuleId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/sync/jobs/{SyncJobId}'.replace('{format}', 'json') path_params = {} - if 'sync_rule_id' in params: - path_params['SyncRuleId'] = params['sync_rule_id'] + if 'sync_job_id' in params: + path_params['SyncJobId'] = params['sync_job_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'sync_rule' in params: - body_params = params['sync_rule'] + if 'sync_job' in params: + body_params = params['sync_job'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -2942,22 +2374,22 @@ def update_sync_rule(self, sync_rule, sync_rule_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_sync_rule(self, sync_rule_id, **kwargs): + def update_sync_policy(self, sync_policy, sync_policy_id, **kwargs): """ - Delete a single SyncIQ performance rule. + Modify a single SyncIQ policy. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -2965,17 +2397,18 @@ def delete_sync_rule(self, sync_rule_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_sync_rule(sync_rule_id, callback=callback_function) + >>> thread = api.update_sync_policy(sync_policy, sync_policy_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sync_rule_id: Delete a single SyncIQ performance rule. (required) + :param SyncPolicy sync_policy: (required) + :param str sync_policy_id: Modify a single SyncIQ policy. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['sync_rule_id'] + all_params = ['sync_policy', 'sync_policy_id'] all_params.append('callback') params = locals() @@ -2983,30 +2416,34 @@ def delete_sync_rule(self, sync_rule_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_sync_rule" % key + " to method update_sync_policy" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'sync_rule_id' is set - if ('sync_rule_id' not in params) or (params['sync_rule_id'] is None): - raise ValueError("Missing the required parameter `sync_rule_id` when calling `delete_sync_rule`") + # verify the required parameter 'sync_policy' is set + if ('sync_policy' not in params) or (params['sync_policy'] is None): + raise ValueError("Missing the required parameter `sync_policy` when calling `update_sync_policy`") + # verify the required parameter 'sync_policy_id' is set + if ('sync_policy_id' not in params) or (params['sync_policy_id'] is None): + raise ValueError("Missing the required parameter `sync_policy_id` when calling `update_sync_policy`") - resource_path = '/platform/3/sync/rules/{SyncRuleId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/sync/policies/{SyncPolicyId}'.replace('{format}', 'json') path_params = {} - if 'sync_rule_id' in params: - path_params['SyncRuleId'] = params['sync_rule_id'] + if 'sync_policy_id' in params: + path_params['SyncPolicyId'] = params['sync_policy_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'sync_policy' in params: + body_params = params['sync_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3021,22 +2458,22 @@ def delete_sync_rule(self, sync_rule_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response - def get_sync_settings(self, **kwargs): + def update_sync_rule(self, sync_rule, sync_rule_id, **kwargs): """ - Retrieve the global SyncIQ settings. + Modify a single SyncIQ performance rule. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -3044,16 +2481,18 @@ def get_sync_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_sync_settings(callback=callback_function) + >>> thread = api.update_sync_rule(sync_rule, sync_rule_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: SyncSettings + :param SyncRule sync_rule: (required) + :param str sync_rule_id: Modify a single SyncIQ performance rule. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['sync_rule', 'sync_rule_id'] all_params.append('callback') params = locals() @@ -3061,25 +2500,34 @@ def get_sync_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_sync_settings" % key + " to method update_sync_rule" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'sync_rule' is set + if ('sync_rule' not in params) or (params['sync_rule'] is None): + raise ValueError("Missing the required parameter `sync_rule` when calling `update_sync_rule`") + # verify the required parameter 'sync_rule_id' is set + if ('sync_rule_id' not in params) or (params['sync_rule_id'] is None): + raise ValueError("Missing the required parameter `sync_rule_id` when calling `update_sync_rule`") - resource_path = '/platform/3/sync/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/sync/rules/{SyncRuleId}'.replace('{format}', 'json') path_params = {} + if 'sync_rule_id' in params: + path_params['SyncRuleId'] = params['sync_rule_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'sync_rule' in params: + body_params = params['sync_rule'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -3094,14 +2542,14 @@ def get_sync_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='SyncSettings', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -3144,17 +2592,16 @@ def update_sync_settings(self, sync_settings, **kwargs): if ('sync_settings' not in params) or (params['sync_settings'] is None): raise ValueError("Missing the required parameter `sync_settings` when calling `update_sync_settings`") - resource_path = '/platform/3/sync/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/sync/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'sync_settings' in params: @@ -3173,13 +2620,13 @@ def update_sync_settings(self, sync_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/sync_policies_api.py b/isi_sdk/apis/sync_policies_api.py new file mode 100644 index 000000000..c5cfb82ec --- /dev/null +++ b/isi_sdk/apis/sync_policies_api.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" +SyncPoliciesApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SyncPoliciesApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_policy_reset_item(self, policy_reset_item, policy, **kwargs): + """ + + Reset a SyncIQ policy incremental state and force a full sync/copy. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_policy_reset_item(policy_reset_item, policy, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty policy_reset_item: (required) + :param str policy: (required) + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['policy_reset_item', 'policy'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_policy_reset_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'policy_reset_item' is set + if ('policy_reset_item' not in params) or (params['policy_reset_item'] is None): + raise ValueError("Missing the required parameter `policy_reset_item` when calling `create_policy_reset_item`") + # verify the required parameter 'policy' is set + if ('policy' not in params) or (params['policy'] is None): + raise ValueError("Missing the required parameter `policy` when calling `create_policy_reset_item`") + + + resource_path = '/platform/1/sync/policies/{Policy}/reset'.replace('{format}', 'json') + path_params = {} + if 'policy' in params: + path_params['Policy'] = params['policy'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'policy_reset_item' in params: + body_params = params['policy_reset_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/sync_reports_api.py b/isi_sdk/apis/sync_reports_api.py new file mode 100644 index 000000000..cfb24070c --- /dev/null +++ b/isi_sdk/apis/sync_reports_api.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" +SyncReportsApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SyncReportsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_report_subreport(self, report_subreport_id, rid, **kwargs): + """ + + View a single SyncIQ subreport. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_report_subreport(report_subreport_id, rid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str report_subreport_id: View a single SyncIQ subreport. (required) + :param str rid: (required) + :return: ReportSubreports + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['report_subreport_id', 'rid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_report_subreport" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'report_subreport_id' is set + if ('report_subreport_id' not in params) or (params['report_subreport_id'] is None): + raise ValueError("Missing the required parameter `report_subreport_id` when calling `get_report_subreport`") + # verify the required parameter 'rid' is set + if ('rid' not in params) or (params['rid'] is None): + raise ValueError("Missing the required parameter `rid` when calling `get_report_subreport`") + + + resource_path = '/platform/1/sync/reports/{Rid}/subreports/{ReportSubreportId}'.replace('{format}', 'json') + path_params = {} + if 'report_subreport_id' in params: + path_params['ReportSubreportId'] = params['report_subreport_id'] + if 'rid' in params: + path_params['Rid'] = params['rid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportSubreports', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_report_subreports(self, rid, **kwargs): + """ + + Get a list of SyncIQ subreports for a report. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_report_subreports(rid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str rid: (required) + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int newer_than: Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. + :param str state: Filter the returned reports to include only those whose jobs are in this state. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: ReportSubreportsExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['rid', 'sort', 'resume', 'newer_than', 'state', 'limit', 'dir'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_report_subreports" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'rid' is set + if ('rid' not in params) or (params['rid'] is None): + raise ValueError("Missing the required parameter `rid` when calling `get_report_subreports`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_report_subreports`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/1/sync/reports/{Rid}/subreports'.replace('{format}', 'json') + path_params = {} + if 'rid' in params: + path_params['Rid'] = params['rid'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'newer_than' in params: + query_params['newer_than'] = params['newer_than'] + if 'state' in params: + query_params['state'] = params['state'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportSubreportsExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/sync_target_api.py b/isi_sdk/apis/sync_target_api.py new file mode 100644 index 000000000..c026e5203 --- /dev/null +++ b/isi_sdk/apis/sync_target_api.py @@ -0,0 +1,313 @@ +# coding: utf-8 + +""" +SyncTargetApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SyncTargetApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def create_policies_policy_cancel_item(self, policies_policy_cancel_item, policy, **kwargs): + """ + + Cancel the most recent SyncIQ job for this policy from the target side. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_policies_policy_cancel_item(policies_policy_cancel_item, policy, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param Empty policies_policy_cancel_item: (required) + :param str policy: (required) + :return: CreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['policies_policy_cancel_item', 'policy'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_policies_policy_cancel_item" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'policies_policy_cancel_item' is set + if ('policies_policy_cancel_item' not in params) or (params['policies_policy_cancel_item'] is None): + raise ValueError("Missing the required parameter `policies_policy_cancel_item` when calling `create_policies_policy_cancel_item`") + # verify the required parameter 'policy' is set + if ('policy' not in params) or (params['policy'] is None): + raise ValueError("Missing the required parameter `policy` when calling `create_policies_policy_cancel_item`") + + + resource_path = '/platform/1/sync/target/policies/{Policy}/cancel'.replace('{format}', 'json') + path_params = {} + if 'policy' in params: + path_params['Policy'] = params['policy'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_policy_cancel_item' in params: + body_params = params['policies_policy_cancel_item'] + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateResponse', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_reports_report_subreport(self, reports_report_subreport_id, rid, **kwargs): + """ + + View a single SyncIQ target subreport. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_reports_report_subreport(reports_report_subreport_id, rid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str reports_report_subreport_id: View a single SyncIQ target subreport. (required) + :param str rid: (required) + :return: ReportsReportSubreports + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['reports_report_subreport_id', 'rid'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_reports_report_subreport" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'reports_report_subreport_id' is set + if ('reports_report_subreport_id' not in params) or (params['reports_report_subreport_id'] is None): + raise ValueError("Missing the required parameter `reports_report_subreport_id` when calling `get_reports_report_subreport`") + # verify the required parameter 'rid' is set + if ('rid' not in params) or (params['rid'] is None): + raise ValueError("Missing the required parameter `rid` when calling `get_reports_report_subreport`") + + + resource_path = '/platform/1/sync/target/reports/{Rid}/subreports/{ReportsReportSubreportId}'.replace('{format}', 'json') + path_params = {} + if 'reports_report_subreport_id' in params: + path_params['ReportsReportSubreportId'] = params['reports_report_subreport_id'] + if 'rid' in params: + path_params['Rid'] = params['rid'] + + query_params = {} + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportsReportSubreports', + auth_settings=auth_settings, + callback=params.get('callback')) + return response + + def get_reports_report_subreports(self, rid, **kwargs): + """ + + Get a list of SyncIQ target subreports for a report. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_reports_report_subreports(rid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str rid: (required) + :param str sort: The field that will be used for sorting. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :param int newer_than: Filter the returned reports to include only those whose jobs started more recently than the specified number of days ago. + :param str state: Filter the returned reports to include only those whose jobs are in this state. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :return: ReportsReportSubreportsExtended + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['rid', 'sort', 'resume', 'newer_than', 'state', 'limit', 'dir'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_reports_report_subreports" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'rid' is set + if ('rid' not in params) or (params['rid'] is None): + raise ValueError("Missing the required parameter `rid` when calling `get_reports_report_subreports`") + + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `get_reports_report_subreports`, must be a value greater than or equal to `1.0`") + + resource_path = '/platform/1/sync/target/reports/{Rid}/subreports'.replace('{format}', 'json') + path_params = {} + if 'rid' in params: + path_params['Rid'] = params['rid'] + + query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'resume' in params: + query_params['resume'] = params['resume'] + if 'newer_than' in params: + query_params['newer_than'] = params['newer_than'] + if 'state' in params: + query_params['state'] = params['state'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ReportsReportSubreportsExtended', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/upgrade_api.py b/isi_sdk/apis/upgrade_api.py index aeeb97967..ae7b444f2 100644 --- a/isi_sdk/apis/upgrade_api.py +++ b/isi_sdk/apis/upgrade_api.py @@ -2,7 +2,7 @@ """ UpgradeApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,79 +46,6 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def get_upgrade_cluster(self, **kwargs): - """ - - Cluster wide upgrade status info. - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.get_upgrade_cluster(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: UpgradeCluster - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_upgrade_cluster" % key - ) - params[key] = val - del params['kwargs'] - - - resource_path = '/platform/3/upgrade/cluster'.replace('{format}', 'json') - method = 'GET' - - path_params = {} - - query_params = {} - - header_params = {} - - form_params = {} - files = {} - - body_params = None - - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - if not header_params['Accept']: - del header_params['Accept'] - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['basic_auth'] - - response = self.api_client.call_api(resource_path, method, - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=files, - response_type='UpgradeCluster', - auth_settings=auth_settings, - callback=params.get('callback')) - return response - def create_cluster_add_remaining_node(self, cluster_add_remaining_node, **kwargs): """ @@ -156,17 +84,16 @@ def create_cluster_add_remaining_node(self, cluster_add_remaining_node, **kwargs if ('cluster_add_remaining_node' not in params) or (params['cluster_add_remaining_node'] is None): raise ValueError("Missing the required parameter `cluster_add_remaining_node` when calling `create_cluster_add_remaining_node`") - resource_path = '/platform/3/upgrade/cluster/add_remaining_nodes'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/add_remaining_nodes'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'cluster_add_remaining_node' in params: @@ -185,13 +112,13 @@ def create_cluster_add_remaining_node(self, cluster_add_remaining_node, **kwargs # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) @@ -235,17 +162,16 @@ def create_cluster_archive_item(self, cluster_archive_item, **kwargs): if ('cluster_archive_item' not in params) or (params['cluster_archive_item'] is None): raise ValueError("Missing the required parameter `cluster_archive_item` when calling `create_cluster_archive_item`") - resource_path = '/platform/3/upgrade/cluster/archive'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/archive'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'cluster_archive_item' in params: @@ -264,13 +190,13 @@ def create_cluster_archive_item(self, cluster_archive_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) @@ -314,17 +240,16 @@ def create_cluster_assess_item(self, cluster_assess_item, **kwargs): if ('cluster_assess_item' not in params) or (params['cluster_assess_item'] is None): raise ValueError("Missing the required parameter `cluster_assess_item` when calling `create_cluster_assess_item`") - resource_path = '/platform/3/upgrade/cluster/assess'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/assess'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'cluster_assess_item' in params: @@ -343,13 +268,13 @@ def create_cluster_assess_item(self, cluster_assess_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) @@ -393,17 +318,16 @@ def create_cluster_commit_item(self, cluster_commit_item, **kwargs): if ('cluster_commit_item' not in params) or (params['cluster_commit_item'] is None): raise ValueError("Missing the required parameter `cluster_commit_item` when calling `create_cluster_commit_item`") - resource_path = '/platform/3/upgrade/cluster/commit'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/commit'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'cluster_commit_item' in params: @@ -422,13 +346,13 @@ def create_cluster_commit_item(self, cluster_commit_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) @@ -472,17 +396,16 @@ def create_cluster_firmware_assess_item(self, cluster_firmware_assess_item, **kw if ('cluster_firmware_assess_item' not in params) or (params['cluster_firmware_assess_item'] is None): raise ValueError("Missing the required parameter `cluster_firmware_assess_item` when calling `create_cluster_firmware_assess_item`") - resource_path = '/platform/3/upgrade/cluster/firmware/assess'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/firmware/assess'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'cluster_firmware_assess_item' in params: @@ -501,22 +424,22 @@ def create_cluster_firmware_assess_item(self, cluster_firmware_assess_item, **kw # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_firmware_progress(self, **kwargs): + def create_cluster_firmware_upgrade_item(self, cluster_firmware_upgrade_item, **kwargs): """ - Cluster wide firmware upgrade status info. + The settings necessary to start a firmware upgrade. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -524,16 +447,17 @@ def get_cluster_firmware_progress(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_firmware_progress(callback=callback_function) + >>> thread = api.create_cluster_firmware_upgrade_item(cluster_firmware_upgrade_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterFirmwareProgress + :param ClusterFirmwareUpgradeItem cluster_firmware_upgrade_item: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cluster_firmware_upgrade_item'] all_params.append('callback') params = locals() @@ -541,25 +465,29 @@ def get_cluster_firmware_progress(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_firmware_progress" % key + " to method create_cluster_firmware_upgrade_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cluster_firmware_upgrade_item' is set + if ('cluster_firmware_upgrade_item' not in params) or (params['cluster_firmware_upgrade_item'] is None): + raise ValueError("Missing the required parameter `cluster_firmware_upgrade_item` when calling `create_cluster_firmware_upgrade_item`") - resource_path = '/platform/3/upgrade/cluster/firmware/progress'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/upgrade/cluster/firmware/upgrade'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_firmware_upgrade_item' in params: + body_params = params['cluster_firmware_upgrade_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -574,22 +502,22 @@ def get_cluster_firmware_progress(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterFirmwareProgress', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_firmware_status(self, **kwargs): + def create_cluster_patch_abort_item(self, cluster_patch_abort_item, **kwargs): """ - The firmware status for the cluster. + Abort the previous action performed by the patch system. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -597,18 +525,17 @@ def get_cluster_firmware_status(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_firmware_status(callback=callback_function) + >>> thread = api.create_cluster_patch_abort_item(cluster_patch_abort_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param bool devices: Show devices. If false, this returns an empty list. Default is false. - :param bool package: Show package. If false, this returns an empty list.Default is false. - :return: ClusterFirmwareStatus + :param Empty cluster_patch_abort_item: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['devices', 'package'] + all_params = ['cluster_patch_abort_item'] all_params.append('callback') params = locals() @@ -616,29 +543,29 @@ def get_cluster_firmware_status(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_firmware_status" % key + " to method create_cluster_patch_abort_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cluster_patch_abort_item' is set + if ('cluster_patch_abort_item' not in params) or (params['cluster_patch_abort_item'] is None): + raise ValueError("Missing the required parameter `cluster_patch_abort_item` when calling `create_cluster_patch_abort_item`") - resource_path = '/platform/3/upgrade/cluster/firmware/status'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/upgrade/cluster/patch/abort'.replace('{format}', 'json') path_params = {} query_params = {} - if 'devices' in params: - query_params['devices'] = params['devices'] - if 'package' in params: - query_params['package'] = params['package'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_patch_abort_item' in params: + body_params = params['cluster_patch_abort_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -653,22 +580,22 @@ def get_cluster_firmware_status(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterFirmwareStatus', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cluster_firmware_upgrade_item(self, cluster_firmware_upgrade_item, **kwargs): + def create_cluster_retry_last_action_item(self, cluster_retry_last_action_item, **kwargs): """ - The settings necessary to start a firmware upgrade. + Retry the last upgrade action, in-case the previous attempt failed. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -676,17 +603,17 @@ def create_cluster_firmware_upgrade_item(self, cluster_firmware_upgrade_item, ** >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cluster_firmware_upgrade_item(cluster_firmware_upgrade_item, callback=callback_function) + >>> thread = api.create_cluster_retry_last_action_item(cluster_retry_last_action_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterFirmwareUpgradeItem cluster_firmware_upgrade_item: (required) + :param ClusterRetryLastActionItem cluster_retry_last_action_item: (required) :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_firmware_upgrade_item'] + all_params = ['cluster_retry_last_action_item'] all_params.append('callback') params = locals() @@ -694,30 +621,29 @@ def create_cluster_firmware_upgrade_item(self, cluster_firmware_upgrade_item, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cluster_firmware_upgrade_item" % key + " to method create_cluster_retry_last_action_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_firmware_upgrade_item' is set - if ('cluster_firmware_upgrade_item' not in params) or (params['cluster_firmware_upgrade_item'] is None): - raise ValueError("Missing the required parameter `cluster_firmware_upgrade_item` when calling `create_cluster_firmware_upgrade_item`") + # verify the required parameter 'cluster_retry_last_action_item' is set + if ('cluster_retry_last_action_item' not in params) or (params['cluster_retry_last_action_item'] is None): + raise ValueError("Missing the required parameter `cluster_retry_last_action_item` when calling `create_cluster_retry_last_action_item`") - resource_path = '/platform/3/upgrade/cluster/firmware/upgrade'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/retry_last_action'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_firmware_upgrade_item' in params: - body_params = params['cluster_firmware_upgrade_item'] + if 'cluster_retry_last_action_item' in params: + body_params = params['cluster_retry_last_action_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -732,22 +658,22 @@ def create_cluster_firmware_upgrade_item(self, cluster_firmware_upgrade_item, ** # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_nodes(self, **kwargs): + def create_cluster_rollback_item(self, cluster_rollback_item, **kwargs): """ - View information about nodes during an upgrade, rollback, or pre-upgrade assessment. + Rollback the upgrade of a cluster. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -755,16 +681,17 @@ def get_cluster_nodes(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_nodes(callback=callback_function) + >>> thread = api.create_cluster_rollback_item(cluster_rollback_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: ClusterNodesExtended + :param Empty cluster_rollback_item: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['cluster_rollback_item'] all_params.append('callback') params = locals() @@ -772,25 +699,29 @@ def get_cluster_nodes(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_nodes" % key + " to method create_cluster_rollback_item" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'cluster_rollback_item' is set + if ('cluster_rollback_item' not in params) or (params['cluster_rollback_item'] is None): + raise ValueError("Missing the required parameter `cluster_rollback_item` when calling `create_cluster_rollback_item`") - resource_path = '/platform/3/upgrade/cluster/nodes'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/upgrade/cluster/rollback'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_rollback_item' in params: + body_params = params['cluster_rollback_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -805,22 +736,22 @@ def get_cluster_nodes(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterNodesExtended', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_node(self, cluster_node_id, **kwargs): + def create_cluster_upgrade_item(self, cluster_upgrade_item, **kwargs): """ - The node details useful during an upgrade or assessment. + The settings necessary to start an upgrade. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -828,17 +759,17 @@ def get_cluster_node(self, cluster_node_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_node(cluster_node_id, callback=callback_function) + >>> thread = api.create_cluster_upgrade_item(cluster_upgrade_item, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int cluster_node_id: The node details useful during an upgrade or assessment. (required) - :return: ClusterNodesExtended + :param ClusterUpgradeItem cluster_upgrade_item: (required) + :return: Empty If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_node_id'] + all_params = ['cluster_upgrade_item'] all_params.append('callback') params = locals() @@ -846,30 +777,29 @@ def get_cluster_node(self, cluster_node_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_node" % key + " to method create_cluster_upgrade_item" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_node_id' is set - if ('cluster_node_id' not in params) or (params['cluster_node_id'] is None): - raise ValueError("Missing the required parameter `cluster_node_id` when calling `get_cluster_node`") + # verify the required parameter 'cluster_upgrade_item' is set + if ('cluster_upgrade_item' not in params) or (params['cluster_upgrade_item'] is None): + raise ValueError("Missing the required parameter `cluster_upgrade_item` when calling `create_cluster_upgrade_item`") - resource_path = '/platform/3/upgrade/cluster/nodes/{ClusterNodeId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/upgrade/cluster/upgrade'.replace('{format}', 'json') path_params = {} - if 'cluster_node_id' in params: - path_params['ClusterNodeId'] = params['cluster_node_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'cluster_upgrade_item' in params: + body_params = params['cluster_upgrade_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -884,22 +814,22 @@ def get_cluster_node(self, cluster_node_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterNodesExtended', + files=local_var_files, + response_type='Empty', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_cluster_nodes_lnn_firmware_status(self, lnn, **kwargs): + def get_cluster_firmware_progress(self, **kwargs): """ - The firmware status for the node. + Cluster wide firmware upgrade status info. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -907,19 +837,16 @@ def get_cluster_nodes_lnn_firmware_status(self, lnn, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_cluster_nodes_lnn_firmware_status(lnn, callback=callback_function) + >>> thread = api.get_cluster_firmware_progress(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int lnn: (required) - :param bool devices: Show devices. If false, this returns an empty list. Default is false. - :param bool package: Show package. If false, this returns an empty list.Default is false. - :return: ClusterNodesLnnFirmwareStatus + :return: ClusterFirmwareProgress If the method is called asynchronously, returns the request thread. """ - all_params = ['lnn', 'devices', 'package'] + all_params = [] all_params.append('callback') params = locals() @@ -927,32 +854,22 @@ def get_cluster_nodes_lnn_firmware_status(self, lnn, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_cluster_nodes_lnn_firmware_status" % key + " to method get_cluster_firmware_progress" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'lnn' is set - if ('lnn' not in params) or (params['lnn'] is None): - raise ValueError("Missing the required parameter `lnn` when calling `get_cluster_nodes_lnn_firmware_status`") - resource_path = '/platform/3/upgrade/cluster/nodes/{Lnn}/firmware/status'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/upgrade/cluster/firmware/progress'.replace('{format}', 'json') path_params = {} - if 'lnn' in params: - path_params['Lnn'] = params['lnn'] query_params = {} - if 'devices' in params: - query_params['devices'] = params['devices'] - if 'package' in params: - query_params['package'] = params['package'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -969,22 +886,22 @@ def get_cluster_nodes_lnn_firmware_status(self, lnn, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='ClusterNodesLnnFirmwareStatus', + files=local_var_files, + response_type='ClusterFirmwareProgress', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cluster_patch_abort_item(self, cluster_patch_abort_item, **kwargs): + def get_cluster_firmware_status(self, **kwargs): """ - Abort the previous action performed by the patch system. + The firmware status for the cluster. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -992,17 +909,18 @@ def create_cluster_patch_abort_item(self, cluster_patch_abort_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cluster_patch_abort_item(cluster_patch_abort_item, callback=callback_function) + >>> thread = api.get_cluster_firmware_status(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty cluster_patch_abort_item: (required) - :return: Empty + :param bool devices: Show devices. If false, this returns an empty list. Default is false. + :param bool package: Show package. If false, this returns an empty list.Default is false. + :return: ClusterFirmwareStatus If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_patch_abort_item'] + all_params = ['devices', 'package'] all_params.append('callback') params = locals() @@ -1010,30 +928,28 @@ def create_cluster_patch_abort_item(self, cluster_patch_abort_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cluster_patch_abort_item" % key + " to method get_cluster_firmware_status" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_patch_abort_item' is set - if ('cluster_patch_abort_item' not in params) or (params['cluster_patch_abort_item'] is None): - raise ValueError("Missing the required parameter `cluster_patch_abort_item` when calling `create_cluster_patch_abort_item`") - resource_path = '/platform/3/upgrade/cluster/patch/abort'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/firmware/status'.replace('{format}', 'json') path_params = {} query_params = {} + if 'devices' in params: + query_params['devices'] = params['devices'] + if 'package' in params: + query_params['package'] = params['package'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_patch_abort_item' in params: - body_params = params['cluster_patch_abort_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1048,22 +964,22 @@ def create_cluster_patch_abort_item(self, cluster_patch_abort_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='ClusterFirmwareStatus', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cluster_retry_last_action_item(self, cluster_retry_last_action_item, **kwargs): + def get_cluster_node(self, cluster_node_id, **kwargs): """ - Retry the last upgrade action, in-case the previous attempt failed. + The node details useful during an upgrade or assessment. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1071,17 +987,17 @@ def create_cluster_retry_last_action_item(self, cluster_retry_last_action_item, >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cluster_retry_last_action_item(cluster_retry_last_action_item, callback=callback_function) + >>> thread = api.get_cluster_node(cluster_node_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterRetryLastActionItem cluster_retry_last_action_item: (required) - :return: Empty + :param int cluster_node_id: The node details useful during an upgrade or assessment. (required) + :return: ClusterNodesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_retry_last_action_item'] + all_params = ['cluster_node_id'] all_params.append('callback') params = locals() @@ -1089,30 +1005,29 @@ def create_cluster_retry_last_action_item(self, cluster_retry_last_action_item, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cluster_retry_last_action_item" % key + " to method get_cluster_node" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_retry_last_action_item' is set - if ('cluster_retry_last_action_item' not in params) or (params['cluster_retry_last_action_item'] is None): - raise ValueError("Missing the required parameter `cluster_retry_last_action_item` when calling `create_cluster_retry_last_action_item`") + # verify the required parameter 'cluster_node_id' is set + if ('cluster_node_id' not in params) or (params['cluster_node_id'] is None): + raise ValueError("Missing the required parameter `cluster_node_id` when calling `get_cluster_node`") - resource_path = '/platform/3/upgrade/cluster/retry_last_action'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/nodes/{ClusterNodeId}'.replace('{format}', 'json') path_params = {} + if 'cluster_node_id' in params: + path_params['ClusterNodeId'] = params['cluster_node_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_retry_last_action_item' in params: - body_params = params['cluster_retry_last_action_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1127,22 +1042,22 @@ def create_cluster_retry_last_action_item(self, cluster_retry_last_action_item, # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='ClusterNodesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cluster_rollback_item(self, cluster_rollback_item, **kwargs): + def get_cluster_nodes(self, **kwargs): """ - Rollback the upgrade of a cluster. + View information about nodes during an upgrade, rollback, or pre-upgrade assessment. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1150,17 +1065,16 @@ def create_cluster_rollback_item(self, cluster_rollback_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cluster_rollback_item(cluster_rollback_item, callback=callback_function) + >>> thread = api.get_cluster_nodes(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Empty cluster_rollback_item: (required) - :return: Empty + :return: ClusterNodesExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_rollback_item'] + all_params = [] all_params.append('callback') params = locals() @@ -1168,30 +1082,24 @@ def create_cluster_rollback_item(self, cluster_rollback_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cluster_rollback_item" % key + " to method get_cluster_nodes" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_rollback_item' is set - if ('cluster_rollback_item' not in params) or (params['cluster_rollback_item'] is None): - raise ValueError("Missing the required parameter `cluster_rollback_item` when calling `create_cluster_rollback_item`") - resource_path = '/platform/3/upgrade/cluster/rollback'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/nodes'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_rollback_item' in params: - body_params = params['cluster_rollback_item'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1206,22 +1114,22 @@ def create_cluster_rollback_item(self, cluster_rollback_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type='ClusterNodesExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_cluster_upgrade(self, cluster_upgrade, **kwargs): + def get_upgrade_cluster(self, **kwargs): """ - Add nodes to a running upgrade. + Cluster wide upgrade status info. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1229,17 +1137,16 @@ def update_cluster_upgrade(self, cluster_upgrade, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_cluster_upgrade(cluster_upgrade, callback=callback_function) + >>> thread = api.get_upgrade_cluster(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterUpgrade cluster_upgrade: (required) - :return: None + :return: UpgradeCluster If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_upgrade'] + all_params = [] all_params.append('callback') params = locals() @@ -1247,30 +1154,24 @@ def update_cluster_upgrade(self, cluster_upgrade, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_cluster_upgrade" % key + " to method get_upgrade_cluster" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_upgrade' is set - if ('cluster_upgrade' not in params) or (params['cluster_upgrade'] is None): - raise ValueError("Missing the required parameter `cluster_upgrade` when calling `update_cluster_upgrade`") - resource_path = '/platform/3/upgrade/cluster/upgrade'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/upgrade/cluster'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_upgrade' in params: - body_params = params['cluster_upgrade'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1285,22 +1186,22 @@ def update_cluster_upgrade(self, cluster_upgrade, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='UpgradeCluster', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_cluster_upgrade_item(self, cluster_upgrade_item, **kwargs): + def update_cluster_upgrade(self, cluster_upgrade, **kwargs): """ - The settings necessary to start an upgrade. + Add nodes to a running upgrade. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -1308,17 +1209,17 @@ def create_cluster_upgrade_item(self, cluster_upgrade_item, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_cluster_upgrade_item(cluster_upgrade_item, callback=callback_function) + >>> thread = api.update_cluster_upgrade(cluster_upgrade, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ClusterUpgradeItem cluster_upgrade_item: (required) - :return: Empty + :param ClusterUpgrade cluster_upgrade: (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['cluster_upgrade_item'] + all_params = ['cluster_upgrade'] all_params.append('callback') params = locals() @@ -1326,30 +1227,29 @@ def create_cluster_upgrade_item(self, cluster_upgrade_item, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_cluster_upgrade_item" % key + " to method update_cluster_upgrade" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'cluster_upgrade_item' is set - if ('cluster_upgrade_item' not in params) or (params['cluster_upgrade_item'] is None): - raise ValueError("Missing the required parameter `cluster_upgrade_item` when calling `create_cluster_upgrade_item`") + # verify the required parameter 'cluster_upgrade' is set + if ('cluster_upgrade' not in params) or (params['cluster_upgrade'] is None): + raise ValueError("Missing the required parameter `cluster_upgrade` when calling `update_cluster_upgrade`") - resource_path = '/platform/3/upgrade/cluster/upgrade'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/upgrade/cluster/upgrade'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'cluster_upgrade_item' in params: - body_params = params['cluster_upgrade_item'] + if 'cluster_upgrade' in params: + body_params = params['cluster_upgrade'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -1364,14 +1264,14 @@ def create_cluster_upgrade_item(self, cluster_upgrade_item, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Empty', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response diff --git a/isi_sdk/apis/upgrade_cluster_api.py b/isi_sdk/apis/upgrade_cluster_api.py new file mode 100644 index 000000000..e1d4afe16 --- /dev/null +++ b/isi_sdk/apis/upgrade_cluster_api.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" +UpgradeClusterApi.py +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class UpgradeClusterApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def get_nodes_node_firmware_status(self, lnn, **kwargs): + """ + + The firmware status for the node. + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_nodes_node_firmware_status(lnn, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param int lnn: (required) + :param bool devices: Show devices. If false, this returns an empty list. Default is false. + :param bool package: Show package. If false, this returns an empty list.Default is false. + :return: NodesNodeFirmwareStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['lnn', 'devices', 'package'] + all_params.append('callback') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_nodes_node_firmware_status" % key + ) + params[key] = val + del params['kwargs'] + + # verify the required parameter 'lnn' is set + if ('lnn' not in params) or (params['lnn'] is None): + raise ValueError("Missing the required parameter `lnn` when calling `get_nodes_node_firmware_status`") + + + resource_path = '/platform/3/upgrade/cluster/nodes/{Lnn}/firmware/status'.replace('{format}', 'json') + path_params = {} + if 'lnn' in params: + path_params['Lnn'] = params['lnn'] + + query_params = {} + if 'devices' in params: + query_params['devices'] = params['devices'] + if 'package' in params: + query_params['package'] = params['package'] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + if not header_params['Accept']: + del header_params['Accept'] + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = ['basic_auth'] + + response = self.api_client.call_api(resource_path, 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NodesNodeFirmwareStatus', + auth_settings=auth_settings, + callback=params.get('callback')) + return response diff --git a/isi_sdk/apis/worm_api.py b/isi_sdk/apis/worm_api.py index 30bf75095..4254338a2 100644 --- a/isi_sdk/apis/worm_api.py +++ b/isi_sdk/apis/worm_api.py @@ -2,7 +2,7 @@ """ WormApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_worm_domains(self, **kwargs): + def create_worm_domain(self, worm_domain, **kwargs): """ - List all WORM domains. + Create a WORM domain. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,20 +57,17 @@ def list_worm_domains(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_worm_domains(callback=callback_function) + >>> thread = api.create_worm_domain(worm_domain, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str sort: The field that will be used for sorting. - :param int limit: Return no more than this many results at once (see resume). - :param str dir: The direction of the sort. - :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - :return: WormDomainsExtended + :param WormDomainCreateParams worm_domain: (required) + :return: CreateWormDomainResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['sort', 'limit', 'dir', 'resume'] + all_params = ['worm_domain'] all_params.append('callback') params = locals() @@ -77,33 +75,29 @@ def list_worm_domains(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_worm_domains" % key + " to method create_worm_domain" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'worm_domain' is set + if ('worm_domain' not in params) or (params['worm_domain'] is None): + raise ValueError("Missing the required parameter `worm_domain` when calling `create_worm_domain`") - resource_path = '/platform/1/worm/domains'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/worm/domains'.replace('{format}', 'json') path_params = {} query_params = {} - if 'sort' in params: - query_params['sort'] = params['sort'] - if 'limit' in params: - query_params['limit'] = params['limit'] - if 'dir' in params: - query_params['dir'] = params['dir'] - if 'resume' in params: - query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'worm_domain' in params: + body_params = params['worm_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -118,22 +112,22 @@ def list_worm_domains(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='WormDomainsExtended', + files=local_var_files, + response_type='CreateWormDomainResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_worm_domain(self, worm_domain, **kwargs): + def get_worm_domain(self, worm_domain_id, **kwargs): """ - Create a WORM domain. + View a single WORM domain. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -141,17 +135,17 @@ def create_worm_domain(self, worm_domain, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_worm_domain(worm_domain, callback=callback_function) + >>> thread = api.get_worm_domain(worm_domain_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param WormDomainCreateParams worm_domain: (required) - :return: CreateWormDomainResponse + :param str worm_domain_id: View a single WORM domain. (required) + :return: WormDomains If the method is called asynchronously, returns the request thread. """ - all_params = ['worm_domain'] + all_params = ['worm_domain_id'] all_params.append('callback') params = locals() @@ -159,30 +153,29 @@ def create_worm_domain(self, worm_domain, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_worm_domain" % key + " to method get_worm_domain" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'worm_domain' is set - if ('worm_domain' not in params) or (params['worm_domain'] is None): - raise ValueError("Missing the required parameter `worm_domain` when calling `create_worm_domain`") + # verify the required parameter 'worm_domain_id' is set + if ('worm_domain_id' not in params) or (params['worm_domain_id'] is None): + raise ValueError("Missing the required parameter `worm_domain_id` when calling `get_worm_domain`") - resource_path = '/platform/1/worm/domains'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/1/worm/domains/{WormDomainId}'.replace('{format}', 'json') path_params = {} + if 'worm_domain_id' in params: + path_params['WormDomainId'] = params['worm_domain_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'worm_domain' in params: - body_params = params['worm_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -197,22 +190,22 @@ def create_worm_domain(self, worm_domain, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateWormDomainResponse', + files=local_var_files, + response_type='WormDomains', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_worm_domain(self, worm_domain_id, **kwargs): + def get_worm_settings(self, **kwargs): """ - View a single WORM domain. + Get the global WORM settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -220,17 +213,16 @@ def get_worm_domain(self, worm_domain_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_worm_domain(worm_domain_id, callback=callback_function) + >>> thread = api.get_worm_settings(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str worm_domain_id: View a single WORM domain. (required) - :return: WormDomains + :return: WormSettings If the method is called asynchronously, returns the request thread. """ - all_params = ['worm_domain_id'] + all_params = [] all_params.append('callback') params = locals() @@ -238,28 +230,22 @@ def get_worm_domain(self, worm_domain_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_worm_domain" % key + " to method get_worm_settings" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'worm_domain_id' is set - if ('worm_domain_id' not in params) or (params['worm_domain_id'] is None): - raise ValueError("Missing the required parameter `worm_domain_id` when calling `get_worm_domain`") - resource_path = '/platform/1/worm/domains/{WormDomainId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/worm/settings'.replace('{format}', 'json') path_params = {} - if 'worm_domain_id' in params: - path_params['WormDomainId'] = params['worm_domain_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -276,22 +262,22 @@ def get_worm_domain(self, worm_domain_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='WormDomains', + files=local_var_files, + response_type='WormSettings', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_worm_domain(self, worm_domain, worm_domain_id, **kwargs): + def list_worm_domains(self, **kwargs): """ - Modify a single WORM domain. + List all WORM domains. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -299,18 +285,20 @@ def update_worm_domain(self, worm_domain, worm_domain_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_worm_domain(worm_domain, worm_domain_id, callback=callback_function) + >>> thread = api.list_worm_domains(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param WormDomain worm_domain: (required) - :param str worm_domain_id: Modify a single WORM domain. (required) - :return: None + :param str sort: The field that will be used for sorting. + :param int limit: Return no more than this many results at once (see resume). + :param str dir: The direction of the sort. + :param str resume: Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + :return: WormDomainsExtended If the method is called asynchronously, returns the request thread. """ - all_params = ['worm_domain', 'worm_domain_id'] + all_params = ['sort', 'limit', 'dir', 'resume'] all_params.append('callback') params = locals() @@ -318,35 +306,34 @@ def update_worm_domain(self, worm_domain, worm_domain_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_worm_domain" % key + " to method list_worm_domains" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'worm_domain' is set - if ('worm_domain' not in params) or (params['worm_domain'] is None): - raise ValueError("Missing the required parameter `worm_domain` when calling `update_worm_domain`") - # verify the required parameter 'worm_domain_id' is set - if ('worm_domain_id' not in params) or (params['worm_domain_id'] is None): - raise ValueError("Missing the required parameter `worm_domain_id` when calling `update_worm_domain`") - resource_path = '/platform/1/worm/domains/{WormDomainId}'.replace('{format}', 'json') - method = 'PUT' + if 'limit' in params and params['limit'] < 1.0: + raise ValueError("Invalid value for parameter `limit` when calling `list_worm_domains`, must be a value greater than or equal to `1.0`") + resource_path = '/platform/1/worm/domains'.replace('{format}', 'json') path_params = {} - if 'worm_domain_id' in params: - path_params['WormDomainId'] = params['worm_domain_id'] query_params = {} + if 'sort' in params: + query_params['sort'] = params['sort'] + if 'limit' in params: + query_params['limit'] = params['limit'] + if 'dir' in params: + query_params['dir'] = params['dir'] + if 'resume' in params: + query_params['resume'] = params['resume'] header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'worm_domain' in params: - body_params = params['worm_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -361,22 +348,22 @@ def update_worm_domain(self, worm_domain, worm_domain_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='WormDomainsExtended', auth_settings=auth_settings, callback=params.get('callback')) return response - def get_worm_settings(self, **kwargs): + def update_worm_domain(self, worm_domain, worm_domain_id, **kwargs): """ - Get the global WORM settings. + Modify a single WORM domain. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -384,16 +371,18 @@ def get_worm_settings(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_worm_settings(callback=callback_function) + >>> thread = api.update_worm_domain(worm_domain, worm_domain_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: WormSettings + :param WormDomain worm_domain: (required) + :param str worm_domain_id: Modify a single WORM domain. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['worm_domain', 'worm_domain_id'] all_params.append('callback') params = locals() @@ -401,25 +390,34 @@ def get_worm_settings(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_worm_settings" % key + " to method update_worm_domain" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'worm_domain' is set + if ('worm_domain' not in params) or (params['worm_domain'] is None): + raise ValueError("Missing the required parameter `worm_domain` when calling `update_worm_domain`") + # verify the required parameter 'worm_domain_id' is set + if ('worm_domain_id' not in params) or (params['worm_domain_id'] is None): + raise ValueError("Missing the required parameter `worm_domain_id` when calling `update_worm_domain`") - resource_path = '/platform/1/worm/settings'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/worm/domains/{WormDomainId}'.replace('{format}', 'json') path_params = {} + if 'worm_domain_id' in params: + path_params['WormDomainId'] = params['worm_domain_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'worm_domain' in params: + body_params = params['worm_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -434,14 +432,14 @@ def get_worm_settings(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='WormSettings', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -484,17 +482,16 @@ def update_worm_settings(self, worm_settings, **kwargs): if ('worm_settings' not in params) or (params['worm_settings'] is None): raise ValueError("Missing the required parameter `worm_settings` when calling `update_worm_settings`") - resource_path = '/platform/1/worm/settings'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/1/worm/settings'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None if 'worm_settings' in params: @@ -513,13 +510,13 @@ def update_worm_settings(self, worm_settings, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/zones_api.py b/isi_sdk/apis/zones_api.py index 74bb96522..2366ddbc7 100644 --- a/isi_sdk/apis/zones_api.py +++ b/isi_sdk/apis/zones_api.py @@ -2,7 +2,7 @@ """ ZonesApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -45,10 +46,10 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def list_zones(self, **kwargs): + def create_zone(self, zone, **kwargs): """ - List all access zones. + Create a new access zone. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -56,16 +57,17 @@ def list_zones(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_zones(callback=callback_function) + >>> thread = api.create_zone(zone, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: Zones + :param ZoneCreateParams zone: (required) + :return: CreateResponse If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['zone'] all_params.append('callback') params = locals() @@ -73,25 +75,29 @@ def list_zones(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_zones" % key + " to method create_zone" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'zone' is set + if ('zone' not in params) or (params['zone'] is None): + raise ValueError("Missing the required parameter `zone` when calling `create_zone`") - resource_path = '/platform/3/zones'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/zones'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'zone' in params: + body_params = params['zone'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -106,22 +112,22 @@ def list_zones(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='Zones', + files=local_var_files, + response_type='CreateResponse', auth_settings=auth_settings, callback=params.get('callback')) return response - def create_zone(self, zone, **kwargs): + def delete_zone(self, zone_id, **kwargs): """ - Create a new access zone. + Delete the access zone. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -129,17 +135,17 @@ def create_zone(self, zone, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_zone(zone, callback=callback_function) + >>> thread = api.delete_zone(zone_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ZoneCreateParams zone: (required) - :return: CreateResponse + :param int zone_id: Delete the access zone. (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['zone'] + all_params = ['zone_id'] all_params.append('callback') params = locals() @@ -147,30 +153,29 @@ def create_zone(self, zone, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method create_zone" % key + " to method delete_zone" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'zone' is set - if ('zone' not in params) or (params['zone'] is None): - raise ValueError("Missing the required parameter `zone` when calling `create_zone`") + # verify the required parameter 'zone_id' is set + if ('zone_id' not in params) or (params['zone_id'] is None): + raise ValueError("Missing the required parameter `zone_id` when calling `delete_zone`") - resource_path = '/platform/3/zones'.replace('{format}', 'json') - method = 'POST' + resource_path = '/platform/3/zones/{ZoneId}'.replace('{format}', 'json') path_params = {} + if 'zone_id' in params: + path_params['ZoneId'] = params['zone_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'zone' in params: - body_params = params['zone'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -185,14 +190,14 @@ def create_zone(self, zone, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type='CreateResponse', + files=local_var_files, + response_type=None, auth_settings=auth_settings, callback=params.get('callback')) return response @@ -235,9 +240,8 @@ def get_zone(self, zone_id, **kwargs): if ('zone_id' not in params) or (params['zone_id'] is None): raise ValueError("Missing the required parameter `zone_id` when calling `get_zone`") - resource_path = '/platform/3/zones/{ZoneId}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/3/zones/{ZoneId}'.replace('{format}', 'json') path_params = {} if 'zone_id' in params: path_params['ZoneId'] = params['zone_id'] @@ -246,8 +250,8 @@ def get_zone(self, zone_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -264,22 +268,22 @@ def get_zone(self, zone_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='Zones', auth_settings=auth_settings, callback=params.get('callback')) return response - def update_zone(self, zone, zone_id, **kwargs): + def list_zones(self, **kwargs): """ - Modify the access zone. All input fields are optional, but one or more must be supplied. + List all access zones. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -287,18 +291,16 @@ def update_zone(self, zone, zone_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_zone(zone, zone_id, callback=callback_function) + >>> thread = api.list_zones(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param Zone zone: (required) - :param int zone_id: Modify the access zone. All input fields are optional, but one or more must be supplied. (required) - :return: None + :return: Zones If the method is called asynchronously, returns the request thread. """ - all_params = ['zone', 'zone_id'] + all_params = [] all_params.append('callback') params = locals() @@ -306,35 +308,24 @@ def update_zone(self, zone, zone_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method update_zone" % key + " to method list_zones" % key ) params[key] = val del params['kwargs'] - # verify the required parameter 'zone' is set - if ('zone' not in params) or (params['zone'] is None): - raise ValueError("Missing the required parameter `zone` when calling `update_zone`") - # verify the required parameter 'zone_id' is set - if ('zone_id' not in params) or (params['zone_id'] is None): - raise ValueError("Missing the required parameter `zone_id` when calling `update_zone`") - resource_path = '/platform/3/zones/{ZoneId}'.replace('{format}', 'json') - method = 'PUT' + resource_path = '/platform/3/zones'.replace('{format}', 'json') path_params = {} - if 'zone_id' in params: - path_params['ZoneId'] = params['zone_id'] query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None - if 'zone' in params: - body_params = params['zone'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -349,22 +340,22 @@ def update_zone(self, zone, zone_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, - response_type=None, + files=local_var_files, + response_type='Zones', auth_settings=auth_settings, callback=params.get('callback')) return response - def delete_zone(self, zone_id, **kwargs): + def update_zone(self, zone, zone_id, **kwargs): """ - Delete the access zone. + Modify the access zone. All input fields are optional, but one or more must be supplied. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function @@ -372,17 +363,18 @@ def delete_zone(self, zone_id, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_zone(zone_id, callback=callback_function) + >>> thread = api.update_zone(zone, zone_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param int zone_id: Delete the access zone. (required) + :param Zone zone: (required) + :param int zone_id: Modify the access zone. All input fields are optional, but one or more must be supplied. (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['zone_id'] + all_params = ['zone', 'zone_id'] all_params.append('callback') params = locals() @@ -390,18 +382,20 @@ def delete_zone(self, zone_id, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_zone" % key + " to method update_zone" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'zone' is set + if ('zone' not in params) or (params['zone'] is None): + raise ValueError("Missing the required parameter `zone` when calling `update_zone`") # verify the required parameter 'zone_id' is set if ('zone_id' not in params) or (params['zone_id'] is None): - raise ValueError("Missing the required parameter `zone_id` when calling `delete_zone`") + raise ValueError("Missing the required parameter `zone_id` when calling `update_zone`") - resource_path = '/platform/3/zones/{ZoneId}'.replace('{format}', 'json') - method = 'DELETE' + resource_path = '/platform/3/zones/{ZoneId}'.replace('{format}', 'json') path_params = {} if 'zone_id' in params: path_params['ZoneId'] = params['zone_id'] @@ -410,10 +404,12 @@ def delete_zone(self, zone_id, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None + if 'zone' in params: + body_params = params['zone'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -428,13 +424,13 @@ def delete_zone(self, zone_id, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type=None, auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/apis/zones_summary_api.py b/isi_sdk/apis/zones_summary_api.py index 1b3252f13..8e2d9ff8e 100644 --- a/isi_sdk/apis/zones_summary_api.py +++ b/isi_sdk/apis/zones_summary_api.py @@ -2,7 +2,7 @@ """ ZonesSummaryApi.py -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import sys import os +import re # python 2 and python 3 compatibility library from six import iteritems @@ -79,17 +80,16 @@ def get_zones_summary(self, **kwargs): del params['kwargs'] - resource_path = '/platform/1/zones-summary'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/zones-summary'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -106,13 +106,13 @@ def get_zones_summary(self, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='ZonesSummaryExtended', auth_settings=auth_settings, callback=params.get('callback')) @@ -156,9 +156,8 @@ def get_zones_summary_zone(self, zones_summary_zone, **kwargs): if ('zones_summary_zone' not in params) or (params['zones_summary_zone'] is None): raise ValueError("Missing the required parameter `zones_summary_zone` when calling `get_zones_summary_zone`") - resource_path = '/platform/1/zones-summary/{ZonesSummaryZone}'.replace('{format}', 'json') - method = 'GET' + resource_path = '/platform/1/zones-summary/{ZonesSummaryZone}'.replace('{format}', 'json') path_params = {} if 'zones_summary_zone' in params: path_params['ZonesSummaryZone'] = params['zones_summary_zone'] @@ -167,8 +166,8 @@ def get_zones_summary_zone(self, zones_summary_zone, **kwargs): header_params = {} - form_params = {} - files = {} + form_params = [] + local_var_files = {} body_params = None @@ -185,13 +184,13 @@ def get_zones_summary_zone(self, zones_summary_zone, **kwargs): # Authentication setting auth_settings = ['basic_auth'] - response = self.api_client.call_api(resource_path, method, + response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, - files=files, + files=local_var_files, response_type='ZonesSummary', auth_settings=auth_settings, callback=params.get('callback')) diff --git a/isi_sdk/configuration.py b/isi_sdk/configuration.py index 0964f670a..423f43d73 100644 --- a/isi_sdk/configuration.py +++ b/isi_sdk/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/isi_sdk/models/__init__.py b/isi_sdk/models/__init__.py index ea378c2e0..596410c29 100644 --- a/isi_sdk/models/__init__.py +++ b/isi_sdk/models/__init__.py @@ -1,6 +1,12 @@ from __future__ import absolute_import # import models into model package +from .ads_provider_controllers import AdsProviderControllers +from .ads_provider_controllers_controller import AdsProviderControllersController +from .ads_provider_domains import AdsProviderDomains +from .ads_provider_domains_domain import AdsProviderDomainsDomain +from .ads_provider_search import AdsProviderSearch +from .ads_provider_search_object import AdsProviderSearchObject from .antivirus_policies import AntivirusPolicies from .antivirus_policies_extended import AntivirusPoliciesExtended from .antivirus_policy import AntivirusPolicy @@ -52,9 +58,9 @@ from .auth_users import AuthUsers from .auth_users_extended import AuthUsersExtended from .auth_wellknowns import AuthWellknowns -from .changelists_changelist_lins import ChangelistsChangelistLins -from .changelists_changelist_lins_ctime import ChangelistsChangelistLinsCtime -from .changelists_changelist_lins_extended import ChangelistsChangelistLinsExtended +from .changelist_lins import ChangelistLins +from .changelist_lins_ctime import ChangelistLinsCtime +from .changelist_lins_extended import ChangelistLinsExtended from .cloud_access import CloudAccess from .cloud_access_cluster import CloudAccessCluster from .cloud_access_extended import CloudAccessExtended @@ -84,6 +90,10 @@ from .cluster_add_node_item import ClusterAddNodeItem from .cluster_archive_item import ClusterArchiveItem from .cluster_assess_item import ClusterAssessItem +from .cluster_config import ClusterConfig +from .cluster_config_device import ClusterConfigDevice +from .cluster_config_onefs_version import ClusterConfigOnefsVersion +from .cluster_config_timezone import ClusterConfigTimezone from .cluster_email import ClusterEmail from .cluster_email_extended import ClusterEmailExtended from .cluster_email_settings import ClusterEmailSettings @@ -110,18 +120,21 @@ from .cluster_nodes_available_node import ClusterNodesAvailableNode from .cluster_nodes_error import ClusterNodesError from .cluster_nodes_extended import ClusterNodesExtended -from .cluster_nodes_lnn_firmware_status import ClusterNodesLnnFirmwareStatus from .cluster_nodes_onefs_version import ClusterNodesOnefsVersion from .cluster_owner import ClusterOwner from .cluster_patch_patche import ClusterPatchPatche from .cluster_retry_last_action_item import ClusterRetryLastActionItem from .cluster_statfs import ClusterStatfs from .cluster_time import ClusterTime +from .cluster_time_error import ClusterTimeError from .cluster_time_extended import ClusterTimeExtended +from .cluster_time_node import ClusterTimeNode from .cluster_timezone import ClusterTimezone from .cluster_timezone_extended import ClusterTimezoneExtended from .cluster_upgrade import ClusterUpgrade from .cluster_upgrade_item import ClusterUpgradeItem +from .cluster_version import ClusterVersion +from .cluster_version_node import ClusterVersionNode from .compatibilities_class_active import CompatibilitiesClassActive from .compatibilities_class_active_active_item import CompatibilitiesClassActiveActiveItem from .compatibilities_class_active_extended import CompatibilitiesClassActiveExtended @@ -154,10 +167,10 @@ from .create_response import CreateResponse from .create_snapshot_aliase_response import CreateSnapshotAliaseResponse from .create_snapshot_changelist_response import CreateSnapshotChangelistResponse +from .create_snapshot_lock_response import CreateSnapshotLockResponse from .create_snapshot_repstate_response import CreateSnapshotRepstateResponse from .create_snapshot_schedule_response import CreateSnapshotScheduleResponse from .create_snapshot_snapshot_response import CreateSnapshotSnapshotResponse -from .create_snapshots_sid_lock_response import CreateSnapshotsSidLockResponse from .create_storagepool_tier_response import CreateStoragepoolTierResponse from .create_sync_reports_rotate_item_response import CreateSyncReportsRotateItemResponse from .create_worm_domain_response import CreateWormDomainResponse @@ -173,6 +186,15 @@ from .dedupe_settings import DedupeSettings from .dedupe_settings_extended import DedupeSettingsExtended from .dedupe_settings_settings import DedupeSettingsSettings +from .drives_drive_firmware import DrivesDriveFirmware +from .drives_drive_firmware_node import DrivesDriveFirmwareNode +from .drives_drive_firmware_node_drive import DrivesDriveFirmwareNodeDrive +from .drives_drive_firmware_update import DrivesDriveFirmwareUpdate +from .drives_drive_firmware_update_item import DrivesDriveFirmwareUpdateItem +from .drives_drive_firmware_update_node import DrivesDriveFirmwareUpdateNode +from .drives_drive_firmware_update_node_status import DrivesDriveFirmwareUpdateNodeStatus +from .drives_drive_format_item import DrivesDriveFormatItem +from .drives_drive_purpose_item import DrivesDrivePurposeItem from .empty import Empty from .error import Error from .event_alert_condition import EventAlertCondition @@ -222,28 +244,13 @@ from .fsa_settings_settings import FsaSettingsSettings from .ftp_settings import FtpSettings from .ftp_settings_settings import FtpSettingsSettings -from .groupnets_groupnet_subnet import GroupnetsGroupnetSubnet -from .groupnets_groupnet_subnet_create_params import GroupnetsGroupnetSubnetCreateParams -from .groupnets_groupnet_subnets import GroupnetsGroupnetSubnets -from .groupnets_groupnet_subnets_extended import GroupnetsGroupnetSubnetsExtended -from .groupnets_groupnet_subnets_subnet import GroupnetsGroupnetSubnetsSubnet -from .groupnets_groupnet_subnets_subnet_pool import GroupnetsGroupnetSubnetsSubnetPool -from .groupnets_groupnet_subnets_subnet_pool_iface import GroupnetsGroupnetSubnetsSubnetPoolIface -from .groupnets_groupnet_subnets_subnet_pool_range import GroupnetsGroupnetSubnetsSubnetPoolRange -from .groupnets_groupnet_subnets_subnet_pool_static_route import GroupnetsGroupnetSubnetsSubnetPoolStaticRoute -from .groupnets_groupnet_subnets_subnet_pools import GroupnetsGroupnetSubnetsSubnetPools -from .groupnets_groupnet_subnets_subnet_pools_extended import GroupnetsGroupnetSubnetsSubnetPoolsExtended -from .groupnets_groupnet_subnets_subnet_pools_pool import GroupnetsGroupnetSubnetsSubnetPoolsPool -from .groupnets_groupnet_subnets_subnet_pools_pool_interfaces import GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfaces -from .groupnets_groupnet_subnets_subnet_pools_pool_interfaces_interface_item import GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfacesInterfaceItem -from .groupnets_groupnet_subnets_subnet_pools_pool_interfaces_interface_item_owner import GroupnetsGroupnetSubnetsSubnetPoolsPoolInterfacesInterfaceItemOwner -from .groupnets_groupnet_subnets_subnet_pools_pool_rule import GroupnetsGroupnetSubnetsSubnetPoolsPoolRule -from .groupnets_groupnet_subnets_subnet_pools_pool_rules import GroupnetsGroupnetSubnetsSubnetPoolsPoolRules -from .groupnets_groupnet_subnets_subnet_pools_pool_rules_extended import GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesExtended -from .groupnets_groupnet_subnets_subnet_pools_pool_rules_rule import GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesRule -from .groupnets_groupnet_subnets_subnet_pools_pool_sc_resume_node import GroupnetsGroupnetSubnetsSubnetPoolsPoolScResumeNode -from .groups_group_member import GroupsGroupMember -from .groups_group_members import GroupsGroupMembers +from .group_member import GroupMember +from .group_members import GroupMembers +from .groupnet_subnet import GroupnetSubnet +from .groupnet_subnet_create_params import GroupnetSubnetCreateParams +from .groupnet_subnet_extended import GroupnetSubnetExtended +from .groupnet_subnets import GroupnetSubnets +from .groupnet_subnets_extended import GroupnetSubnetsExtended from .hardening_apply_item import HardeningApplyItem from .hardening_resolve_item import HardeningResolveItem from .hardening_state import HardeningState @@ -351,6 +358,7 @@ from .network_groupnets_extended import NetworkGroupnetsExtended from .network_pools import NetworkPools from .network_rules import NetworkRules +from .network_subnet import NetworkSubnet from .network_subnets import NetworkSubnets from .nfs_aliase import NfsAliase from .nfs_aliase_extended import NfsAliaseExtended @@ -361,6 +369,7 @@ from .nfs_export import NfsExport from .nfs_export_extended import NfsExportExtended from .nfs_export_map_all import NfsExportMapAll +from .nfs_export_map_all_secondary_groups import NfsExportMapAllSecondaryGroups from .nfs_exports import NfsExports from .nfs_exports_extended import NfsExportsExtended from .nfs_exports_summary import NfsExportsSummary @@ -379,57 +388,46 @@ from .nfs_settings_global_settings import NfsSettingsGlobalSettings from .nfs_settings_zone import NfsSettingsZone from .nfs_settings_zone_settings import NfsSettingsZoneSettings -from .nodes_lnn_drives import NodesLnnDrives -from .nodes_lnn_drives_driveid_firmware import NodesLnnDrivesDriveidFirmware -from .nodes_lnn_drives_driveid_firmware_node import NodesLnnDrivesDriveidFirmwareNode -from .nodes_lnn_drives_driveid_firmware_node_drive import NodesLnnDrivesDriveidFirmwareNodeDrive -from .nodes_lnn_drives_driveid_firmware_update import NodesLnnDrivesDriveidFirmwareUpdate -from .nodes_lnn_drives_driveid_firmware_update_item import NodesLnnDrivesDriveidFirmwareUpdateItem -from .nodes_lnn_drives_driveid_firmware_update_node import NodesLnnDrivesDriveidFirmwareUpdateNode -from .nodes_lnn_drives_driveid_firmware_update_node_status import NodesLnnDrivesDriveidFirmwareUpdateNodeStatus -from .nodes_lnn_drives_driveid_format_item import NodesLnnDrivesDriveidFormatItem -from .nodes_lnn_drives_driveid_purpose_item import NodesLnnDrivesDriveidPurposeItem -from .nodes_lnn_drives_node import NodesLnnDrivesNode -from .nodes_lnn_drives_node_drive import NodesLnnDrivesNodeDrive -from .nodes_lnn_drives_node_drive_firmware import NodesLnnDrivesNodeDriveFirmware -from .nodes_lnn_drives_purposelist import NodesLnnDrivesPurposelist -from .nodes_lnn_drives_purposelist_node import NodesLnnDrivesPurposelistNode -from .nodes_lnn_drives_purposelist_node_purpose import NodesLnnDrivesPurposelistNodePurpose -from .nodes_lnn_hardware import NodesLnnHardware -from .nodes_lnn_hardware_node import NodesLnnHardwareNode -from .nodes_lnn_partitions import NodesLnnPartitions -from .nodes_lnn_partitions_node import NodesLnnPartitionsNode -from .nodes_lnn_partitions_node_partition import NodesLnnPartitionsNodePartition -from .nodes_lnn_partitions_node_partition_statfs import NodesLnnPartitionsNodePartitionStatfs -from .nodes_lnn_sensors import NodesLnnSensors -from .nodes_lnn_sensors_node import NodesLnnSensorsNode -from .nodes_lnn_sensors_node_sensor import NodesLnnSensorsNodeSensor -from .nodes_lnn_sensors_node_sensor_value import NodesLnnSensorsNodeSensorValue -from .nodes_lnn_state import NodesLnnState -from .nodes_lnn_state_node import NodesLnnStateNode -from .nodes_lnn_state_node_readonly import NodesLnnStateNodeReadonly -from .nodes_lnn_state_node_servicelight import NodesLnnStateNodeServicelight -from .nodes_lnn_state_node_smartfail import NodesLnnStateNodeSmartfail -from .nodes_lnn_state_readonly import NodesLnnStateReadonly -from .nodes_lnn_state_readonly_extended import NodesLnnStateReadonlyExtended -from .nodes_lnn_state_readonly_node import NodesLnnStateReadonlyNode -from .nodes_lnn_state_servicelight import NodesLnnStateServicelight -from .nodes_lnn_state_servicelight_extended import NodesLnnStateServicelightExtended -from .nodes_lnn_state_servicelight_node import NodesLnnStateServicelightNode -from .nodes_lnn_state_smartfail import NodesLnnStateSmartfail -from .nodes_lnn_state_smartfail_extended import NodesLnnStateSmartfailExtended -from .nodes_lnn_state_smartfail_node import NodesLnnStateSmartfailNode -from .nodes_lnn_status import NodesLnnStatus -from .nodes_lnn_status_batterystatus import NodesLnnStatusBatterystatus -from .nodes_lnn_status_batterystatus_node import NodesLnnStatusBatterystatusNode -from .nodes_lnn_status_node import NodesLnnStatusNode -from .nodes_lnn_status_node_batterystatus import NodesLnnStatusNodeBatterystatus -from .nodes_lnn_status_node_capacity_item import NodesLnnStatusNodeCapacityItem -from .nodes_lnn_status_node_cpu import NodesLnnStatusNodeCpu -from .nodes_lnn_status_node_nvram import NodesLnnStatusNodeNvram -from .nodes_lnn_status_node_nvram_battery import NodesLnnStatusNodeNvramBattery -from .nodes_lnn_status_node_powersupplies import NodesLnnStatusNodePowersupplies -from .nodes_lnn_status_node_powersupplies_supply import NodesLnnStatusNodePowersuppliesSupply +from .node_drives import NodeDrives +from .node_drives_node import NodeDrivesNode +from .node_drives_node_drive import NodeDrivesNodeDrive +from .node_drives_node_drive_firmware import NodeDrivesNodeDriveFirmware +from .node_drives_purposelist import NodeDrivesPurposelist +from .node_drives_purposelist_node import NodeDrivesPurposelistNode +from .node_drives_purposelist_node_purpose import NodeDrivesPurposelistNodePurpose +from .node_hardware import NodeHardware +from .node_hardware_node import NodeHardwareNode +from .node_partitions import NodePartitions +from .node_partitions_node import NodePartitionsNode +from .node_partitions_node_partition import NodePartitionsNodePartition +from .node_partitions_node_partition_statfs import NodePartitionsNodePartitionStatfs +from .node_sensors import NodeSensors +from .node_sensors_node import NodeSensorsNode +from .node_sensors_node_sensor import NodeSensorsNodeSensor +from .node_sensors_node_sensor_value import NodeSensorsNodeSensorValue +from .node_state import NodeState +from .node_state_node import NodeStateNode +from .node_state_readonly import NodeStateReadonly +from .node_state_readonly_extended import NodeStateReadonlyExtended +from .node_state_readonly_node import NodeStateReadonlyNode +from .node_state_servicelight import NodeStateServicelight +from .node_state_servicelight_extended import NodeStateServicelightExtended +from .node_state_servicelight_node import NodeStateServicelightNode +from .node_state_smartfail import NodeStateSmartfail +from .node_state_smartfail_extended import NodeStateSmartfailExtended +from .node_state_smartfail_node import NodeStateSmartfailNode +from .node_status import NodeStatus +from .node_status_batterystatus import NodeStatusBatterystatus +from .node_status_batterystatus_node import NodeStatusBatterystatusNode +from .node_status_node import NodeStatusNode +from .node_status_node_batterystatus import NodeStatusNodeBatterystatus +from .node_status_node_capacity_item import NodeStatusNodeCapacityItem +from .node_status_node_cpu import NodeStatusNodeCpu +from .node_status_node_nvram import NodeStatusNodeNvram +from .node_status_node_nvram_battery import NodeStatusNodeNvramBattery +from .node_status_node_powersupplies import NodeStatusNodePowersupplies +from .node_status_node_powersupplies_supply import NodeStatusNodePowersuppliesSupply +from .nodes_node_firmware_status import NodesNodeFirmwareStatus from .ntp_server import NtpServer from .ntp_server_create_params import NtpServerCreateParams from .ntp_server_extended import NtpServerExtended @@ -437,16 +435,20 @@ from .ntp_servers_extended import NtpServersExtended from .ntp_settings import NtpSettings from .ntp_settings_settings import NtpSettingsSettings -from .providers_ad import ProvidersAd -from .providers_ad_create_params import ProvidersAdCreateParams -from .providers_ad_extended import ProvidersAdExtended +from .pools_pool_interfaces import PoolsPoolInterfaces +from .pools_pool_interfaces_interface_item import PoolsPoolInterfacesInterfaceItem +from .pools_pool_interfaces_interface_item_owner import PoolsPoolInterfacesInterfaceItemOwner +from .pools_pool_rule import PoolsPoolRule +from .pools_pool_rules import PoolsPoolRules +from .pools_pool_rules_extended import PoolsPoolRulesExtended +from .pools_pool_rules_rule import PoolsPoolRulesRule +from .pools_pool_sc_resume_node import PoolsPoolScResumeNode from .providers_ads import ProvidersAds -from .providers_ads_id_controllers import ProvidersAdsIdControllers -from .providers_ads_id_controllers_controller import ProvidersAdsIdControllersController -from .providers_ads_id_domains import ProvidersAdsIdDomains -from .providers_ads_id_domains_domain import ProvidersAdsIdDomainsDomain -from .providers_ads_id_search import ProvidersAdsIdSearch -from .providers_ads_id_search_object import ProvidersAdsIdSearchObject +from .providers_ads_ads_item import ProvidersAdsAdsItem +from .providers_ads_ads_item_extended import ProvidersAdsAdsItemExtended +from .providers_ads_extended import ProvidersAdsExtended +from .providers_ads_id_params import ProvidersAdsIdParams +from .providers_ads_item import ProvidersAdsItem from .providers_file import ProvidersFile from .providers_file_file_item import ProvidersFileFileItem from .providers_file_id_params import ProvidersFileIdParams @@ -464,13 +466,20 @@ from .providers_local import ProvidersLocal from .providers_local_id_params import ProvidersLocalIdParams from .providers_local_local_item import ProvidersLocalLocalItem -from .providers_ni import ProvidersNi -from .providers_ni_create_params import ProvidersNiCreateParams -from .providers_ni_extended import ProvidersNiExtended from .providers_nis import ProvidersNis +from .providers_nis_extended import ProvidersNisExtended +from .providers_nis_id_params import ProvidersNisIdParams +from .providers_nis_item import ProvidersNisItem +from .providers_nis_nis_item import ProvidersNisNisItem +from .providers_nis_nis_item_extended import ProvidersNisNisItemExtended from .providers_summary import ProvidersSummary from .providers_summary_provider_instance import ProvidersSummaryProviderInstance from .providers_summary_provider_instance_connection import ProvidersSummaryProviderInstanceConnection +from .quota_notification import QuotaNotification +from .quota_notification_create_params import QuotaNotificationCreateParams +from .quota_notification_extended import QuotaNotificationExtended +from .quota_notifications import QuotaNotifications +from .quota_notifications_extended import QuotaNotificationsExtended from .quota_quota import QuotaQuota from .quota_quota_create_params import QuotaQuotaCreateParams from .quota_quota_extended import QuotaQuotaExtended @@ -482,36 +491,35 @@ from .quota_quotas_summary import QuotaQuotasSummary from .quota_quotas_summary_summary import QuotaQuotasSummarySummary from .quota_reports import QuotaReports -from .quotas_qid_notification import QuotasQidNotification -from .quotas_qid_notification_create_params import QuotasQidNotificationCreateParams -from .quotas_qid_notifications import QuotasQidNotifications -from .quotas_qid_notifications_extended import QuotasQidNotificationsExtended -from .quotas_qid_notifications_notification import QuotasQidNotificationsNotification from .remotesupport_connectemc import RemotesupportConnectemc from .remotesupport_connectemc_connectemc import RemotesupportConnectemcConnectemc -from .reports_rid_about import ReportsRidAbout -from .reports_rid_about_report import ReportsRidAboutReport -from .reports_rid_subreports import ReportsRidSubreports -from .reports_rid_subreports_extended import ReportsRidSubreportsExtended -from .reports_rid_subreports_subreport import ReportsRidSubreportsSubreport -from .reports_rid_subreports_subreport_phase import ReportsRidSubreportsSubreportPhase -from .reports_rid_subreports_subreport_policy import ReportsRidSubreportsSubreportPolicy -from .reports_rid_subreports_subreport_policy_file_matching_pattern import ReportsRidSubreportsSubreportPolicyFileMatchingPattern -from .reports_rid_subreports_subreport_policy_file_matching_pattern_or_criteria_item import ReportsRidSubreportsSubreportPolicyFileMatchingPatternOrCriteriaItem -from .reports_rid_subreports_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item import ReportsRidSubreportsSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem +from .report_about import ReportAbout +from .report_about_report import ReportAboutReport +from .report_subreport import ReportSubreport +from .report_subreport_phase import ReportSubreportPhase +from .report_subreport_policy import ReportSubreportPolicy +from .report_subreport_policy_file_matching_pattern import ReportSubreportPolicyFileMatchingPattern +from .report_subreport_policy_file_matching_pattern_or_criteria_item import ReportSubreportPolicyFileMatchingPatternOrCriteriaItem +from .report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item import ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem +from .report_subreports import ReportSubreports +from .report_subreports_extended import ReportSubreportsExtended +from .reports_report_subreports import ReportsReportSubreports +from .reports_report_subreports_extended import ReportsReportSubreportsExtended +from .reports_report_subreports_subreport import ReportsReportSubreportsSubreport from .reports_scans import ReportsScans from .reports_scans_extended import ReportsScansExtended from .reports_scans_report import ReportsScansReport from .reports_threats import ReportsThreats from .reports_threats_extended import ReportsThreatsExtended from .reports_threats_report import ReportsThreatsReport -from .results_id_histogram import ResultsIdHistogram -from .results_id_histogram_histogram_item import ResultsIdHistogramHistogramItem -from .results_id_top_dirs import ResultsIdTopDirs -from .results_id_top_dirs_dir import ResultsIdTopDirsDir -from .results_id_top_files import ResultsIdTopFiles -from .results_id_top_files_file import ResultsIdTopFilesFile -from .roles_role_privileges import RolesRolePrivileges +from .result_directories_total_usage import ResultDirectoriesTotalUsage +from .result_histogram import ResultHistogram +from .result_histogram_histogram_item import ResultHistogramHistogramItem +from .result_top_dirs import ResultTopDirs +from .result_top_dirs_dir import ResultTopDirsDir +from .result_top_files import ResultTopFiles +from .result_top_files_file import ResultTopFilesFile +from .role_privileges import RolePrivileges from .settings_access_time import SettingsAccessTime from .settings_access_time_extended import SettingsAccessTimeExtended from .settings_access_time_settings import SettingsAccessTimeSettings @@ -532,12 +540,13 @@ from .settings_krb5_realms import SettingsKrb5Realms from .settings_krb5_realms_realm_item import SettingsKrb5RealmsRealmItem from .settings_mapping import SettingsMapping -from .settings_mapping_create_params import SettingsMappingCreateParams from .settings_mapping_extended import SettingsMappingExtended from .settings_mapping_mapping_settings import SettingsMappingMappingSettings from .settings_mappings import SettingsMappings from .settings_notification import SettingsNotification +from .settings_notification_create_params import SettingsNotificationCreateParams from .settings_notifications import SettingsNotifications +from .settings_notifications_extended import SettingsNotificationsExtended from .settings_reporting_eula_item import SettingsReportingEulaItem from .settings_reports import SettingsReports from .settings_reports_settings import SettingsReportsSettings @@ -570,6 +579,11 @@ from .snapshot_aliases_extended import SnapshotAliasesExtended from .snapshot_changelists import SnapshotChangelists from .snapshot_changelists_extended import SnapshotChangelistsExtended +from .snapshot_lock import SnapshotLock +from .snapshot_lock_create_params import SnapshotLockCreateParams +from .snapshot_lock_extended import SnapshotLockExtended +from .snapshot_locks import SnapshotLocks +from .snapshot_locks_extended import SnapshotLocksExtended from .snapshot_pending import SnapshotPending from .snapshot_pending_pending_item import SnapshotPendingPendingItem from .snapshot_repstates import SnapshotRepstates @@ -587,11 +601,6 @@ from .snapshot_snapshots_extended import SnapshotSnapshotsExtended from .snapshot_snapshots_summary import SnapshotSnapshotsSummary from .snapshot_snapshots_summary_summary import SnapshotSnapshotsSummarySummary -from .snapshots_sid_lock import SnapshotsSidLock -from .snapshots_sid_lock_create_params import SnapshotsSidLockCreateParams -from .snapshots_sid_locks import SnapshotsSidLocks -from .snapshots_sid_locks_extended import SnapshotsSidLocksExtended -from .snapshots_sid_locks_lock import SnapshotsSidLocksLock from .snmp_settings import SnmpSettings from .snmp_settings_extended import SnmpSettingsExtended from .snmp_settings_settings import SnmpSettingsSettings @@ -633,6 +642,13 @@ from .storagepool_tiers_extended import StoragepoolTiersExtended from .storagepool_unprovisioned import StoragepoolUnprovisioned from .storagepool_unprovisioned_unprovisioned_item import StoragepoolUnprovisionedUnprovisionedItem +from .subnets_subnet_pool import SubnetsSubnetPool +from .subnets_subnet_pool_iface import SubnetsSubnetPoolIface +from .subnets_subnet_pool_range import SubnetsSubnetPoolRange +from .subnets_subnet_pool_static_route import SubnetsSubnetPoolStaticRoute +from .subnets_subnet_pools import SubnetsSubnetPools +from .subnets_subnet_pools_extended import SubnetsSubnetPoolsExtended +from .subnets_subnet_pools_pool import SubnetsSubnetPoolsPool from .summary_client import SummaryClient from .summary_client_client_item import SummaryClientClientItem from .summary_drive import SummaryDrive @@ -678,9 +694,6 @@ from .target_report import TargetReport from .target_reports import TargetReports from .target_reports_extended import TargetReportsExtended -from .target_reports_rid_subreports import TargetReportsRidSubreports -from .target_reports_rid_subreports_extended import TargetReportsRidSubreportsExtended -from .target_reports_rid_subreports_subreport import TargetReportsRidSubreportsSubreport from .timezone_region import TimezoneRegion from .timezone_region_timezone import TimezoneRegionTimezone from .timezone_regions import TimezoneRegions @@ -688,8 +701,8 @@ from .upgrade_cluster import UpgradeCluster from .upgrade_cluster_cluster_overview import UpgradeClusterClusterOverview from .upgrade_cluster_upgrade_settings import UpgradeClusterUpgradeSettings -from .users_user_change_password import UsersUserChangePassword -from .users_user_member_of import UsersUserMemberOf +from .user_change_password import UserChangePassword +from .user_member_of import UserMemberOf from .worm_domain import WormDomain from .worm_domain_create_params import WormDomainCreateParams from .worm_domain_extended import WormDomainExtended @@ -706,4 +719,3 @@ from .zones_summary_extended import ZonesSummaryExtended from .zones_summary_summary import ZonesSummarySummary from .zones_summary_summary_extended import ZonesSummarySummaryExtended -from .nfs_export_map_all_secondary_groups import NfsExportMapAllSecondaryGroups diff --git a/isi_sdk/models/ads_provider_controllers.py b/isi_sdk/models/ads_provider_controllers.py new file mode 100644 index 000000000..d6cd84a8c --- /dev/null +++ b/isi_sdk/models/ads_provider_controllers.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class AdsProviderControllers(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + AdsProviderControllers - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'controllers': 'list[AdsProviderControllersController]' + } + + self.attribute_map = { + 'controllers': 'controllers' + } + + self._controllers = None + + @property + def controllers(self): + """ + Gets the controllers of this AdsProviderControllers. + + + :return: The controllers of this AdsProviderControllers. + :rtype: list[AdsProviderControllersController] + """ + return self._controllers + + @controllers.setter + def controllers(self, controllers): + """ + Sets the controllers of this AdsProviderControllers. + + + :param controllers: The controllers of this AdsProviderControllers. + :type: list[AdsProviderControllersController] + """ + + self._controllers = controllers + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/ads_provider_controllers_controller.py b/isi_sdk/models/ads_provider_controllers_controller.py new file mode 100644 index 000000000..0ecd135c8 --- /dev/null +++ b/isi_sdk/models/ads_provider_controllers_controller.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class AdsProviderControllersController(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + AdsProviderControllersController - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'dc_address': 'str', + 'dc_name': 'str', + 'id': 'str' + } + + self.attribute_map = { + 'dc_address': 'dc_address', + 'dc_name': 'dc_name', + 'id': 'id' + } + + self._dc_address = None + self._dc_name = None + self._id = None + + @property + def dc_address(self): + """ + Gets the dc_address of this AdsProviderControllersController. + Specifies the address for the domain controller. + + :return: The dc_address of this AdsProviderControllersController. + :rtype: str + """ + return self._dc_address + + @dc_address.setter + def dc_address(self, dc_address): + """ + Sets the dc_address of this AdsProviderControllersController. + Specifies the address for the domain controller. + + :param dc_address: The dc_address of this AdsProviderControllersController. + :type: str + """ + + self._dc_address = dc_address + + @property + def dc_name(self): + """ + Gets the dc_name of this AdsProviderControllersController. + Specifies the name of the domain controller. + + :return: The dc_name of this AdsProviderControllersController. + :rtype: str + """ + return self._dc_name + + @dc_name.setter + def dc_name(self, dc_name): + """ + Sets the dc_name of this AdsProviderControllersController. + Specifies the name of the domain controller. + + :param dc_name: The dc_name of this AdsProviderControllersController. + :type: str + """ + + self._dc_name = dc_name + + @property + def id(self): + """ + Gets the id of this AdsProviderControllersController. + Specifies the address for the domain controller. This value is the same as the 'dc_address' value. + + :return: The id of this AdsProviderControllersController. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this AdsProviderControllersController. + Specifies the address for the domain controller. This value is the same as the 'dc_address' value. + + :param id: The id of this AdsProviderControllersController. + :type: str + """ + + self._id = id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/ads_provider_domains.py b/isi_sdk/models/ads_provider_domains.py new file mode 100644 index 000000000..c9bb7fbae --- /dev/null +++ b/isi_sdk/models/ads_provider_domains.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class AdsProviderDomains(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + AdsProviderDomains - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'domains': 'list[AdsProviderDomainsDomain]' + } + + self.attribute_map = { + 'domains': 'domains' + } + + self._domains = None + + @property + def domains(self): + """ + Gets the domains of this AdsProviderDomains. + + + :return: The domains of this AdsProviderDomains. + :rtype: list[AdsProviderDomainsDomain] + """ + return self._domains + + @domains.setter + def domains(self, domains): + """ + Sets the domains of this AdsProviderDomains. + + + :param domains: The domains of this AdsProviderDomains. + :type: list[AdsProviderDomainsDomain] + """ + + self._domains = domains + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/ads_provider_domains_domain.py b/isi_sdk/models/ads_provider_domains_domain.py new file mode 100644 index 000000000..398e55785 --- /dev/null +++ b/isi_sdk/models/ads_provider_domains_domain.py @@ -0,0 +1,382 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class AdsProviderDomainsDomain(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + AdsProviderDomainsDomain - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'client_site': 'str', + 'dc_address': 'str', + 'dc_name': 'str', + 'dc_site': 'str', + 'domain': 'str', + 'guid': 'str', + 'id': 'str', + 'netbios_name': 'str', + 'sid': 'str', + 'status': 'str', + 'trust_type': 'str' + } + + self.attribute_map = { + 'client_site': 'client_site', + 'dc_address': 'dc_address', + 'dc_name': 'dc_name', + 'dc_site': 'dc_site', + 'domain': 'domain', + 'guid': 'guid', + 'id': 'id', + 'netbios_name': 'netbios_name', + 'sid': 'sid', + 'status': 'status', + 'trust_type': 'trust_type' + } + + self._client_site = None + self._dc_address = None + self._dc_name = None + self._dc_site = None + self._domain = None + self._guid = None + self._id = None + self._netbios_name = None + self._sid = None + self._status = None + self._trust_type = None + + @property + def client_site(self): + """ + Gets the client_site of this AdsProviderDomainsDomain. + The Nodes Site. + + :return: The client_site of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._client_site + + @client_site.setter + def client_site(self, client_site): + """ + Sets the client_site of this AdsProviderDomainsDomain. + The Nodes Site. + + :param client_site: The client_site of this AdsProviderDomainsDomain. + :type: str + """ + + self._client_site = client_site + + @property + def dc_address(self): + """ + Gets the dc_address of this AdsProviderDomainsDomain. + Specifies the address for the domain controller. + + :return: The dc_address of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._dc_address + + @dc_address.setter + def dc_address(self, dc_address): + """ + Sets the dc_address of this AdsProviderDomainsDomain. + Specifies the address for the domain controller. + + :param dc_address: The dc_address of this AdsProviderDomainsDomain. + :type: str + """ + + self._dc_address = dc_address + + @property + def dc_name(self): + """ + Gets the dc_name of this AdsProviderDomainsDomain. + Specifies the name for the domain controller. + + :return: The dc_name of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._dc_name + + @dc_name.setter + def dc_name(self, dc_name): + """ + Sets the dc_name of this AdsProviderDomainsDomain. + Specifies the name for the domain controller. + + :param dc_name: The dc_name of this AdsProviderDomainsDomain. + :type: str + """ + + self._dc_name = dc_name + + @property + def dc_site(self): + """ + Gets the dc_site of this AdsProviderDomainsDomain. + Specifies the site for the domain controller. + + :return: The dc_site of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._dc_site + + @dc_site.setter + def dc_site(self, dc_site): + """ + Sets the dc_site of this AdsProviderDomainsDomain. + Specifies the site for the domain controller. + + :param dc_site: The dc_site of this AdsProviderDomainsDomain. + :type: str + """ + + self._dc_site = dc_site + + @property + def domain(self): + """ + Gets the domain of this AdsProviderDomainsDomain. + Specifies the name of the domain. + + :return: The domain of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """ + Sets the domain of this AdsProviderDomainsDomain. + Specifies the name of the domain. + + :param domain: The domain of this AdsProviderDomainsDomain. + :type: str + """ + + self._domain = domain + + @property + def guid(self): + """ + Gets the guid of this AdsProviderDomainsDomain. + Specifies the globally unique ID for the domain. + + :return: The guid of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this AdsProviderDomainsDomain. + Specifies the globally unique ID for the domain. + + :param guid: The guid of this AdsProviderDomainsDomain. + :type: str + """ + + self._guid = guid + + @property + def id(self): + """ + Gets the id of this AdsProviderDomainsDomain. + Specifies a unique identifier for every domain returned. + + :return: The id of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this AdsProviderDomainsDomain. + Specifies a unique identifier for every domain returned. + + :param id: The id of this AdsProviderDomainsDomain. + :type: str + """ + + self._id = id + + @property + def netbios_name(self): + """ + Gets the netbios_name of this AdsProviderDomainsDomain. + Specifies the NetBIOS name for the domain. + + :return: The netbios_name of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._netbios_name + + @netbios_name.setter + def netbios_name(self, netbios_name): + """ + Sets the netbios_name of this AdsProviderDomainsDomain. + Specifies the NetBIOS name for the domain. + + :param netbios_name: The netbios_name of this AdsProviderDomainsDomain. + :type: str + """ + + self._netbios_name = netbios_name + + @property + def sid(self): + """ + Gets the sid of this AdsProviderDomainsDomain. + Specifies the security ID for the domain. + + :return: The sid of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._sid + + @sid.setter + def sid(self, sid): + """ + Sets the sid of this AdsProviderDomainsDomain. + Specifies the security ID for the domain. + + :param sid: The sid of this AdsProviderDomainsDomain. + :type: str + """ + + self._sid = sid + + @property + def status(self): + """ + Gets the status of this AdsProviderDomainsDomain. + Specifies the status of the domain. + + :return: The status of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this AdsProviderDomainsDomain. + Specifies the status of the domain. + + :param status: The status of this AdsProviderDomainsDomain. + :type: str + """ + + self._status = status + + @property + def trust_type(self): + """ + Gets the trust_type of this AdsProviderDomainsDomain. + Specifies the type of trust for this domain. Options include 'primary', 'unknown', 'external', and 'forest'. + + :return: The trust_type of this AdsProviderDomainsDomain. + :rtype: str + """ + return self._trust_type + + @trust_type.setter + def trust_type(self, trust_type): + """ + Sets the trust_type of this AdsProviderDomainsDomain. + Specifies the type of trust for this domain. Options include 'primary', 'unknown', 'external', and 'forest'. + + :param trust_type: The trust_type of this AdsProviderDomainsDomain. + :type: str + """ + + self._trust_type = trust_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/ads_provider_search.py b/isi_sdk/models/ads_provider_search.py new file mode 100644 index 000000000..28ded5cbf --- /dev/null +++ b/isi_sdk/models/ads_provider_search.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class AdsProviderSearch(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + AdsProviderSearch - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'objects': 'list[AdsProviderSearchObject]', + 'resume': 'str' + } + + self.attribute_map = { + 'objects': 'objects', + 'resume': 'resume' + } + + self._objects = None + self._resume = None + + @property + def objects(self): + """ + Gets the objects of this AdsProviderSearch. + + + :return: The objects of this AdsProviderSearch. + :rtype: list[AdsProviderSearchObject] + """ + return self._objects + + @objects.setter + def objects(self, objects): + """ + Sets the objects of this AdsProviderSearch. + + + :param objects: The objects of this AdsProviderSearch. + :type: list[AdsProviderSearchObject] + """ + + self._objects = objects + + @property + def resume(self): + """ + Gets the resume of this AdsProviderSearch. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this AdsProviderSearch. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this AdsProviderSearch. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this AdsProviderSearch. + :type: str + """ + + self._resume = resume + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/ads_provider_search_object.py b/isi_sdk/models/ads_provider_search_object.py new file mode 100644 index 000000000..b803f76af --- /dev/null +++ b/isi_sdk/models/ads_provider_search_object.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class AdsProviderSearchObject(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + AdsProviderSearchObject - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'display_name': 'str', + 'id': 'GroupMember' + } + + self.attribute_map = { + 'description': 'description', + 'display_name': 'display_name', + 'id': 'id' + } + + self._description = None + self._display_name = None + self._id = None + + @property + def description(self): + """ + Gets the description of this AdsProviderSearchObject. + + + :return: The description of this AdsProviderSearchObject. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this AdsProviderSearchObject. + + + :param description: The description of this AdsProviderSearchObject. + :type: str + """ + + self._description = description + + @property + def display_name(self): + """ + Gets the display_name of this AdsProviderSearchObject. + + + :return: The display_name of this AdsProviderSearchObject. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this AdsProviderSearchObject. + + + :param display_name: The display_name of this AdsProviderSearchObject. + :type: str + """ + + self._display_name = display_name + + @property + def id(self): + """ + Gets the id of this AdsProviderSearchObject. + Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. + + :return: The id of this AdsProviderSearchObject. + :rtype: GroupMember + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this AdsProviderSearchObject. + Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. + + :param id: The id of this AdsProviderSearchObject. + :type: GroupMember + """ + + self._id = id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/antivirus_policies.py b/isi_sdk/models/antivirus_policies.py index dfa5eae66..047028104 100644 --- a/isi_sdk/models/antivirus_policies.py +++ b/isi_sdk/models/antivirus_policies.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusPolicies(object): @@ -66,6 +67,7 @@ def policies(self, policies): :param policies: The policies of this AntivirusPolicies. :type: list[AntivirusPolicyExtended] """ + self._policies = policies def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_policies_extended.py b/isi_sdk/models/antivirus_policies_extended.py index 6cd42980d..945551ef3 100644 --- a/isi_sdk/models/antivirus_policies_extended.py +++ b/isi_sdk/models/antivirus_policies_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusPoliciesExtended(object): @@ -72,6 +73,7 @@ def policies(self, policies): :param policies: The policies of this AntivirusPoliciesExtended. :type: list[AntivirusPolicyExtended] """ + self._policies = policies @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this AntivirusPoliciesExtended. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this AntivirusPoliciesExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_policy.py b/isi_sdk/models/antivirus_policy.py index a28a41bb7..0360d3d39 100644 --- a/isi_sdk/models/antivirus_policy.py +++ b/isi_sdk/models/antivirus_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusPolicy(object): @@ -87,6 +88,7 @@ def description(self, description): :param description: The description of this AntivirusPolicy. :type: str """ + self._description = description @property @@ -109,6 +111,7 @@ def enabled(self, enabled): :param enabled: The enabled of this AntivirusPolicy. :type: bool """ + self._enabled = enabled @property @@ -131,6 +134,7 @@ def force_run(self, force_run): :param force_run: The force_run of this AntivirusPolicy. :type: bool """ + self._force_run = force_run @property @@ -153,6 +157,7 @@ def impact(self, impact): :param impact: The impact of this AntivirusPolicy. :type: str """ + self._impact = impact @property @@ -175,6 +180,7 @@ def name(self, name): :param name: The name of this AntivirusPolicy. :type: str """ + self._name = name @property @@ -197,6 +203,7 @@ def paths(self, paths): :param paths: The paths of this AntivirusPolicy. :type: list[str] """ + self._paths = paths @property @@ -219,6 +226,7 @@ def recursion_depth(self, recursion_depth): :param recursion_depth: The recursion_depth of this AntivirusPolicy. :type: int """ + self._recursion_depth = recursion_depth @property @@ -241,6 +249,7 @@ def schedule(self, schedule): :param schedule: The schedule of this AntivirusPolicy. :type: str """ + self._schedule = schedule def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_policy_extended.py b/isi_sdk/models/antivirus_policy_extended.py index 6a069518b..916457a40 100644 --- a/isi_sdk/models/antivirus_policy_extended.py +++ b/isi_sdk/models/antivirus_policy_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusPolicyExtended(object): @@ -37,107 +38,110 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'schedule': 'str', - 'recursion_depth': 'int', - 'paths': 'list[str]', + 'description': 'str', + 'enabled': 'bool', + 'force_run': 'bool', 'impact': 'str', 'name': 'str', - 'description': 'str', - 'last_run': 'int', + 'paths': 'list[str]', + 'recursion_depth': 'int', + 'schedule': 'str', 'id': 'str', - 'enabled': 'bool', - 'force_run': 'bool' + 'last_run': 'int' } self.attribute_map = { - 'schedule': 'schedule', - 'recursion_depth': 'recursion_depth', - 'paths': 'paths', + 'description': 'description', + 'enabled': 'enabled', + 'force_run': 'force_run', 'impact': 'impact', 'name': 'name', - 'description': 'description', - 'last_run': 'last_run', + 'paths': 'paths', + 'recursion_depth': 'recursion_depth', + 'schedule': 'schedule', 'id': 'id', - 'enabled': 'enabled', - 'force_run': 'force_run' + 'last_run': 'last_run' } - self._schedule = None - self._recursion_depth = None - self._paths = None - self._impact = None - self._name = None self._description = None - self._last_run = None - self._id = None self._enabled = None self._force_run = None + self._impact = None + self._name = None + self._paths = None + self._recursion_depth = None + self._schedule = None + self._id = None + self._last_run = None @property - def schedule(self): + def description(self): """ - Gets the schedule of this AntivirusPolicyExtended. - The schedule for running scans in isi date format. Examples include: 'every Friday' or 'every day at 4:00'. A null value means the policy is manually scheduled. + Gets the description of this AntivirusPolicyExtended. + A description for the policy. - :return: The schedule of this AntivirusPolicyExtended. + :return: The description of this AntivirusPolicyExtended. :rtype: str """ - return self._schedule + return self._description - @schedule.setter - def schedule(self, schedule): + @description.setter + def description(self, description): """ - Sets the schedule of this AntivirusPolicyExtended. - The schedule for running scans in isi date format. Examples include: 'every Friday' or 'every day at 4:00'. A null value means the policy is manually scheduled. + Sets the description of this AntivirusPolicyExtended. + A description for the policy. - :param schedule: The schedule of this AntivirusPolicyExtended. + :param description: The description of this AntivirusPolicyExtended. :type: str """ - self._schedule = schedule + + self._description = description @property - def recursion_depth(self): + def enabled(self): """ - Gets the recursion_depth of this AntivirusPolicyExtended. - The depth to recurse in directories. The default of -1 gives unlimited recursion. + Gets the enabled of this AntivirusPolicyExtended. + Whether the policy is enabled. - :return: The recursion_depth of this AntivirusPolicyExtended. - :rtype: int + :return: The enabled of this AntivirusPolicyExtended. + :rtype: bool """ - return self._recursion_depth + return self._enabled - @recursion_depth.setter - def recursion_depth(self, recursion_depth): + @enabled.setter + def enabled(self, enabled): """ - Sets the recursion_depth of this AntivirusPolicyExtended. - The depth to recurse in directories. The default of -1 gives unlimited recursion. + Sets the enabled of this AntivirusPolicyExtended. + Whether the policy is enabled. - :param recursion_depth: The recursion_depth of this AntivirusPolicyExtended. - :type: int + :param enabled: The enabled of this AntivirusPolicyExtended. + :type: bool """ - self._recursion_depth = recursion_depth + + self._enabled = enabled @property - def paths(self): + def force_run(self): """ - Gets the paths of this AntivirusPolicyExtended. - Paths to include in the scan. + Gets the force_run of this AntivirusPolicyExtended. + Forces the scan to run regardless of whether the files were recently scanned. - :return: The paths of this AntivirusPolicyExtended. - :rtype: list[str] + :return: The force_run of this AntivirusPolicyExtended. + :rtype: bool """ - return self._paths + return self._force_run - @paths.setter - def paths(self, paths): + @force_run.setter + def force_run(self, force_run): """ - Sets the paths of this AntivirusPolicyExtended. - Paths to include in the scan. + Sets the force_run of this AntivirusPolicyExtended. + Forces the scan to run regardless of whether the files were recently scanned. - :param paths: The paths of this AntivirusPolicyExtended. - :type: list[str] + :param force_run: The force_run of this AntivirusPolicyExtended. + :type: bool """ - self._paths = paths + + self._force_run = force_run @property def impact(self): @@ -159,6 +163,7 @@ def impact(self, impact): :param impact: The impact of this AntivirusPolicyExtended. :type: str """ + self._impact = impact @property @@ -181,51 +186,77 @@ def name(self, name): :param name: The name of this AntivirusPolicyExtended. :type: str """ + self._name = name @property - def description(self): + def paths(self): """ - Gets the description of this AntivirusPolicyExtended. - A description for the policy. + Gets the paths of this AntivirusPolicyExtended. + Paths to include in the scan. - :return: The description of this AntivirusPolicyExtended. - :rtype: str + :return: The paths of this AntivirusPolicyExtended. + :rtype: list[str] """ - return self._description + return self._paths - @description.setter - def description(self, description): + @paths.setter + def paths(self, paths): """ - Sets the description of this AntivirusPolicyExtended. - A description for the policy. + Sets the paths of this AntivirusPolicyExtended. + Paths to include in the scan. - :param description: The description of this AntivirusPolicyExtended. - :type: str + :param paths: The paths of this AntivirusPolicyExtended. + :type: list[str] """ - self._description = description + + self._paths = paths @property - def last_run(self): + def recursion_depth(self): """ - Gets the last_run of this AntivirusPolicyExtended. - The epoch time of the last run of this policy. + Gets the recursion_depth of this AntivirusPolicyExtended. + The depth to recurse in directories. The default of -1 gives unlimited recursion. - :return: The last_run of this AntivirusPolicyExtended. + :return: The recursion_depth of this AntivirusPolicyExtended. :rtype: int """ - return self._last_run + return self._recursion_depth - @last_run.setter - def last_run(self, last_run): + @recursion_depth.setter + def recursion_depth(self, recursion_depth): """ - Sets the last_run of this AntivirusPolicyExtended. - The epoch time of the last run of this policy. + Sets the recursion_depth of this AntivirusPolicyExtended. + The depth to recurse in directories. The default of -1 gives unlimited recursion. - :param last_run: The last_run of this AntivirusPolicyExtended. + :param recursion_depth: The recursion_depth of this AntivirusPolicyExtended. :type: int """ - self._last_run = last_run + + self._recursion_depth = recursion_depth + + @property + def schedule(self): + """ + Gets the schedule of this AntivirusPolicyExtended. + The schedule for running scans in isi date format. Examples include: 'every Friday' or 'every day at 4:00'. A null value means the policy is manually scheduled. + + :return: The schedule of this AntivirusPolicyExtended. + :rtype: str + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this AntivirusPolicyExtended. + The schedule for running scans in isi date format. Examples include: 'every Friday' or 'every day at 4:00'. A null value means the policy is manually scheduled. + + :param schedule: The schedule of this AntivirusPolicyExtended. + :type: str + """ + + self._schedule = schedule @property def id(self): @@ -247,51 +278,31 @@ def id(self, id): :param id: The id of this AntivirusPolicyExtended. :type: str """ + self._id = id @property - def enabled(self): - """ - Gets the enabled of this AntivirusPolicyExtended. - Whether the policy is enabled. - - :return: The enabled of this AntivirusPolicyExtended. - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """ - Sets the enabled of this AntivirusPolicyExtended. - Whether the policy is enabled. - - :param enabled: The enabled of this AntivirusPolicyExtended. - :type: bool - """ - self._enabled = enabled - - @property - def force_run(self): + def last_run(self): """ - Gets the force_run of this AntivirusPolicyExtended. - Forces the scan to run regardless of whether the files were recently scanned. + Gets the last_run of this AntivirusPolicyExtended. + The epoch time of the last run of this policy. - :return: The force_run of this AntivirusPolicyExtended. - :rtype: bool + :return: The last_run of this AntivirusPolicyExtended. + :rtype: int """ - return self._force_run + return self._last_run - @force_run.setter - def force_run(self, force_run): + @last_run.setter + def last_run(self, last_run): """ - Sets the force_run of this AntivirusPolicyExtended. - Forces the scan to run regardless of whether the files were recently scanned. + Sets the last_run of this AntivirusPolicyExtended. + The epoch time of the last run of this policy. - :param force_run: The force_run of this AntivirusPolicyExtended. - :type: bool + :param last_run: The last_run of this AntivirusPolicyExtended. + :type: int """ - self._force_run = force_run + + self._last_run = last_run def to_dict(self): """ @@ -308,6 +319,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -325,14 +342,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_quarantine.py b/isi_sdk/models/antivirus_quarantine.py index ae2f55b1e..11553a981 100644 --- a/isi_sdk/models/antivirus_quarantine.py +++ b/isi_sdk/models/antivirus_quarantine.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusQuarantine(object): @@ -81,6 +82,7 @@ def file(self, file): :param file: The file of this AntivirusQuarantine. :type: str """ + self._file = file @property @@ -103,6 +105,7 @@ def last_istag(self, last_istag): :param last_istag: The last_istag of this AntivirusQuarantine. :type: str """ + self._last_istag = last_istag @property @@ -125,6 +128,7 @@ def last_scan(self, last_scan): :param last_scan: The last_scan of this AntivirusQuarantine. :type: int """ + self._last_scan = last_scan @property @@ -147,6 +151,7 @@ def quarantined(self, quarantined): :param quarantined: The quarantined of this AntivirusQuarantine. :type: bool """ + self._quarantined = quarantined @property @@ -169,6 +174,7 @@ def scan_result(self, scan_result): :param scan_result: The scan_result of this AntivirusQuarantine. :type: str """ + self._scan_result = scan_result @property @@ -197,6 +203,7 @@ def scan_status(self, scan_status): "Invalid value for `scan_status`, must be one of {0}" .format(allowed_values) ) + self._scan_status = scan_status def to_dict(self): @@ -214,6 +221,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -231,14 +244,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_quarantine_path_params.py b/isi_sdk/models/antivirus_quarantine_path_params.py index db8da7908..2339aad7c 100644 --- a/isi_sdk/models/antivirus_quarantine_path_params.py +++ b/isi_sdk/models/antivirus_quarantine_path_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusQuarantinePathParams(object): @@ -66,6 +67,7 @@ def quarantined(self, quarantined): :param quarantined: The quarantined of this AntivirusQuarantinePathParams. :type: bool """ + self._quarantined = quarantined def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_scan_item.py b/isi_sdk/models/antivirus_scan_item.py index 677a391e2..e3e1375fc 100644 --- a/isi_sdk/models/antivirus_scan_item.py +++ b/isi_sdk/models/antivirus_scan_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusScanItem(object): @@ -75,6 +76,12 @@ def file(self, file): :param file: The file of this AntivirusScanItem. :type: str """ + + if not file: + raise ValueError("Invalid value for `file`, must not be `None`") + if len(file) < 1: + raise ValueError("Invalid value for `file`, length must be greater than or equal to `1`") + self._file = file @property @@ -97,6 +104,7 @@ def force_run(self, force_run): :param force_run: The force_run of this AntivirusScanItem. :type: bool """ + self._force_run = force_run @property @@ -119,6 +127,12 @@ def policy(self, policy): :param policy: The policy of this AntivirusScanItem. :type: str """ + + if not policy: + raise ValueError("Invalid value for `policy`, must not be `None`") + if len(policy) < 1: + raise ValueError("Invalid value for `policy`, length must be greater than or equal to `1`") + self._policy = policy @property @@ -141,6 +155,12 @@ def report_id(self, report_id): :param report_id: The report_id of this AntivirusScanItem. :type: str """ + + if not report_id: + raise ValueError("Invalid value for `report_id`, must not be `None`") + if len(report_id) < 1: + raise ValueError("Invalid value for `report_id`, length must be greater than or equal to `1`") + self._report_id = report_id def to_dict(self): @@ -158,6 +178,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +201,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_server.py b/isi_sdk/models/antivirus_server.py index 51248fc12..3cc6fd014 100644 --- a/isi_sdk/models/antivirus_server.py +++ b/isi_sdk/models/antivirus_server.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusServer(object): @@ -72,6 +73,7 @@ def description(self, description): :param description: The description of this AntivirusServer. :type: str """ + self._description = description @property @@ -94,6 +96,7 @@ def enabled(self, enabled): :param enabled: The enabled of this AntivirusServer. :type: bool """ + self._enabled = enabled @property @@ -116,6 +119,12 @@ def url(self, url): :param url: The url of this AntivirusServer. :type: str """ + + if not url: + raise ValueError("Invalid value for `url`, must not be `None`") + if len(url) < 1: + raise ValueError("Invalid value for `url`, length must be greater than or equal to `1`") + self._url = url def to_dict(self): @@ -133,6 +142,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +165,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_server_extended.py b/isi_sdk/models/antivirus_server_extended.py index e2664d5b0..97ac68a4a 100644 --- a/isi_sdk/models/antivirus_server_extended.py +++ b/isi_sdk/models/antivirus_server_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusServerExtended(object): @@ -38,27 +39,27 @@ def __init__(self): """ self.swagger_types = { 'description': 'str', - 'id': 'str', - 'definitions': 'str', 'enabled': 'bool', 'url': 'str', + 'definitions': 'str', + 'id': 'str', 'status': 'str' } self.attribute_map = { 'description': 'description', - 'id': 'id', - 'definitions': 'definitions', 'enabled': 'enabled', 'url': 'url', + 'definitions': 'definitions', + 'id': 'id', 'status': 'status' } self._description = None - self._id = None - self._definitions = None self._enabled = None self._url = None + self._definitions = None + self._id = None self._status = None @property @@ -81,52 +82,9 @@ def description(self, description): :param description: The description of this AntivirusServerExtended. :type: str """ + self._description = description - @property - def id(self): - """ - Gets the id of this AntivirusServerExtended. - A unique identifier for the server. - - :return: The id of this AntivirusServerExtended. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this AntivirusServerExtended. - A unique identifier for the server. - - :param id: The id of this AntivirusServerExtended. - :type: str - """ - self._id = id - - @property - def definitions(self): - """ - Gets the definitions of this AntivirusServerExtended. - Virus definitions on the server. - - :return: The definitions of this AntivirusServerExtended. - :rtype: str - """ - return self._definitions - - @definitions.setter - def definitions(self, definitions): - """ - Sets the definitions of this AntivirusServerExtended. - Virus definitions on the server. - - :param definitions: The definitions of this AntivirusServerExtended. - :type: str - """ - self._definitions = definitions - @property def enabled(self): """ @@ -147,6 +105,7 @@ def enabled(self, enabled): :param enabled: The enabled of this AntivirusServerExtended. :type: bool """ + self._enabled = enabled @property @@ -169,8 +128,60 @@ def url(self, url): :param url: The url of this AntivirusServerExtended. :type: str """ + + if not url: + raise ValueError("Invalid value for `url`, must not be `None`") + if len(url) < 1: + raise ValueError("Invalid value for `url`, length must be greater than or equal to `1`") + self._url = url + @property + def definitions(self): + """ + Gets the definitions of this AntivirusServerExtended. + Virus definitions on the server. + + :return: The definitions of this AntivirusServerExtended. + :rtype: str + """ + return self._definitions + + @definitions.setter + def definitions(self, definitions): + """ + Sets the definitions of this AntivirusServerExtended. + Virus definitions on the server. + + :param definitions: The definitions of this AntivirusServerExtended. + :type: str + """ + + self._definitions = definitions + + @property + def id(self): + """ + Gets the id of this AntivirusServerExtended. + A unique identifier for the server. + + :return: The id of this AntivirusServerExtended. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this AntivirusServerExtended. + A unique identifier for the server. + + :param id: The id of this AntivirusServerExtended. + :type: str + """ + + self._id = id + @property def status(self): """ @@ -191,6 +202,7 @@ def status(self, status): :param status: The status of this AntivirusServerExtended. :type: str """ + self._status = status def to_dict(self): @@ -208,6 +220,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +243,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_servers.py b/isi_sdk/models/antivirus_servers.py index 5ce073bd9..bb81710df 100644 --- a/isi_sdk/models/antivirus_servers.py +++ b/isi_sdk/models/antivirus_servers.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusServers(object): @@ -66,6 +67,7 @@ def servers(self, servers): :param servers: The servers of this AntivirusServers. :type: list[AntivirusServerExtended] """ + self._servers = servers def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_servers_extended.py b/isi_sdk/models/antivirus_servers_extended.py index 31fa3da07..315519516 100644 --- a/isi_sdk/models/antivirus_servers_extended.py +++ b/isi_sdk/models/antivirus_servers_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusServersExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'servers': 'list[AntivirusServerExtended]', 'resume': 'str', - 'total': 'int', - 'servers': 'list[AntivirusServerExtended]' + 'total': 'int' } self.attribute_map = { + 'servers': 'servers', 'resume': 'resume', - 'total': 'total', - 'servers': 'servers' + 'total': 'total' } + self._servers = None self._resume = None self._total = None - self._servers = None + + @property + def servers(self): + """ + Gets the servers of this AntivirusServersExtended. + + + :return: The servers of this AntivirusServersExtended. + :rtype: list[AntivirusServerExtended] + """ + return self._servers + + @servers.setter + def servers(self, servers): + """ + Sets the servers of this AntivirusServersExtended. + + + :param servers: The servers of this AntivirusServersExtended. + :type: list[AntivirusServerExtended] + """ + + self._servers = servers @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this AntivirusServersExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this AntivirusServersExtended. :type: int """ + self._total = total - @property - def servers(self): - """ - Gets the servers of this AntivirusServersExtended. - - - :return: The servers of this AntivirusServersExtended. - :rtype: list[AntivirusServerExtended] - """ - return self._servers - - @servers.setter - def servers(self, servers): - """ - Sets the servers of this AntivirusServersExtended. - - - :param servers: The servers of this AntivirusServersExtended. - :type: list[AntivirusServerExtended] - """ - self._servers = servers - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_settings.py b/isi_sdk/models/antivirus_settings.py index a4829ae12..1b1d82161 100644 --- a/isi_sdk/models/antivirus_settings.py +++ b/isi_sdk/models/antivirus_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this AntivirusSettings. :type: AntivirusSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/antivirus_settings_settings.py b/isi_sdk/models/antivirus_settings_settings.py index 035fb1557..2a40b5ffd 100644 --- a/isi_sdk/models/antivirus_settings_settings.py +++ b/isi_sdk/models/antivirus_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AntivirusSettingsSettings(object): @@ -102,6 +103,7 @@ def fail_open(self, fail_open): :param fail_open: The fail_open of this AntivirusSettingsSettings. :type: bool """ + self._fail_open = fail_open @property @@ -124,6 +126,7 @@ def glob_filters(self, glob_filters): :param glob_filters: The glob_filters of this AntivirusSettingsSettings. :type: list[str] """ + self._glob_filters = glob_filters @property @@ -146,6 +149,7 @@ def glob_filters_enabled(self, glob_filters_enabled): :param glob_filters_enabled: The glob_filters_enabled of this AntivirusSettingsSettings. :type: bool """ + self._glob_filters_enabled = glob_filters_enabled @property @@ -168,6 +172,7 @@ def glob_filters_include(self, glob_filters_include): :param glob_filters_include: The glob_filters_include of this AntivirusSettingsSettings. :type: bool """ + self._glob_filters_include = glob_filters_include @property @@ -190,6 +195,7 @@ def path_prefixes(self, path_prefixes): :param path_prefixes: The path_prefixes of this AntivirusSettingsSettings. :type: list[str] """ + self._path_prefixes = path_prefixes @property @@ -212,6 +218,7 @@ def quarantine(self, quarantine): :param quarantine: The quarantine of this AntivirusSettingsSettings. :type: bool """ + self._quarantine = quarantine @property @@ -234,6 +241,7 @@ def repair(self, repair): :param repair: The repair of this AntivirusSettingsSettings. :type: bool """ + self._repair = repair @property @@ -256,6 +264,12 @@ def report_expiry(self, report_expiry): :param report_expiry: The report_expiry of this AntivirusSettingsSettings. :type: int """ + + if not report_expiry: + raise ValueError("Invalid value for `report_expiry`, must not be `None`") + if report_expiry < 0.0: + raise ValueError("Invalid value for `report_expiry`, must be a value greater than or equal to `0.0`") + self._report_expiry = report_expiry @property @@ -278,6 +292,7 @@ def scan_on_close(self, scan_on_close): :param scan_on_close: The scan_on_close of this AntivirusSettingsSettings. :type: bool """ + self._scan_on_close = scan_on_close @property @@ -300,6 +315,7 @@ def scan_on_open(self, scan_on_open): :param scan_on_open: The scan_on_open of this AntivirusSettingsSettings. :type: bool """ + self._scan_on_open = scan_on_open @property @@ -322,6 +338,12 @@ def scan_size_maximum(self, scan_size_maximum): :param scan_size_maximum: The scan_size_maximum of this AntivirusSettingsSettings. :type: int """ + + if not scan_size_maximum: + raise ValueError("Invalid value for `scan_size_maximum`, must not be `None`") + if scan_size_maximum < 0.0: + raise ValueError("Invalid value for `scan_size_maximum`, must be a value greater than or equal to `0.0`") + self._scan_size_maximum = scan_size_maximum @property @@ -344,6 +366,7 @@ def service(self, service): :param service: The service of this AntivirusSettingsSettings. :type: bool """ + self._service = service @property @@ -366,6 +389,7 @@ def truncate(self, truncate): :param truncate: The truncate of this AntivirusSettingsSettings. :type: bool """ + self._truncate = truncate def to_dict(self): @@ -383,6 +407,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -400,14 +430,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/audit_settings.py b/isi_sdk/models/audit_settings.py index 92e48f3da..92a39de83 100644 --- a/isi_sdk/models/audit_settings.py +++ b/isi_sdk/models/audit_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuditSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this AuditSettings. :type: AuditSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/audit_settings_settings.py b/isi_sdk/models/audit_settings_settings.py index dbdf0a08c..27dc9de57 100644 --- a/isi_sdk/models/audit_settings_settings.py +++ b/isi_sdk/models/audit_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuditSettingsSettings(object): @@ -75,6 +76,7 @@ def audit_failure(self, audit_failure): :param audit_failure: The audit_failure of this AuditSettingsSettings. :type: list[str] """ + self._audit_failure = audit_failure @property @@ -97,6 +99,7 @@ def audit_success(self, audit_success): :param audit_success: The audit_success of this AuditSettingsSettings. :type: list[str] """ + self._audit_success = audit_success @property @@ -119,6 +122,7 @@ def syslog_audit_events(self, syslog_audit_events): :param syslog_audit_events: The syslog_audit_events of this AuditSettingsSettings. :type: list[str] """ + self._syslog_audit_events = syslog_audit_events @property @@ -141,6 +145,7 @@ def syslog_forwarding_enabled(self, syslog_forwarding_enabled): :param syslog_forwarding_enabled: The syslog_forwarding_enabled of this AuditSettingsSettings. :type: bool """ + self._syslog_forwarding_enabled = syslog_forwarding_enabled def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/audit_topic.py b/isi_sdk/models/audit_topic.py index 5257f936f..425cd4b19 100644 --- a/isi_sdk/models/audit_topic.py +++ b/isi_sdk/models/audit_topic.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuditTopic(object): @@ -69,6 +70,7 @@ def id(self, id): :param id: The id of this AuditTopic. :type: str """ + self._id = id @property @@ -91,6 +93,12 @@ def max_cached_messages(self, max_cached_messages): :param max_cached_messages: The max_cached_messages of this AuditTopic. :type: int """ + + if not max_cached_messages: + raise ValueError("Invalid value for `max_cached_messages`, must not be `None`") + if max_cached_messages < 0.0: + raise ValueError("Invalid value for `max_cached_messages`, must be a value greater than or equal to `0.0`") + self._max_cached_messages = max_cached_messages def to_dict(self): @@ -108,6 +116,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +139,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/audit_topic_create_params.py b/isi_sdk/models/audit_topic_create_params.py index 0320a46df..0757ce5d9 100644 --- a/isi_sdk/models/audit_topic_create_params.py +++ b/isi_sdk/models/audit_topic_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuditTopicCreateParams(object): @@ -38,19 +39,16 @@ def __init__(self): """ self.swagger_types = { 'max_cached_messages': 'int', - 'name': 'str', - 'id': 'str' + 'name': 'str' } self.attribute_map = { 'max_cached_messages': 'max_cached_messages', - 'name': 'name', - 'id': 'id' + 'name': 'name' } self._max_cached_messages = None self._name = None - self._id = None @property def max_cached_messages(self): @@ -72,6 +70,12 @@ def max_cached_messages(self, max_cached_messages): :param max_cached_messages: The max_cached_messages of this AuditTopicCreateParams. :type: int """ + + if not max_cached_messages: + raise ValueError("Invalid value for `max_cached_messages`, must not be `None`") + if max_cached_messages < 0.0: + raise ValueError("Invalid value for `max_cached_messages`, must be a value greater than or equal to `0.0`") + self._max_cached_messages = max_cached_messages @property @@ -94,30 +98,9 @@ def name(self, name): :param name: The name of this AuditTopicCreateParams. :type: str """ + self._name = name - @property - def id(self): - """ - Gets the id of this AuditTopicCreateParams. - Specifies the system-provided ID for the audit topic. - - :return: The id of this AuditTopicCreateParams. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this AuditTopicCreateParams. - Specifies the system-provided ID for the audit topic. - - :param id: The id of this AuditTopicCreateParams. - :type: str - """ - self._id = id - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +116,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +139,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/audit_topic_extended.py b/isi_sdk/models/audit_topic_extended.py index f5eeb9ea1..6a8496573 100644 --- a/isi_sdk/models/audit_topic_extended.py +++ b/isi_sdk/models/audit_topic_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuditTopicExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'id': 'str', 'max_cached_messages': 'int', - 'name': 'str', - 'id': 'str' + 'name': 'str' } self.attribute_map = { + 'id': 'id', 'max_cached_messages': 'max_cached_messages', - 'name': 'name', - 'id': 'id' + 'name': 'name' } + self._id = None self._max_cached_messages = None self._name = None - self._id = None + + @property + def id(self): + """ + Gets the id of this AuditTopicExtended. + Specifies the system-provided ID for the audit topic. + + :return: The id of this AuditTopicExtended. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this AuditTopicExtended. + Specifies the system-provided ID for the audit topic. + + :param id: The id of this AuditTopicExtended. + :type: str + """ + + self._id = id @property def max_cached_messages(self): @@ -72,6 +96,12 @@ def max_cached_messages(self, max_cached_messages): :param max_cached_messages: The max_cached_messages of this AuditTopicExtended. :type: int """ + + if not max_cached_messages: + raise ValueError("Invalid value for `max_cached_messages`, must not be `None`") + if max_cached_messages < 0.0: + raise ValueError("Invalid value for `max_cached_messages`, must be a value greater than or equal to `0.0`") + self._max_cached_messages = max_cached_messages @property @@ -94,30 +124,9 @@ def name(self, name): :param name: The name of this AuditTopicExtended. :type: str """ + self._name = name - @property - def id(self): - """ - Gets the id of this AuditTopicExtended. - Specifies the system-provided ID for the audit topic. - - :return: The id of this AuditTopicExtended. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this AuditTopicExtended. - Specifies the system-provided ID for the audit topic. - - :param id: The id of this AuditTopicExtended. - :type: str - """ - self._id = id - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +142,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +165,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/audit_topics.py b/isi_sdk/models/audit_topics.py index 7336ca817..f44eb5e1f 100644 --- a/isi_sdk/models/audit_topics.py +++ b/isi_sdk/models/audit_topics.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuditTopics(object): @@ -66,6 +67,7 @@ def topics(self, topics): :param topics: The topics of this AuditTopics. :type: list[AuditTopicExtended] """ + self._topics = topics def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/audit_topics_extended.py b/isi_sdk/models/audit_topics_extended.py index 923e54932..122c081d7 100644 --- a/isi_sdk/models/audit_topics_extended.py +++ b/isi_sdk/models/audit_topics_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuditTopicsExtended(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', - 'topics': 'list[AuditTopicExtended]' + 'topics': 'list[AuditTopicExtended]', + 'resume': 'str' } self.attribute_map = { - 'resume': 'resume', - 'topics': 'topics' + 'topics': 'topics', + 'resume': 'resume' } - self._resume = None self._topics = None - - @property - def resume(self): - """ - Gets the resume of this AuditTopicsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this AuditTopicsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this AuditTopicsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this AuditTopicsExtended. - :type: str - """ - self._resume = resume + self._resume = None @property def topics(self): @@ -91,8 +70,32 @@ def topics(self, topics): :param topics: The topics of this AuditTopicsExtended. :type: list[AuditTopicExtended] """ + self._topics = topics + @property + def resume(self): + """ + Gets the resume of this AuditTopicsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this AuditTopicsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this AuditTopicsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this AuditTopicsExtended. + :type: str + """ + + self._resume = resume + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_access.py b/isi_sdk/models/auth_access.py index 597f7535e..073bc7f0f 100644 --- a/isi_sdk/models/auth_access.py +++ b/isi_sdk/models/auth_access.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthAccess(object): @@ -66,6 +67,7 @@ def access(self, access): :param access: The access of this AuthAccess. :type: list[AuthAccessAccessItem] """ + self._access = access def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_access_access_item.py b/isi_sdk/models/auth_access_access_item.py index 7e75a3f40..385017f3a 100644 --- a/isi_sdk/models/auth_access_access_item.py +++ b/isi_sdk/models/auth_access_access_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthAccessAccessItem(object): @@ -78,6 +79,7 @@ def file(self, file): :param file: The file of this AuthAccessAccessItem. :type: AuthAccessAccessItemFile """ + self._file = file @property @@ -100,6 +102,7 @@ def id(self, id): :param id: The id of this AuthAccessAccessItem. :type: str """ + self._id = id @property @@ -122,6 +125,7 @@ def permissions(self, permissions): :param permissions: The permissions of this AuthAccessAccessItem. :type: AuthAccessAccessItemPermissions """ + self._permissions = permissions @property @@ -144,6 +148,7 @@ def relevant_aces(self, relevant_aces): :param relevant_aces: The relevant_aces of this AuthAccessAccessItem. :type: list[AuthAccessAccessItemRelevantAce] """ + self._relevant_aces = relevant_aces @property @@ -166,6 +171,7 @@ def user(self, user): :param user: The user of this AuthAccessAccessItem. :type: AuthAccessAccessItemUser """ + self._user = user def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_access_access_item_file.py b/isi_sdk/models/auth_access_access_item_file.py index c247d3ebd..ee6d7fd17 100644 --- a/isi_sdk/models/auth_access_access_item_file.py +++ b/isi_sdk/models/auth_access_access_item_file.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthAccessAccessItemFile(object): @@ -75,6 +76,7 @@ def group(self, group): :param group: The group of this AuthAccessAccessItemFile. :type: str """ + self._group = group @property @@ -97,6 +99,7 @@ def mode(self, mode): :param mode: The mode of this AuthAccessAccessItemFile. :type: str """ + self._mode = mode @property @@ -119,6 +122,7 @@ def owner(self, owner): :param owner: The owner of this AuthAccessAccessItemFile. :type: str """ + self._owner = owner @property @@ -141,6 +145,7 @@ def relevant_mode(self, relevant_mode): :param relevant_mode: The relevant_mode of this AuthAccessAccessItemFile. :type: str """ + self._relevant_mode = relevant_mode def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_access_access_item_permissions.py b/isi_sdk/models/auth_access_access_item_permissions.py index 9142117f5..ca8829802 100644 --- a/isi_sdk/models/auth_access_access_item_permissions.py +++ b/isi_sdk/models/auth_access_access_item_permissions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthAccessAccessItemPermissions(object): @@ -78,6 +79,7 @@ def dacl(self, dacl): :param dacl: The dacl of this AuthAccessAccessItemPermissions. :type: str """ + self._dacl = dacl @property @@ -100,6 +102,7 @@ def delete_child(self, delete_child): :param delete_child: The delete_child of this AuthAccessAccessItemPermissions. :type: str """ + self._delete_child = delete_child @property @@ -122,6 +125,7 @@ def expected(self, expected): :param expected: The expected of this AuthAccessAccessItemPermissions. :type: str """ + self._expected = expected @property @@ -144,6 +148,7 @@ def ownership(self, ownership): :param ownership: The ownership of this AuthAccessAccessItemPermissions. :type: str """ + self._ownership = ownership @property @@ -166,6 +171,7 @@ def sticky(self, sticky): :param sticky: The sticky of this AuthAccessAccessItemPermissions. :type: str """ + self._sticky = sticky def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_access_access_item_relevant_ace.py b/isi_sdk/models/auth_access_access_item_relevant_ace.py index db060ffe2..75797a866 100644 --- a/isi_sdk/models/auth_access_access_item_relevant_ace.py +++ b/isi_sdk/models/auth_access_access_item_relevant_ace.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthAccessAccessItemRelevantAce(object): @@ -66,6 +67,7 @@ def ace(self, ace): :param ace: The ace of this AuthAccessAccessItemRelevantAce. :type: str """ + self._ace = ace def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_access_access_item_user.py b/isi_sdk/models/auth_access_access_item_user.py index fac37b8fc..75d6e7e26 100644 --- a/isi_sdk/models/auth_access_access_item_user.py +++ b/isi_sdk/models/auth_access_access_item_user.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthAccessAccessItemUser(object): @@ -75,6 +76,7 @@ def id(self, id): :param id: The id of this AuthAccessAccessItemUser. :type: str """ + self._id = id @property @@ -97,6 +99,7 @@ def name(self, name): :param name: The name of this AuthAccessAccessItemUser. :type: str """ + self._name = name @property @@ -125,6 +128,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type @property @@ -147,6 +151,7 @@ def uid(self, uid): :param uid: The uid of this AuthAccessAccessItemUser. :type: int """ + self._uid = uid def to_dict(self): @@ -164,6 +169,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -181,14 +192,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_group.py b/isi_sdk/models/auth_group.py index a9df1f462..8bacae34d 100644 --- a/isi_sdk/models/auth_group.py +++ b/isi_sdk/models/auth_group.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthGroup(object): @@ -66,6 +67,7 @@ def gid(self, gid): :param gid: The gid of this AuthGroup. :type: int """ + self._gid = gid def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_group_create_params.py b/isi_sdk/models/auth_group_create_params.py index 7ff93dbb0..16058039c 100644 --- a/isi_sdk/models/auth_group_create_params.py +++ b/isi_sdk/models/auth_group_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthGroupCreateParams(object): @@ -37,46 +38,24 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', 'gid': 'int', - 'members': 'list[GroupsGroupMember]', + 'members': 'list[GroupMember]', + 'name': 'str', 'sid': 'str' } self.attribute_map = { - 'name': 'name', 'gid': 'gid', 'members': 'members', + 'name': 'name', 'sid': 'sid' } - self._name = None self._gid = None self._members = None + self._name = None self._sid = None - @property - def name(self): - """ - Gets the name of this AuthGroupCreateParams. - Specifies the group name. - - :return: The name of this AuthGroupCreateParams. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this AuthGroupCreateParams. - Specifies the group name. - - :param name: The name of this AuthGroupCreateParams. - :type: str - """ - self._name = name - @property def gid(self): """ @@ -97,6 +76,7 @@ def gid(self, gid): :param gid: The gid of this AuthGroupCreateParams. :type: int """ + self._gid = gid @property @@ -106,7 +86,7 @@ def members(self): Specifies the members of the group. :return: The members of this AuthGroupCreateParams. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._members @@ -117,10 +97,34 @@ def members(self, members): Specifies the members of the group. :param members: The members of this AuthGroupCreateParams. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._members = members + @property + def name(self): + """ + Gets the name of this AuthGroupCreateParams. + Specifies the group name. + + :return: The name of this AuthGroupCreateParams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this AuthGroupCreateParams. + Specifies the group name. + + :param name: The name of this AuthGroupCreateParams. + :type: str + """ + + self._name = name + @property def sid(self): """ @@ -141,6 +145,7 @@ def sid(self, sid): :param sid: The sid of this AuthGroupCreateParams. :type: str """ + self._sid = sid def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_group_extended.py b/isi_sdk/models/auth_group_extended.py index e22bf7324..e4939194d 100644 --- a/isi_sdk/models/auth_group_extended.py +++ b/isi_sdk/models/auth_group_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthGroupExtended(object): @@ -38,46 +39,46 @@ def __init__(self): """ self.swagger_types = { 'gid': 'int', - 'generated_gid': 'bool', - 'provider': 'str', - 'domain': 'str', - 'dns_domain': 'str', - 'name': 'str', 'dn': 'str', + 'dns_domain': 'str', + 'domain': 'str', + 'generated_gid': 'bool', 'id': 'str', - 'member_of': 'list[GroupsGroupMember]', - 'type': 'str', + 'member_of': 'list[GroupMember]', + 'name': 'str', + 'provider': 'str', 'sam_account_name': 'str', - 'sid': 'GroupsGroupMember' + 'sid': 'GroupMember', + 'type': 'str' } self.attribute_map = { 'gid': 'gid', - 'generated_gid': 'generated_gid', - 'provider': 'provider', - 'domain': 'domain', - 'dns_domain': 'dns_domain', - 'name': 'name', 'dn': 'dn', + 'dns_domain': 'dns_domain', + 'domain': 'domain', + 'generated_gid': 'generated_gid', 'id': 'id', 'member_of': 'member_of', - 'type': 'type', + 'name': 'name', + 'provider': 'provider', 'sam_account_name': 'sam_account_name', - 'sid': 'sid' + 'sid': 'sid', + 'type': 'type' } self._gid = None - self._generated_gid = None - self._provider = None - self._domain = None - self._dns_domain = None - self._name = None self._dn = None + self._dns_domain = None + self._domain = None + self._generated_gid = None self._id = None self._member_of = None - self._type = None + self._name = None + self._provider = None self._sam_account_name = None self._sid = None + self._type = None @property def gid(self): @@ -99,73 +100,31 @@ def gid(self, gid): :param gid: The gid of this AuthGroupExtended. :type: int """ + self._gid = gid @property - def generated_gid(self): - """ - Gets the generated_gid of this AuthGroupExtended. - If true, the GID was generated. - - :return: The generated_gid of this AuthGroupExtended. - :rtype: bool - """ - return self._generated_gid - - @generated_gid.setter - def generated_gid(self, generated_gid): - """ - Sets the generated_gid of this AuthGroupExtended. - If true, the GID was generated. - - :param generated_gid: The generated_gid of this AuthGroupExtended. - :type: bool - """ - self._generated_gid = generated_gid - - @property - def provider(self): - """ - Gets the provider of this AuthGroupExtended. - Specifies the authentication provider that the object belongs to. - - :return: The provider of this AuthGroupExtended. - :rtype: str - """ - return self._provider - - @provider.setter - def provider(self, provider): - """ - Sets the provider of this AuthGroupExtended. - Specifies the authentication provider that the object belongs to. - - :param provider: The provider of this AuthGroupExtended. - :type: str - """ - self._provider = provider - - @property - def domain(self): + def dn(self): """ - Gets the domain of this AuthGroupExtended. - Specifies the domain that the object is part of. + Gets the dn of this AuthGroupExtended. + Specifies the distinguished name for the user. - :return: The domain of this AuthGroupExtended. + :return: The dn of this AuthGroupExtended. :rtype: str """ - return self._domain + return self._dn - @domain.setter - def domain(self, domain): + @dn.setter + def dn(self, dn): """ - Sets the domain of this AuthGroupExtended. - Specifies the domain that the object is part of. + Sets the dn of this AuthGroupExtended. + Specifies the distinguished name for the user. - :param domain: The domain of this AuthGroupExtended. + :param dn: The dn of this AuthGroupExtended. :type: str """ - self._domain = domain + + self._dn = dn @property def dns_domain(self): @@ -187,51 +146,54 @@ def dns_domain(self, dns_domain): :param dns_domain: The dns_domain of this AuthGroupExtended. :type: str """ + self._dns_domain = dns_domain @property - def name(self): + def domain(self): """ - Gets the name of this AuthGroupExtended. - Specifies a user or group name. + Gets the domain of this AuthGroupExtended. + Specifies the domain that the object is part of. - :return: The name of this AuthGroupExtended. + :return: The domain of this AuthGroupExtended. :rtype: str """ - return self._name + return self._domain - @name.setter - def name(self, name): + @domain.setter + def domain(self, domain): """ - Sets the name of this AuthGroupExtended. - Specifies a user or group name. + Sets the domain of this AuthGroupExtended. + Specifies the domain that the object is part of. - :param name: The name of this AuthGroupExtended. + :param domain: The domain of this AuthGroupExtended. :type: str """ - self._name = name + + self._domain = domain @property - def dn(self): + def generated_gid(self): """ - Gets the dn of this AuthGroupExtended. - Specifies the distinguished name for the user. + Gets the generated_gid of this AuthGroupExtended. + If true, the GID was generated. - :return: The dn of this AuthGroupExtended. - :rtype: str + :return: The generated_gid of this AuthGroupExtended. + :rtype: bool """ - return self._dn + return self._generated_gid - @dn.setter - def dn(self, dn): + @generated_gid.setter + def generated_gid(self, generated_gid): """ - Sets the dn of this AuthGroupExtended. - Specifies the distinguished name for the user. + Sets the generated_gid of this AuthGroupExtended. + If true, the GID was generated. - :param dn: The dn of this AuthGroupExtended. - :type: str + :param generated_gid: The generated_gid of this AuthGroupExtended. + :type: bool """ - self._dn = dn + + self._generated_gid = generated_gid @property def id(self): @@ -253,6 +215,7 @@ def id(self, id): :param id: The id of this AuthGroupExtended. :type: str """ + self._id = id @property @@ -262,7 +225,7 @@ def member_of(self): :return: The member_of of this AuthGroupExtended. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._member_of @@ -273,31 +236,56 @@ def member_of(self, member_of): :param member_of: The member_of of this AuthGroupExtended. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._member_of = member_of @property - def type(self): + def name(self): """ - Gets the type of this AuthGroupExtended. - Specifies the object type. + Gets the name of this AuthGroupExtended. + Specifies a user or group name. - :return: The type of this AuthGroupExtended. + :return: The name of this AuthGroupExtended. :rtype: str """ - return self._type + return self._name - @type.setter - def type(self, type): + @name.setter + def name(self, name): """ - Sets the type of this AuthGroupExtended. - Specifies the object type. + Sets the name of this AuthGroupExtended. + Specifies a user or group name. - :param type: The type of this AuthGroupExtended. + :param name: The name of this AuthGroupExtended. :type: str """ - self._type = type + + self._name = name + + @property + def provider(self): + """ + Gets the provider of this AuthGroupExtended. + Specifies the authentication provider that the object belongs to. + + :return: The provider of this AuthGroupExtended. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """ + Sets the provider of this AuthGroupExtended. + Specifies the authentication provider that the object belongs to. + + :param provider: The provider of this AuthGroupExtended. + :type: str + """ + + self._provider = provider @property def sam_account_name(self): @@ -319,6 +307,7 @@ def sam_account_name(self, sam_account_name): :param sam_account_name: The sam_account_name of this AuthGroupExtended. :type: str """ + self._sam_account_name = sam_account_name @property @@ -328,7 +317,7 @@ def sid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The sid of this AuthGroupExtended. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._sid @@ -339,10 +328,34 @@ def sid(self, sid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param sid: The sid of this AuthGroupExtended. - :type: GroupsGroupMember + :type: GroupMember """ + self._sid = sid + @property + def type(self): + """ + Gets the type of this AuthGroupExtended. + Specifies the object type. + + :return: The type of this AuthGroupExtended. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this AuthGroupExtended. + Specifies the object type. + + :param type: The type of this AuthGroupExtended. + :type: str + """ + + self._type = type + def to_dict(self): """ Returns the model properties as a dict @@ -358,6 +371,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -375,14 +394,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_groups.py b/isi_sdk/models/auth_groups.py index 36c44be30..f47119619 100644 --- a/isi_sdk/models/auth_groups.py +++ b/isi_sdk/models/auth_groups.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthGroups(object): @@ -66,6 +67,7 @@ def groups(self, groups): :param groups: The groups of this AuthGroups. :type: list[AuthGroupExtended] """ + self._groups = groups def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_groups_extended.py b/isi_sdk/models/auth_groups_extended.py index f5a0e3514..f5de793a9 100644 --- a/isi_sdk/models/auth_groups_extended.py +++ b/isi_sdk/models/auth_groups_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthGroupsExtended(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', - 'groups': 'list[AuthGroupExtended]' + 'groups': 'list[AuthGroupExtended]', + 'resume': 'str' } self.attribute_map = { - 'resume': 'resume', - 'groups': 'groups' + 'groups': 'groups', + 'resume': 'resume' } - self._resume = None self._groups = None - - @property - def resume(self): - """ - Gets the resume of this AuthGroupsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this AuthGroupsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this AuthGroupsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this AuthGroupsExtended. - :type: str - """ - self._resume = resume + self._resume = None @property def groups(self): @@ -91,8 +70,32 @@ def groups(self, groups): :param groups: The groups of this AuthGroupsExtended. :type: list[AuthGroupExtended] """ + self._groups = groups + @property + def resume(self): + """ + Gets the resume of this AuthGroupsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this AuthGroupsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this AuthGroupsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this AuthGroupsExtended. + :type: str + """ + + self._resume = resume + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_id.py b/isi_sdk/models/auth_id.py index 8ee70f00a..a7e639126 100644 --- a/isi_sdk/models/auth_id.py +++ b/isi_sdk/models/auth_id.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthId(object): @@ -66,6 +67,7 @@ def ntoken(self, ntoken): :param ntoken: The ntoken of this AuthId. :type: AuthIdNtoken """ + self._ntoken = ntoken def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_id_ntoken.py b/isi_sdk/models/auth_id_ntoken.py index 27a99c168..ae04da703 100644 --- a/isi_sdk/models/auth_id_ntoken.py +++ b/isi_sdk/models/auth_id_ntoken.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthIdNtoken(object): @@ -37,18 +38,18 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'additional_id': 'list[GroupsGroupMember]', - 'gid': 'GroupsGroupMember', - 'group_sid': 'GroupsGroupMember', + 'additional_id': 'list[GroupMember]', + 'gid': 'GroupMember', + 'group_sid': 'GroupMember', 'ifs_restricted': 'bool', 'local_address': 'str', - 'on_disk_group_id': 'GroupsGroupMember', - 'on_disk_user_id': 'GroupsGroupMember', + 'on_disk_group_id': 'GroupMember', + 'on_disk_user_id': 'GroupMember', 'privilege': 'list[AuthIdNtokenPrivilegeItem]', 'protocol': 'int', 'remote_address': 'str', - 'uid': 'GroupsGroupMember', - 'user_sid': 'GroupsGroupMember', + 'uid': 'GroupMember', + 'user_sid': 'GroupMember', 'zid': 'int', 'zone_id': 'str' } @@ -92,7 +93,7 @@ def additional_id(self): Specifies additional UIDs, GIDs, and SIDs. :return: The additional_id of this AuthIdNtoken. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._additional_id @@ -103,8 +104,9 @@ def additional_id(self, additional_id): Specifies additional UIDs, GIDs, and SIDs. :param additional_id: The additional_id of this AuthIdNtoken. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._additional_id = additional_id @property @@ -114,7 +116,7 @@ def gid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The gid of this AuthIdNtoken. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._gid @@ -125,8 +127,9 @@ def gid(self, gid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param gid: The gid of this AuthIdNtoken. - :type: GroupsGroupMember + :type: GroupMember """ + self._gid = gid @property @@ -136,7 +139,7 @@ def group_sid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The group_sid of this AuthIdNtoken. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._group_sid @@ -147,8 +150,9 @@ def group_sid(self, group_sid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param group_sid: The group_sid of this AuthIdNtoken. - :type: GroupsGroupMember + :type: GroupMember """ + self._group_sid = group_sid @property @@ -171,6 +175,7 @@ def ifs_restricted(self, ifs_restricted): :param ifs_restricted: The ifs_restricted of this AuthIdNtoken. :type: bool """ + self._ifs_restricted = ifs_restricted @property @@ -193,6 +198,7 @@ def local_address(self, local_address): :param local_address: The local_address of this AuthIdNtoken. :type: str """ + self._local_address = local_address @property @@ -202,7 +208,7 @@ def on_disk_group_id(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The on_disk_group_id of this AuthIdNtoken. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._on_disk_group_id @@ -213,8 +219,9 @@ def on_disk_group_id(self, on_disk_group_id): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param on_disk_group_id: The on_disk_group_id of this AuthIdNtoken. - :type: GroupsGroupMember + :type: GroupMember """ + self._on_disk_group_id = on_disk_group_id @property @@ -224,7 +231,7 @@ def on_disk_user_id(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The on_disk_user_id of this AuthIdNtoken. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._on_disk_user_id @@ -235,8 +242,9 @@ def on_disk_user_id(self, on_disk_user_id): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param on_disk_user_id: The on_disk_user_id of this AuthIdNtoken. - :type: GroupsGroupMember + :type: GroupMember """ + self._on_disk_user_id = on_disk_user_id @property @@ -259,6 +267,7 @@ def privilege(self, privilege): :param privilege: The privilege of this AuthIdNtoken. :type: list[AuthIdNtokenPrivilegeItem] """ + self._privilege = privilege @property @@ -281,6 +290,7 @@ def protocol(self, protocol): :param protocol: The protocol of this AuthIdNtoken. :type: int """ + self._protocol = protocol @property @@ -303,6 +313,7 @@ def remote_address(self, remote_address): :param remote_address: The remote_address of this AuthIdNtoken. :type: str """ + self._remote_address = remote_address @property @@ -312,7 +323,7 @@ def uid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The uid of this AuthIdNtoken. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._uid @@ -323,8 +334,9 @@ def uid(self, uid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param uid: The uid of this AuthIdNtoken. - :type: GroupsGroupMember + :type: GroupMember """ + self._uid = uid @property @@ -334,7 +346,7 @@ def user_sid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The user_sid of this AuthIdNtoken. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._user_sid @@ -345,8 +357,9 @@ def user_sid(self, user_sid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param user_sid: The user_sid of this AuthIdNtoken. - :type: GroupsGroupMember + :type: GroupMember """ + self._user_sid = user_sid @property @@ -369,6 +382,7 @@ def zid(self, zid): :param zid: The zid of this AuthIdNtoken. :type: int """ + self._zid = zid @property @@ -391,6 +405,7 @@ def zone_id(self, zone_id): :param zone_id: The zone_id of this AuthIdNtoken. :type: str """ + self._zone_id = zone_id def to_dict(self): @@ -408,6 +423,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -425,14 +446,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_id_ntoken_privilege_item.py b/isi_sdk/models/auth_id_ntoken_privilege_item.py index 6c051315f..b27c23dc9 100644 --- a/isi_sdk/models/auth_id_ntoken_privilege_item.py +++ b/isi_sdk/models/auth_id_ntoken_privilege_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthIdNtokenPrivilegeItem(object): @@ -72,6 +73,7 @@ def id(self, id): :param id: The id of this AuthIdNtokenPrivilegeItem. :type: str """ + self._id = id @property @@ -94,6 +96,7 @@ def name(self, name): :param name: The name of this AuthIdNtokenPrivilegeItem. :type: str """ + self._name = name @property @@ -116,6 +119,7 @@ def read_only(self, read_only): :param read_only: The read_only of this AuthIdNtokenPrivilegeItem. :type: bool """ + self._read_only = read_only def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_log_level.py b/isi_sdk/models/auth_log_level.py index 3c1f31571..4a834689c 100644 --- a/isi_sdk/models/auth_log_level.py +++ b/isi_sdk/models/auth_log_level.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthLogLevel(object): @@ -66,6 +67,7 @@ def level(self, level): :param level: The level of this AuthLogLevel. :type: AuthLogLevelLevel """ + self._level = level def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_log_level_extended.py b/isi_sdk/models/auth_log_level_extended.py index b1ef2f8f4..e9bcd9166 100644 --- a/isi_sdk/models/auth_log_level_extended.py +++ b/isi_sdk/models/auth_log_level_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthLogLevelExtended(object): @@ -66,6 +67,7 @@ def level(self, level): :param level: The level of this AuthLogLevelExtended. :type: AuthLogLevelLevel """ + self._level = level def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_log_level_level.py b/isi_sdk/models/auth_log_level_level.py index bc2b26588..2c837f4ba 100644 --- a/isi_sdk/models/auth_log_level_level.py +++ b/isi_sdk/models/auth_log_level_level.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthLogLevelLevel(object): @@ -75,6 +76,7 @@ def lsass_level(self, lsass_level): "Invalid value for `lsass_level`, must be one of {0}" .format(allowed_values) ) + self._lsass_level = lsass_level @property @@ -103,6 +105,7 @@ def netlogon_level(self, netlogon_level): "Invalid value for `netlogon_level`, must be one of {0}" .format(allowed_values) ) + self._netlogon_level = netlogon_level def to_dict(self): @@ -120,6 +123,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -137,14 +146,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_netgroup.py b/isi_sdk/models/auth_netgroup.py index cde115040..27bfc1bae 100644 --- a/isi_sdk/models/auth_netgroup.py +++ b/isi_sdk/models/auth_netgroup.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthNetgroup(object): @@ -78,6 +79,7 @@ def domainname(self, domainname): :param domainname: The domainname of this AuthNetgroup. :type: str """ + self._domainname = domainname @property @@ -100,6 +102,7 @@ def hostname(self, hostname): :param hostname: The hostname of this AuthNetgroup. :type: str """ + self._hostname = hostname @property @@ -122,6 +125,7 @@ def id(self, id): :param id: The id of this AuthNetgroup. :type: int """ + self._id = id @property @@ -144,6 +148,7 @@ def netgroup(self, netgroup): :param netgroup: The netgroup of this AuthNetgroup. :type: str """ + self._netgroup = netgroup @property @@ -166,6 +171,7 @@ def username(self, username): :param username: The username of this AuthNetgroup. :type: str """ + self._username = username def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_netgroups.py b/isi_sdk/models/auth_netgroups.py index cb8b641cd..d8202339e 100644 --- a/isi_sdk/models/auth_netgroups.py +++ b/isi_sdk/models/auth_netgroups.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthNetgroups(object): @@ -66,6 +67,7 @@ def netgroups(self, netgroups): :param netgroups: The netgroups of this AuthNetgroups. :type: list[AuthNetgroup] """ + self._netgroups = netgroups def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_privilege.py b/isi_sdk/models/auth_privilege.py index 4d2c5e459..c64afa7df 100644 --- a/isi_sdk/models/auth_privilege.py +++ b/isi_sdk/models/auth_privilege.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthPrivilege(object): @@ -78,6 +79,7 @@ def category(self, category): :param category: The category of this AuthPrivilege. :type: str """ + self._category = category @property @@ -100,6 +102,7 @@ def description(self, description): :param description: The description of this AuthPrivilege. :type: str """ + self._description = description @property @@ -122,6 +125,7 @@ def id(self, id): :param id: The id of this AuthPrivilege. :type: str """ + self._id = id @property @@ -144,6 +148,7 @@ def name(self, name): :param name: The name of this AuthPrivilege. :type: str """ + self._name = name @property @@ -166,6 +171,7 @@ def read_write(self, read_write): :param read_write: The read_write of this AuthPrivilege. :type: bool """ + self._read_write = read_write def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_privileges.py b/isi_sdk/models/auth_privileges.py index f9ced889d..8d9523880 100644 --- a/isi_sdk/models/auth_privileges.py +++ b/isi_sdk/models/auth_privileges.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthPrivileges(object): @@ -69,6 +70,7 @@ def privileges(self, privileges): :param privileges: The privileges of this AuthPrivileges. :type: list[AuthPrivilege] """ + self._privileges = privileges @property @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this AuthPrivileges. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_role.py b/isi_sdk/models/auth_role.py index 6ec3d9b94..d54b423a4 100644 --- a/isi_sdk/models/auth_role.py +++ b/isi_sdk/models/auth_role.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthRole(object): @@ -38,7 +39,7 @@ def __init__(self): """ self.swagger_types = { 'description': 'str', - 'members': 'list[GroupsGroupMember]', + 'members': 'list[GroupMember]', 'name': 'str', 'privileges': 'list[AuthIdNtokenPrivilegeItem]' } @@ -75,6 +76,7 @@ def description(self, description): :param description: The description of this AuthRole. :type: str """ + self._description = description @property @@ -84,7 +86,7 @@ def members(self): Specifies the users or groups that have this role. :return: The members of this AuthRole. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._members @@ -95,8 +97,9 @@ def members(self, members): Specifies the users or groups that have this role. :param members: The members of this AuthRole. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._members = members @property @@ -119,6 +122,7 @@ def name(self, name): :param name: The name of this AuthRole. :type: str """ + self._name = name @property @@ -141,6 +145,7 @@ def privileges(self, privileges): :param privileges: The privileges of this AuthRole. :type: list[AuthIdNtokenPrivilegeItem] """ + self._privileges = privileges def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_role_extended.py b/isi_sdk/models/auth_role_extended.py index 3231c4941..6a7f597f8 100644 --- a/isi_sdk/models/auth_role_extended.py +++ b/isi_sdk/models/auth_role_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthRoleExtended(object): @@ -37,48 +38,26 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', 'description': 'str', + 'members': 'list[GroupMember]', + 'name': 'str', 'privileges': 'list[AuthIdNtokenPrivilegeItem]', - 'id': 'str', - 'members': 'list[GroupsGroupMember]' + 'id': 'str' } self.attribute_map = { - 'name': 'name', 'description': 'description', + 'members': 'members', + 'name': 'name', 'privileges': 'privileges', - 'id': 'id', - 'members': 'members' + 'id': 'id' } - self._name = None self._description = None + self._members = None + self._name = None self._privileges = None self._id = None - self._members = None - - @property - def name(self): - """ - Gets the name of this AuthRoleExtended. - Specifies the name of the role. - - :return: The name of this AuthRoleExtended. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this AuthRoleExtended. - Specifies the name of the role. - - :param name: The name of this AuthRoleExtended. - :type: str - """ - self._name = name @property def description(self): @@ -100,8 +79,55 @@ def description(self, description): :param description: The description of this AuthRoleExtended. :type: str """ + self._description = description + @property + def members(self): + """ + Gets the members of this AuthRoleExtended. + Specifies the users or groups that have this role. + + :return: The members of this AuthRoleExtended. + :rtype: list[GroupMember] + """ + return self._members + + @members.setter + def members(self, members): + """ + Sets the members of this AuthRoleExtended. + Specifies the users or groups that have this role. + + :param members: The members of this AuthRoleExtended. + :type: list[GroupMember] + """ + + self._members = members + + @property + def name(self): + """ + Gets the name of this AuthRoleExtended. + Specifies the name of the role. + + :return: The name of this AuthRoleExtended. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this AuthRoleExtended. + Specifies the name of the role. + + :param name: The name of this AuthRoleExtended. + :type: str + """ + + self._name = name + @property def privileges(self): """ @@ -122,6 +148,7 @@ def privileges(self, privileges): :param privileges: The privileges of this AuthRoleExtended. :type: list[AuthIdNtokenPrivilegeItem] """ + self._privileges = privileges @property @@ -144,30 +171,9 @@ def id(self, id): :param id: The id of this AuthRoleExtended. :type: str """ + self._id = id - @property - def members(self): - """ - Gets the members of this AuthRoleExtended. - Specifies the users or groups that have this role. - - :return: The members of this AuthRoleExtended. - :rtype: list[GroupsGroupMember] - """ - return self._members - - @members.setter - def members(self, members): - """ - Sets the members of this AuthRoleExtended. - Specifies the users or groups that have this role. - - :param members: The members of this AuthRoleExtended. - :type: list[GroupsGroupMember] - """ - self._members = members - def to_dict(self): """ Returns the model properties as a dict @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_roles.py b/isi_sdk/models/auth_roles.py index a32603e71..9b1c3b076 100644 --- a/isi_sdk/models/auth_roles.py +++ b/isi_sdk/models/auth_roles.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthRoles(object): @@ -66,6 +67,7 @@ def roles(self, roles): :param roles: The roles of this AuthRoles. :type: list[AuthRoleExtended] """ + self._roles = roles def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_roles_extended.py b/isi_sdk/models/auth_roles_extended.py index ae4fd2e20..60df8ff1b 100644 --- a/isi_sdk/models/auth_roles_extended.py +++ b/isi_sdk/models/auth_roles_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthRolesExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'roles': 'list[AuthRoleExtended]', 'resume': 'str', - 'total': 'int', - 'roles': 'list[AuthRoleExtended]' + 'total': 'int' } self.attribute_map = { + 'roles': 'roles', 'resume': 'resume', - 'total': 'total', - 'roles': 'roles' + 'total': 'total' } + self._roles = None self._resume = None self._total = None - self._roles = None + + @property + def roles(self): + """ + Gets the roles of this AuthRolesExtended. + + + :return: The roles of this AuthRolesExtended. + :rtype: list[AuthRoleExtended] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """ + Sets the roles of this AuthRolesExtended. + + + :param roles: The roles of this AuthRolesExtended. + :type: list[AuthRoleExtended] + """ + + self._roles = roles @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this AuthRolesExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this AuthRolesExtended. :type: int """ + self._total = total - @property - def roles(self): - """ - Gets the roles of this AuthRolesExtended. - - - :return: The roles of this AuthRolesExtended. - :rtype: list[AuthRoleExtended] - """ - return self._roles - - @roles.setter - def roles(self, roles): - """ - Sets the roles of this AuthRolesExtended. - - - :param roles: The roles of this AuthRolesExtended. - :type: list[AuthRoleExtended] - """ - self._roles = roles - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_shells.py b/isi_sdk/models/auth_shells.py index 4e583f019..382db9be0 100644 --- a/isi_sdk/models/auth_shells.py +++ b/isi_sdk/models/auth_shells.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthShells(object): @@ -66,6 +67,7 @@ def shells(self, shells): :param shells: The shells of this AuthShells. :type: list[str] """ + self._shells = shells def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_user.py b/isi_sdk/models/auth_user.py index a118d8bfa..dd79b2a38 100644 --- a/isi_sdk/models/auth_user.py +++ b/isi_sdk/models/auth_user.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthUser(object): @@ -44,7 +45,7 @@ def __init__(self): 'home_directory': 'str', 'password': 'str', 'password_expires': 'bool', - 'primary_group': 'GroupsGroupMember', + 'primary_group': 'GroupMember', 'prompt_password_change': 'bool', 'shell': 'str', 'sid': 'str', @@ -102,6 +103,7 @@ def email(self, email): :param email: The email of this AuthUser. :type: str """ + self._email = email @property @@ -124,6 +126,7 @@ def enabled(self, enabled): :param enabled: The enabled of this AuthUser. :type: bool """ + self._enabled = enabled @property @@ -146,6 +149,7 @@ def expiry(self, expiry): :param expiry: The expiry of this AuthUser. :type: int """ + self._expiry = expiry @property @@ -168,6 +172,7 @@ def gecos(self, gecos): :param gecos: The gecos of this AuthUser. :type: str """ + self._gecos = gecos @property @@ -190,6 +195,7 @@ def home_directory(self, home_directory): :param home_directory: The home_directory of this AuthUser. :type: str """ + self._home_directory = home_directory @property @@ -212,6 +218,7 @@ def password(self, password): :param password: The password of this AuthUser. :type: str """ + self._password = password @property @@ -234,6 +241,7 @@ def password_expires(self, password_expires): :param password_expires: The password_expires of this AuthUser. :type: bool """ + self._password_expires = password_expires @property @@ -243,7 +251,7 @@ def primary_group(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The primary_group of this AuthUser. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._primary_group @@ -254,8 +262,9 @@ def primary_group(self, primary_group): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param primary_group: The primary_group of this AuthUser. - :type: GroupsGroupMember + :type: GroupMember """ + self._primary_group = primary_group @property @@ -278,6 +287,7 @@ def prompt_password_change(self, prompt_password_change): :param prompt_password_change: The prompt_password_change of this AuthUser. :type: bool """ + self._prompt_password_change = prompt_password_change @property @@ -300,6 +310,7 @@ def shell(self, shell): :param shell: The shell of this AuthUser. :type: str """ + self._shell = shell @property @@ -322,6 +333,7 @@ def sid(self, sid): :param sid: The sid of this AuthUser. :type: str """ + self._sid = sid @property @@ -344,6 +356,7 @@ def uid(self, uid): :param uid: The uid of this AuthUser. :type: int """ + self._uid = uid @property @@ -366,6 +379,7 @@ def unlock(self, unlock): :param unlock: The unlock of this AuthUser. :type: bool """ + self._unlock = unlock def to_dict(self): @@ -383,6 +397,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -400,14 +420,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_user_create_params.py b/isi_sdk/models/auth_user_create_params.py index 97de88e99..38a23f7c7 100644 --- a/isi_sdk/models/auth_user_create_params.py +++ b/isi_sdk/models/auth_user_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthUserCreateParams(object): @@ -37,75 +38,145 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'unlock': 'bool', - 'home_directory': 'str', - 'primary_group': 'GroupsGroupMember', - 'prompt_password_change': 'bool', + 'email': 'str', 'enabled': 'bool', - 'sid': 'str', - 'uid': 'int', - 'password': 'str', + 'expiry': 'int', 'gecos': 'str', + 'home_directory': 'str', + 'password': 'str', 'password_expires': 'bool', + 'primary_group': 'GroupMember', + 'prompt_password_change': 'bool', 'shell': 'str', - 'name': 'str', - 'expiry': 'int', - 'email': 'str' + 'sid': 'str', + 'uid': 'int', + 'unlock': 'bool', + 'name': 'str' } self.attribute_map = { - 'unlock': 'unlock', + 'email': 'email', + 'enabled': 'enabled', + 'expiry': 'expiry', + 'gecos': 'gecos', 'home_directory': 'home_directory', + 'password': 'password', + 'password_expires': 'password_expires', 'primary_group': 'primary_group', 'prompt_password_change': 'prompt_password_change', - 'enabled': 'enabled', + 'shell': 'shell', 'sid': 'sid', 'uid': 'uid', - 'password': 'password', - 'gecos': 'gecos', - 'password_expires': 'password_expires', - 'shell': 'shell', - 'name': 'name', - 'expiry': 'expiry', - 'email': 'email' + 'unlock': 'unlock', + 'name': 'name' } - self._unlock = None + self._email = None + self._enabled = None + self._expiry = None + self._gecos = None self._home_directory = None + self._password = None + self._password_expires = None self._primary_group = None self._prompt_password_change = None - self._enabled = None + self._shell = None self._sid = None self._uid = None - self._password = None - self._gecos = None - self._password_expires = None - self._shell = None + self._unlock = None self._name = None - self._expiry = None - self._email = None @property - def unlock(self): + def email(self): """ - Gets the unlock of this AuthUserCreateParams. - If true, the user account should be unlocked. + Gets the email of this AuthUserCreateParams. + Specifies an email address for the user. - :return: The unlock of this AuthUserCreateParams. + :return: The email of this AuthUserCreateParams. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this AuthUserCreateParams. + Specifies an email address for the user. + + :param email: The email of this AuthUserCreateParams. + :type: str + """ + + self._email = email + + @property + def enabled(self): + """ + Gets the enabled of this AuthUserCreateParams. + If true, the authenticated user is enabled. + + :return: The enabled of this AuthUserCreateParams. :rtype: bool """ - return self._unlock + return self._enabled - @unlock.setter - def unlock(self, unlock): + @enabled.setter + def enabled(self, enabled): """ - Sets the unlock of this AuthUserCreateParams. - If true, the user account should be unlocked. + Sets the enabled of this AuthUserCreateParams. + If true, the authenticated user is enabled. - :param unlock: The unlock of this AuthUserCreateParams. + :param enabled: The enabled of this AuthUserCreateParams. :type: bool """ - self._unlock = unlock + + self._enabled = enabled + + @property + def expiry(self): + """ + Gets the expiry of this AuthUserCreateParams. + Specifies the Unix Epoch time when the auth user will expire. + + :return: The expiry of this AuthUserCreateParams. + :rtype: int + """ + return self._expiry + + @expiry.setter + def expiry(self, expiry): + """ + Sets the expiry of this AuthUserCreateParams. + Specifies the Unix Epoch time when the auth user will expire. + + :param expiry: The expiry of this AuthUserCreateParams. + :type: int + """ + + self._expiry = expiry + + @property + def gecos(self): + """ + Gets the gecos of this AuthUserCreateParams. + Specifies the GECOS value, which is usually the full name. + + :return: The gecos of this AuthUserCreateParams. + :rtype: str + """ + return self._gecos + + @gecos.setter + def gecos(self, gecos): + """ + Sets the gecos of this AuthUserCreateParams. + Specifies the GECOS value, which is usually the full name. + + :param gecos: The gecos of this AuthUserCreateParams. + :type: str + """ + + self._gecos = gecos @property def home_directory(self): @@ -127,8 +198,55 @@ def home_directory(self, home_directory): :param home_directory: The home_directory of this AuthUserCreateParams. :type: str """ + self._home_directory = home_directory + @property + def password(self): + """ + Gets the password of this AuthUserCreateParams. + Changes the password for the user. + + :return: The password of this AuthUserCreateParams. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this AuthUserCreateParams. + Changes the password for the user. + + :param password: The password of this AuthUserCreateParams. + :type: str + """ + + self._password = password + + @property + def password_expires(self): + """ + Gets the password_expires of this AuthUserCreateParams. + If true, the password should expire. + + :return: The password_expires of this AuthUserCreateParams. + :rtype: bool + """ + return self._password_expires + + @password_expires.setter + def password_expires(self, password_expires): + """ + Sets the password_expires of this AuthUserCreateParams. + If true, the password should expire. + + :param password_expires: The password_expires of this AuthUserCreateParams. + :type: bool + """ + + self._password_expires = password_expires + @property def primary_group(self): """ @@ -136,7 +254,7 @@ def primary_group(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The primary_group of this AuthUserCreateParams. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._primary_group @@ -147,8 +265,9 @@ def primary_group(self, primary_group): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param primary_group: The primary_group of this AuthUserCreateParams. - :type: GroupsGroupMember + :type: GroupMember """ + self._primary_group = primary_group @property @@ -171,29 +290,31 @@ def prompt_password_change(self, prompt_password_change): :param prompt_password_change: The prompt_password_change of this AuthUserCreateParams. :type: bool """ + self._prompt_password_change = prompt_password_change @property - def enabled(self): + def shell(self): """ - Gets the enabled of this AuthUserCreateParams. - If true, the authenticated user is enabled. + Gets the shell of this AuthUserCreateParams. + Specifies the shell for the user. - :return: The enabled of this AuthUserCreateParams. - :rtype: bool + :return: The shell of this AuthUserCreateParams. + :rtype: str """ - return self._enabled + return self._shell - @enabled.setter - def enabled(self, enabled): + @shell.setter + def shell(self, shell): """ - Sets the enabled of this AuthUserCreateParams. - If true, the authenticated user is enabled. + Sets the shell of this AuthUserCreateParams. + Specifies the shell for the user. - :param enabled: The enabled of this AuthUserCreateParams. - :type: bool + :param shell: The shell of this AuthUserCreateParams. + :type: str """ - self._enabled = enabled + + self._shell = shell @property def sid(self): @@ -215,6 +336,7 @@ def sid(self, sid): :param sid: The sid of this AuthUserCreateParams. :type: str """ + self._sid = sid @property @@ -237,95 +359,31 @@ def uid(self, uid): :param uid: The uid of this AuthUserCreateParams. :type: int """ + self._uid = uid @property - def password(self): - """ - Gets the password of this AuthUserCreateParams. - Changes the password for the user. - - :return: The password of this AuthUserCreateParams. - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """ - Sets the password of this AuthUserCreateParams. - Changes the password for the user. - - :param password: The password of this AuthUserCreateParams. - :type: str - """ - self._password = password - - @property - def gecos(self): - """ - Gets the gecos of this AuthUserCreateParams. - Specifies the GECOS value, which is usually the full name. - - :return: The gecos of this AuthUserCreateParams. - :rtype: str - """ - return self._gecos - - @gecos.setter - def gecos(self, gecos): - """ - Sets the gecos of this AuthUserCreateParams. - Specifies the GECOS value, which is usually the full name. - - :param gecos: The gecos of this AuthUserCreateParams. - :type: str - """ - self._gecos = gecos - - @property - def password_expires(self): + def unlock(self): """ - Gets the password_expires of this AuthUserCreateParams. - If true, the password should expire. + Gets the unlock of this AuthUserCreateParams. + If true, the user account should be unlocked. - :return: The password_expires of this AuthUserCreateParams. + :return: The unlock of this AuthUserCreateParams. :rtype: bool """ - return self._password_expires + return self._unlock - @password_expires.setter - def password_expires(self, password_expires): + @unlock.setter + def unlock(self, unlock): """ - Sets the password_expires of this AuthUserCreateParams. - If true, the password should expire. + Sets the unlock of this AuthUserCreateParams. + If true, the user account should be unlocked. - :param password_expires: The password_expires of this AuthUserCreateParams. + :param unlock: The unlock of this AuthUserCreateParams. :type: bool """ - self._password_expires = password_expires - - @property - def shell(self): - """ - Gets the shell of this AuthUserCreateParams. - Specifies the shell for the user. - - :return: The shell of this AuthUserCreateParams. - :rtype: str - """ - return self._shell - - @shell.setter - def shell(self, shell): - """ - Sets the shell of this AuthUserCreateParams. - Specifies the shell for the user. - - :param shell: The shell of this AuthUserCreateParams. - :type: str - """ - self._shell = shell + + self._unlock = unlock @property def name(self): @@ -347,52 +405,9 @@ def name(self, name): :param name: The name of this AuthUserCreateParams. :type: str """ + self._name = name - @property - def expiry(self): - """ - Gets the expiry of this AuthUserCreateParams. - Specifies the Unix Epoch time when the auth user will expire. - - :return: The expiry of this AuthUserCreateParams. - :rtype: int - """ - return self._expiry - - @expiry.setter - def expiry(self, expiry): - """ - Sets the expiry of this AuthUserCreateParams. - Specifies the Unix Epoch time when the auth user will expire. - - :param expiry: The expiry of this AuthUserCreateParams. - :type: int - """ - self._expiry = expiry - - @property - def email(self): - """ - Gets the email of this AuthUserCreateParams. - Specifies an email address for the user. - - :return: The email of this AuthUserCreateParams. - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """ - Sets the email of this AuthUserCreateParams. - Specifies an email address for the user. - - :param email: The email of this AuthUserCreateParams. - :type: str - """ - self._email = email - def to_dict(self): """ Returns the model properties as a dict @@ -408,6 +423,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -425,14 +446,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_users.py b/isi_sdk/models/auth_users.py index 26a88fe20..f3787a048 100644 --- a/isi_sdk/models/auth_users.py +++ b/isi_sdk/models/auth_users.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthUsers(object): @@ -66,6 +67,7 @@ def users(self, users): :param users: The users of this AuthUsers. :type: list[MappingUsersLookupMappingItemUser] """ + self._users = users def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_users_extended.py b/isi_sdk/models/auth_users_extended.py index 30fac4639..d5a37a7c4 100644 --- a/isi_sdk/models/auth_users_extended.py +++ b/isi_sdk/models/auth_users_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthUsersExtended(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', - 'users': 'list[MappingUsersLookupMappingItemUser]' + 'users': 'list[MappingUsersLookupMappingItemUser]', + 'resume': 'str' } self.attribute_map = { - 'resume': 'resume', - 'users': 'users' + 'users': 'users', + 'resume': 'resume' } - self._resume = None self._users = None - - @property - def resume(self): - """ - Gets the resume of this AuthUsersExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this AuthUsersExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this AuthUsersExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this AuthUsersExtended. - :type: str - """ - self._resume = resume + self._resume = None @property def users(self): @@ -91,8 +70,32 @@ def users(self, users): :param users: The users of this AuthUsersExtended. :type: list[MappingUsersLookupMappingItemUser] """ + self._users = users + @property + def resume(self): + """ + Gets the resume of this AuthUsersExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this AuthUsersExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this AuthUsersExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this AuthUsersExtended. + :type: str + """ + + self._resume = resume + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/auth_wellknowns.py b/isi_sdk/models/auth_wellknowns.py index 2096e38e2..98c7fb69c 100644 --- a/isi_sdk/models/auth_wellknowns.py +++ b/isi_sdk/models/auth_wellknowns.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class AuthWellknowns(object): @@ -37,7 +38,7 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'wellknowns': 'list[GroupsGroupMember]' + 'wellknowns': 'list[GroupMember]' } self.attribute_map = { @@ -53,7 +54,7 @@ def wellknowns(self): :return: The wellknowns of this AuthWellknowns. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._wellknowns @@ -64,8 +65,9 @@ def wellknowns(self, wellknowns): :param wellknowns: The wellknowns of this AuthWellknowns. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._wellknowns = wellknowns def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/changelist_lins.py b/isi_sdk/models/changelist_lins.py new file mode 100644 index 000000000..54f2b8ff9 --- /dev/null +++ b/isi_sdk/models/changelist_lins.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ChangelistLins(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ChangelistLins - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'atime': 'ChangelistLinsCtime', + 'ctime': 'ChangelistLinsCtime', + 'id': 'str', + 'mtime': 'ChangelistLinsCtime', + 'path': 'str', + 'size': 'int', + 'type': 'str' + } + + self.attribute_map = { + 'atime': 'atime', + 'ctime': 'ctime', + 'id': 'id', + 'mtime': 'mtime', + 'path': 'path', + 'size': 'size', + 'type': 'type' + } + + self._atime = None + self._ctime = None + self._id = None + self._mtime = None + self._path = None + self._size = None + self._type = None + + @property + def atime(self): + """ + Gets the atime of this ChangelistLins. + + + :return: The atime of this ChangelistLins. + :rtype: ChangelistLinsCtime + """ + return self._atime + + @atime.setter + def atime(self, atime): + """ + Sets the atime of this ChangelistLins. + + + :param atime: The atime of this ChangelistLins. + :type: ChangelistLinsCtime + """ + + self._atime = atime + + @property + def ctime(self): + """ + Gets the ctime of this ChangelistLins. + + + :return: The ctime of this ChangelistLins. + :rtype: ChangelistLinsCtime + """ + return self._ctime + + @ctime.setter + def ctime(self, ctime): + """ + Sets the ctime of this ChangelistLins. + + + :param ctime: The ctime of this ChangelistLins. + :type: ChangelistLinsCtime + """ + + self._ctime = ctime + + @property + def id(self): + """ + Gets the id of this ChangelistLins. + The LIN number of the file associated with the entry. + + :return: The id of this ChangelistLins. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ChangelistLins. + The LIN number of the file associated with the entry. + + :param id: The id of this ChangelistLins. + :type: str + """ + + self._id = id + + @property + def mtime(self): + """ + Gets the mtime of this ChangelistLins. + + + :return: The mtime of this ChangelistLins. + :rtype: ChangelistLinsCtime + """ + return self._mtime + + @mtime.setter + def mtime(self, mtime): + """ + Sets the mtime of this ChangelistLins. + + + :param mtime: The mtime of this ChangelistLins. + :type: ChangelistLinsCtime + """ + + self._mtime = mtime + + @property + def path(self): + """ + Gets the path of this ChangelistLins. + The path to the file associated with the entry. + + :return: The path of this ChangelistLins. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this ChangelistLins. + The path to the file associated with the entry. + + :param path: The path of this ChangelistLins. + :type: str + """ + + self._path = path + + @property + def size(self): + """ + Gets the size of this ChangelistLins. + The size of the file associated with the entry. + + :return: The size of this ChangelistLins. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this ChangelistLins. + The size of the file associated with the entry. + + :param size: The size of this ChangelistLins. + :type: int + """ + + self._size = size + + @property + def type(self): + """ + Gets the type of this ChangelistLins. + Type of file. + + :return: The type of this ChangelistLins. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ChangelistLins. + Type of file. + + :param type: The type of this ChangelistLins. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/changelist_lins_ctime.py b/isi_sdk/models/changelist_lins_ctime.py new file mode 100644 index 000000000..9c753731d --- /dev/null +++ b/isi_sdk/models/changelist_lins_ctime.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ChangelistLinsCtime(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ChangelistLinsCtime - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nsec': 'int', + 'sec': 'int' + } + + self.attribute_map = { + 'nsec': 'nsec', + 'sec': 'sec' + } + + self._nsec = None + self._sec = None + + @property + def nsec(self): + """ + Gets the nsec of this ChangelistLinsCtime. + Nanoseconds component of timespec. + + :return: The nsec of this ChangelistLinsCtime. + :rtype: int + """ + return self._nsec + + @nsec.setter + def nsec(self, nsec): + """ + Sets the nsec of this ChangelistLinsCtime. + Nanoseconds component of timespec. + + :param nsec: The nsec of this ChangelistLinsCtime. + :type: int + """ + + self._nsec = nsec + + @property + def sec(self): + """ + Gets the sec of this ChangelistLinsCtime. + Seconds component of timespec. + + :return: The sec of this ChangelistLinsCtime. + :rtype: int + """ + return self._sec + + @sec.setter + def sec(self, sec): + """ + Sets the sec of this ChangelistLinsCtime. + Seconds component of timespec. + + :param sec: The sec of this ChangelistLinsCtime. + :type: int + """ + + self._sec = sec + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/changelist_lins_extended.py b/isi_sdk/models/changelist_lins_extended.py new file mode 100644 index 000000000..9999d0e32 --- /dev/null +++ b/isi_sdk/models/changelist_lins_extended.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ChangelistLinsExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ChangelistLinsExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'lins': 'list[ChangelistLins]', + 'resume': 'str', + 'total': 'int' + } + + self.attribute_map = { + 'lins': 'lins', + 'resume': 'resume', + 'total': 'total' + } + + self._lins = None + self._resume = None + self._total = None + + @property + def lins(self): + """ + Gets the lins of this ChangelistLinsExtended. + + + :return: The lins of this ChangelistLinsExtended. + :rtype: list[ChangelistLins] + """ + return self._lins + + @lins.setter + def lins(self, lins): + """ + Sets the lins of this ChangelistLinsExtended. + + + :param lins: The lins of this ChangelistLinsExtended. + :type: list[ChangelistLins] + """ + + self._lins = lins + + @property + def resume(self): + """ + Gets the resume of this ChangelistLinsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this ChangelistLinsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this ChangelistLinsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this ChangelistLinsExtended. + :type: str + """ + + self._resume = resume + + @property + def total(self): + """ + Gets the total of this ChangelistLinsExtended. + Total number of items available. + + :return: The total of this ChangelistLinsExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this ChangelistLinsExtended. + Total number of items available. + + :param total: The total of this ChangelistLinsExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/cloud_access.py b/isi_sdk/models/cloud_access.py index 7efe34904..d97349906 100644 --- a/isi_sdk/models/cloud_access.py +++ b/isi_sdk/models/cloud_access.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccess(object): @@ -69,6 +70,7 @@ def clusters(self, clusters): :param clusters: The clusters of this CloudAccess. :type: list[CloudAccessCluster] """ + self._clusters = clusters @property @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this CloudAccess. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_access_cluster.py b/isi_sdk/models/cloud_access_cluster.py index 883cc42c0..da16c43e5 100644 --- a/isi_sdk/models/cloud_access_cluster.py +++ b/isi_sdk/models/cloud_access_cluster.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccessCluster(object): @@ -87,6 +88,7 @@ def accounts(self, accounts): :param accounts: The accounts of this CloudAccessCluster. :type: list[str] """ + self._accounts = accounts @property @@ -109,6 +111,7 @@ def current(self, current): :param current: The current of this CloudAccessCluster. :type: bool """ + self._current = current @property @@ -131,6 +134,7 @@ def guid(self, guid): :param guid: The guid of this CloudAccessCluster. :type: str """ + self._guid = guid @property @@ -153,6 +157,7 @@ def id(self, id): :param id: The id of this CloudAccessCluster. :type: str """ + self._id = id @property @@ -175,6 +180,7 @@ def name(self, name): :param name: The name of this CloudAccessCluster. :type: str """ + self._name = name @property @@ -197,6 +203,7 @@ def policies(self, policies): :param policies: The policies of this CloudAccessCluster. :type: list[str] """ + self._policies = policies @property @@ -225,6 +232,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property @@ -247,6 +255,7 @@ def synced_from(self, synced_from): :param synced_from: The synced_from of this CloudAccessCluster. :type: str """ + self._synced_from = synced_from def to_dict(self): @@ -264,6 +273,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -281,14 +296,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_access_extended.py b/isi_sdk/models/cloud_access_extended.py index cfe355735..0e439aa9a 100644 --- a/isi_sdk/models/cloud_access_extended.py +++ b/isi_sdk/models/cloud_access_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccessExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'clusters': 'list[CloudAccessCluster]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'clusters': 'clusters', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._clusters = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this CloudAccessExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this CloudAccessExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this CloudAccessExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this CloudAccessExtended. - :type: str - """ - self._resume = resume - @property def clusters(self): """ @@ -94,8 +73,32 @@ def clusters(self, clusters): :param clusters: The clusters of this CloudAccessExtended. :type: list[CloudAccessCluster] """ + self._clusters = clusters + @property + def resume(self): + """ + Gets the resume of this CloudAccessExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this CloudAccessExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this CloudAccessExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this CloudAccessExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this CloudAccessExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_access_item.py b/isi_sdk/models/cloud_access_item.py index 968adaae9..90ca36a81 100644 --- a/isi_sdk/models/cloud_access_item.py +++ b/isi_sdk/models/cloud_access_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccessItem(object): @@ -66,6 +67,7 @@ def guid(self, guid): :param guid: The guid of this CloudAccessItem. :type: str """ + self._guid = guid def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_account.py b/isi_sdk/models/cloud_account.py index fbf9df30b..897929425 100644 --- a/isi_sdk/models/cloud_account.py +++ b/isi_sdk/models/cloud_account.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccount(object): @@ -93,6 +94,7 @@ def account_id(self, account_id): :param account_id: The account_id of this CloudAccount. :type: str """ + self._account_id = account_id @property @@ -115,6 +117,7 @@ def account_username(self, account_username): :param account_username: The account_username of this CloudAccount. :type: str """ + self._account_username = account_username @property @@ -137,6 +140,7 @@ def birth_cluster_id(self, birth_cluster_id): :param birth_cluster_id: The birth_cluster_id of this CloudAccount. :type: str """ + self._birth_cluster_id = birth_cluster_id @property @@ -159,6 +163,7 @@ def enabled(self, enabled): :param enabled: The enabled of this CloudAccount. :type: bool """ + self._enabled = enabled @property @@ -181,6 +186,7 @@ def key(self, key): :param key: The key of this CloudAccount. :type: str """ + self._key = key @property @@ -203,6 +209,7 @@ def name(self, name): :param name: The name of this CloudAccount. :type: str """ + self._name = name @property @@ -225,6 +232,7 @@ def skip_ssl_validation(self, skip_ssl_validation): :param skip_ssl_validation: The skip_ssl_validation of this CloudAccount. :type: bool """ + self._skip_ssl_validation = skip_ssl_validation @property @@ -247,6 +255,7 @@ def storage_region(self, storage_region): :param storage_region: The storage_region of this CloudAccount. :type: str """ + self._storage_region = storage_region @property @@ -269,6 +278,7 @@ def telemetry_bucket(self, telemetry_bucket): :param telemetry_bucket: The telemetry_bucket of this CloudAccount. :type: str """ + self._telemetry_bucket = telemetry_bucket @property @@ -291,6 +301,7 @@ def uri(self, uri): :param uri: The uri of this CloudAccount. :type: str """ + self._uri = uri def to_dict(self): @@ -308,6 +319,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -325,14 +342,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_account_create_params.py b/isi_sdk/models/cloud_account_create_params.py index 7a1377205..edf77ae3e 100644 --- a/isi_sdk/models/cloud_account_create_params.py +++ b/isi_sdk/models/cloud_account_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccountCreateParams(object): @@ -37,66 +38,44 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'storage_region': 'str', 'account_id': 'str', - 'telemetry_bucket': 'str', - 'birth_cluster_id': 'str', 'account_username': 'str', + 'birth_cluster_id': 'str', + 'enabled': 'bool', + 'key': 'str', 'name': 'str', - 'type': 'str', 'skip_ssl_validation': 'bool', + 'storage_region': 'str', + 'telemetry_bucket': 'str', 'uri': 'str', - 'enabled': 'bool', - 'key': 'str' + 'type': 'str' } self.attribute_map = { - 'storage_region': 'storage_region', 'account_id': 'account_id', - 'telemetry_bucket': 'telemetry_bucket', - 'birth_cluster_id': 'birth_cluster_id', 'account_username': 'account_username', + 'birth_cluster_id': 'birth_cluster_id', + 'enabled': 'enabled', + 'key': 'key', 'name': 'name', - 'type': 'type', 'skip_ssl_validation': 'skip_ssl_validation', + 'storage_region': 'storage_region', + 'telemetry_bucket': 'telemetry_bucket', 'uri': 'uri', - 'enabled': 'enabled', - 'key': 'key' + 'type': 'type' } - self._storage_region = None self._account_id = None - self._telemetry_bucket = None - self._birth_cluster_id = None self._account_username = None + self._birth_cluster_id = None + self._enabled = None + self._key = None self._name = None - self._type = None self._skip_ssl_validation = None + self._storage_region = None + self._telemetry_bucket = None self._uri = None - self._enabled = None - self._key = None - - @property - def storage_region(self): - """ - Gets the storage_region of this CloudAccountCreateParams. - (S3 only) An appropriate region for the S3 account. For example, faster access times may be gained by referencing a nearby region - - :return: The storage_region of this CloudAccountCreateParams. - :rtype: str - """ - return self._storage_region - - @storage_region.setter - def storage_region(self, storage_region): - """ - Sets the storage_region of this CloudAccountCreateParams. - (S3 only) An appropriate region for the S3 account. For example, faster access times may be gained by referencing a nearby region - - :param storage_region: The storage_region of this CloudAccountCreateParams. - :type: str - """ - self._storage_region = storage_region + self._type = None @property def account_id(self): @@ -118,29 +97,31 @@ def account_id(self, account_id): :param account_id: The account_id of this CloudAccountCreateParams. :type: str """ + self._account_id = account_id @property - def telemetry_bucket(self): + def account_username(self): """ - Gets the telemetry_bucket of this CloudAccountCreateParams. - (S3 only) The name of the bucket into which generated metrics reports are placed by the cloud service provider + Gets the account_username of this CloudAccountCreateParams. + The username required to authenticate against the cloud service - :return: The telemetry_bucket of this CloudAccountCreateParams. + :return: The account_username of this CloudAccountCreateParams. :rtype: str """ - return self._telemetry_bucket + return self._account_username - @telemetry_bucket.setter - def telemetry_bucket(self, telemetry_bucket): + @account_username.setter + def account_username(self, account_username): """ - Sets the telemetry_bucket of this CloudAccountCreateParams. - (S3 only) The name of the bucket into which generated metrics reports are placed by the cloud service provider + Sets the account_username of this CloudAccountCreateParams. + The username required to authenticate against the cloud service - :param telemetry_bucket: The telemetry_bucket of this CloudAccountCreateParams. + :param account_username: The account_username of this CloudAccountCreateParams. :type: str """ - self._telemetry_bucket = telemetry_bucket + + self._account_username = account_username @property def birth_cluster_id(self): @@ -162,29 +143,54 @@ def birth_cluster_id(self, birth_cluster_id): :param birth_cluster_id: The birth_cluster_id of this CloudAccountCreateParams. :type: str """ + self._birth_cluster_id = birth_cluster_id @property - def account_username(self): + def enabled(self): """ - Gets the account_username of this CloudAccountCreateParams. - The username required to authenticate against the cloud service + Gets the enabled of this CloudAccountCreateParams. + Whether this account is explicitly enabled or disabled by a user - :return: The account_username of this CloudAccountCreateParams. + :return: The enabled of this CloudAccountCreateParams. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this CloudAccountCreateParams. + Whether this account is explicitly enabled or disabled by a user + + :param enabled: The enabled of this CloudAccountCreateParams. + :type: bool + """ + + self._enabled = enabled + + @property + def key(self): + """ + Gets the key of this CloudAccountCreateParams. + A valid authentication key for connecting to the cloud + + :return: The key of this CloudAccountCreateParams. :rtype: str """ - return self._account_username + return self._key - @account_username.setter - def account_username(self, account_username): + @key.setter + def key(self, key): """ - Sets the account_username of this CloudAccountCreateParams. - The username required to authenticate against the cloud service + Sets the key of this CloudAccountCreateParams. + A valid authentication key for connecting to the cloud - :param account_username: The account_username of this CloudAccountCreateParams. + :param key: The key of this CloudAccountCreateParams. :type: str """ - self._account_username = account_username + + self._key = key @property def name(self): @@ -206,36 +212,9 @@ def name(self, name): :param name: The name of this CloudAccountCreateParams. :type: str """ + self._name = name - @property - def type(self): - """ - Gets the type of this CloudAccountCreateParams. - The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 - - :return: The type of this CloudAccountCreateParams. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this CloudAccountCreateParams. - The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 - - :param type: The type of this CloudAccountCreateParams. - :type: str - """ - allowed_values = ["isilon", "ecs", "ecs2", "azure", "s3", "ran"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type`, must be one of {0}" - .format(allowed_values) - ) - self._type = type - @property def skip_ssl_validation(self): """ @@ -256,8 +235,55 @@ def skip_ssl_validation(self, skip_ssl_validation): :param skip_ssl_validation: The skip_ssl_validation of this CloudAccountCreateParams. :type: bool """ + self._skip_ssl_validation = skip_ssl_validation + @property + def storage_region(self): + """ + Gets the storage_region of this CloudAccountCreateParams. + (S3 only) An appropriate region for the S3 account. For example, faster access times may be gained by referencing a nearby region + + :return: The storage_region of this CloudAccountCreateParams. + :rtype: str + """ + return self._storage_region + + @storage_region.setter + def storage_region(self, storage_region): + """ + Sets the storage_region of this CloudAccountCreateParams. + (S3 only) An appropriate region for the S3 account. For example, faster access times may be gained by referencing a nearby region + + :param storage_region: The storage_region of this CloudAccountCreateParams. + :type: str + """ + + self._storage_region = storage_region + + @property + def telemetry_bucket(self): + """ + Gets the telemetry_bucket of this CloudAccountCreateParams. + (S3 only) The name of the bucket into which generated metrics reports are placed by the cloud service provider + + :return: The telemetry_bucket of this CloudAccountCreateParams. + :rtype: str + """ + return self._telemetry_bucket + + @telemetry_bucket.setter + def telemetry_bucket(self, telemetry_bucket): + """ + Sets the telemetry_bucket of this CloudAccountCreateParams. + (S3 only) The name of the bucket into which generated metrics reports are placed by the cloud service provider + + :param telemetry_bucket: The telemetry_bucket of this CloudAccountCreateParams. + :type: str + """ + + self._telemetry_bucket = telemetry_bucket + @property def uri(self): """ @@ -278,51 +304,37 @@ def uri(self, uri): :param uri: The uri of this CloudAccountCreateParams. :type: str """ + self._uri = uri @property - def enabled(self): - """ - Gets the enabled of this CloudAccountCreateParams. - Whether this account is explicitly enabled or disabled by a user - - :return: The enabled of this CloudAccountCreateParams. - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """ - Sets the enabled of this CloudAccountCreateParams. - Whether this account is explicitly enabled or disabled by a user - - :param enabled: The enabled of this CloudAccountCreateParams. - :type: bool - """ - self._enabled = enabled - - @property - def key(self): + def type(self): """ - Gets the key of this CloudAccountCreateParams. - A valid authentication key for connecting to the cloud + Gets the type of this CloudAccountCreateParams. + The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 - :return: The key of this CloudAccountCreateParams. + :return: The type of this CloudAccountCreateParams. :rtype: str """ - return self._key + return self._type - @key.setter - def key(self, key): + @type.setter + def type(self, type): """ - Sets the key of this CloudAccountCreateParams. - A valid authentication key for connecting to the cloud + Sets the type of this CloudAccountCreateParams. + The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 - :param key: The key of this CloudAccountCreateParams. + :param type: The type of this CloudAccountCreateParams. :type: str """ - self._key = key + allowed_values = ["isilon", "ecs", "ecs2", "azure", "s3", "ran"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type def to_dict(self): """ @@ -339,6 +351,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -356,14 +374,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_account_extended.py b/isi_sdk/models/cloud_account_extended.py index 7050f1719..5436bb6c1 100644 --- a/isi_sdk/models/cloud_account_extended.py +++ b/isi_sdk/models/cloud_account_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccountExtended(object): @@ -37,222 +38,223 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'state_details': 'str', - 'pool': 'str', - 'type': 'str', - 'skip_ssl_validation': 'bool', - 'uri': 'str', - 'enabled': 'bool', - 'bucket': 'str', - 'storage_region': 'str', 'account_id': 'str', - 'telemetry_bucket': 'str', - 'birth_cluster_id': 'str', 'account_username': 'str', + 'birth_cluster_id': 'str', + 'enabled': 'bool', + 'key': 'str', 'name': 'str', - 'metadata_bucket': 'str', + 'skip_ssl_validation': 'bool', + 'storage_region': 'str', + 'telemetry_bucket': 'str', + 'uri': 'str', + 'bucket': 'str', 'id': 'str', + 'metadata_bucket': 'str', + 'pool': 'str', 'state': 'str', - 'key': 'str' + 'state_details': 'str', + 'type': 'str' } self.attribute_map = { - 'state_details': 'state_details', - 'pool': 'pool', - 'type': 'type', - 'skip_ssl_validation': 'skip_ssl_validation', - 'uri': 'uri', - 'enabled': 'enabled', - 'bucket': 'bucket', - 'storage_region': 'storage_region', 'account_id': 'account_id', - 'telemetry_bucket': 'telemetry_bucket', - 'birth_cluster_id': 'birth_cluster_id', 'account_username': 'account_username', + 'birth_cluster_id': 'birth_cluster_id', + 'enabled': 'enabled', + 'key': 'key', 'name': 'name', - 'metadata_bucket': 'metadata_bucket', + 'skip_ssl_validation': 'skip_ssl_validation', + 'storage_region': 'storage_region', + 'telemetry_bucket': 'telemetry_bucket', + 'uri': 'uri', + 'bucket': 'bucket', 'id': 'id', + 'metadata_bucket': 'metadata_bucket', + 'pool': 'pool', 'state': 'state', - 'key': 'key' + 'state_details': 'state_details', + 'type': 'type' } - self._state_details = None - self._pool = None - self._type = None - self._skip_ssl_validation = None - self._uri = None - self._enabled = None - self._bucket = None - self._storage_region = None self._account_id = None - self._telemetry_bucket = None - self._birth_cluster_id = None self._account_username = None + self._birth_cluster_id = None + self._enabled = None + self._key = None self._name = None - self._metadata_bucket = None + self._skip_ssl_validation = None + self._storage_region = None + self._telemetry_bucket = None + self._uri = None + self._bucket = None self._id = None + self._metadata_bucket = None + self._pool = None self._state = None - self._key = None + self._state_details = None + self._type = None @property - def state_details(self): + def account_id(self): """ - Gets the state_details of this CloudAccountExtended. - Gives further information to describe the state of this account + Gets the account_id of this CloudAccountExtended. + (S3 only) The user id of the S3 account - :return: The state_details of this CloudAccountExtended. + :return: The account_id of this CloudAccountExtended. :rtype: str """ - return self._state_details + return self._account_id - @state_details.setter - def state_details(self, state_details): + @account_id.setter + def account_id(self, account_id): """ - Sets the state_details of this CloudAccountExtended. - Gives further information to describe the state of this account + Sets the account_id of this CloudAccountExtended. + (S3 only) The user id of the S3 account - :param state_details: The state_details of this CloudAccountExtended. + :param account_id: The account_id of this CloudAccountExtended. :type: str """ - self._state_details = state_details + + self._account_id = account_id @property - def pool(self): + def account_username(self): """ - Gets the pool of this CloudAccountExtended. - Name of the pool referencing this account. Empty if none. + Gets the account_username of this CloudAccountExtended. + The username required to authenticate against the cloud service - :return: The pool of this CloudAccountExtended. + :return: The account_username of this CloudAccountExtended. :rtype: str """ - return self._pool + return self._account_username - @pool.setter - def pool(self, pool): + @account_username.setter + def account_username(self, account_username): """ - Sets the pool of this CloudAccountExtended. - Name of the pool referencing this account. Empty if none. + Sets the account_username of this CloudAccountExtended. + The username required to authenticate against the cloud service - :param pool: The pool of this CloudAccountExtended. + :param account_username: The account_username of this CloudAccountExtended. :type: str """ - self._pool = pool + + self._account_username = account_username @property - def type(self): + def birth_cluster_id(self): """ - Gets the type of this CloudAccountExtended. - The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 + Gets the birth_cluster_id of this CloudAccountExtended. + The guid of the cluster where this account was created - :return: The type of this CloudAccountExtended. + :return: The birth_cluster_id of this CloudAccountExtended. :rtype: str """ - return self._type + return self._birth_cluster_id - @type.setter - def type(self, type): + @birth_cluster_id.setter + def birth_cluster_id(self, birth_cluster_id): """ - Sets the type of this CloudAccountExtended. - The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 + Sets the birth_cluster_id of this CloudAccountExtended. + The guid of the cluster where this account was created - :param type: The type of this CloudAccountExtended. + :param birth_cluster_id: The birth_cluster_id of this CloudAccountExtended. :type: str """ - allowed_values = ["isilon", "ecs", "ecs2", "azure", "s3", "ran"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type`, must be one of {0}" - .format(allowed_values) - ) - self._type = type + + self._birth_cluster_id = birth_cluster_id @property - def skip_ssl_validation(self): + def enabled(self): """ - Gets the skip_ssl_validation of this CloudAccountExtended. - Indicates whether to skip SSL certificate validation when connecting to the cloud + Gets the enabled of this CloudAccountExtended. + Whether this account is explicitly enabled or disabled by a user - :return: The skip_ssl_validation of this CloudAccountExtended. + :return: The enabled of this CloudAccountExtended. :rtype: bool """ - return self._skip_ssl_validation + return self._enabled - @skip_ssl_validation.setter - def skip_ssl_validation(self, skip_ssl_validation): + @enabled.setter + def enabled(self, enabled): """ - Sets the skip_ssl_validation of this CloudAccountExtended. - Indicates whether to skip SSL certificate validation when connecting to the cloud + Sets the enabled of this CloudAccountExtended. + Whether this account is explicitly enabled or disabled by a user - :param skip_ssl_validation: The skip_ssl_validation of this CloudAccountExtended. + :param enabled: The enabled of this CloudAccountExtended. :type: bool """ - self._skip_ssl_validation = skip_ssl_validation + + self._enabled = enabled @property - def uri(self): + def key(self): """ - Gets the uri of this CloudAccountExtended. - A valid URI pointing to the location of the cloud storage + Gets the key of this CloudAccountExtended. + A valid authentication key for connecting to the cloud - :return: The uri of this CloudAccountExtended. + :return: The key of this CloudAccountExtended. :rtype: str """ - return self._uri + return self._key - @uri.setter - def uri(self, uri): + @key.setter + def key(self, key): """ - Sets the uri of this CloudAccountExtended. - A valid URI pointing to the location of the cloud storage + Sets the key of this CloudAccountExtended. + A valid authentication key for connecting to the cloud - :param uri: The uri of this CloudAccountExtended. + :param key: The key of this CloudAccountExtended. :type: str """ - self._uri = uri + + self._key = key @property - def enabled(self): + def name(self): """ - Gets the enabled of this CloudAccountExtended. - Whether this account is explicitly enabled or disabled by a user + Gets the name of this CloudAccountExtended. + A unique name for this account - :return: The enabled of this CloudAccountExtended. - :rtype: bool + :return: The name of this CloudAccountExtended. + :rtype: str """ - return self._enabled + return self._name - @enabled.setter - def enabled(self, enabled): + @name.setter + def name(self, name): """ - Sets the enabled of this CloudAccountExtended. - Whether this account is explicitly enabled or disabled by a user + Sets the name of this CloudAccountExtended. + A unique name for this account - :param enabled: The enabled of this CloudAccountExtended. - :type: bool + :param name: The name of this CloudAccountExtended. + :type: str """ - self._enabled = enabled + + self._name = name @property - def bucket(self): + def skip_ssl_validation(self): """ - Gets the bucket of this CloudAccountExtended. - The machine generated name of the account bucket to store data + Gets the skip_ssl_validation of this CloudAccountExtended. + Indicates whether to skip SSL certificate validation when connecting to the cloud - :return: The bucket of this CloudAccountExtended. - :rtype: str + :return: The skip_ssl_validation of this CloudAccountExtended. + :rtype: bool """ - return self._bucket + return self._skip_ssl_validation - @bucket.setter - def bucket(self, bucket): + @skip_ssl_validation.setter + def skip_ssl_validation(self, skip_ssl_validation): """ - Sets the bucket of this CloudAccountExtended. - The machine generated name of the account bucket to store data + Sets the skip_ssl_validation of this CloudAccountExtended. + Indicates whether to skip SSL certificate validation when connecting to the cloud - :param bucket: The bucket of this CloudAccountExtended. - :type: str + :param skip_ssl_validation: The skip_ssl_validation of this CloudAccountExtended. + :type: bool """ - self._bucket = bucket + + self._skip_ssl_validation = skip_ssl_validation @property def storage_region(self): @@ -274,30 +276,9 @@ def storage_region(self, storage_region): :param storage_region: The storage_region of this CloudAccountExtended. :type: str """ + self._storage_region = storage_region - @property - def account_id(self): - """ - Gets the account_id of this CloudAccountExtended. - (S3 only) The user id of the S3 account - - :return: The account_id of this CloudAccountExtended. - :rtype: str - """ - return self._account_id - - @account_id.setter - def account_id(self, account_id): - """ - Sets the account_id of this CloudAccountExtended. - (S3 only) The user id of the S3 account - - :param account_id: The account_id of this CloudAccountExtended. - :type: str - """ - self._account_id = account_id - @property def telemetry_bucket(self): """ @@ -318,73 +299,77 @@ def telemetry_bucket(self, telemetry_bucket): :param telemetry_bucket: The telemetry_bucket of this CloudAccountExtended. :type: str """ + self._telemetry_bucket = telemetry_bucket @property - def birth_cluster_id(self): + def uri(self): """ - Gets the birth_cluster_id of this CloudAccountExtended. - The guid of the cluster where this account was created + Gets the uri of this CloudAccountExtended. + A valid URI pointing to the location of the cloud storage - :return: The birth_cluster_id of this CloudAccountExtended. + :return: The uri of this CloudAccountExtended. :rtype: str """ - return self._birth_cluster_id + return self._uri - @birth_cluster_id.setter - def birth_cluster_id(self, birth_cluster_id): + @uri.setter + def uri(self, uri): """ - Sets the birth_cluster_id of this CloudAccountExtended. - The guid of the cluster where this account was created + Sets the uri of this CloudAccountExtended. + A valid URI pointing to the location of the cloud storage - :param birth_cluster_id: The birth_cluster_id of this CloudAccountExtended. + :param uri: The uri of this CloudAccountExtended. :type: str """ - self._birth_cluster_id = birth_cluster_id + + self._uri = uri @property - def account_username(self): + def bucket(self): """ - Gets the account_username of this CloudAccountExtended. - The username required to authenticate against the cloud service + Gets the bucket of this CloudAccountExtended. + The machine generated name of the account bucket to store data - :return: The account_username of this CloudAccountExtended. + :return: The bucket of this CloudAccountExtended. :rtype: str """ - return self._account_username + return self._bucket - @account_username.setter - def account_username(self, account_username): + @bucket.setter + def bucket(self, bucket): """ - Sets the account_username of this CloudAccountExtended. - The username required to authenticate against the cloud service + Sets the bucket of this CloudAccountExtended. + The machine generated name of the account bucket to store data - :param account_username: The account_username of this CloudAccountExtended. + :param bucket: The bucket of this CloudAccountExtended. :type: str """ - self._account_username = account_username + + self._bucket = bucket @property - def name(self): + def id(self): """ - Gets the name of this CloudAccountExtended. - A unique name for this account + Gets the id of this CloudAccountExtended. + A globally unique name for this account - :return: The name of this CloudAccountExtended. + :return: The id of this CloudAccountExtended. :rtype: str """ - return self._name + return self._id - @name.setter - def name(self, name): + @id.setter + def id(self, id): """ - Sets the name of this CloudAccountExtended. - A unique name for this account + Sets the id of this CloudAccountExtended. + A globally unique name for this account - :param name: The name of this CloudAccountExtended. + :param id: The id of this CloudAccountExtended. :type: str """ - self._name = name + + self._id = id @property def metadata_bucket(self): @@ -406,29 +391,31 @@ def metadata_bucket(self, metadata_bucket): :param metadata_bucket: The metadata_bucket of this CloudAccountExtended. :type: str """ + self._metadata_bucket = metadata_bucket @property - def id(self): + def pool(self): """ - Gets the id of this CloudAccountExtended. - A globally unique name for this account + Gets the pool of this CloudAccountExtended. + Name of the pool referencing this account. Empty if none. - :return: The id of this CloudAccountExtended. + :return: The pool of this CloudAccountExtended. :rtype: str """ - return self._id + return self._pool - @id.setter - def id(self, id): + @pool.setter + def pool(self, pool): """ - Sets the id of this CloudAccountExtended. - A globally unique name for this account + Sets the pool of this CloudAccountExtended. + Name of the pool referencing this account. Empty if none. - :param id: The id of this CloudAccountExtended. + :param pool: The pool of this CloudAccountExtended. :type: str """ - self._id = id + + self._pool = pool @property def state(self): @@ -456,29 +443,60 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property - def key(self): + def state_details(self): """ - Gets the key of this CloudAccountExtended. - A valid authentication key for connecting to the cloud + Gets the state_details of this CloudAccountExtended. + Gives further information to describe the state of this account - :return: The key of this CloudAccountExtended. + :return: The state_details of this CloudAccountExtended. :rtype: str """ - return self._key + return self._state_details - @key.setter - def key(self, key): + @state_details.setter + def state_details(self, state_details): """ - Sets the key of this CloudAccountExtended. - A valid authentication key for connecting to the cloud + Sets the state_details of this CloudAccountExtended. + Gives further information to describe the state of this account - :param key: The key of this CloudAccountExtended. + :param state_details: The state_details of this CloudAccountExtended. :type: str """ - self._key = key + + self._state_details = state_details + + @property + def type(self): + """ + Gets the type of this CloudAccountExtended. + The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 + + :return: The type of this CloudAccountExtended. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this CloudAccountExtended. + The type of cloud protocol required. E.g., \"isilon\" for EMC Isilon, \"ecs\" for EMC ECS Appliance, \"ecs2\" for EMC Elastic Cloud Storage Service, \"azure\" for Microsoft Azure and \"s3\" for Amazon S3 + + :param type: The type of this CloudAccountExtended. + :type: str + """ + allowed_values = ["isilon", "ecs", "ecs2", "azure", "s3", "ran"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type def to_dict(self): """ @@ -495,6 +513,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -512,14 +536,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_accounts.py b/isi_sdk/models/cloud_accounts.py index 7951c3ebe..ceda7f095 100644 --- a/isi_sdk/models/cloud_accounts.py +++ b/isi_sdk/models/cloud_accounts.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccounts(object): @@ -69,6 +70,7 @@ def accounts(self, accounts): :param accounts: The accounts of this CloudAccounts. :type: list[CloudAccountExtended] """ + self._accounts = accounts @property @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this CloudAccounts. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_accounts_extended.py b/isi_sdk/models/cloud_accounts_extended.py index a83a2f0e4..946ab3fd9 100644 --- a/isi_sdk/models/cloud_accounts_extended.py +++ b/isi_sdk/models/cloud_accounts_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudAccountsExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'accounts': 'list[CloudAccountExtended]', 'resume': 'str', - 'total': 'int', - 'accounts': 'list[CloudAccountExtended]' + 'total': 'int' } self.attribute_map = { + 'accounts': 'accounts', 'resume': 'resume', - 'total': 'total', - 'accounts': 'accounts' + 'total': 'total' } + self._accounts = None self._resume = None self._total = None - self._accounts = None + + @property + def accounts(self): + """ + Gets the accounts of this CloudAccountsExtended. + + + :return: The accounts of this CloudAccountsExtended. + :rtype: list[CloudAccountExtended] + """ + return self._accounts + + @accounts.setter + def accounts(self, accounts): + """ + Sets the accounts of this CloudAccountsExtended. + + + :param accounts: The accounts of this CloudAccountsExtended. + :type: list[CloudAccountExtended] + """ + + self._accounts = accounts @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this CloudAccountsExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this CloudAccountsExtended. :type: int """ + self._total = total - @property - def accounts(self): - """ - Gets the accounts of this CloudAccountsExtended. - - - :return: The accounts of this CloudAccountsExtended. - :rtype: list[CloudAccountExtended] - """ - return self._accounts - - @accounts.setter - def accounts(self, accounts): - """ - Sets the accounts of this CloudAccountsExtended. - - - :param accounts: The accounts of this CloudAccountsExtended. - :type: list[CloudAccountExtended] - """ - self._accounts = accounts - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_job.py b/isi_sdk/models/cloud_job.py index 60fd4abe1..6f6321d7d 100644 --- a/isi_sdk/models/cloud_job.py +++ b/isi_sdk/models/cloud_job.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJob(object): @@ -69,6 +70,7 @@ def all(self, all): :param all: The all of this CloudJob. :type: bool """ + self._all = all @property @@ -97,6 +99,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state def to_dict(self): @@ -114,6 +117,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -131,14 +140,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_job_create_params.py b/isi_sdk/models/cloud_job_create_params.py index 8574521ee..a63d9a25a 100644 --- a/isi_sdk/models/cloud_job_create_params.py +++ b/isi_sdk/models/cloud_job_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJobCreateParams(object): @@ -37,60 +38,55 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'all': 'bool', - 'directories': 'list[str]', - '_files': 'list[str]', - 'state': 'str', 'accounts': 'list[str]', + 'directories': 'list[str]', 'expiration_date': 'int', 'file_matching_pattern': 'Empty', - 'type': 'str', - 'policy': 'str' + 'files': 'list[str]', + 'policy': 'str', + 'type': 'str' } self.attribute_map = { - 'all': 'all', - 'directories': 'directories', - '_files': 'files', - 'state': 'state', 'accounts': 'accounts', + 'directories': 'directories', 'expiration_date': 'expiration_date', 'file_matching_pattern': 'file_matching_pattern', - 'type': 'type', - 'policy': 'policy' + 'files': 'files', + 'policy': 'policy', + 'type': 'type' } - self._all = None - self._directories = None - self.__files = None - self._state = None self._accounts = None + self._directories = None self._expiration_date = None self._file_matching_pattern = None - self._type = None + self._files = None self._policy = None + self._type = None @property - def all(self): + def accounts(self): """ - Gets the all of this CloudJobCreateParams. - Whether to apply to the given operation type or to all jobs of the given operation type + Gets the accounts of this CloudJobCreateParams. + The names of accounts for COI restore - :return: The all of this CloudJobCreateParams. - :rtype: bool + :return: The accounts of this CloudJobCreateParams. + :rtype: list[str] """ - return self._all + return self._accounts - @all.setter - def all(self, all): + @accounts.setter + def accounts(self, accounts): """ - Sets the all of this CloudJobCreateParams. - Whether to apply to the given operation type or to all jobs of the given operation type + Sets the accounts of this CloudJobCreateParams. + The names of accounts for COI restore - :param all: The all of this CloudJobCreateParams. - :type: bool + :param accounts: The accounts of this CloudJobCreateParams. + :type: list[str] """ - self._all = all + + self._accounts = accounts @property def directories(self): @@ -112,80 +108,9 @@ def directories(self, directories): :param directories: The directories of this CloudJobCreateParams. :type: list[str] """ + self._directories = directories - @property - def _files(self): - """ - Gets the _files of this CloudJobCreateParams. - Filenames addressed by this job - - :return: The _files of this CloudJobCreateParams. - :rtype: list[str] - """ - return self.__files - - @_files.setter - def _files(self, _files): - """ - Sets the _files of this CloudJobCreateParams. - Filenames addressed by this job - - :param _files: The _files of this CloudJobCreateParams. - :type: list[str] - """ - self.__files = _files - - @property - def state(self): - """ - Gets the state of this CloudJobCreateParams. - The desired state of the job or operation - - :return: The state of this CloudJobCreateParams. - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """ - Sets the state of this CloudJobCreateParams. - The desired state of the job or operation - - :param state: The state of this CloudJobCreateParams. - :type: str - """ - allowed_values = ["resume", "pause", "cancel"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state`, must be one of {0}" - .format(allowed_values) - ) - self._state = state - - @property - def accounts(self): - """ - Gets the accounts of this CloudJobCreateParams. - The names of accounts for COI restore - - :return: The accounts of this CloudJobCreateParams. - :rtype: list[str] - """ - return self._accounts - - @accounts.setter - def accounts(self, accounts): - """ - Sets the accounts of this CloudJobCreateParams. - The names of accounts for COI restore - - :param accounts: The accounts of this CloudJobCreateParams. - :type: list[str] - """ - self._accounts = accounts - @property def expiration_date(self): """ @@ -206,6 +131,7 @@ def expiration_date(self, expiration_date): :param expiration_date: The expiration_date of this CloudJobCreateParams. :type: int """ + self._expiration_date = expiration_date @property @@ -228,35 +154,31 @@ def file_matching_pattern(self, file_matching_pattern): :param file_matching_pattern: The file_matching_pattern of this CloudJobCreateParams. :type: Empty """ + self._file_matching_pattern = file_matching_pattern @property - def type(self): + def files(self): """ - Gets the type of this CloudJobCreateParams. - The type of cloud action to be performed by this job. + Gets the files of this CloudJobCreateParams. + Filenames addressed by this job - :return: The type of this CloudJobCreateParams. - :rtype: str + :return: The files of this CloudJobCreateParams. + :rtype: list[str] """ - return self._type + return self._files - @type.setter - def type(self, type): + @files.setter + def files(self, files): """ - Sets the type of this CloudJobCreateParams. - The type of cloud action to be performed by this job. + Sets the files of this CloudJobCreateParams. + Filenames addressed by this job - :param type: The type of this CloudJobCreateParams. - :type: str + :param files: The files of this CloudJobCreateParams. + :type: list[str] """ - allowed_values = ["archive", "recall", "local-garbage-collection", "cloud-garbage-collection", "cache-writeback", "cache-on-access", "cache-invalidation", "restore-coi"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type`, must be one of {0}" - .format(allowed_values) - ) - self._type = type + + self._files = files @property def policy(self): @@ -278,8 +200,38 @@ def policy(self, policy): :param policy: The policy of this CloudJobCreateParams. :type: str """ + self._policy = policy + @property + def type(self): + """ + Gets the type of this CloudJobCreateParams. + The type of cloud action to be performed by this job. + + :return: The type of this CloudJobCreateParams. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this CloudJobCreateParams. + The type of cloud action to be performed by this job. + + :param type: The type of this CloudJobCreateParams. + :type: str + """ + allowed_values = ["archive", "recall", "local-garbage-collection", "cloud-garbage-collection", "cache-writeback", "cache-on-access", "cache-invalidation", "restore-coi"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type + def to_dict(self): """ Returns the model properties as a dict @@ -295,6 +247,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -312,14 +270,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_job_extended.py b/isi_sdk/models/cloud_job_extended.py index 9e6e2d13c..88aafab83 100644 --- a/isi_sdk/models/cloud_job_extended.py +++ b/isi_sdk/models/cloud_job_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJobExtended(object): @@ -37,72 +38,44 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'all': 'bool', 'completion_time': 'int', 'create_time': 'int', - 'state_change_time': 'int', 'description': 'str', - 'operation_state': 'str', - 'type': 'str', - 'job_state': 'str', 'effective_state': 'str', - '_files': 'CloudJobFiles', - 'state': 'str', + 'files': 'CloudJobFiles', 'id': 'int', - 'job_engine_job': 'CloudJobJobEngineJob' + 'job_engine_job': 'CloudJobJobEngineJob', + 'job_state': 'str', + 'operation_state': 'str', + 'state_change_time': 'int', + 'type': 'str' } self.attribute_map = { - 'all': 'all', 'completion_time': 'completion_time', 'create_time': 'create_time', - 'state_change_time': 'state_change_time', 'description': 'description', - 'operation_state': 'operation_state', - 'type': 'type', - 'job_state': 'job_state', 'effective_state': 'effective_state', - '_files': 'files', - 'state': 'state', + 'files': 'files', 'id': 'id', - 'job_engine_job': 'job_engine_job' + 'job_engine_job': 'job_engine_job', + 'job_state': 'job_state', + 'operation_state': 'operation_state', + 'state_change_time': 'state_change_time', + 'type': 'type' } - self._all = None self._completion_time = None self._create_time = None - self._state_change_time = None self._description = None - self._operation_state = None - self._type = None - self._job_state = None self._effective_state = None - self.__files = None - self._state = None + self._files = None self._id = None self._job_engine_job = None - - @property - def all(self): - """ - Gets the all of this CloudJobExtended. - Whether to apply to the given operation type or to all jobs of the given operation type - - :return: The all of this CloudJobExtended. - :rtype: bool - """ - return self._all - - @all.setter - def all(self, all): - """ - Sets the all of this CloudJobExtended. - Whether to apply to the given operation type or to all jobs of the given operation type - - :param all: The all of this CloudJobExtended. - :type: bool - """ - self._all = all + self._job_state = None + self._operation_state = None + self._state_change_time = None + self._type = None @property def completion_time(self): @@ -124,6 +97,7 @@ def completion_time(self, completion_time): :param completion_time: The completion_time of this CloudJobExtended. :type: int """ + self._completion_time = completion_time @property @@ -146,30 +120,9 @@ def create_time(self, create_time): :param create_time: The create_time of this CloudJobExtended. :type: int """ + self._create_time = create_time - @property - def state_change_time(self): - """ - Gets the state_change_time of this CloudJobExtended. - The last time at which the job state changed - - :return: The state_change_time of this CloudJobExtended. - :rtype: int - """ - return self._state_change_time - - @state_change_time.setter - def state_change_time(self, state_change_time): - """ - Sets the state_change_time of this CloudJobExtended. - The last time at which the job state changed - - :param state_change_time: The state_change_time of this CloudJobExtended. - :type: int - """ - self._state_change_time = state_change_time - @property def description(self): """ @@ -190,63 +143,106 @@ def description(self, description): :param description: The description of this CloudJobExtended. :type: str """ + self._description = description @property - def operation_state(self): + def effective_state(self): """ - Gets the operation_state of this CloudJobExtended. - The current state of the operation associated with the job + Gets the effective_state of this CloudJobExtended. + The effective state of the job (e.g,. the combination of operation_state and job_state) - :return: The operation_state of this CloudJobExtended. + :return: The effective_state of this CloudJobExtended. :rtype: str """ - return self._operation_state + return self._effective_state - @operation_state.setter - def operation_state(self, operation_state): + @effective_state.setter + def effective_state(self, effective_state): """ - Sets the operation_state of this CloudJobExtended. - The current state of the operation associated with the job + Sets the effective_state of this CloudJobExtended. + The effective state of the job (e.g,. the combination of operation_state and job_state) - :param operation_state: The operation_state of this CloudJobExtended. + :param effective_state: The effective_state of this CloudJobExtended. :type: str """ - allowed_values = ["running", "paused"] - if operation_state not in allowed_values: + allowed_values = ["running", "paused", "canceled", "completed", "failed"] + if effective_state not in allowed_values: raise ValueError( - "Invalid value for `operation_state`, must be one of {0}" + "Invalid value for `effective_state`, must be one of {0}" .format(allowed_values) ) - self._operation_state = operation_state + + self._effective_state = effective_state @property - def type(self): + def files(self): """ - Gets the type of this CloudJobExtended. - The type of cloud action to be performed by this job. + Gets the files of this CloudJobExtended. + The files and filters addressed by this job - :return: The type of this CloudJobExtended. - :rtype: str + :return: The files of this CloudJobExtended. + :rtype: CloudJobFiles """ - return self._type + return self._files - @type.setter - def type(self, type): + @files.setter + def files(self, files): """ - Sets the type of this CloudJobExtended. - The type of cloud action to be performed by this job. + Sets the files of this CloudJobExtended. + The files and filters addressed by this job - :param type: The type of this CloudJobExtended. - :type: str + :param files: The files of this CloudJobExtended. + :type: CloudJobFiles """ - allowed_values = ["archive", "recall", "local-garbage-collection", "cloud-garbage-collection", "cache-writeback", "cache-on-access", "cache-invalidation", "restore-coi"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type`, must be one of {0}" - .format(allowed_values) - ) - self._type = type + + self._files = files + + @property + def id(self): + """ + Gets the id of this CloudJobExtended. + The job's ID + + :return: The id of this CloudJobExtended. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this CloudJobExtended. + The job's ID + + :param id: The id of this CloudJobExtended. + :type: int + """ + + self._id = id + + @property + def job_engine_job(self): + """ + Gets the job_engine_job of this CloudJobExtended. + Information about the related job engine job if there is one + + :return: The job_engine_job of this CloudJobExtended. + :rtype: CloudJobJobEngineJob + """ + return self._job_engine_job + + @job_engine_job.setter + def job_engine_job(self, job_engine_job): + """ + Sets the job_engine_job of this CloudJobExtended. + Information about the related job engine job if there is one + + :param job_engine_job: The job_engine_job of this CloudJobExtended. + :type: CloudJobJobEngineJob + """ + + self._job_engine_job = job_engine_job @property def job_state(self): @@ -274,129 +270,89 @@ def job_state(self, job_state): "Invalid value for `job_state`, must be one of {0}" .format(allowed_values) ) + self._job_state = job_state @property - def effective_state(self): + def operation_state(self): """ - Gets the effective_state of this CloudJobExtended. - The effective state of the job (e.g,. the combination of operation_state and job_state) + Gets the operation_state of this CloudJobExtended. + The current state of the operation associated with the job - :return: The effective_state of this CloudJobExtended. + :return: The operation_state of this CloudJobExtended. :rtype: str """ - return self._effective_state + return self._operation_state - @effective_state.setter - def effective_state(self, effective_state): + @operation_state.setter + def operation_state(self, operation_state): """ - Sets the effective_state of this CloudJobExtended. - The effective state of the job (e.g,. the combination of operation_state and job_state) + Sets the operation_state of this CloudJobExtended. + The current state of the operation associated with the job - :param effective_state: The effective_state of this CloudJobExtended. + :param operation_state: The operation_state of this CloudJobExtended. :type: str """ - allowed_values = ["running", "paused", "canceled", "completed", "failed"] - if effective_state not in allowed_values: + allowed_values = ["running", "paused"] + if operation_state not in allowed_values: raise ValueError( - "Invalid value for `effective_state`, must be one of {0}" + "Invalid value for `operation_state`, must be one of {0}" .format(allowed_values) ) - self._effective_state = effective_state + + self._operation_state = operation_state @property - def _files(self): + def state_change_time(self): """ - Gets the _files of this CloudJobExtended. - The files and filters addressed by this job + Gets the state_change_time of this CloudJobExtended. + The last time at which the job state changed - :return: The _files of this CloudJobExtended. - :rtype: CloudJobFiles + :return: The state_change_time of this CloudJobExtended. + :rtype: int """ - return self.__files + return self._state_change_time - @_files.setter - def _files(self, _files): + @state_change_time.setter + def state_change_time(self, state_change_time): """ - Sets the _files of this CloudJobExtended. - The files and filters addressed by this job + Sets the state_change_time of this CloudJobExtended. + The last time at which the job state changed - :param _files: The _files of this CloudJobExtended. - :type: CloudJobFiles + :param state_change_time: The state_change_time of this CloudJobExtended. + :type: int """ - self.__files = _files + + self._state_change_time = state_change_time @property - def state(self): + def type(self): """ - Gets the state of this CloudJobExtended. - The desired state of the job or operation + Gets the type of this CloudJobExtended. + The type of cloud action to be performed by this job. - :return: The state of this CloudJobExtended. + :return: The type of this CloudJobExtended. :rtype: str """ - return self._state + return self._type - @state.setter - def state(self, state): + @type.setter + def type(self, type): """ - Sets the state of this CloudJobExtended. - The desired state of the job or operation + Sets the type of this CloudJobExtended. + The type of cloud action to be performed by this job. - :param state: The state of this CloudJobExtended. + :param type: The type of this CloudJobExtended. :type: str """ - allowed_values = ["resume", "pause", "cancel"] - if state not in allowed_values: + allowed_values = ["archive", "recall", "local-garbage-collection", "cloud-garbage-collection", "cache-writeback", "cache-on-access", "cache-invalidation", "restore-coi"] + if type not in allowed_values: raise ValueError( - "Invalid value for `state`, must be one of {0}" + "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) - self._state = state - - @property - def id(self): - """ - Gets the id of this CloudJobExtended. - The job's ID - - :return: The id of this CloudJobExtended. - :rtype: int - """ - return self._id - @id.setter - def id(self, id): - """ - Sets the id of this CloudJobExtended. - The job's ID - - :param id: The id of this CloudJobExtended. - :type: int - """ - self._id = id - - @property - def job_engine_job(self): - """ - Gets the job_engine_job of this CloudJobExtended. - Information about the related job engine job if there is one - - :return: The job_engine_job of this CloudJobExtended. - :rtype: CloudJobJobEngineJob - """ - return self._job_engine_job - - @job_engine_job.setter - def job_engine_job(self, job_engine_job): - """ - Sets the job_engine_job of this CloudJobExtended. - Information about the related job engine job if there is one - - :param job_engine_job: The job_engine_job of this CloudJobExtended. - :type: CloudJobJobEngineJob - """ - self._job_engine_job = job_engine_job + self._type = type def to_dict(self): """ @@ -413,6 +369,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -430,14 +392,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_job_files.py b/isi_sdk/models/cloud_job_files.py index 83300fc2f..298873ba5 100644 --- a/isi_sdk/models/cloud_job_files.py +++ b/isi_sdk/models/cloud_job_files.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJobFiles(object): @@ -87,6 +88,7 @@ def file_matching_pattern(self, file_matching_pattern): :param file_matching_pattern: The file_matching_pattern of this CloudJobFiles. :type: Empty """ + self._file_matching_pattern = file_matching_pattern @property @@ -109,6 +111,7 @@ def names(self, names): :param names: The names of this CloudJobFiles. :type: list[CloudJobFilesName] """ + self._names = names @property @@ -131,6 +134,7 @@ def total(self, total): :param total: The total of this CloudJobFiles. :type: int """ + self._total = total @property @@ -153,6 +157,7 @@ def total_canceled(self, total_canceled): :param total_canceled: The total_canceled of this CloudJobFiles. :type: int """ + self._total_canceled = total_canceled @property @@ -175,6 +180,7 @@ def total_failed(self, total_failed): :param total_failed: The total_failed of this CloudJobFiles. :type: int """ + self._total_failed = total_failed @property @@ -197,6 +203,7 @@ def total_pending(self, total_pending): :param total_pending: The total_pending of this CloudJobFiles. :type: int """ + self._total_pending = total_pending @property @@ -219,6 +226,7 @@ def total_processing(self, total_processing): :param total_processing: The total_processing of this CloudJobFiles. :type: int """ + self._total_processing = total_processing @property @@ -241,6 +249,7 @@ def total_succeeded(self, total_succeeded): :param total_succeeded: The total_succeeded of this CloudJobFiles. :type: int """ + self._total_succeeded = total_succeeded def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_job_files_name.py b/isi_sdk/models/cloud_job_files_name.py index dd7621c0d..e0050dffa 100644 --- a/isi_sdk/models/cloud_job_files_name.py +++ b/isi_sdk/models/cloud_job_files_name.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJobFilesName(object): @@ -69,6 +70,7 @@ def name(self, name): :param name: The name of this CloudJobFilesName. :type: str """ + self._name = name @property @@ -91,6 +93,7 @@ def state(self, state): :param state: The state of this CloudJobFilesName. :type: str """ + self._state = state def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_job_job_engine_job.py b/isi_sdk/models/cloud_job_job_engine_job.py index a792ac9cf..7f3a8d9c8 100644 --- a/isi_sdk/models/cloud_job_job_engine_job.py +++ b/isi_sdk/models/cloud_job_job_engine_job.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJobJobEngineJob(object): @@ -69,6 +70,7 @@ def id(self, id): :param id: The id of this CloudJobJobEngineJob. :type: int """ + self._id = id @property @@ -97,6 +99,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state def to_dict(self): @@ -114,6 +117,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -131,14 +140,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_jobs.py b/isi_sdk/models/cloud_jobs.py index f5bcdf35d..76d7060fe 100644 --- a/isi_sdk/models/cloud_jobs.py +++ b/isi_sdk/models/cloud_jobs.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJobs(object): @@ -69,6 +70,7 @@ def jobs(self, jobs): :param jobs: The jobs of this CloudJobs. :type: list[CloudJobExtended] """ + self._jobs = jobs @property @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this CloudJobs. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_jobs_extended.py b/isi_sdk/models/cloud_jobs_extended.py index ebd7ee17b..ee94caaca 100644 --- a/isi_sdk/models/cloud_jobs_extended.py +++ b/isi_sdk/models/cloud_jobs_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJobsExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'jobs': 'list[CloudJobExtended]', 'resume': 'str', - 'total': 'int', - 'jobs': 'list[CloudJobExtended]' + 'total': 'int' } self.attribute_map = { + 'jobs': 'jobs', 'resume': 'resume', - 'total': 'total', - 'jobs': 'jobs' + 'total': 'total' } + self._jobs = None self._resume = None self._total = None - self._jobs = None + + @property + def jobs(self): + """ + Gets the jobs of this CloudJobsExtended. + + + :return: The jobs of this CloudJobsExtended. + :rtype: list[CloudJobExtended] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """ + Sets the jobs of this CloudJobsExtended. + + + :param jobs: The jobs of this CloudJobsExtended. + :type: list[CloudJobExtended] + """ + + self._jobs = jobs @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this CloudJobsExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this CloudJobsExtended. :type: int """ + self._total = total - @property - def jobs(self): - """ - Gets the jobs of this CloudJobsExtended. - - - :return: The jobs of this CloudJobsExtended. - :rtype: list[CloudJobExtended] - """ - return self._jobs - - @jobs.setter - def jobs(self, jobs): - """ - Sets the jobs of this CloudJobsExtended. - - - :param jobs: The jobs of this CloudJobsExtended. - :type: list[CloudJobExtended] - """ - self._jobs = jobs - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_jobs_files.py b/isi_sdk/models/cloud_jobs_files.py index 8dea629c4..9ca24ddc5 100644 --- a/isi_sdk/models/cloud_jobs_files.py +++ b/isi_sdk/models/cloud_jobs_files.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudJobsFiles(object): @@ -37,39 +38,40 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - '_files': 'list[str]', + 'files': 'list[str]', 'resume': 'str' } self.attribute_map = { - '_files': 'files', + 'files': 'files', 'resume': 'resume' } - self.__files = None + self._files = None self._resume = None @property - def _files(self): + def files(self): """ - Gets the _files of this CloudJobsFiles. + Gets the files of this CloudJobsFiles. - :return: The _files of this CloudJobsFiles. + :return: The files of this CloudJobsFiles. :rtype: list[str] """ - return self.__files + return self._files - @_files.setter - def _files(self, _files): + @files.setter + def files(self, files): """ - Sets the _files of this CloudJobsFiles. + Sets the files of this CloudJobsFiles. - :param _files: The _files of this CloudJobsFiles. + :param files: The files of this CloudJobsFiles. :type: list[str] """ - self.__files = _files + + self._files = files @property def resume(self): @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this CloudJobsFiles. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_pool.py b/isi_sdk/models/cloud_pool.py index 192fb12ad..9adff2bd3 100644 --- a/isi_sdk/models/cloud_pool.py +++ b/isi_sdk/models/cloud_pool.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudPool(object): @@ -78,6 +79,7 @@ def accounts(self, accounts): :param accounts: The accounts of this CloudPool. :type: list[str] """ + self._accounts = accounts @property @@ -100,6 +102,7 @@ def birth_cluster_id(self, birth_cluster_id): :param birth_cluster_id: The birth_cluster_id of this CloudPool. :type: str """ + self._birth_cluster_id = birth_cluster_id @property @@ -122,6 +125,7 @@ def description(self, description): :param description: The description of this CloudPool. :type: str """ + self._description = description @property @@ -144,6 +148,7 @@ def name(self, name): :param name: The name of this CloudPool. :type: str """ + self._name = name @property @@ -166,6 +171,7 @@ def vendor(self, vendor): :param vendor: The vendor of this CloudPool. :type: str """ + self._vendor = vendor def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_pool_create_params.py b/isi_sdk/models/cloud_pool_create_params.py index 950cfbbb5..2cdd89e61 100644 --- a/isi_sdk/models/cloud_pool_create_params.py +++ b/isi_sdk/models/cloud_pool_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudPoolCreateParams(object): @@ -37,51 +38,75 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', - 'description': 'str', 'accounts': 'list[str]', 'birth_cluster_id': 'str', - 'type': 'str', - 'vendor': 'str' + 'description': 'str', + 'name': 'str', + 'vendor': 'str', + 'type': 'str' } self.attribute_map = { - 'name': 'name', - 'description': 'description', 'accounts': 'accounts', 'birth_cluster_id': 'birth_cluster_id', - 'type': 'type', - 'vendor': 'vendor' + 'description': 'description', + 'name': 'name', + 'vendor': 'vendor', + 'type': 'type' } - self._name = None - self._description = None self._accounts = None self._birth_cluster_id = None - self._type = None + self._description = None + self._name = None self._vendor = None + self._type = None @property - def name(self): + def accounts(self): """ - Gets the name of this CloudPoolCreateParams. - A unique name for this pool + Gets the accounts of this CloudPoolCreateParams. + A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. - :return: The name of this CloudPoolCreateParams. + :return: The accounts of this CloudPoolCreateParams. + :rtype: list[str] + """ + return self._accounts + + @accounts.setter + def accounts(self, accounts): + """ + Sets the accounts of this CloudPoolCreateParams. + A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. + + :param accounts: The accounts of this CloudPoolCreateParams. + :type: list[str] + """ + + self._accounts = accounts + + @property + def birth_cluster_id(self): + """ + Gets the birth_cluster_id of this CloudPoolCreateParams. + The guid of the cluster where this pool was created + + :return: The birth_cluster_id of this CloudPoolCreateParams. :rtype: str """ - return self._name + return self._birth_cluster_id - @name.setter - def name(self, name): + @birth_cluster_id.setter + def birth_cluster_id(self, birth_cluster_id): """ - Sets the name of this CloudPoolCreateParams. - A unique name for this pool + Sets the birth_cluster_id of this CloudPoolCreateParams. + The guid of the cluster where this pool was created - :param name: The name of this CloudPoolCreateParams. + :param birth_cluster_id: The birth_cluster_id of this CloudPoolCreateParams. :type: str """ - self._name = name + + self._birth_cluster_id = birth_cluster_id @property def description(self): @@ -103,51 +128,54 @@ def description(self, description): :param description: The description of this CloudPoolCreateParams. :type: str """ + self._description = description @property - def accounts(self): + def name(self): """ - Gets the accounts of this CloudPoolCreateParams. - A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. + Gets the name of this CloudPoolCreateParams. + A unique name for this pool - :return: The accounts of this CloudPoolCreateParams. - :rtype: list[str] + :return: The name of this CloudPoolCreateParams. + :rtype: str """ - return self._accounts + return self._name - @accounts.setter - def accounts(self, accounts): + @name.setter + def name(self, name): """ - Sets the accounts of this CloudPoolCreateParams. - A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. + Sets the name of this CloudPoolCreateParams. + A unique name for this pool - :param accounts: The accounts of this CloudPoolCreateParams. - :type: list[str] + :param name: The name of this CloudPoolCreateParams. + :type: str """ - self._accounts = accounts + + self._name = name @property - def birth_cluster_id(self): + def vendor(self): """ - Gets the birth_cluster_id of this CloudPoolCreateParams. - The guid of the cluster where this pool was created + Gets the vendor of this CloudPoolCreateParams. + A string identifier of the cloud services vendor - :return: The birth_cluster_id of this CloudPoolCreateParams. + :return: The vendor of this CloudPoolCreateParams. :rtype: str """ - return self._birth_cluster_id + return self._vendor - @birth_cluster_id.setter - def birth_cluster_id(self, birth_cluster_id): + @vendor.setter + def vendor(self, vendor): """ - Sets the birth_cluster_id of this CloudPoolCreateParams. - The guid of the cluster where this pool was created + Sets the vendor of this CloudPoolCreateParams. + A string identifier of the cloud services vendor - :param birth_cluster_id: The birth_cluster_id of this CloudPoolCreateParams. + :param vendor: The vendor of this CloudPoolCreateParams. :type: str """ - self._birth_cluster_id = birth_cluster_id + + self._vendor = vendor @property def type(self): @@ -175,29 +203,8 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) - self._type = type - - @property - def vendor(self): - """ - Gets the vendor of this CloudPoolCreateParams. - A string identifier of the cloud services vendor - - :return: The vendor of this CloudPoolCreateParams. - :rtype: str - """ - return self._vendor - - @vendor.setter - def vendor(self, vendor): - """ - Sets the vendor of this CloudPoolCreateParams. - A string identifier of the cloud services vendor - :param vendor: The vendor of this CloudPoolCreateParams. - :type: str - """ - self._vendor = vendor + self._type = type def to_dict(self): """ @@ -214,6 +221,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -231,14 +244,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_pool_extended.py b/isi_sdk/models/cloud_pool_extended.py index 0dd3b8480..331849bac 100644 --- a/isi_sdk/models/cloud_pool_extended.py +++ b/isi_sdk/models/cloud_pool_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudPoolExtended(object): @@ -37,39 +38,62 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'accounts': 'list[str]', 'birth_cluster_id': 'str', - 'vendor': 'str', - 'state_details': 'str', - 'name': 'str', 'description': 'str', - 'accounts': 'list[str]', + 'name': 'str', + 'vendor': 'str', 'id': 'str', 'state': 'str', + 'state_details': 'str', 'type': 'str' } self.attribute_map = { + 'accounts': 'accounts', 'birth_cluster_id': 'birth_cluster_id', - 'vendor': 'vendor', - 'state_details': 'state_details', - 'name': 'name', 'description': 'description', - 'accounts': 'accounts', + 'name': 'name', + 'vendor': 'vendor', 'id': 'id', 'state': 'state', + 'state_details': 'state_details', 'type': 'type' } + self._accounts = None self._birth_cluster_id = None - self._vendor = None - self._state_details = None - self._name = None self._description = None - self._accounts = None + self._name = None + self._vendor = None self._id = None self._state = None + self._state_details = None self._type = None + @property + def accounts(self): + """ + Gets the accounts of this CloudPoolExtended. + A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. + + :return: The accounts of this CloudPoolExtended. + :rtype: list[str] + """ + return self._accounts + + @accounts.setter + def accounts(self, accounts): + """ + Sets the accounts of this CloudPoolExtended. + A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. + + :param accounts: The accounts of this CloudPoolExtended. + :type: list[str] + """ + + self._accounts = accounts + @property def birth_cluster_id(self): """ @@ -90,51 +114,31 @@ def birth_cluster_id(self, birth_cluster_id): :param birth_cluster_id: The birth_cluster_id of this CloudPoolExtended. :type: str """ + self._birth_cluster_id = birth_cluster_id @property - def vendor(self): - """ - Gets the vendor of this CloudPoolExtended. - A string identifier of the cloud services vendor - - :return: The vendor of this CloudPoolExtended. - :rtype: str - """ - return self._vendor - - @vendor.setter - def vendor(self, vendor): - """ - Sets the vendor of this CloudPoolExtended. - A string identifier of the cloud services vendor - - :param vendor: The vendor of this CloudPoolExtended. - :type: str - """ - self._vendor = vendor - - @property - def state_details(self): + def description(self): """ - Gets the state_details of this CloudPoolExtended. - Gives further information to describe the state of this pool + Gets the description of this CloudPoolExtended. + A brief description of this pool - :return: The state_details of this CloudPoolExtended. + :return: The description of this CloudPoolExtended. :rtype: str """ - return self._state_details + return self._description - @state_details.setter - def state_details(self, state_details): + @description.setter + def description(self, description): """ - Sets the state_details of this CloudPoolExtended. - Gives further information to describe the state of this pool + Sets the description of this CloudPoolExtended. + A brief description of this pool - :param state_details: The state_details of this CloudPoolExtended. + :param description: The description of this CloudPoolExtended. :type: str """ - self._state_details = state_details + + self._description = description @property def name(self): @@ -156,51 +160,31 @@ def name(self, name): :param name: The name of this CloudPoolExtended. :type: str """ + self._name = name @property - def description(self): + def vendor(self): """ - Gets the description of this CloudPoolExtended. - A brief description of this pool + Gets the vendor of this CloudPoolExtended. + A string identifier of the cloud services vendor - :return: The description of this CloudPoolExtended. + :return: The vendor of this CloudPoolExtended. :rtype: str """ - return self._description + return self._vendor - @description.setter - def description(self, description): + @vendor.setter + def vendor(self, vendor): """ - Sets the description of this CloudPoolExtended. - A brief description of this pool + Sets the vendor of this CloudPoolExtended. + A string identifier of the cloud services vendor - :param description: The description of this CloudPoolExtended. + :param vendor: The vendor of this CloudPoolExtended. :type: str """ - self._description = description - - @property - def accounts(self): - """ - Gets the accounts of this CloudPoolExtended. - A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. - - :return: The accounts of this CloudPoolExtended. - :rtype: list[str] - """ - return self._accounts - - @accounts.setter - def accounts(self, accounts): - """ - Sets the accounts of this CloudPoolExtended. - A list of valid names for the accounts in this pool. There is currently only one account allowed per pool. - - :param accounts: The accounts of this CloudPoolExtended. - :type: list[str] - """ - self._accounts = accounts + + self._vendor = vendor @property def id(self): @@ -222,6 +206,7 @@ def id(self, id): :param id: The id of this CloudPoolExtended. :type: str """ + self._id = id @property @@ -250,8 +235,32 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state + @property + def state_details(self): + """ + Gets the state_details of this CloudPoolExtended. + Gives further information to describe the state of this pool + + :return: The state_details of this CloudPoolExtended. + :rtype: str + """ + return self._state_details + + @state_details.setter + def state_details(self, state_details): + """ + Sets the state_details of this CloudPoolExtended. + Gives further information to describe the state of this pool + + :param state_details: The state_details of this CloudPoolExtended. + :type: str + """ + + self._state_details = state_details + @property def type(self): """ @@ -278,6 +287,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -295,6 +305,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -312,14 +328,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_pools.py b/isi_sdk/models/cloud_pools.py index 98abb6f40..2a7970542 100644 --- a/isi_sdk/models/cloud_pools.py +++ b/isi_sdk/models/cloud_pools.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudPools(object): @@ -69,6 +70,7 @@ def pools(self, pools): :param pools: The pools of this CloudPools. :type: list[CloudPoolExtended] """ + self._pools = pools @property @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this CloudPools. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_pools_extended.py b/isi_sdk/models/cloud_pools_extended.py index b340513e0..86297ffd5 100644 --- a/isi_sdk/models/cloud_pools_extended.py +++ b/isi_sdk/models/cloud_pools_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudPoolsExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'pools': 'list[CloudPoolExtended]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'pools': 'pools', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._pools = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this CloudPoolsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this CloudPoolsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this CloudPoolsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this CloudPoolsExtended. - :type: str - """ - self._resume = resume - @property def pools(self): """ @@ -94,8 +73,32 @@ def pools(self, pools): :param pools: The pools of this CloudPoolsExtended. :type: list[CloudPoolExtended] """ + self._pools = pools + @property + def resume(self): + """ + Gets the resume of this CloudPoolsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this CloudPoolsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this CloudPoolsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this CloudPoolsExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this CloudPoolsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_settings.py b/isi_sdk/models/cloud_settings.py index 3817ce1c4..39dd9f70e 100644 --- a/isi_sdk/models/cloud_settings.py +++ b/isi_sdk/models/cloud_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this CloudSettings. :type: CloudSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_settings_settings.py b/isi_sdk/models/cloud_settings_settings.py index ba23ed45f..50e5ce8d0 100644 --- a/isi_sdk/models/cloud_settings_settings.py +++ b/isi_sdk/models/cloud_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudSettingsSettings(object): @@ -108,6 +109,7 @@ def cloud_policy_defaults(self, cloud_policy_defaults): :param cloud_policy_defaults: The cloud_policy_defaults of this CloudSettingsSettings. :type: Empty """ + self._cloud_policy_defaults = cloud_policy_defaults @property @@ -130,6 +132,7 @@ def retry_coefficient_archive(self, retry_coefficient_archive): :param retry_coefficient_archive: The retry_coefficient_archive of this CloudSettingsSettings. :type: str """ + self._retry_coefficient_archive = retry_coefficient_archive @property @@ -152,6 +155,7 @@ def retry_coefficient_cache_invalidation(self, retry_coefficient_cache_invalidat :param retry_coefficient_cache_invalidation: The retry_coefficient_cache_invalidation of this CloudSettingsSettings. :type: str """ + self._retry_coefficient_cache_invalidation = retry_coefficient_cache_invalidation @property @@ -174,6 +178,7 @@ def retry_coefficient_cloud_garbage_collection(self, retry_coefficient_cloud_gar :param retry_coefficient_cloud_garbage_collection: The retry_coefficient_cloud_garbage_collection of this CloudSettingsSettings. :type: str """ + self._retry_coefficient_cloud_garbage_collection = retry_coefficient_cloud_garbage_collection @property @@ -196,6 +201,7 @@ def retry_coefficient_local_garbage_collection(self, retry_coefficient_local_gar :param retry_coefficient_local_garbage_collection: The retry_coefficient_local_garbage_collection of this CloudSettingsSettings. :type: str """ + self._retry_coefficient_local_garbage_collection = retry_coefficient_local_garbage_collection @property @@ -218,6 +224,7 @@ def retry_coefficient_read_ahead(self, retry_coefficient_read_ahead): :param retry_coefficient_read_ahead: The retry_coefficient_read_ahead of this CloudSettingsSettings. :type: str """ + self._retry_coefficient_read_ahead = retry_coefficient_read_ahead @property @@ -240,6 +247,7 @@ def retry_coefficient_recall(self, retry_coefficient_recall): :param retry_coefficient_recall: The retry_coefficient_recall of this CloudSettingsSettings. :type: str """ + self._retry_coefficient_recall = retry_coefficient_recall @property @@ -262,6 +270,7 @@ def retry_coefficient_writeback(self, retry_coefficient_writeback): :param retry_coefficient_writeback: The retry_coefficient_writeback of this CloudSettingsSettings. :type: str """ + self._retry_coefficient_writeback = retry_coefficient_writeback @property @@ -284,6 +293,7 @@ def sleep_timeout_archive(self, sleep_timeout_archive): :param sleep_timeout_archive: The sleep_timeout_archive of this CloudSettingsSettings. :type: CloudSettingsSettingsSleepTimeoutCloudGarbageCollection """ + self._sleep_timeout_archive = sleep_timeout_archive @property @@ -306,6 +316,7 @@ def sleep_timeout_cache_invalidation(self, sleep_timeout_cache_invalidation): :param sleep_timeout_cache_invalidation: The sleep_timeout_cache_invalidation of this CloudSettingsSettings. :type: CloudSettingsSettingsSleepTimeoutCloudGarbageCollection """ + self._sleep_timeout_cache_invalidation = sleep_timeout_cache_invalidation @property @@ -328,6 +339,7 @@ def sleep_timeout_cloud_garbage_collection(self, sleep_timeout_cloud_garbage_col :param sleep_timeout_cloud_garbage_collection: The sleep_timeout_cloud_garbage_collection of this CloudSettingsSettings. :type: CloudSettingsSettingsSleepTimeoutCloudGarbageCollection """ + self._sleep_timeout_cloud_garbage_collection = sleep_timeout_cloud_garbage_collection @property @@ -350,6 +362,7 @@ def sleep_timeout_local_garbage_collection(self, sleep_timeout_local_garbage_col :param sleep_timeout_local_garbage_collection: The sleep_timeout_local_garbage_collection of this CloudSettingsSettings. :type: CloudSettingsSettingsSleepTimeoutCloudGarbageCollection """ + self._sleep_timeout_local_garbage_collection = sleep_timeout_local_garbage_collection @property @@ -372,6 +385,7 @@ def sleep_timeout_read_ahead(self, sleep_timeout_read_ahead): :param sleep_timeout_read_ahead: The sleep_timeout_read_ahead of this CloudSettingsSettings. :type: CloudSettingsSettingsSleepTimeoutCloudGarbageCollection """ + self._sleep_timeout_read_ahead = sleep_timeout_read_ahead @property @@ -394,6 +408,7 @@ def sleep_timeout_recall(self, sleep_timeout_recall): :param sleep_timeout_recall: The sleep_timeout_recall of this CloudSettingsSettings. :type: CloudSettingsSettingsSleepTimeoutCloudGarbageCollection """ + self._sleep_timeout_recall = sleep_timeout_recall @property @@ -416,6 +431,7 @@ def sleep_timeout_writeback(self, sleep_timeout_writeback): :param sleep_timeout_writeback: The sleep_timeout_writeback of this CloudSettingsSettings. :type: CloudSettingsSettingsSleepTimeoutCloudGarbageCollection """ + self._sleep_timeout_writeback = sleep_timeout_writeback def to_dict(self): @@ -433,6 +449,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -450,14 +472,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py b/isi_sdk/models/cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py index d7db6fd71..5258e2bde 100644 --- a/isi_sdk/models/cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py +++ b/isi_sdk/models/cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CloudSettingsSettingsSleepTimeoutCloudGarbageCollection(object): @@ -75,6 +76,7 @@ def recovery_with_tasks(self, recovery_with_tasks): :param recovery_with_tasks: The recovery_with_tasks of this CloudSettingsSettingsSleepTimeoutCloudGarbageCollection. :type: int """ + self._recovery_with_tasks = recovery_with_tasks @property @@ -97,6 +99,7 @@ def recovery_without_tasks(self, recovery_without_tasks): :param recovery_without_tasks: The recovery_without_tasks of this CloudSettingsSettingsSleepTimeoutCloudGarbageCollection. :type: int """ + self._recovery_without_tasks = recovery_without_tasks @property @@ -119,6 +122,7 @@ def with_tasks(self, with_tasks): :param with_tasks: The with_tasks of this CloudSettingsSettingsSleepTimeoutCloudGarbageCollection. :type: int """ + self._with_tasks = with_tasks @property @@ -141,6 +145,7 @@ def without_tasks(self, without_tasks): :param without_tasks: The without_tasks of this CloudSettingsSettingsSleepTimeoutCloudGarbageCollection. :type: int """ + self._without_tasks = without_tasks def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_add_node_item.py b/isi_sdk/models/cluster_add_node_item.py index aeabf651d..4358800e0 100644 --- a/isi_sdk/models/cluster_add_node_item.py +++ b/isi_sdk/models/cluster_add_node_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterAddNodeItem(object): @@ -72,6 +73,7 @@ def allow_down(self, allow_down): :param allow_down: The allow_down of this ClusterAddNodeItem. :type: bool """ + self._allow_down = allow_down @property @@ -94,6 +96,7 @@ def serial_number(self, serial_number): :param serial_number: The serial_number of this ClusterAddNodeItem. :type: str """ + self._serial_number = serial_number @property @@ -116,6 +119,7 @@ def skip_hardware_version_check(self, skip_hardware_version_check): :param skip_hardware_version_check: The skip_hardware_version_check of this ClusterAddNodeItem. :type: bool """ + self._skip_hardware_version_check = skip_hardware_version_check def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_archive_item.py b/isi_sdk/models/cluster_archive_item.py index 3d48fa2e9..80c603750 100644 --- a/isi_sdk/models/cluster_archive_item.py +++ b/isi_sdk/models/cluster_archive_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterArchiveItem(object): @@ -66,6 +67,7 @@ def clear(self, clear): :param clear: The clear of this ClusterArchiveItem. :type: bool """ + self._clear = clear def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_assess_item.py b/isi_sdk/models/cluster_assess_item.py index 41472da5d..4f7aecb8f 100644 --- a/isi_sdk/models/cluster_assess_item.py +++ b/isi_sdk/models/cluster_assess_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterAssessItem(object): @@ -66,6 +67,7 @@ def install_image_path(self, install_image_path): :param install_image_path: The install_image_path of this ClusterAssessItem. :type: str """ + self._install_image_path = install_image_path def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_config.py b/isi_sdk/models/cluster_config.py new file mode 100644 index 000000000..77f31336c --- /dev/null +++ b/isi_sdk/models/cluster_config.py @@ -0,0 +1,518 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ClusterConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ClusterConfig - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'devices': 'list[ClusterConfigDevice]', + 'encoding': 'str', + 'guid': 'str', + 'has_quorum': 'bool', + 'is_compliance': 'bool', + 'is_virtual': 'bool', + 'is_vonefs': 'bool', + 'join_mode': 'str', + 'local_devid': 'int', + 'local_lnn': 'int', + 'local_serial': 'str', + 'name': 'str', + 'onefs_version': 'ClusterConfigOnefsVersion', + 'timezone': 'ClusterConfigTimezone', + 'upgrade_type': 'str' + } + + self.attribute_map = { + 'description': 'description', + 'devices': 'devices', + 'encoding': 'encoding', + 'guid': 'guid', + 'has_quorum': 'has_quorum', + 'is_compliance': 'is_compliance', + 'is_virtual': 'is_virtual', + 'is_vonefs': 'is_vonefs', + 'join_mode': 'join_mode', + 'local_devid': 'local_devid', + 'local_lnn': 'local_lnn', + 'local_serial': 'local_serial', + 'name': 'name', + 'onefs_version': 'onefs_version', + 'timezone': 'timezone', + 'upgrade_type': 'upgrade_type' + } + + self._description = None + self._devices = None + self._encoding = None + self._guid = None + self._has_quorum = None + self._is_compliance = None + self._is_virtual = None + self._is_vonefs = None + self._join_mode = None + self._local_devid = None + self._local_lnn = None + self._local_serial = None + self._name = None + self._onefs_version = None + self._timezone = None + self._upgrade_type = None + + @property + def description(self): + """ + Gets the description of this ClusterConfig. + Customer configurable description. + + :return: The description of this ClusterConfig. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this ClusterConfig. + Customer configurable description. + + :param description: The description of this ClusterConfig. + :type: str + """ + + self._description = description + + @property + def devices(self): + """ + Gets the devices of this ClusterConfig. + + + :return: The devices of this ClusterConfig. + :rtype: list[ClusterConfigDevice] + """ + return self._devices + + @devices.setter + def devices(self, devices): + """ + Sets the devices of this ClusterConfig. + + + :param devices: The devices of this ClusterConfig. + :type: list[ClusterConfigDevice] + """ + + self._devices = devices + + @property + def encoding(self): + """ + Gets the encoding of this ClusterConfig. + Default encoding. + + :return: The encoding of this ClusterConfig. + :rtype: str + """ + return self._encoding + + @encoding.setter + def encoding(self, encoding): + """ + Sets the encoding of this ClusterConfig. + Default encoding. + + :param encoding: The encoding of this ClusterConfig. + :type: str + """ + + self._encoding = encoding + + @property + def guid(self): + """ + Gets the guid of this ClusterConfig. + Cluster GUID. + + :return: The guid of this ClusterConfig. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this ClusterConfig. + Cluster GUID. + + :param guid: The guid of this ClusterConfig. + :type: str + """ + + self._guid = guid + + @property + def has_quorum(self): + """ + Gets the has_quorum of this ClusterConfig. + If true, the local node is in a group with quorum: It is communicating, storing, and protecting data normally with other nodes in its group. Under normal circumstances, every node in the cluster is part of one group. + + :return: The has_quorum of this ClusterConfig. + :rtype: bool + """ + return self._has_quorum + + @has_quorum.setter + def has_quorum(self, has_quorum): + """ + Sets the has_quorum of this ClusterConfig. + If true, the local node is in a group with quorum: It is communicating, storing, and protecting data normally with other nodes in its group. Under normal circumstances, every node in the cluster is part of one group. + + :param has_quorum: The has_quorum of this ClusterConfig. + :type: bool + """ + + self._has_quorum = has_quorum + + @property + def is_compliance(self): + """ + Gets the is_compliance of this ClusterConfig. + If true, the cluster is in compliance mode. Compliance mode clusters do not allow root access and have stricter WORM (Write Once Read Many) features for retaining data in compliance with U.S. Securities and Exchange Commission rule 17a-4. + + :return: The is_compliance of this ClusterConfig. + :rtype: bool + """ + return self._is_compliance + + @is_compliance.setter + def is_compliance(self, is_compliance): + """ + Sets the is_compliance of this ClusterConfig. + If true, the cluster is in compliance mode. Compliance mode clusters do not allow root access and have stricter WORM (Write Once Read Many) features for retaining data in compliance with U.S. Securities and Exchange Commission rule 17a-4. + + :param is_compliance: The is_compliance of this ClusterConfig. + :type: bool + """ + + self._is_compliance = is_compliance + + @property + def is_virtual(self): + """ + Gets the is_virtual of this ClusterConfig. + true if the cluster is deployed on a desktop VMWorkstation + + :return: The is_virtual of this ClusterConfig. + :rtype: bool + """ + return self._is_virtual + + @is_virtual.setter + def is_virtual(self, is_virtual): + """ + Sets the is_virtual of this ClusterConfig. + true if the cluster is deployed on a desktop VMWorkstation + + :param is_virtual: The is_virtual of this ClusterConfig. + :type: bool + """ + + self._is_virtual = is_virtual + + @property + def is_vonefs(self): + """ + Gets the is_vonefs of this ClusterConfig. + true if this is a vOneFS cluster on an ESXi + + :return: The is_vonefs of this ClusterConfig. + :rtype: bool + """ + return self._is_vonefs + + @is_vonefs.setter + def is_vonefs(self, is_vonefs): + """ + Sets the is_vonefs of this ClusterConfig. + true if this is a vOneFS cluster on an ESXi + + :param is_vonefs: The is_vonefs of this ClusterConfig. + :type: bool + """ + + self._is_vonefs = is_vonefs + + @property + def join_mode(self): + """ + Gets the join_mode of this ClusterConfig. + Node join mode: 'manual' or 'secure'. + + :return: The join_mode of this ClusterConfig. + :rtype: str + """ + return self._join_mode + + @join_mode.setter + def join_mode(self, join_mode): + """ + Sets the join_mode of this ClusterConfig. + Node join mode: 'manual' or 'secure'. + + :param join_mode: The join_mode of this ClusterConfig. + :type: str + """ + + self._join_mode = join_mode + + @property + def local_devid(self): + """ + Gets the local_devid of this ClusterConfig. + Device ID of the queried node. + + :return: The local_devid of this ClusterConfig. + :rtype: int + """ + return self._local_devid + + @local_devid.setter + def local_devid(self, local_devid): + """ + Sets the local_devid of this ClusterConfig. + Device ID of the queried node. + + :param local_devid: The local_devid of this ClusterConfig. + :type: int + """ + + self._local_devid = local_devid + + @property + def local_lnn(self): + """ + Gets the local_lnn of this ClusterConfig. + Device logical node number of the queried node. + + :return: The local_lnn of this ClusterConfig. + :rtype: int + """ + return self._local_lnn + + @local_lnn.setter + def local_lnn(self, local_lnn): + """ + Sets the local_lnn of this ClusterConfig. + Device logical node number of the queried node. + + :param local_lnn: The local_lnn of this ClusterConfig. + :type: int + """ + + self._local_lnn = local_lnn + + @property + def local_serial(self): + """ + Gets the local_serial of this ClusterConfig. + Device serial number of the queried node. + + :return: The local_serial of this ClusterConfig. + :rtype: str + """ + return self._local_serial + + @local_serial.setter + def local_serial(self, local_serial): + """ + Sets the local_serial of this ClusterConfig. + Device serial number of the queried node. + + :param local_serial: The local_serial of this ClusterConfig. + :type: str + """ + + self._local_serial = local_serial + + @property + def name(self): + """ + Gets the name of this ClusterConfig. + Cluster name. + + :return: The name of this ClusterConfig. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ClusterConfig. + Cluster name. + + :param name: The name of this ClusterConfig. + :type: str + """ + + self._name = name + + @property + def onefs_version(self): + """ + Gets the onefs_version of this ClusterConfig. + + + :return: The onefs_version of this ClusterConfig. + :rtype: ClusterConfigOnefsVersion + """ + return self._onefs_version + + @onefs_version.setter + def onefs_version(self, onefs_version): + """ + Sets the onefs_version of this ClusterConfig. + + + :param onefs_version: The onefs_version of this ClusterConfig. + :type: ClusterConfigOnefsVersion + """ + + self._onefs_version = onefs_version + + @property + def timezone(self): + """ + Gets the timezone of this ClusterConfig. + The cluster timezone settings. + + :return: The timezone of this ClusterConfig. + :rtype: ClusterConfigTimezone + """ + return self._timezone + + @timezone.setter + def timezone(self, timezone): + """ + Sets the timezone of this ClusterConfig. + The cluster timezone settings. + + :param timezone: The timezone of this ClusterConfig. + :type: ClusterConfigTimezone + """ + + self._timezone = timezone + + @property + def upgrade_type(self): + """ + Gets the upgrade_type of this ClusterConfig. + + + :return: The upgrade_type of this ClusterConfig. + :rtype: str + """ + return self._upgrade_type + + @upgrade_type.setter + def upgrade_type(self, upgrade_type): + """ + Sets the upgrade_type of this ClusterConfig. + + + :param upgrade_type: The upgrade_type of this ClusterConfig. + :type: str + """ + allowed_values = ["rolling", "simultaneous", "assessment"] + if upgrade_type not in allowed_values: + raise ValueError( + "Invalid value for `upgrade_type`, must be one of {0}" + .format(allowed_values) + ) + + self._upgrade_type = upgrade_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/cluster_config_device.py b/isi_sdk/models/cluster_config_device.py new file mode 100644 index 000000000..3034b6872 --- /dev/null +++ b/isi_sdk/models/cluster_config_device.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ClusterConfigDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ClusterConfigDevice - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'devid': 'int', + 'guid': 'str', + 'is_up': 'bool', + 'lnn': 'int' + } + + self.attribute_map = { + 'devid': 'devid', + 'guid': 'guid', + 'is_up': 'is_up', + 'lnn': 'lnn' + } + + self._devid = None + self._guid = None + self._is_up = None + self._lnn = None + + @property + def devid(self): + """ + Gets the devid of this ClusterConfigDevice. + Device ID. + + :return: The devid of this ClusterConfigDevice. + :rtype: int + """ + return self._devid + + @devid.setter + def devid(self, devid): + """ + Sets the devid of this ClusterConfigDevice. + Device ID. + + :param devid: The devid of this ClusterConfigDevice. + :type: int + """ + + self._devid = devid + + @property + def guid(self): + """ + Gets the guid of this ClusterConfigDevice. + Device GUID. + + :return: The guid of this ClusterConfigDevice. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this ClusterConfigDevice. + Device GUID. + + :param guid: The guid of this ClusterConfigDevice. + :type: str + """ + + self._guid = guid + + @property + def is_up(self): + """ + Gets the is_up of this ClusterConfigDevice. + If true, this node is online and communicating with the local node and every other node with the is_up property normally. If false, this node is not currently communicating with the local node or other nodes with the is_up property. It may be shut down, rebooting, disconnected from the backend network, or connected only to other nodes. + + :return: The is_up of this ClusterConfigDevice. + :rtype: bool + """ + return self._is_up + + @is_up.setter + def is_up(self, is_up): + """ + Sets the is_up of this ClusterConfigDevice. + If true, this node is online and communicating with the local node and every other node with the is_up property normally. If false, this node is not currently communicating with the local node or other nodes with the is_up property. It may be shut down, rebooting, disconnected from the backend network, or connected only to other nodes. + + :param is_up: The is_up of this ClusterConfigDevice. + :type: bool + """ + + self._is_up = is_up + + @property + def lnn(self): + """ + Gets the lnn of this ClusterConfigDevice. + Device logical node number. + + :return: The lnn of this ClusterConfigDevice. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this ClusterConfigDevice. + Device logical node number. + + :param lnn: The lnn of this ClusterConfigDevice. + :type: int + """ + + self._lnn = lnn + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/cluster_config_onefs_version.py b/isi_sdk/models/cluster_config_onefs_version.py new file mode 100644 index 000000000..108461e3c --- /dev/null +++ b/isi_sdk/models/cluster_config_onefs_version.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ClusterConfigOnefsVersion(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ClusterConfigOnefsVersion - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'build': 'str', + 'copyright': 'str', + 'reldate': 'int', + 'release': 'str', + 'revision': 'str', + 'type': 'str', + 'version': 'str' + } + + self.attribute_map = { + 'build': 'build', + 'copyright': 'copyright', + 'reldate': 'reldate', + 'release': 'release', + 'revision': 'revision', + 'type': 'type', + 'version': 'version' + } + + self._build = None + self._copyright = None + self._reldate = None + self._release = None + self._revision = None + self._type = None + self._version = None + + @property + def build(self): + """ + Gets the build of this ClusterConfigOnefsVersion. + OneFS build string. + + :return: The build of this ClusterConfigOnefsVersion. + :rtype: str + """ + return self._build + + @build.setter + def build(self, build): + """ + Sets the build of this ClusterConfigOnefsVersion. + OneFS build string. + + :param build: The build of this ClusterConfigOnefsVersion. + :type: str + """ + + self._build = build + + @property + def copyright(self): + """ + Gets the copyright of this ClusterConfigOnefsVersion. + Cluster copyright information. + + :return: The copyright of this ClusterConfigOnefsVersion. + :rtype: str + """ + return self._copyright + + @copyright.setter + def copyright(self, copyright): + """ + Sets the copyright of this ClusterConfigOnefsVersion. + Cluster copyright information. + + :param copyright: The copyright of this ClusterConfigOnefsVersion. + :type: str + """ + + self._copyright = copyright + + @property + def reldate(self): + """ + Gets the reldate of this ClusterConfigOnefsVersion. + Timestamp of release date. + + :return: The reldate of this ClusterConfigOnefsVersion. + :rtype: int + """ + return self._reldate + + @reldate.setter + def reldate(self, reldate): + """ + Sets the reldate of this ClusterConfigOnefsVersion. + Timestamp of release date. + + :param reldate: The reldate of this ClusterConfigOnefsVersion. + :type: int + """ + + self._reldate = reldate + + @property + def release(self): + """ + Gets the release of this ClusterConfigOnefsVersion. + Kernel release number. + + :return: The release of this ClusterConfigOnefsVersion. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """ + Sets the release of this ClusterConfigOnefsVersion. + Kernel release number. + + :param release: The release of this ClusterConfigOnefsVersion. + :type: str + """ + + self._release = release + + @property + def revision(self): + """ + Gets the revision of this ClusterConfigOnefsVersion. + OneFS build number. + + :return: The revision of this ClusterConfigOnefsVersion. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this ClusterConfigOnefsVersion. + OneFS build number. + + :param revision: The revision of this ClusterConfigOnefsVersion. + :type: str + """ + + self._revision = revision + + @property + def type(self): + """ + Gets the type of this ClusterConfigOnefsVersion. + Kernel release type. + + :return: The type of this ClusterConfigOnefsVersion. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ClusterConfigOnefsVersion. + Kernel release type. + + :param type: The type of this ClusterConfigOnefsVersion. + :type: str + """ + + self._type = type + + @property + def version(self): + """ + Gets the version of this ClusterConfigOnefsVersion. + Kernel full version information. + + :return: The version of this ClusterConfigOnefsVersion. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this ClusterConfigOnefsVersion. + Kernel full version information. + + :param version: The version of this ClusterConfigOnefsVersion. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/cluster_config_timezone.py b/isi_sdk/models/cluster_config_timezone.py new file mode 100644 index 000000000..3944ac127 --- /dev/null +++ b/isi_sdk/models/cluster_config_timezone.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ClusterConfigTimezone(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ClusterConfigTimezone - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'abbreviation': 'str', + 'custom': 'str', + 'name': 'str', + 'path': 'str' + } + + self.attribute_map = { + 'abbreviation': 'abbreviation', + 'custom': 'custom', + 'name': 'name', + 'path': 'path' + } + + self._abbreviation = None + self._custom = None + self._name = None + self._path = None + + @property + def abbreviation(self): + """ + Gets the abbreviation of this ClusterConfigTimezone. + Timezone abbreviation. + + :return: The abbreviation of this ClusterConfigTimezone. + :rtype: str + """ + return self._abbreviation + + @abbreviation.setter + def abbreviation(self, abbreviation): + """ + Sets the abbreviation of this ClusterConfigTimezone. + Timezone abbreviation. + + :param abbreviation: The abbreviation of this ClusterConfigTimezone. + :type: str + """ + + self._abbreviation = abbreviation + + @property + def custom(self): + """ + Gets the custom of this ClusterConfigTimezone. + Customer timezone information. + + :return: The custom of this ClusterConfigTimezone. + :rtype: str + """ + return self._custom + + @custom.setter + def custom(self, custom): + """ + Sets the custom of this ClusterConfigTimezone. + Customer timezone information. + + :param custom: The custom of this ClusterConfigTimezone. + :type: str + """ + + self._custom = custom + + @property + def name(self): + """ + Gets the name of this ClusterConfigTimezone. + Timezone full name. + + :return: The name of this ClusterConfigTimezone. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ClusterConfigTimezone. + Timezone full name. + + :param name: The name of this ClusterConfigTimezone. + :type: str + """ + + self._name = name + + @property + def path(self): + """ + Gets the path of this ClusterConfigTimezone. + Timezone hierarchical name. + + :return: The path of this ClusterConfigTimezone. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this ClusterConfigTimezone. + Timezone hierarchical name. + + :param path: The path of this ClusterConfigTimezone. + :type: str + """ + + self._path = path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/cluster_email.py b/isi_sdk/models/cluster_email.py index 1d739a040..dcb26ac2a 100644 --- a/isi_sdk/models/cluster_email.py +++ b/isi_sdk/models/cluster_email.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterEmail(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this ClusterEmail. :type: ClusterEmailSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_email_extended.py b/isi_sdk/models/cluster_email_extended.py index f2aa770c1..5f33dd1b9 100644 --- a/isi_sdk/models/cluster_email_extended.py +++ b/isi_sdk/models/cluster_email_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterEmailExtended(object): @@ -37,110 +38,116 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'user_template': 'str', - 'settings': 'ClusterEmailSettings', - 'smtp_port': 'int', - 'mail_subject': 'str', - 'smtp_auth_username': 'str', - 'mail_sender': 'str', 'batch_mode': 'str', 'mail_relay': 'str', + 'mail_sender': 'str', + 'mail_subject': 'str', + 'smtp_auth_passwd': 'str', 'smtp_auth_security': 'str', + 'smtp_auth_username': 'str', + 'smtp_port': 'int', 'use_smtp_auth': 'bool', - 'smtp_auth_passwd': 'str' + 'user_template': 'str' } self.attribute_map = { - 'user_template': 'user_template', - 'settings': 'settings', - 'smtp_port': 'smtp_port', - 'mail_subject': 'mail_subject', - 'smtp_auth_username': 'smtp_auth_username', - 'mail_sender': 'mail_sender', 'batch_mode': 'batch_mode', 'mail_relay': 'mail_relay', + 'mail_sender': 'mail_sender', + 'mail_subject': 'mail_subject', + 'smtp_auth_passwd': 'smtp_auth_passwd', 'smtp_auth_security': 'smtp_auth_security', + 'smtp_auth_username': 'smtp_auth_username', + 'smtp_port': 'smtp_port', 'use_smtp_auth': 'use_smtp_auth', - 'smtp_auth_passwd': 'smtp_auth_passwd' + 'user_template': 'user_template' } - self._user_template = None - self._settings = None - self._smtp_port = None - self._mail_subject = None - self._smtp_auth_username = None - self._mail_sender = None self._batch_mode = None self._mail_relay = None + self._mail_sender = None + self._mail_subject = None + self._smtp_auth_passwd = None self._smtp_auth_security = None + self._smtp_auth_username = None + self._smtp_port = None self._use_smtp_auth = None - self._smtp_auth_passwd = None + self._user_template = None @property - def user_template(self): + def batch_mode(self): """ - Gets the user_template of this ClusterEmailExtended. - Location of a custom template file that can be used to specify the layout of the notification emails. + Gets the batch_mode of this ClusterEmailExtended. + This setting determines how notifications will be batched together to be sent by email. 'none' means each notification will be sent separately. 'severity' means notifications of the same severity will be sent together. 'category' means notifications of the same category will be sent together. 'all' means all notifications will be batched together and sent in a single email. - :return: The user_template of this ClusterEmailExtended. + :return: The batch_mode of this ClusterEmailExtended. :rtype: str """ - return self._user_template + return self._batch_mode - @user_template.setter - def user_template(self, user_template): + @batch_mode.setter + def batch_mode(self, batch_mode): """ - Sets the user_template of this ClusterEmailExtended. - Location of a custom template file that can be used to specify the layout of the notification emails. + Sets the batch_mode of this ClusterEmailExtended. + This setting determines how notifications will be batched together to be sent by email. 'none' means each notification will be sent separately. 'severity' means notifications of the same severity will be sent together. 'category' means notifications of the same category will be sent together. 'all' means all notifications will be batched together and sent in a single email. - :param user_template: The user_template of this ClusterEmailExtended. + :param batch_mode: The batch_mode of this ClusterEmailExtended. :type: str """ - self._user_template = user_template + allowed_values = ["all", "severity", "category", "none"] + if batch_mode not in allowed_values: + raise ValueError( + "Invalid value for `batch_mode`, must be one of {0}" + .format(allowed_values) + ) + + self._batch_mode = batch_mode @property - def settings(self): + def mail_relay(self): """ - Gets the settings of this ClusterEmailExtended. - Cluster email notification settings. + Gets the mail_relay of this ClusterEmailExtended. + The address of the SMTP server to be used for relaying the notification messages. An SMTP server is required in order to send notifications. If this string is empty, no emails will be sent. - :return: The settings of this ClusterEmailExtended. - :rtype: ClusterEmailSettings + :return: The mail_relay of this ClusterEmailExtended. + :rtype: str """ - return self._settings + return self._mail_relay - @settings.setter - def settings(self, settings): + @mail_relay.setter + def mail_relay(self, mail_relay): """ - Sets the settings of this ClusterEmailExtended. - Cluster email notification settings. + Sets the mail_relay of this ClusterEmailExtended. + The address of the SMTP server to be used for relaying the notification messages. An SMTP server is required in order to send notifications. If this string is empty, no emails will be sent. - :param settings: The settings of this ClusterEmailExtended. - :type: ClusterEmailSettings + :param mail_relay: The mail_relay of this ClusterEmailExtended. + :type: str """ - self._settings = settings + + self._mail_relay = mail_relay @property - def smtp_port(self): + def mail_sender(self): """ - Gets the smtp_port of this ClusterEmailExtended. - The port on the SMTP server to be used for relaying the notification messages. + Gets the mail_sender of this ClusterEmailExtended. + The full email address that will appear as the sender of notification messages. - :return: The smtp_port of this ClusterEmailExtended. - :rtype: int + :return: The mail_sender of this ClusterEmailExtended. + :rtype: str """ - return self._smtp_port + return self._mail_sender - @smtp_port.setter - def smtp_port(self, smtp_port): + @mail_sender.setter + def mail_sender(self, mail_sender): """ - Sets the smtp_port of this ClusterEmailExtended. - The port on the SMTP server to be used for relaying the notification messages. + Sets the mail_sender of this ClusterEmailExtended. + The full email address that will appear as the sender of notification messages. - :param smtp_port: The smtp_port of this ClusterEmailExtended. - :type: int + :param mail_sender: The mail_sender of this ClusterEmailExtended. + :type: str """ - self._smtp_port = smtp_port + + self._mail_sender = mail_sender @property def mail_subject(self): @@ -162,129 +169,106 @@ def mail_subject(self, mail_subject): :param mail_subject: The mail_subject of this ClusterEmailExtended. :type: str """ + self._mail_subject = mail_subject @property - def smtp_auth_username(self): - """ - Gets the smtp_auth_username of this ClusterEmailExtended. - Username to authenticate with if SMTP authentication is being used. - - :return: The smtp_auth_username of this ClusterEmailExtended. - :rtype: str - """ - return self._smtp_auth_username - - @smtp_auth_username.setter - def smtp_auth_username(self, smtp_auth_username): - """ - Sets the smtp_auth_username of this ClusterEmailExtended. - Username to authenticate with if SMTP authentication is being used. - - :param smtp_auth_username: The smtp_auth_username of this ClusterEmailExtended. - :type: str - """ - self._smtp_auth_username = smtp_auth_username - - @property - def mail_sender(self): + def smtp_auth_passwd(self): """ - Gets the mail_sender of this ClusterEmailExtended. - The full email address that will appear as the sender of notification messages. + Gets the smtp_auth_passwd of this ClusterEmailExtended. + Password to authenticate with if SMTP authentication is being used. - :return: The mail_sender of this ClusterEmailExtended. + :return: The smtp_auth_passwd of this ClusterEmailExtended. :rtype: str """ - return self._mail_sender + return self._smtp_auth_passwd - @mail_sender.setter - def mail_sender(self, mail_sender): + @smtp_auth_passwd.setter + def smtp_auth_passwd(self, smtp_auth_passwd): """ - Sets the mail_sender of this ClusterEmailExtended. - The full email address that will appear as the sender of notification messages. + Sets the smtp_auth_passwd of this ClusterEmailExtended. + Password to authenticate with if SMTP authentication is being used. - :param mail_sender: The mail_sender of this ClusterEmailExtended. + :param smtp_auth_passwd: The smtp_auth_passwd of this ClusterEmailExtended. :type: str """ - self._mail_sender = mail_sender + + self._smtp_auth_passwd = smtp_auth_passwd @property - def batch_mode(self): + def smtp_auth_security(self): """ - Gets the batch_mode of this ClusterEmailExtended. - This setting determines how notifications will be batched together to be sent by email. 'none' means each notification will be sent separately. 'severity' means notifications of the same severity will be sent together. 'category' means notifications of the same category will be sent together. 'all' means all notifications will be batched together and sent in a single email. + Gets the smtp_auth_security of this ClusterEmailExtended. + The type of secure communication protocol to use if SMTP is being used. If 'none', plain text will be used, if 'starttls', the encrypted STARTTLS protocol will be used. - :return: The batch_mode of this ClusterEmailExtended. + :return: The smtp_auth_security of this ClusterEmailExtended. :rtype: str """ - return self._batch_mode + return self._smtp_auth_security - @batch_mode.setter - def batch_mode(self, batch_mode): + @smtp_auth_security.setter + def smtp_auth_security(self, smtp_auth_security): """ - Sets the batch_mode of this ClusterEmailExtended. - This setting determines how notifications will be batched together to be sent by email. 'none' means each notification will be sent separately. 'severity' means notifications of the same severity will be sent together. 'category' means notifications of the same category will be sent together. 'all' means all notifications will be batched together and sent in a single email. + Sets the smtp_auth_security of this ClusterEmailExtended. + The type of secure communication protocol to use if SMTP is being used. If 'none', plain text will be used, if 'starttls', the encrypted STARTTLS protocol will be used. - :param batch_mode: The batch_mode of this ClusterEmailExtended. + :param smtp_auth_security: The smtp_auth_security of this ClusterEmailExtended. :type: str """ - allowed_values = ["all", "severity", "category", "none"] - if batch_mode not in allowed_values: + allowed_values = ["none", "starttls"] + if smtp_auth_security not in allowed_values: raise ValueError( - "Invalid value for `batch_mode`, must be one of {0}" + "Invalid value for `smtp_auth_security`, must be one of {0}" .format(allowed_values) ) - self._batch_mode = batch_mode + + self._smtp_auth_security = smtp_auth_security @property - def mail_relay(self): + def smtp_auth_username(self): """ - Gets the mail_relay of this ClusterEmailExtended. - The address of the SMTP server to be used for relaying the notification messages. An SMTP server is required in order to send notifications. If this string is empty, no emails will be sent. + Gets the smtp_auth_username of this ClusterEmailExtended. + Username to authenticate with if SMTP authentication is being used. - :return: The mail_relay of this ClusterEmailExtended. + :return: The smtp_auth_username of this ClusterEmailExtended. :rtype: str """ - return self._mail_relay + return self._smtp_auth_username - @mail_relay.setter - def mail_relay(self, mail_relay): + @smtp_auth_username.setter + def smtp_auth_username(self, smtp_auth_username): """ - Sets the mail_relay of this ClusterEmailExtended. - The address of the SMTP server to be used for relaying the notification messages. An SMTP server is required in order to send notifications. If this string is empty, no emails will be sent. + Sets the smtp_auth_username of this ClusterEmailExtended. + Username to authenticate with if SMTP authentication is being used. - :param mail_relay: The mail_relay of this ClusterEmailExtended. + :param smtp_auth_username: The smtp_auth_username of this ClusterEmailExtended. :type: str """ - self._mail_relay = mail_relay + + self._smtp_auth_username = smtp_auth_username @property - def smtp_auth_security(self): + def smtp_port(self): """ - Gets the smtp_auth_security of this ClusterEmailExtended. - The type of secure communication protocol to use if SMTP is being used. If 'none', plain text will be used, if 'starttls', the encrypted STARTTLS protocol will be used. + Gets the smtp_port of this ClusterEmailExtended. + The port on the SMTP server to be used for relaying the notification messages. - :return: The smtp_auth_security of this ClusterEmailExtended. - :rtype: str + :return: The smtp_port of this ClusterEmailExtended. + :rtype: int """ - return self._smtp_auth_security + return self._smtp_port - @smtp_auth_security.setter - def smtp_auth_security(self, smtp_auth_security): + @smtp_port.setter + def smtp_port(self, smtp_port): """ - Sets the smtp_auth_security of this ClusterEmailExtended. - The type of secure communication protocol to use if SMTP is being used. If 'none', plain text will be used, if 'starttls', the encrypted STARTTLS protocol will be used. + Sets the smtp_port of this ClusterEmailExtended. + The port on the SMTP server to be used for relaying the notification messages. - :param smtp_auth_security: The smtp_auth_security of this ClusterEmailExtended. - :type: str + :param smtp_port: The smtp_port of this ClusterEmailExtended. + :type: int """ - allowed_values = ["none", "starttls"] - if smtp_auth_security not in allowed_values: - raise ValueError( - "Invalid value for `smtp_auth_security`, must be one of {0}" - .format(allowed_values) - ) - self._smtp_auth_security = smtp_auth_security + + self._smtp_port = smtp_port @property def use_smtp_auth(self): @@ -306,29 +290,31 @@ def use_smtp_auth(self, use_smtp_auth): :param use_smtp_auth: The use_smtp_auth of this ClusterEmailExtended. :type: bool """ + self._use_smtp_auth = use_smtp_auth @property - def smtp_auth_passwd(self): + def user_template(self): """ - Gets the smtp_auth_passwd of this ClusterEmailExtended. - Password to authenticate with if SMTP authentication is being used. + Gets the user_template of this ClusterEmailExtended. + Location of a custom template file that can be used to specify the layout of the notification emails. - :return: The smtp_auth_passwd of this ClusterEmailExtended. + :return: The user_template of this ClusterEmailExtended. :rtype: str """ - return self._smtp_auth_passwd + return self._user_template - @smtp_auth_passwd.setter - def smtp_auth_passwd(self, smtp_auth_passwd): + @user_template.setter + def user_template(self, user_template): """ - Sets the smtp_auth_passwd of this ClusterEmailExtended. - Password to authenticate with if SMTP authentication is being used. + Sets the user_template of this ClusterEmailExtended. + Location of a custom template file that can be used to specify the layout of the notification emails. - :param smtp_auth_passwd: The smtp_auth_passwd of this ClusterEmailExtended. + :param user_template: The user_template of this ClusterEmailExtended. :type: str """ - self._smtp_auth_passwd = smtp_auth_passwd + + self._user_template = user_template def to_dict(self): """ @@ -345,6 +331,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -362,14 +354,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_email_settings.py b/isi_sdk/models/cluster_email_settings.py index 937076500..b9e65b174 100644 --- a/isi_sdk/models/cluster_email_settings.py +++ b/isi_sdk/models/cluster_email_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterEmailSettings(object): @@ -99,6 +100,7 @@ def batch_mode(self, batch_mode): "Invalid value for `batch_mode`, must be one of {0}" .format(allowed_values) ) + self._batch_mode = batch_mode @property @@ -121,6 +123,7 @@ def mail_relay(self, mail_relay): :param mail_relay: The mail_relay of this ClusterEmailSettings. :type: str """ + self._mail_relay = mail_relay @property @@ -143,6 +146,7 @@ def mail_sender(self, mail_sender): :param mail_sender: The mail_sender of this ClusterEmailSettings. :type: str """ + self._mail_sender = mail_sender @property @@ -165,6 +169,7 @@ def mail_subject(self, mail_subject): :param mail_subject: The mail_subject of this ClusterEmailSettings. :type: str """ + self._mail_subject = mail_subject @property @@ -187,6 +192,7 @@ def smtp_auth_passwd_set(self, smtp_auth_passwd_set): :param smtp_auth_passwd_set: The smtp_auth_passwd_set of this ClusterEmailSettings. :type: bool """ + self._smtp_auth_passwd_set = smtp_auth_passwd_set @property @@ -215,6 +221,7 @@ def smtp_auth_security(self, smtp_auth_security): "Invalid value for `smtp_auth_security`, must be one of {0}" .format(allowed_values) ) + self._smtp_auth_security = smtp_auth_security @property @@ -237,13 +244,14 @@ def smtp_auth_username(self, smtp_auth_username): :param smtp_auth_username: The smtp_auth_username of this ClusterEmailSettings. :type: str """ + self._smtp_auth_username = smtp_auth_username @property def smtp_port(self): """ Gets the smtp_port of this ClusterEmailSettings. - The port on the SMTP server to be used for relaying the notification messages. + The port on the SMTP server to be used for relaying the notification messages. :return: The smtp_port of this ClusterEmailSettings. :rtype: int @@ -254,11 +262,12 @@ def smtp_port(self): def smtp_port(self, smtp_port): """ Sets the smtp_port of this ClusterEmailSettings. - The port on the SMTP server to be used for relaying the notification messages. + The port on the SMTP server to be used for relaying the notification messages. :param smtp_port: The smtp_port of this ClusterEmailSettings. :type: int """ + self._smtp_port = smtp_port @property @@ -281,6 +290,7 @@ def use_smtp_auth(self, use_smtp_auth): :param use_smtp_auth: The use_smtp_auth of this ClusterEmailSettings. :type: bool """ + self._use_smtp_auth = use_smtp_auth @property @@ -303,6 +313,7 @@ def user_template(self, user_template): :param user_template: The user_template of this ClusterEmailSettings. :type: str """ + self._user_template = user_template def to_dict(self): @@ -320,6 +331,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -337,14 +354,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_firmware_progress.py b/isi_sdk/models/cluster_firmware_progress.py index 88cf63176..4d92459da 100644 --- a/isi_sdk/models/cluster_firmware_progress.py +++ b/isi_sdk/models/cluster_firmware_progress.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterFirmwareProgress(object): @@ -66,6 +67,7 @@ def cluster_state(self, cluster_state): :param cluster_state: The cluster_state of this ClusterFirmwareProgress. :type: str """ + self._cluster_state = cluster_state def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_firmware_status.py b/isi_sdk/models/cluster_firmware_status.py index 948bc7a3e..adecef587 100644 --- a/isi_sdk/models/cluster_firmware_status.py +++ b/isi_sdk/models/cluster_firmware_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterFirmwareStatus(object): @@ -66,6 +67,7 @@ def nodes(self, nodes): :param nodes: The nodes of this ClusterFirmwareStatus. :type: list[ClusterFirmwareStatusNode] """ + self._nodes = nodes def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_firmware_status_node.py b/isi_sdk/models/cluster_firmware_status_node.py index 9573a96d7..ab77fe9a2 100644 --- a/isi_sdk/models/cluster_firmware_status_node.py +++ b/isi_sdk/models/cluster_firmware_status_node.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterFirmwareStatusNode(object): @@ -72,6 +73,7 @@ def devices(self, devices): :param devices: The devices of this ClusterFirmwareStatusNode. :type: list[ClusterFirmwareStatusNodeDevice] """ + self._devices = devices @property @@ -94,6 +96,7 @@ def lnn(self, lnn): :param lnn: The lnn of this ClusterFirmwareStatusNode. :type: int """ + self._lnn = lnn @property @@ -116,6 +119,7 @@ def package(self, package): :param package: The package of this ClusterFirmwareStatusNode. :type: list[ClusterFirmwareStatusNodePackageItem] """ + self._package = package def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_firmware_status_node_device.py b/isi_sdk/models/cluster_firmware_status_node_device.py index e3fd81ea4..4ec5b1775 100644 --- a/isi_sdk/models/cluster_firmware_status_node_device.py +++ b/isi_sdk/models/cluster_firmware_status_node_device.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterFirmwareStatusNodeDevice(object): @@ -81,6 +82,7 @@ def device(self, device): :param device: The device of this ClusterFirmwareStatusNodeDevice. :type: str """ + self._device = device @property @@ -103,6 +105,7 @@ def mismatch(self, mismatch): :param mismatch: The mismatch of this ClusterFirmwareStatusNodeDevice. :type: bool """ + self._mismatch = mismatch @property @@ -125,6 +128,7 @@ def target_version(self, target_version): :param target_version: The target_version of this ClusterFirmwareStatusNodeDevice. :type: str """ + self._target_version = target_version @property @@ -147,6 +151,7 @@ def type(self, type): :param type: The type of this ClusterFirmwareStatusNodeDevice. :type: str """ + self._type = type @property @@ -169,6 +174,7 @@ def upgrade_status(self, upgrade_status): :param upgrade_status: The upgrade_status of this ClusterFirmwareStatusNodeDevice. :type: str """ + self._upgrade_status = upgrade_status @property @@ -191,6 +197,7 @@ def version(self, version): :param version: The version of this ClusterFirmwareStatusNodeDevice. :type: str """ + self._version = version def to_dict(self): @@ -208,6 +215,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +238,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_firmware_status_node_package_item.py b/isi_sdk/models/cluster_firmware_status_node_package_item.py index fc3b99455..6a2b2dad7 100644 --- a/isi_sdk/models/cluster_firmware_status_node_package_item.py +++ b/isi_sdk/models/cluster_firmware_status_node_package_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterFirmwareStatusNodePackageItem(object): @@ -72,6 +73,7 @@ def checksum(self, checksum): :param checksum: The checksum of this ClusterFirmwareStatusNodePackageItem. :type: str """ + self._checksum = checksum @property @@ -94,6 +96,7 @@ def firmware(self, firmware): :param firmware: The firmware of this ClusterFirmwareStatusNodePackageItem. :type: str """ + self._firmware = firmware @property @@ -116,6 +119,7 @@ def version(self, version): :param version: The version of this ClusterFirmwareStatusNodePackageItem. :type: str """ + self._version = version def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_firmware_upgrade_item.py b/isi_sdk/models/cluster_firmware_upgrade_item.py index ef6c74cb3..062aeaadf 100644 --- a/isi_sdk/models/cluster_firmware_upgrade_item.py +++ b/isi_sdk/models/cluster_firmware_upgrade_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterFirmwareUpgradeItem(object): @@ -87,6 +88,7 @@ def exclude_device(self, exclude_device): :param exclude_device: The exclude_device of this ClusterFirmwareUpgradeItem. :type: str """ + self._exclude_device = exclude_device @property @@ -109,6 +111,7 @@ def exclude_type(self, exclude_type): :param exclude_type: The exclude_type of this ClusterFirmwareUpgradeItem. :type: str """ + self._exclude_type = exclude_type @property @@ -131,6 +134,7 @@ def include_device(self, include_device): :param include_device: The include_device of this ClusterFirmwareUpgradeItem. :type: str """ + self._include_device = include_device @property @@ -153,6 +157,7 @@ def include_type(self, include_type): :param include_type: The include_type of this ClusterFirmwareUpgradeItem. :type: str """ + self._include_type = include_type @property @@ -175,6 +180,7 @@ def no_burn(self, no_burn): :param no_burn: The no_burn of this ClusterFirmwareUpgradeItem. :type: bool """ + self._no_burn = no_burn @property @@ -197,6 +203,7 @@ def no_reboot(self, no_reboot): :param no_reboot: The no_reboot of this ClusterFirmwareUpgradeItem. :type: bool """ + self._no_reboot = no_reboot @property @@ -219,6 +226,7 @@ def no_verify(self, no_verify): :param no_verify: The no_verify of this ClusterFirmwareUpgradeItem. :type: bool """ + self._no_verify = no_verify @property @@ -241,6 +249,7 @@ def nodes_to_upgrade(self, nodes_to_upgrade): :param nodes_to_upgrade: The nodes_to_upgrade of this ClusterFirmwareUpgradeItem. :type: list[int] """ + self._nodes_to_upgrade = nodes_to_upgrade def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_identity.py b/isi_sdk/models/cluster_identity.py index 79e89cd47..857e4e656 100644 --- a/isi_sdk/models/cluster_identity.py +++ b/isi_sdk/models/cluster_identity.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterIdentity(object): @@ -72,6 +73,7 @@ def description(self, description): :param description: The description of this ClusterIdentity. :type: str """ + self._description = description @property @@ -94,6 +96,7 @@ def logon(self, logon): :param logon: The logon of this ClusterIdentity. :type: ClusterIdentityLogon """ + self._logon = logon @property @@ -116,6 +119,7 @@ def name(self, name): :param name: The name of this ClusterIdentity. :type: str """ + self._name = name def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_identity_logon.py b/isi_sdk/models/cluster_identity_logon.py index a96d409e3..c4ba0f20f 100644 --- a/isi_sdk/models/cluster_identity_logon.py +++ b/isi_sdk/models/cluster_identity_logon.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterIdentityLogon(object): @@ -69,6 +70,7 @@ def motd(self, motd): :param motd: The motd of this ClusterIdentityLogon. :type: str """ + self._motd = motd @property @@ -91,6 +93,7 @@ def motd_header(self, motd_header): :param motd_header: The motd_header of this ClusterIdentityLogon. :type: str """ + self._motd_header = motd_header def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node.py b/isi_sdk/models/cluster_node.py index a703ec228..165ef67d1 100644 --- a/isi_sdk/models/cluster_node.py +++ b/isi_sdk/models/cluster_node.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNode(object): @@ -37,7 +38,7 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'drives': 'list[NodesLnnDrivesNodeDrive]', + 'drives': 'list[NodeDrivesNodeDrive]', 'state': 'ClusterNodeState' } @@ -56,7 +57,7 @@ def drives(self): List of the drives in this node. :return: The drives of this ClusterNode. - :rtype: list[NodesLnnDrivesNodeDrive] + :rtype: list[NodeDrivesNodeDrive] """ return self._drives @@ -67,8 +68,9 @@ def drives(self, drives): List of the drives in this node. :param drives: The drives of this ClusterNode. - :type: list[NodesLnnDrivesNodeDrive] + :type: list[NodeDrivesNodeDrive] """ + self._drives = drives @property @@ -91,6 +93,7 @@ def state(self, state): :param state: The state of this ClusterNode. :type: ClusterNodeState """ + self._state = state def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_extended.py b/isi_sdk/models/cluster_node_extended.py index 135d9752b..34e20bf03 100644 --- a/isi_sdk/models/cluster_node_extended.py +++ b/isi_sdk/models/cluster_node_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodeExtended(object): @@ -37,60 +38,35 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'last_action_result': 'str', - 'drives': 'list[NodesLnnDrivesNodeDrive]', - 'node_state': 'str', - 'onefs_version': 'ClusterNodesOnefsVersion', - 'progress': 'int', + 'drives': 'list[NodeDrivesNodeDrive]', 'state': 'ClusterNodeState', - 'last_action': 'str', - 'error': 'ClusterNodesError', - 'lnn': 'int' + 'hardware': 'ClusterNodeHardware', + 'id': 'int', + 'lnn': 'int', + 'partitions': 'ClusterNodePartitions', + 'sensors': 'ClusterNodeSensors', + 'status': 'ClusterNodeStatus' } self.attribute_map = { - 'last_action_result': 'last_action_result', 'drives': 'drives', - 'node_state': 'node_state', - 'onefs_version': 'onefs_version', - 'progress': 'progress', 'state': 'state', - 'last_action': 'last_action', - 'error': 'error', - 'lnn': 'lnn' + 'hardware': 'hardware', + 'id': 'id', + 'lnn': 'lnn', + 'partitions': 'partitions', + 'sensors': 'sensors', + 'status': 'status' } - self._last_action_result = None self._drives = None - self._node_state = None - self._onefs_version = None - self._progress = None self._state = None - self._last_action = None - self._error = None + self._hardware = None + self._id = None self._lnn = None - - @property - def last_action_result(self): - """ - Gets the last_action_result of this ClusterNodeExtended. - Did the node pass upgrade or rollback without failing? Null if the node_state is 'committed.' One of the following values: 'pass', 'fail', null - - :return: The last_action_result of this ClusterNodeExtended. - :rtype: str - """ - return self._last_action_result - - @last_action_result.setter - def last_action_result(self, last_action_result): - """ - Sets the last_action_result of this ClusterNodeExtended. - Did the node pass upgrade or rollback without failing? Null if the node_state is 'committed.' One of the following values: 'pass', 'fail', null - - :param last_action_result: The last_action_result of this ClusterNodeExtended. - :type: str - """ - self._last_action_result = last_action_result + self._partitions = None + self._sensors = None + self._status = None @property def drives(self): @@ -99,7 +75,7 @@ def drives(self): List of the drives in this node. :return: The drives of this ClusterNodeExtended. - :rtype: list[NodesLnnDrivesNodeDrive] + :rtype: list[NodeDrivesNodeDrive] """ return self._drives @@ -110,163 +86,171 @@ def drives(self, drives): List of the drives in this node. :param drives: The drives of this ClusterNodeExtended. - :type: list[NodesLnnDrivesNodeDrive] + :type: list[NodeDrivesNodeDrive] """ + self._drives = drives @property - def node_state(self): + def state(self): """ - Gets the node_state of this ClusterNodeExtended. - The state of the node during the upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'upgrading', 'rolling back', 'assessing', 'error' + Gets the state of this ClusterNodeExtended. + Node state information (reported and modifiable). - :return: The node_state of this ClusterNodeExtended. - :rtype: str + :return: The state of this ClusterNodeExtended. + :rtype: ClusterNodeState """ - return self._node_state + return self._state - @node_state.setter - def node_state(self, node_state): + @state.setter + def state(self, state): """ - Sets the node_state of this ClusterNodeExtended. - The state of the node during the upgrade, rollback, or assessment. One of the following values: 'committed', 'upgraded', 'upgrading', 'rolling back', 'assessing', 'error' + Sets the state of this ClusterNodeExtended. + Node state information (reported and modifiable). - :param node_state: The node_state of this ClusterNodeExtended. - :type: str + :param state: The state of this ClusterNodeExtended. + :type: ClusterNodeState """ - self._node_state = node_state + + self._state = state @property - def onefs_version(self): + def hardware(self): """ - Gets the onefs_version of this ClusterNodeExtended. - The current OneFS version before upgrade. + Gets the hardware of this ClusterNodeExtended. + Node hardware identifying information (static). - :return: The onefs_version of this ClusterNodeExtended. - :rtype: ClusterNodesOnefsVersion + :return: The hardware of this ClusterNodeExtended. + :rtype: ClusterNodeHardware """ - return self._onefs_version + return self._hardware - @onefs_version.setter - def onefs_version(self, onefs_version): + @hardware.setter + def hardware(self, hardware): """ - Sets the onefs_version of this ClusterNodeExtended. - The current OneFS version before upgrade. + Sets the hardware of this ClusterNodeExtended. + Node hardware identifying information (static). - :param onefs_version: The onefs_version of this ClusterNodeExtended. - :type: ClusterNodesOnefsVersion + :param hardware: The hardware of this ClusterNodeExtended. + :type: ClusterNodeHardware """ - self._onefs_version = onefs_version + + self._hardware = hardware @property - def progress(self): + def id(self): """ - Gets the progress of this ClusterNodeExtended. - What step is the upgrade, assessment, or rollback in? To show via progress indicator. NOTE: the value is an integer between 0 and 100 (percent) + Gets the id of this ClusterNodeExtended. + Node ID (Device Number) of this node. - :return: The progress of this ClusterNodeExtended. + :return: The id of this ClusterNodeExtended. :rtype: int """ - return self._progress + return self._id - @progress.setter - def progress(self, progress): + @id.setter + def id(self, id): """ - Sets the progress of this ClusterNodeExtended. - What step is the upgrade, assessment, or rollback in? To show via progress indicator. NOTE: the value is an integer between 0 and 100 (percent) + Sets the id of this ClusterNodeExtended. + Node ID (Device Number) of this node. - :param progress: The progress of this ClusterNodeExtended. + :param id: The id of this ClusterNodeExtended. :type: int """ - self._progress = progress + + self._id = id @property - def state(self): + def lnn(self): """ - Gets the state of this ClusterNodeExtended. - Node state information (reported and modifiable). + Gets the lnn of this ClusterNodeExtended. + Logical Node Number (LNN) of this node. - :return: The state of this ClusterNodeExtended. - :rtype: ClusterNodeState + :return: The lnn of this ClusterNodeExtended. + :rtype: int """ - return self._state + return self._lnn - @state.setter - def state(self, state): + @lnn.setter + def lnn(self, lnn): """ - Sets the state of this ClusterNodeExtended. - Node state information (reported and modifiable). + Sets the lnn of this ClusterNodeExtended. + Logical Node Number (LNN) of this node. - :param state: The state of this ClusterNodeExtended. - :type: ClusterNodeState + :param lnn: The lnn of this ClusterNodeExtended. + :type: int """ - self._state = state + + self._lnn = lnn @property - def last_action(self): + def partitions(self): """ - Gets the last_action of this ClusterNodeExtended. - The last action performed to completion/failure on this node. Null if the node_state is 'committed' or 'assessing.' One of the following values: 'upgrade', 'rollback'. + Gets the partitions of this ClusterNodeExtended. + Node partition information. - :return: The last_action of this ClusterNodeExtended. - :rtype: str + :return: The partitions of this ClusterNodeExtended. + :rtype: ClusterNodePartitions """ - return self._last_action + return self._partitions - @last_action.setter - def last_action(self, last_action): + @partitions.setter + def partitions(self, partitions): """ - Sets the last_action of this ClusterNodeExtended. - The last action performed to completion/failure on this node. Null if the node_state is 'committed' or 'assessing.' One of the following values: 'upgrade', 'rollback'. + Sets the partitions of this ClusterNodeExtended. + Node partition information. - :param last_action: The last_action of this ClusterNodeExtended. - :type: str + :param partitions: The partitions of this ClusterNodeExtended. + :type: ClusterNodePartitions """ - self._last_action = last_action + + self._partitions = partitions @property - def error(self): + def sensors(self): """ - Gets the error of this ClusterNodeExtended. - The current OneFS version before upgrade. + Gets the sensors of this ClusterNodeExtended. + Node sensor information (hardware reported). - :return: The error of this ClusterNodeExtended. - :rtype: ClusterNodesError + :return: The sensors of this ClusterNodeExtended. + :rtype: ClusterNodeSensors """ - return self._error + return self._sensors - @error.setter - def error(self, error): + @sensors.setter + def sensors(self, sensors): """ - Sets the error of this ClusterNodeExtended. - The current OneFS version before upgrade. + Sets the sensors of this ClusterNodeExtended. + Node sensor information (hardware reported). - :param error: The error of this ClusterNodeExtended. - :type: ClusterNodesError + :param sensors: The sensors of this ClusterNodeExtended. + :type: ClusterNodeSensors """ - self._error = error + + self._sensors = sensors @property - def lnn(self): + def status(self): """ - Gets the lnn of this ClusterNodeExtended. - The lnn of the node. + Gets the status of this ClusterNodeExtended. + Node status information (hardware reported). - :return: The lnn of this ClusterNodeExtended. - :rtype: int + :return: The status of this ClusterNodeExtended. + :rtype: ClusterNodeStatus """ - return self._lnn + return self._status - @lnn.setter - def lnn(self, lnn): + @status.setter + def status(self, status): """ - Sets the lnn of this ClusterNodeExtended. - The lnn of the node. + Sets the status of this ClusterNodeExtended. + Node status information (hardware reported). - :param lnn: The lnn of this ClusterNodeExtended. - :type: int + :param status: The status of this ClusterNodeExtended. + :type: ClusterNodeStatus """ - self._lnn = lnn + + self._status = status def to_dict(self): """ @@ -283,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_hardware.py b/isi_sdk/models/cluster_node_hardware.py index 671c8d9f2..fa1152c84 100644 --- a/isi_sdk/models/cluster_node_hardware.py +++ b/isi_sdk/models/cluster_node_hardware.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodeHardware(object): @@ -138,6 +139,7 @@ def chassis(self, chassis): :param chassis: The chassis of this ClusterNodeHardware. :type: str """ + self._chassis = chassis @property @@ -160,6 +162,7 @@ def chassis_code(self, chassis_code): :param chassis_code: The chassis_code of this ClusterNodeHardware. :type: str """ + self._chassis_code = chassis_code @property @@ -182,6 +185,7 @@ def chassis_count(self, chassis_count): :param chassis_count: The chassis_count of this ClusterNodeHardware. :type: str """ + self._chassis_count = chassis_count @property @@ -204,6 +208,7 @@ def _class(self, _class): :param _class: The _class of this ClusterNodeHardware. :type: str """ + self.__class = _class @property @@ -226,6 +231,7 @@ def configuration_id(self, configuration_id): :param configuration_id: The configuration_id of this ClusterNodeHardware. :type: str """ + self._configuration_id = configuration_id @property @@ -248,6 +254,7 @@ def cpu(self, cpu): :param cpu: The cpu of this ClusterNodeHardware. :type: str """ + self._cpu = cpu @property @@ -270,6 +277,7 @@ def disk_controller(self, disk_controller): :param disk_controller: The disk_controller of this ClusterNodeHardware. :type: str """ + self._disk_controller = disk_controller @property @@ -292,6 +300,7 @@ def disk_expander(self, disk_expander): :param disk_expander: The disk_expander of this ClusterNodeHardware. :type: str """ + self._disk_expander = disk_expander @property @@ -314,6 +323,7 @@ def family_code(self, family_code): :param family_code: The family_code of this ClusterNodeHardware. :type: str """ + self._family_code = family_code @property @@ -336,6 +346,7 @@ def flash_drive(self, flash_drive): :param flash_drive: The flash_drive of this ClusterNodeHardware. :type: str """ + self._flash_drive = flash_drive @property @@ -358,6 +369,7 @@ def generation_code(self, generation_code): :param generation_code: The generation_code of this ClusterNodeHardware. :type: str """ + self._generation_code = generation_code @property @@ -380,6 +392,7 @@ def hwgen(self, hwgen): :param hwgen: The hwgen of this ClusterNodeHardware. :type: str """ + self._hwgen = hwgen @property @@ -402,6 +415,7 @@ def imb_version(self, imb_version): :param imb_version: The imb_version of this ClusterNodeHardware. :type: str """ + self._imb_version = imb_version @property @@ -424,6 +438,7 @@ def infiniband(self, infiniband): :param infiniband: The infiniband of this ClusterNodeHardware. :type: str """ + self._infiniband = infiniband @property @@ -446,6 +461,7 @@ def lcd_version(self, lcd_version): :param lcd_version: The lcd_version of this ClusterNodeHardware. :type: str """ + self._lcd_version = lcd_version @property @@ -468,6 +484,7 @@ def motherboard(self, motherboard): :param motherboard: The motherboard of this ClusterNodeHardware. :type: str """ + self._motherboard = motherboard @property @@ -490,6 +507,7 @@ def net_interfaces(self, net_interfaces): :param net_interfaces: The net_interfaces of this ClusterNodeHardware. :type: str """ + self._net_interfaces = net_interfaces @property @@ -512,6 +530,7 @@ def nvram(self, nvram): :param nvram: The nvram of this ClusterNodeHardware. :type: str """ + self._nvram = nvram @property @@ -534,6 +553,7 @@ def powersupplies(self, powersupplies): :param powersupplies: The powersupplies of this ClusterNodeHardware. :type: list[str] """ + self._powersupplies = powersupplies @property @@ -556,6 +576,7 @@ def processor(self, processor): :param processor: The processor of this ClusterNodeHardware. :type: str """ + self._processor = processor @property @@ -578,6 +599,7 @@ def product(self, product): :param product: The product of this ClusterNodeHardware. :type: str """ + self._product = product @property @@ -600,6 +622,7 @@ def ram(self, ram): :param ram: The ram of this ClusterNodeHardware. :type: int """ + self._ram = ram @property @@ -622,6 +645,7 @@ def serial_number(self, serial_number): :param serial_number: The serial_number of this ClusterNodeHardware. :type: str """ + self._serial_number = serial_number @property @@ -644,6 +668,7 @@ def series(self, series): :param series: The series of this ClusterNodeHardware. :type: str """ + self._series = series @property @@ -666,6 +691,7 @@ def storage_class(self, storage_class): :param storage_class: The storage_class of this ClusterNodeHardware. :type: str """ + self._storage_class = storage_class def to_dict(self): @@ -683,6 +709,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -700,14 +732,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_partitions.py b/isi_sdk/models/cluster_node_partitions.py index 82db1925a..2e61ac9b1 100644 --- a/isi_sdk/models/cluster_node_partitions.py +++ b/isi_sdk/models/cluster_node_partitions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodePartitions(object): @@ -38,7 +39,7 @@ def __init__(self): """ self.swagger_types = { 'count': 'int', - 'partitions': 'list[NodesLnnPartitionsNodePartition]' + 'partitions': 'list[NodePartitionsNodePartition]' } self.attribute_map = { @@ -69,6 +70,7 @@ def count(self, count): :param count: The count of this ClusterNodePartitions. :type: int """ + self._count = count @property @@ -78,7 +80,7 @@ def partitions(self): Partition information. :return: The partitions of this ClusterNodePartitions. - :rtype: list[NodesLnnPartitionsNodePartition] + :rtype: list[NodePartitionsNodePartition] """ return self._partitions @@ -89,8 +91,9 @@ def partitions(self, partitions): Partition information. :param partitions: The partitions of this ClusterNodePartitions. - :type: list[NodesLnnPartitionsNodePartition] + :type: list[NodePartitionsNodePartition] """ + self._partitions = partitions def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_sensors.py b/isi_sdk/models/cluster_node_sensors.py index c2d076959..e64abd995 100644 --- a/isi_sdk/models/cluster_node_sensors.py +++ b/isi_sdk/models/cluster_node_sensors.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodeSensors(object): @@ -37,7 +38,7 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'sensors': 'list[NodesLnnSensorsNodeSensor]' + 'sensors': 'list[NodeSensorsNodeSensor]' } self.attribute_map = { @@ -53,7 +54,7 @@ def sensors(self): This node's sensor information. :return: The sensors of this ClusterNodeSensors. - :rtype: list[NodesLnnSensorsNodeSensor] + :rtype: list[NodeSensorsNodeSensor] """ return self._sensors @@ -64,8 +65,9 @@ def sensors(self, sensors): This node's sensor information. :param sensors: The sensors of this ClusterNodeSensors. - :type: list[NodesLnnSensorsNodeSensor] + :type: list[NodeSensorsNodeSensor] """ + self._sensors = sensors def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_state.py b/isi_sdk/models/cluster_node_state.py index acb8ca84f..b734fdf30 100644 --- a/isi_sdk/models/cluster_node_state.py +++ b/isi_sdk/models/cluster_node_state.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodeState(object): @@ -72,6 +73,7 @@ def readonly(self, readonly): :param readonly: The readonly of this ClusterNodeState. :type: Empty """ + self._readonly = readonly @property @@ -94,6 +96,7 @@ def servicelight(self, servicelight): :param servicelight: The servicelight of this ClusterNodeState. :type: ClusterNodeStateServicelight """ + self._servicelight = servicelight @property @@ -116,6 +119,7 @@ def smartfail(self, smartfail): :param smartfail: The smartfail of this ClusterNodeState. :type: ClusterNodeStateSmartfail """ + self._smartfail = smartfail def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_state_extended.py b/isi_sdk/models/cluster_node_state_extended.py index a4e2d4883..3f39d287e 100644 --- a/isi_sdk/models/cluster_node_state_extended.py +++ b/isi_sdk/models/cluster_node_state_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodeStateExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'readonly': 'Empty', 'servicelight': 'ClusterNodeStateServicelight', - 'smartfail': 'ClusterNodeStateSmartfail', - 'readonly': 'Empty' + 'smartfail': 'ClusterNodeStateSmartfail' } self.attribute_map = { + 'readonly': 'readonly', 'servicelight': 'servicelight', - 'smartfail': 'smartfail', - 'readonly': 'readonly' + 'smartfail': 'smartfail' } + self._readonly = None self._servicelight = None self._smartfail = None - self._readonly = None + + @property + def readonly(self): + """ + Gets the readonly of this ClusterNodeStateExtended. + Node readonly state. + + :return: The readonly of this ClusterNodeStateExtended. + :rtype: Empty + """ + return self._readonly + + @readonly.setter + def readonly(self, readonly): + """ + Sets the readonly of this ClusterNodeStateExtended. + Node readonly state. + + :param readonly: The readonly of this ClusterNodeStateExtended. + :type: Empty + """ + + self._readonly = readonly @property def servicelight(self): @@ -72,6 +96,7 @@ def servicelight(self, servicelight): :param servicelight: The servicelight of this ClusterNodeStateExtended. :type: ClusterNodeStateServicelight """ + self._servicelight = servicelight @property @@ -94,30 +119,9 @@ def smartfail(self, smartfail): :param smartfail: The smartfail of this ClusterNodeStateExtended. :type: ClusterNodeStateSmartfail """ + self._smartfail = smartfail - @property - def readonly(self): - """ - Gets the readonly of this ClusterNodeStateExtended. - Node readonly state. - - :return: The readonly of this ClusterNodeStateExtended. - :rtype: Empty - """ - return self._readonly - - @readonly.setter - def readonly(self, readonly): - """ - Sets the readonly of this ClusterNodeStateExtended. - Node readonly state. - - :param readonly: The readonly of this ClusterNodeStateExtended. - :type: Empty - """ - self._readonly = readonly - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_state_servicelight.py b/isi_sdk/models/cluster_node_state_servicelight.py index a6eee5ca4..7a2fa99bd 100644 --- a/isi_sdk/models/cluster_node_state_servicelight.py +++ b/isi_sdk/models/cluster_node_state_servicelight.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodeStateServicelight(object): @@ -66,6 +67,7 @@ def enabled(self, enabled): :param enabled: The enabled of this ClusterNodeStateServicelight. :type: bool """ + self._enabled = enabled def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_state_smartfail.py b/isi_sdk/models/cluster_node_state_smartfail.py index 45e0059a2..fb191fd21 100644 --- a/isi_sdk/models/cluster_node_state_smartfail.py +++ b/isi_sdk/models/cluster_node_state_smartfail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodeStateSmartfail(object): @@ -66,6 +67,7 @@ def smartfailed(self, smartfailed): :param smartfailed: The smartfailed of this ClusterNodeStateSmartfail. :type: bool """ + self._smartfailed = smartfailed def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_node_status.py b/isi_sdk/models/cluster_node_status.py index 706eab652..d7792f236 100644 --- a/isi_sdk/models/cluster_node_status.py +++ b/isi_sdk/models/cluster_node_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodeStatus(object): @@ -37,11 +38,11 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'batterystatus': 'NodesLnnStatusNodeBatterystatus', - 'capacity': 'list[NodesLnnStatusNodeCapacityItem]', - 'cpu': 'NodesLnnStatusNodeCpu', - 'nvram': 'NodesLnnStatusNodeNvram', - 'powersupplies': 'NodesLnnStatusNodePowersupplies', + 'batterystatus': 'NodeStatusNodeBatterystatus', + 'capacity': 'list[NodeStatusNodeCapacityItem]', + 'cpu': 'NodeStatusNodeCpu', + 'nvram': 'NodeStatusNodeNvram', + 'powersupplies': 'NodeStatusNodePowersupplies', 'release': 'str', 'uptime': 'int', 'version': 'str' @@ -74,7 +75,7 @@ def batterystatus(self): Battery status information. :return: The batterystatus of this ClusterNodeStatus. - :rtype: NodesLnnStatusNodeBatterystatus + :rtype: NodeStatusNodeBatterystatus """ return self._batterystatus @@ -85,8 +86,9 @@ def batterystatus(self, batterystatus): Battery status information. :param batterystatus: The batterystatus of this ClusterNodeStatus. - :type: NodesLnnStatusNodeBatterystatus + :type: NodeStatusNodeBatterystatus """ + self._batterystatus = batterystatus @property @@ -96,7 +98,7 @@ def capacity(self): Storage capacity of this node. :return: The capacity of this ClusterNodeStatus. - :rtype: list[NodesLnnStatusNodeCapacityItem] + :rtype: list[NodeStatusNodeCapacityItem] """ return self._capacity @@ -107,8 +109,9 @@ def capacity(self, capacity): Storage capacity of this node. :param capacity: The capacity of this ClusterNodeStatus. - :type: list[NodesLnnStatusNodeCapacityItem] + :type: list[NodeStatusNodeCapacityItem] """ + self._capacity = capacity @property @@ -118,7 +121,7 @@ def cpu(self): CPU status information for this node. :return: The cpu of this ClusterNodeStatus. - :rtype: NodesLnnStatusNodeCpu + :rtype: NodeStatusNodeCpu """ return self._cpu @@ -129,8 +132,9 @@ def cpu(self, cpu): CPU status information for this node. :param cpu: The cpu of this ClusterNodeStatus. - :type: NodesLnnStatusNodeCpu + :type: NodeStatusNodeCpu """ + self._cpu = cpu @property @@ -140,7 +144,7 @@ def nvram(self): Node NVRAM information. :return: The nvram of this ClusterNodeStatus. - :rtype: NodesLnnStatusNodeNvram + :rtype: NodeStatusNodeNvram """ return self._nvram @@ -151,8 +155,9 @@ def nvram(self, nvram): Node NVRAM information. :param nvram: The nvram of this ClusterNodeStatus. - :type: NodesLnnStatusNodeNvram + :type: NodeStatusNodeNvram """ + self._nvram = nvram @property @@ -162,7 +167,7 @@ def powersupplies(self): Information about this node's power supplies. :return: The powersupplies of this ClusterNodeStatus. - :rtype: NodesLnnStatusNodePowersupplies + :rtype: NodeStatusNodePowersupplies """ return self._powersupplies @@ -173,8 +178,9 @@ def powersupplies(self, powersupplies): Information about this node's power supplies. :param powersupplies: The powersupplies of this ClusterNodeStatus. - :type: NodesLnnStatusNodePowersupplies + :type: NodeStatusNodePowersupplies """ + self._powersupplies = powersupplies @property @@ -197,6 +203,7 @@ def release(self, release): :param release: The release of this ClusterNodeStatus. :type: str """ + self._release = release @property @@ -219,6 +226,7 @@ def uptime(self, uptime): :param uptime: The uptime of this ClusterNodeStatus. :type: int """ + self._uptime = uptime @property @@ -241,6 +249,7 @@ def version(self, version): :param version: The version of this ClusterNodeStatus. :type: str """ + self._version = version def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_nodes.py b/isi_sdk/models/cluster_nodes.py index 2f64de040..b4490e2a6 100644 --- a/isi_sdk/models/cluster_nodes.py +++ b/isi_sdk/models/cluster_nodes.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodes(object): @@ -69,6 +70,7 @@ def nodes(self, nodes): :param nodes: The nodes of this ClusterNodes. :type: list[ClusterNodeExtended] """ + self._nodes = nodes @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this ClusterNodes. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_nodes_available.py b/isi_sdk/models/cluster_nodes_available.py index e240dbf63..58ab45097 100644 --- a/isi_sdk/models/cluster_nodes_available.py +++ b/isi_sdk/models/cluster_nodes_available.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodesAvailable(object): @@ -69,6 +70,7 @@ def nodes(self, nodes): :param nodes: The nodes of this ClusterNodesAvailable. :type: list[ClusterNodesAvailableNode] """ + self._nodes = nodes @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this ClusterNodesAvailable. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_nodes_available_node.py b/isi_sdk/models/cluster_nodes_available_node.py index e5b0d00ab..afa6f5b1f 100644 --- a/isi_sdk/models/cluster_nodes_available_node.py +++ b/isi_sdk/models/cluster_nodes_available_node.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodesAvailableNode(object): @@ -81,6 +82,7 @@ def configuration_id(self, configuration_id): :param configuration_id: The configuration_id of this ClusterNodesAvailableNode. :type: str """ + self._configuration_id = configuration_id @property @@ -103,6 +105,7 @@ def description(self, description): :param description: The description of this ClusterNodesAvailableNode. :type: str """ + self._description = description @property @@ -125,6 +128,7 @@ def product(self, product): :param product: The product of this ClusterNodesAvailableNode. :type: str """ + self._product = product @property @@ -147,6 +151,7 @@ def serial_number(self, serial_number): :param serial_number: The serial_number of this ClusterNodesAvailableNode. :type: str """ + self._serial_number = serial_number @property @@ -175,6 +180,7 @@ def status(self, status): "Invalid value for `status`, must be one of {0}" .format(allowed_values) ) + self._status = status @property @@ -197,6 +203,7 @@ def version(self, version): :param version: The version of this ClusterNodesAvailableNode. :type: str """ + self._version = version def to_dict(self): @@ -214,6 +221,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -231,14 +244,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_nodes_error.py b/isi_sdk/models/cluster_nodes_error.py index 8d7bad201..bef6b84b4 100644 --- a/isi_sdk/models/cluster_nodes_error.py +++ b/isi_sdk/models/cluster_nodes_error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodesError(object): @@ -69,6 +70,7 @@ def failed_upgrade_action(self, failed_upgrade_action): :param failed_upgrade_action: The failed_upgrade_action of this ClusterNodesError. :type: str """ + self._failed_upgrade_action = failed_upgrade_action @property @@ -91,6 +93,7 @@ def log(self, log): :param log: The log of this ClusterNodesError. :type: str """ + self._log = log def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_nodes_extended.py b/isi_sdk/models/cluster_nodes_extended.py index 1c30a7ba4..9d41412bb 100644 --- a/isi_sdk/models/cluster_nodes_extended.py +++ b/isi_sdk/models/cluster_nodes_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodesExtended(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'total': 'int', - 'nodes': 'list[ClusterNodeExtended]' + 'nodes': 'list[ClusterNodeExtended]', + 'total': 'int' } self.attribute_map = { - 'total': 'total', - 'nodes': 'nodes' + 'nodes': 'nodes', + 'total': 'total' } - self._total = None self._nodes = None - - @property - def total(self): - """ - Gets the total of this ClusterNodesExtended. - Total number of items available. - - :return: The total of this ClusterNodesExtended. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """ - Sets the total of this ClusterNodesExtended. - Total number of items available. - - :param total: The total of this ClusterNodesExtended. - :type: int - """ - self._total = total + self._total = None @property def nodes(self): @@ -91,8 +70,32 @@ def nodes(self, nodes): :param nodes: The nodes of this ClusterNodesExtended. :type: list[ClusterNodeExtended] """ + self._nodes = nodes + @property + def total(self): + """ + Gets the total of this ClusterNodesExtended. + Total number of items available. + + :return: The total of this ClusterNodesExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this ClusterNodesExtended. + Total number of items available. + + :param total: The total of this ClusterNodesExtended. + :type: int + """ + + self._total = total + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_nodes_onefs_version.py b/isi_sdk/models/cluster_nodes_onefs_version.py index cba2356a4..aee62526e 100644 --- a/isi_sdk/models/cluster_nodes_onefs_version.py +++ b/isi_sdk/models/cluster_nodes_onefs_version.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterNodesOnefsVersion(object): @@ -78,6 +79,7 @@ def bugfix(self, bugfix): :param bugfix: The bugfix of this ClusterNodesOnefsVersion. :type: int """ + self._bugfix = bugfix @property @@ -100,6 +102,7 @@ def maintenance(self, maintenance): :param maintenance: The maintenance of this ClusterNodesOnefsVersion. :type: int """ + self._maintenance = maintenance @property @@ -122,6 +125,7 @@ def major(self, major): :param major: The major of this ClusterNodesOnefsVersion. :type: int """ + self._major = major @property @@ -144,6 +148,7 @@ def minor(self, minor): :param minor: The minor of this ClusterNodesOnefsVersion. :type: int """ + self._minor = minor @property @@ -166,6 +171,7 @@ def version(self, version): :param version: The version of this ClusterNodesOnefsVersion. :type: str """ + self._version = version def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_owner.py b/isi_sdk/models/cluster_owner.py index d029fb18e..461520c9a 100644 --- a/isi_sdk/models/cluster_owner.py +++ b/isi_sdk/models/cluster_owner.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterOwner(object): @@ -93,6 +94,7 @@ def company(self, company): :param company: The company of this ClusterOwner. :type: str """ + self._company = company @property @@ -115,6 +117,7 @@ def location(self, location): :param location: The location of this ClusterOwner. :type: str """ + self._location = location @property @@ -137,6 +140,7 @@ def primary_email(self, primary_email): :param primary_email: The primary_email of this ClusterOwner. :type: str """ + self._primary_email = primary_email @property @@ -159,6 +163,7 @@ def primary_name(self, primary_name): :param primary_name: The primary_name of this ClusterOwner. :type: str """ + self._primary_name = primary_name @property @@ -181,6 +186,7 @@ def primary_phone1(self, primary_phone1): :param primary_phone1: The primary_phone1 of this ClusterOwner. :type: str """ + self._primary_phone1 = primary_phone1 @property @@ -203,6 +209,7 @@ def primary_phone2(self, primary_phone2): :param primary_phone2: The primary_phone2 of this ClusterOwner. :type: str """ + self._primary_phone2 = primary_phone2 @property @@ -225,6 +232,7 @@ def secondary_email(self, secondary_email): :param secondary_email: The secondary_email of this ClusterOwner. :type: str """ + self._secondary_email = secondary_email @property @@ -247,6 +255,7 @@ def secondary_name(self, secondary_name): :param secondary_name: The secondary_name of this ClusterOwner. :type: str """ + self._secondary_name = secondary_name @property @@ -269,6 +278,7 @@ def secondary_phone1(self, secondary_phone1): :param secondary_phone1: The secondary_phone1 of this ClusterOwner. :type: str """ + self._secondary_phone1 = secondary_phone1 @property @@ -291,6 +301,7 @@ def secondary_phone2(self, secondary_phone2): :param secondary_phone2: The secondary_phone2 of this ClusterOwner. :type: str """ + self._secondary_phone2 = secondary_phone2 def to_dict(self): @@ -308,6 +319,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -325,14 +342,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_patch_patche.py b/isi_sdk/models/cluster_patch_patche.py index 6a28f75f6..28dfda5c3 100644 --- a/isi_sdk/models/cluster_patch_patche.py +++ b/isi_sdk/models/cluster_patch_patche.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterPatchPatche(object): @@ -69,6 +70,7 @@ def location(self, location): :param location: The location of this ClusterPatchPatche. :type: str """ + self._location = location @property @@ -91,6 +93,7 @@ def patch(self, patch): :param patch: The patch of this ClusterPatchPatche. :type: str """ + self._patch = patch def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_retry_last_action_item.py b/isi_sdk/models/cluster_retry_last_action_item.py index 047932273..65578d898 100644 --- a/isi_sdk/models/cluster_retry_last_action_item.py +++ b/isi_sdk/models/cluster_retry_last_action_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterRetryLastActionItem(object): @@ -66,6 +67,7 @@ def nodes(self, nodes): :param nodes: The nodes of this ClusterRetryLastActionItem. :type: list[int] """ + self._nodes = nodes def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_statfs.py b/isi_sdk/models/cluster_statfs.py index 59b1dbf63..3a0cbd955 100644 --- a/isi_sdk/models/cluster_statfs.py +++ b/isi_sdk/models/cluster_statfs.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterStatfs(object): @@ -108,6 +109,7 @@ def f_bavail(self, f_bavail): :param f_bavail: The f_bavail of this ClusterStatfs. :type: int """ + self._f_bavail = f_bavail @property @@ -130,6 +132,7 @@ def f_bfree(self, f_bfree): :param f_bfree: The f_bfree of this ClusterStatfs. :type: int """ + self._f_bfree = f_bfree @property @@ -152,6 +155,7 @@ def f_blocks(self, f_blocks): :param f_blocks: The f_blocks of this ClusterStatfs. :type: int """ + self._f_blocks = f_blocks @property @@ -174,6 +178,7 @@ def f_bsize(self, f_bsize): :param f_bsize: The f_bsize of this ClusterStatfs. :type: int """ + self._f_bsize = f_bsize @property @@ -196,6 +201,7 @@ def f_ffree(self, f_ffree): :param f_ffree: The f_ffree of this ClusterStatfs. :type: int """ + self._f_ffree = f_ffree @property @@ -218,6 +224,7 @@ def f_files(self, f_files): :param f_files: The f_files of this ClusterStatfs. :type: int """ + self._f_files = f_files @property @@ -240,6 +247,7 @@ def f_flags(self, f_flags): :param f_flags: The f_flags of this ClusterStatfs. :type: int """ + self._f_flags = f_flags @property @@ -262,6 +270,7 @@ def f_fstypename(self, f_fstypename): :param f_fstypename: The f_fstypename of this ClusterStatfs. :type: str """ + self._f_fstypename = f_fstypename @property @@ -284,6 +293,7 @@ def f_iosize(self, f_iosize): :param f_iosize: The f_iosize of this ClusterStatfs. :type: int """ + self._f_iosize = f_iosize @property @@ -306,6 +316,7 @@ def f_mntfromname(self, f_mntfromname): :param f_mntfromname: The f_mntfromname of this ClusterStatfs. :type: str """ + self._f_mntfromname = f_mntfromname @property @@ -328,6 +339,7 @@ def f_mntonname(self, f_mntonname): :param f_mntonname: The f_mntonname of this ClusterStatfs. :type: str """ + self._f_mntonname = f_mntonname @property @@ -350,6 +362,7 @@ def f_namemax(self, f_namemax): :param f_namemax: The f_namemax of this ClusterStatfs. :type: int """ + self._f_namemax = f_namemax @property @@ -372,6 +385,7 @@ def f_owner(self, f_owner): :param f_owner: The f_owner of this ClusterStatfs. :type: int """ + self._f_owner = f_owner @property @@ -394,6 +408,7 @@ def f_type(self, f_type): :param f_type: The f_type of this ClusterStatfs. :type: int """ + self._f_type = f_type @property @@ -416,6 +431,7 @@ def f_version(self, f_version): :param f_version: The f_version of this ClusterStatfs. :type: int """ + self._f_version = f_version def to_dict(self): @@ -433,6 +449,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -450,14 +472,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_time.py b/isi_sdk/models/cluster_time.py index e194031ce..efcc82add 100644 --- a/isi_sdk/models/cluster_time.py +++ b/isi_sdk/models/cluster_time.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterTime(object): @@ -37,36 +38,89 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'time': 'int' + 'errors': 'list[ClusterTimeError]', + 'nodes': 'list[ClusterTimeNode]', + 'total': 'int' } self.attribute_map = { - 'time': 'time' + 'errors': 'errors', + 'nodes': 'nodes', + 'total': 'total' } - self._time = None + self._errors = None + self._nodes = None + self._total = None @property - def time(self): + def errors(self): """ - Gets the time of this ClusterTime. - The current time on the cluster as a UNIX epoch (seconds since 1/1/1970), as reported by this node. + Gets the errors of this ClusterTime. + A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors. - :return: The time of this ClusterTime. + :return: The errors of this ClusterTime. + :rtype: list[ClusterTimeError] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """ + Sets the errors of this ClusterTime. + A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors. + + :param errors: The errors of this ClusterTime. + :type: list[ClusterTimeError] + """ + + self._errors = errors + + @property + def nodes(self): + """ + Gets the nodes of this ClusterTime. + The responses from the individual nodes involved in this request. + + :return: The nodes of this ClusterTime. + :rtype: list[ClusterTimeNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this ClusterTime. + The responses from the individual nodes involved in this request. + + :param nodes: The nodes of this ClusterTime. + :type: list[ClusterTimeNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this ClusterTime. + The total number of nodes responding. + + :return: The total of this ClusterTime. :rtype: int """ - return self._time + return self._total - @time.setter - def time(self, time): + @total.setter + def total(self, total): """ - Sets the time of this ClusterTime. - The current time on the cluster as a UNIX epoch (seconds since 1/1/1970), as reported by this node. + Sets the total of this ClusterTime. + The total number of nodes responding. - :param time: The time of this ClusterTime. + :param total: The total of this ClusterTime. :type: int """ - self._time = time + + self._total = total def to_dict(self): """ @@ -83,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_time_error.py b/isi_sdk/models/cluster_time_error.py new file mode 100644 index 000000000..b78f2c9a0 --- /dev/null +++ b/isi_sdk/models/cluster_time_error.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ClusterTimeError(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ClusterTimeError - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'code': 'str', + 'lnn': 'int', + 'message': 'str', + 'status': 'int' + } + + self.attribute_map = { + 'code': 'code', + 'lnn': 'lnn', + 'message': 'message', + 'status': 'status' + } + + self._code = None + self._lnn = None + self._message = None + self._status = None + + @property + def code(self): + """ + Gets the code of this ClusterTimeError. + The general meaning of the status code. + + :return: The code of this ClusterTimeError. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this ClusterTimeError. + The general meaning of the status code. + + :param code: The code of this ClusterTimeError. + :type: str + """ + + self._code = code + + @property + def lnn(self): + """ + Gets the lnn of this ClusterTimeError. + Logical node number of the node reporting this error. + + :return: The lnn of this ClusterTimeError. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this ClusterTimeError. + Logical node number of the node reporting this error. + + :param lnn: The lnn of this ClusterTimeError. + :type: int + """ + + if not lnn: + raise ValueError("Invalid value for `lnn`, must not be `None`") + if lnn > 4.294967295E9: + raise ValueError("Invalid value for `lnn`, must be a value less than or equal to `4.294967295E9`") + if lnn < 0.0: + raise ValueError("Invalid value for `lnn`, must be a value greater than or equal to `0.0`") + + self._lnn = lnn + + @property + def message(self): + """ + Gets the message of this ClusterTimeError. + More detailed description of the error. + + :return: The message of this ClusterTimeError. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this ClusterTimeError. + More detailed description of the error. + + :param message: The message of this ClusterTimeError. + :type: str + """ + + self._message = message + + @property + def status(self): + """ + Gets the status of this ClusterTimeError. + HTTP Status code returned by this node. + + :return: The status of this ClusterTimeError. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ClusterTimeError. + HTTP Status code returned by this node. + + :param status: The status of this ClusterTimeError. + :type: int + """ + + if not status: + raise ValueError("Invalid value for `status`, must not be `None`") + if status > 4.294967295E9: + raise ValueError("Invalid value for `status`, must be a value less than or equal to `4.294967295E9`") + if status < 0.0: + raise ValueError("Invalid value for `status`, must be a value greater than or equal to `0.0`") + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/cluster_time_extended.py b/isi_sdk/models/cluster_time_extended.py index 899c2c1bd..7971ef7c2 100644 --- a/isi_sdk/models/cluster_time_extended.py +++ b/isi_sdk/models/cluster_time_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterTimeExtended(object): @@ -66,6 +67,14 @@ def time(self, time): :param time: The time of this ClusterTimeExtended. :type: int """ + + if not time: + raise ValueError("Invalid value for `time`, must not be `None`") + if time > 9.223372036854776E18: + raise ValueError("Invalid value for `time`, must be a value less than or equal to `9.223372036854776E18`") + if time < -9.223372036854776E18: + raise ValueError("Invalid value for `time`, must be a value greater than or equal to `-9.223372036854776E18`") + self._time = time def to_dict(self): @@ -83,6 +92,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +115,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_time_node.py b/isi_sdk/models/cluster_time_node.py new file mode 100644 index 000000000..c5d55c1bb --- /dev/null +++ b/isi_sdk/models/cluster_time_node.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ClusterTimeNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ClusterTimeNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'error': 'str', + 'id': 'int', + 'lnn': 'int', + 'status': 'int', + 'time': 'int' + } + + self.attribute_map = { + 'error': 'error', + 'id': 'id', + 'lnn': 'lnn', + 'status': 'status', + 'time': 'time' + } + + self._error = None + self._id = None + self._lnn = None + self._status = None + self._time = None + + @property + def error(self): + """ + Gets the error of this ClusterTimeNode. + Error message, if the HTTP status returned from this node was not 200. + + :return: The error of this ClusterTimeNode. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this ClusterTimeNode. + Error message, if the HTTP status returned from this node was not 200. + + :param error: The error of this ClusterTimeNode. + :type: str + """ + + self._error = error + + @property + def id(self): + """ + Gets the id of this ClusterTimeNode. + Node ID of the node reporting this information. + + :return: The id of this ClusterTimeNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ClusterTimeNode. + Node ID of the node reporting this information. + + :param id: The id of this ClusterTimeNode. + :type: int + """ + + if not id: + raise ValueError("Invalid value for `id`, must not be `None`") + if id > 4.294967295E9: + raise ValueError("Invalid value for `id`, must be a value less than or equal to `4.294967295E9`") + if id < 0.0: + raise ValueError("Invalid value for `id`, must be a value greater than or equal to `0.0`") + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this ClusterTimeNode. + Logical node number of the node reporting this information. + + :return: The lnn of this ClusterTimeNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this ClusterTimeNode. + Logical node number of the node reporting this information. + + :param lnn: The lnn of this ClusterTimeNode. + :type: int + """ + + if not lnn: + raise ValueError("Invalid value for `lnn`, must not be `None`") + if lnn > 4.294967295E9: + raise ValueError("Invalid value for `lnn`, must be a value less than or equal to `4.294967295E9`") + if lnn < 0.0: + raise ValueError("Invalid value for `lnn`, must be a value greater than or equal to `0.0`") + + self._lnn = lnn + + @property + def status(self): + """ + Gets the status of this ClusterTimeNode. + Status of the HTTP response from this node if not 200. If 200, this field does not appear. + + :return: The status of this ClusterTimeNode. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ClusterTimeNode. + Status of the HTTP response from this node if not 200. If 200, this field does not appear. + + :param status: The status of this ClusterTimeNode. + :type: int + """ + + if not status: + raise ValueError("Invalid value for `status`, must not be `None`") + if status > 4.294967295E9: + raise ValueError("Invalid value for `status`, must be a value less than or equal to `4.294967295E9`") + if status < 0.0: + raise ValueError("Invalid value for `status`, must be a value greater than or equal to `0.0`") + + self._status = status + + @property + def time(self): + """ + Gets the time of this ClusterTimeNode. + The current time on the cluster as a UNIX epoch (seconds since 1/1/1970), as reported by this node. + + :return: The time of this ClusterTimeNode. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """ + Sets the time of this ClusterTimeNode. + The current time on the cluster as a UNIX epoch (seconds since 1/1/1970), as reported by this node. + + :param time: The time of this ClusterTimeNode. + :type: int + """ + + if not time: + raise ValueError("Invalid value for `time`, must not be `None`") + if time > 9.223372036854776E18: + raise ValueError("Invalid value for `time`, must be a value less than or equal to `9.223372036854776E18`") + if time < -9.223372036854776E18: + raise ValueError("Invalid value for `time`, must be a value greater than or equal to `-9.223372036854776E18`") + + self._time = time + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/cluster_timezone.py b/isi_sdk/models/cluster_timezone.py index bb87ecdf4..75e086df7 100644 --- a/isi_sdk/models/cluster_timezone.py +++ b/isi_sdk/models/cluster_timezone.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterTimezone(object): @@ -69,6 +70,7 @@ def abbreviation(self, abbreviation): :param abbreviation: The abbreviation of this ClusterTimezone. :type: str """ + self._abbreviation = abbreviation @property @@ -91,6 +93,7 @@ def path(self, path): :param path: The path of this ClusterTimezone. :type: str """ + self._path = path def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_timezone_extended.py b/isi_sdk/models/cluster_timezone_extended.py index e919d4c25..7b3142c1d 100644 --- a/isi_sdk/models/cluster_timezone_extended.py +++ b/isi_sdk/models/cluster_timezone_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterTimezoneExtended(object): @@ -37,40 +38,15 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'abbreviation': 'str', 'path': 'str' } self.attribute_map = { - 'abbreviation': 'abbreviation', 'path': 'path' } - self._abbreviation = None self._path = None - @property - def abbreviation(self): - """ - Gets the abbreviation of this ClusterTimezoneExtended. - Timezone abbreviation. - - :return: The abbreviation of this ClusterTimezoneExtended. - :rtype: str - """ - return self._abbreviation - - @abbreviation.setter - def abbreviation(self, abbreviation): - """ - Sets the abbreviation of this ClusterTimezoneExtended. - Timezone abbreviation. - - :param abbreviation: The abbreviation of this ClusterTimezoneExtended. - :type: str - """ - self._abbreviation = abbreviation - @property def path(self): """ @@ -91,6 +67,7 @@ def path(self, path): :param path: The path of this ClusterTimezoneExtended. :type: str """ + self._path = path def to_dict(self): @@ -108,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_upgrade.py b/isi_sdk/models/cluster_upgrade.py index 778b5968e..7ad7b9ec9 100644 --- a/isi_sdk/models/cluster_upgrade.py +++ b/isi_sdk/models/cluster_upgrade.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterUpgrade(object): @@ -66,6 +67,7 @@ def nodes_to_rolling_upgrade(self, nodes_to_rolling_upgrade): :param nodes_to_rolling_upgrade: The nodes_to_rolling_upgrade of this ClusterUpgrade. :type: list[int] """ + self._nodes_to_rolling_upgrade = nodes_to_rolling_upgrade def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_upgrade_item.py b/isi_sdk/models/cluster_upgrade_item.py index cfdbb882e..5dae354d3 100644 --- a/isi_sdk/models/cluster_upgrade_item.py +++ b/isi_sdk/models/cluster_upgrade_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ClusterUpgradeItem(object): @@ -75,6 +76,7 @@ def install_image_path(self, install_image_path): :param install_image_path: The install_image_path of this ClusterUpgradeItem. :type: str """ + self._install_image_path = install_image_path @property @@ -97,6 +99,7 @@ def nodes_to_rolling_upgrade(self, nodes_to_rolling_upgrade): :param nodes_to_rolling_upgrade: The nodes_to_rolling_upgrade of this ClusterUpgradeItem. :type: list[int] """ + self._nodes_to_rolling_upgrade = nodes_to_rolling_upgrade @property @@ -119,6 +122,7 @@ def skip_optional(self, skip_optional): :param skip_optional: The skip_optional of this ClusterUpgradeItem. :type: bool """ + self._skip_optional = skip_optional @property @@ -141,6 +145,7 @@ def upgrade_type(self, upgrade_type): :param upgrade_type: The upgrade_type of this ClusterUpgradeItem. :type: str """ + self._upgrade_type = upgrade_type def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/cluster_version.py b/isi_sdk/models/cluster_version.py new file mode 100644 index 000000000..59f354dc7 --- /dev/null +++ b/isi_sdk/models/cluster_version.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ClusterVersion(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ClusterVersion - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'errors': 'list[ClusterTimeError]', + 'nodes': 'list[ClusterVersionNode]', + 'total': 'int' + } + + self.attribute_map = { + 'errors': 'errors', + 'nodes': 'nodes', + 'total': 'total' + } + + self._errors = None + self._nodes = None + self._total = None + + @property + def errors(self): + """ + Gets the errors of this ClusterVersion. + A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors. + + :return: The errors of this ClusterVersion. + :rtype: list[ClusterTimeError] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """ + Sets the errors of this ClusterVersion. + A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors. + + :param errors: The errors of this ClusterVersion. + :type: list[ClusterTimeError] + """ + + self._errors = errors + + @property + def nodes(self): + """ + Gets the nodes of this ClusterVersion. + The responses from the individual nodes involved in this request. + + :return: The nodes of this ClusterVersion. + :rtype: list[ClusterVersionNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this ClusterVersion. + The responses from the individual nodes involved in this request. + + :param nodes: The nodes of this ClusterVersion. + :type: list[ClusterVersionNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this ClusterVersion. + The total number of nodes responding. + + :return: The total of this ClusterVersion. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this ClusterVersion. + The total number of nodes responding. + + :param total: The total of this ClusterVersion. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/cluster_version_node.py b/isi_sdk/models/cluster_version_node.py new file mode 100644 index 000000000..235e8d550 --- /dev/null +++ b/isi_sdk/models/cluster_version_node.py @@ -0,0 +1,351 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ClusterVersionNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ClusterVersionNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'build': 'str', + 'error': 'str', + 'id': 'int', + 'lnn': 'int', + 'release': 'str', + 'revision': 'str', + 'status': 'int', + 'type': 'str', + 'version': 'str' + } + + self.attribute_map = { + 'build': 'build', + 'error': 'error', + 'id': 'id', + 'lnn': 'lnn', + 'release': 'release', + 'revision': 'revision', + 'status': 'status', + 'type': 'type', + 'version': 'version' + } + + self._build = None + self._error = None + self._id = None + self._lnn = None + self._release = None + self._revision = None + self._status = None + self._type = None + self._version = None + + @property + def build(self): + """ + Gets the build of this ClusterVersionNode. + OneFS build string. + + :return: The build of this ClusterVersionNode. + :rtype: str + """ + return self._build + + @build.setter + def build(self, build): + """ + Sets the build of this ClusterVersionNode. + OneFS build string. + + :param build: The build of this ClusterVersionNode. + :type: str + """ + + self._build = build + + @property + def error(self): + """ + Gets the error of this ClusterVersionNode. + Error message, if the HTTP status returned from this node was not 200. + + :return: The error of this ClusterVersionNode. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this ClusterVersionNode. + Error message, if the HTTP status returned from this node was not 200. + + :param error: The error of this ClusterVersionNode. + :type: str + """ + + self._error = error + + @property + def id(self): + """ + Gets the id of this ClusterVersionNode. + Node ID of the node reporting this information. + + :return: The id of this ClusterVersionNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ClusterVersionNode. + Node ID of the node reporting this information. + + :param id: The id of this ClusterVersionNode. + :type: int + """ + + if not id: + raise ValueError("Invalid value for `id`, must not be `None`") + if id > 4.294967295E9: + raise ValueError("Invalid value for `id`, must be a value less than or equal to `4.294967295E9`") + if id < 0.0: + raise ValueError("Invalid value for `id`, must be a value greater than or equal to `0.0`") + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this ClusterVersionNode. + Logical node number of the node reporting this information. + + :return: The lnn of this ClusterVersionNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this ClusterVersionNode. + Logical node number of the node reporting this information. + + :param lnn: The lnn of this ClusterVersionNode. + :type: int + """ + + if not lnn: + raise ValueError("Invalid value for `lnn`, must not be `None`") + if lnn > 4.294967295E9: + raise ValueError("Invalid value for `lnn`, must be a value less than or equal to `4.294967295E9`") + if lnn < 0.0: + raise ValueError("Invalid value for `lnn`, must be a value greater than or equal to `0.0`") + + self._lnn = lnn + + @property + def release(self): + """ + Gets the release of this ClusterVersionNode. + Kernel release number. + + :return: The release of this ClusterVersionNode. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """ + Sets the release of this ClusterVersionNode. + Kernel release number. + + :param release: The release of this ClusterVersionNode. + :type: str + """ + + self._release = release + + @property + def revision(self): + """ + Gets the revision of this ClusterVersionNode. + OneFS build number. + + :return: The revision of this ClusterVersionNode. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this ClusterVersionNode. + OneFS build number. + + :param revision: The revision of this ClusterVersionNode. + :type: str + """ + + self._revision = revision + + @property + def status(self): + """ + Gets the status of this ClusterVersionNode. + Status of the HTTP response from this node if not 200. If 200, this field does not appear. + + :return: The status of this ClusterVersionNode. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ClusterVersionNode. + Status of the HTTP response from this node if not 200. If 200, this field does not appear. + + :param status: The status of this ClusterVersionNode. + :type: int + """ + + if not status: + raise ValueError("Invalid value for `status`, must not be `None`") + if status > 4.294967295E9: + raise ValueError("Invalid value for `status`, must be a value less than or equal to `4.294967295E9`") + if status < 0.0: + raise ValueError("Invalid value for `status`, must be a value greater than or equal to `0.0`") + + self._status = status + + @property + def type(self): + """ + Gets the type of this ClusterVersionNode. + Kernel release type. + + :return: The type of this ClusterVersionNode. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ClusterVersionNode. + Kernel release type. + + :param type: The type of this ClusterVersionNode. + :type: str + """ + + self._type = type + + @property + def version(self): + """ + Gets the version of this ClusterVersionNode. + Kernel full version information. + + :return: The version of this ClusterVersionNode. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this ClusterVersionNode. + Kernel full version information. + + :param version: The version of this ClusterVersionNode. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/compatibilities_class_active.py b/isi_sdk/models/compatibilities_class_active.py index a52f78e9b..60e8004f7 100644 --- a/isi_sdk/models/compatibilities_class_active.py +++ b/isi_sdk/models/compatibilities_class_active.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesClassActive(object): @@ -66,6 +67,7 @@ def active(self, active): :param active: The active of this CompatibilitiesClassActive. :type: list[CompatibilitiesClassActiveActiveItem] """ + self._active = active def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_class_active_active_item.py b/isi_sdk/models/compatibilities_class_active_active_item.py index 529e90cdd..5c381ae92 100644 --- a/isi_sdk/models/compatibilities_class_active_active_item.py +++ b/isi_sdk/models/compatibilities_class_active_active_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesClassActiveActiveItem(object): @@ -72,6 +73,7 @@ def class_1(self, class_1): :param class_1: The class_1 of this CompatibilitiesClassActiveActiveItem. :type: str """ + self._class_1 = class_1 @property @@ -94,6 +96,7 @@ def class_2(self, class_2): :param class_2: The class_2 of this CompatibilitiesClassActiveActiveItem. :type: str """ + self._class_2 = class_2 @property @@ -116,6 +119,7 @@ def id(self, id): :param id: The id of this CompatibilitiesClassActiveActiveItem. :type: int """ + self._id = id def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_class_active_extended.py b/isi_sdk/models/compatibilities_class_active_extended.py index 85ea339b4..784b34872 100644 --- a/isi_sdk/models/compatibilities_class_active_extended.py +++ b/isi_sdk/models/compatibilities_class_active_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesClassActiveExtended(object): @@ -69,6 +70,7 @@ def active(self, active): :param active: The active of this CompatibilitiesClassActiveExtended. :type: list[CompatibilitiesClassActiveActiveItem] """ + self._active = active @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this CompatibilitiesClassActiveExtended. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_class_active_item.py b/isi_sdk/models/compatibilities_class_active_item.py index d255bb3a6..5dd6f84f3 100644 --- a/isi_sdk/models/compatibilities_class_active_item.py +++ b/isi_sdk/models/compatibilities_class_active_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesClassActiveItem(object): @@ -72,6 +73,7 @@ def assess(self, assess): :param assess: The assess of this CompatibilitiesClassActiveItem. :type: bool """ + self._assess = assess @property @@ -94,6 +96,7 @@ def class_1(self, class_1): :param class_1: The class_1 of this CompatibilitiesClassActiveItem. :type: str """ + self._class_1 = class_1 @property @@ -116,6 +119,7 @@ def class_2(self, class_2): :param class_2: The class_2 of this CompatibilitiesClassActiveItem. :type: str """ + self._class_2 = class_2 def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_class_available.py b/isi_sdk/models/compatibilities_class_available.py index 2aa0aff11..5761645a4 100644 --- a/isi_sdk/models/compatibilities_class_available.py +++ b/isi_sdk/models/compatibilities_class_available.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesClassAvailable(object): @@ -69,6 +70,7 @@ def available(self, available): :param available: The available of this CompatibilitiesClassAvailable. :type: list[CompatibilitiesClassAvailableAvailableItem] """ + self._available = available @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this CompatibilitiesClassAvailable. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_class_available_available_item.py b/isi_sdk/models/compatibilities_class_available_available_item.py index a7f958eeb..2492284bc 100644 --- a/isi_sdk/models/compatibilities_class_available_available_item.py +++ b/isi_sdk/models/compatibilities_class_available_available_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesClassAvailableAvailableItem(object): @@ -69,6 +70,7 @@ def class_1(self, class_1): :param class_1: The class_1 of this CompatibilitiesClassAvailableAvailableItem. :type: str """ + self._class_1 = class_1 @property @@ -91,6 +93,7 @@ def class_2(self, class_2): :param class_2: The class_2 of this CompatibilitiesClassAvailableAvailableItem. :type: str """ + self._class_2 = class_2 def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_ssd_active.py b/isi_sdk/models/compatibilities_ssd_active.py index 6e6ecefb0..587249db2 100644 --- a/isi_sdk/models/compatibilities_ssd_active.py +++ b/isi_sdk/models/compatibilities_ssd_active.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesSsdActive(object): @@ -66,6 +67,7 @@ def active(self, active): :param active: The active of this CompatibilitiesSsdActive. :type: list[CompatibilitiesSsdActiveActiveItem] """ + self._active = active def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_ssd_active_active_item.py b/isi_sdk/models/compatibilities_ssd_active_active_item.py index add633a17..88c63cfc6 100644 --- a/isi_sdk/models/compatibilities_ssd_active_active_item.py +++ b/isi_sdk/models/compatibilities_ssd_active_active_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesSsdActiveActiveItem(object): @@ -72,6 +73,7 @@ def class_1(self, class_1): :param class_1: The class_1 of this CompatibilitiesSsdActiveActiveItem. :type: str """ + self._class_1 = class_1 @property @@ -94,6 +96,7 @@ def count(self, count): :param count: The count of this CompatibilitiesSsdActiveActiveItem. :type: bool """ + self._count = count @property @@ -116,6 +119,7 @@ def id(self, id): :param id: The id of this CompatibilitiesSsdActiveActiveItem. :type: int """ + self._id = id def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_ssd_active_extended.py b/isi_sdk/models/compatibilities_ssd_active_extended.py index d2a529558..842a1aba3 100644 --- a/isi_sdk/models/compatibilities_ssd_active_extended.py +++ b/isi_sdk/models/compatibilities_ssd_active_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesSsdActiveExtended(object): @@ -69,6 +70,7 @@ def active(self, active): :param active: The active of this CompatibilitiesSsdActiveExtended. :type: list[CompatibilitiesSsdActiveActiveItem] """ + self._active = active @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this CompatibilitiesSsdActiveExtended. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_ssd_active_id_params.py b/isi_sdk/models/compatibilities_ssd_active_id_params.py index ac6ea46c7..51fbc2304 100644 --- a/isi_sdk/models/compatibilities_ssd_active_id_params.py +++ b/isi_sdk/models/compatibilities_ssd_active_id_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesSsdActiveIdParams(object): @@ -72,6 +73,7 @@ def assess(self, assess): :param assess: The assess of this CompatibilitiesSsdActiveIdParams. :type: bool """ + self._assess = assess @property @@ -94,6 +96,7 @@ def count(self, count): :param count: The count of this CompatibilitiesSsdActiveIdParams. :type: bool """ + self._count = count @property @@ -116,6 +119,7 @@ def id_2(self, id_2): :param id_2: The id_2 of this CompatibilitiesSsdActiveIdParams. :type: int """ + self._id_2 = id_2 def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_ssd_active_item.py b/isi_sdk/models/compatibilities_ssd_active_item.py index 140a3289b..3f410b651 100644 --- a/isi_sdk/models/compatibilities_ssd_active_item.py +++ b/isi_sdk/models/compatibilities_ssd_active_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesSsdActiveItem(object): @@ -75,6 +76,7 @@ def assess(self, assess): :param assess: The assess of this CompatibilitiesSsdActiveItem. :type: bool """ + self._assess = assess @property @@ -97,6 +99,7 @@ def class_1(self, class_1): :param class_1: The class_1 of this CompatibilitiesSsdActiveItem. :type: str """ + self._class_1 = class_1 @property @@ -119,6 +122,7 @@ def class_2(self, class_2): :param class_2: The class_2 of this CompatibilitiesSsdActiveItem. :type: str """ + self._class_2 = class_2 @property @@ -141,6 +145,7 @@ def count(self, count): :param count: The count of this CompatibilitiesSsdActiveItem. :type: bool """ + self._count = count def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_ssd_available.py b/isi_sdk/models/compatibilities_ssd_available.py index 221cc9889..856766daa 100644 --- a/isi_sdk/models/compatibilities_ssd_available.py +++ b/isi_sdk/models/compatibilities_ssd_available.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesSsdAvailable(object): @@ -69,6 +70,7 @@ def available(self, available): :param available: The available of this CompatibilitiesSsdAvailable. :type: list[CompatibilitiesSsdAvailableAvailableItem] """ + self._available = available @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this CompatibilitiesSsdAvailable. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/compatibilities_ssd_available_available_item.py b/isi_sdk/models/compatibilities_ssd_available_available_item.py index 7cc81638d..99b689039 100644 --- a/isi_sdk/models/compatibilities_ssd_available_available_item.py +++ b/isi_sdk/models/compatibilities_ssd_available_available_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CompatibilitiesSsdAvailableAvailableItem(object): @@ -66,6 +67,7 @@ def _class(self, _class): :param _class: The _class of this CompatibilitiesSsdAvailableAvailableItem. :type: str """ + self.__class = _class def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_antivirus_scan_item_response.py b/isi_sdk/models/create_antivirus_scan_item_response.py index d2c1b537a..54dc0ac85 100644 --- a/isi_sdk/models/create_antivirus_scan_item_response.py +++ b/isi_sdk/models/create_antivirus_scan_item_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateAntivirusScanItemResponse(object): @@ -53,7 +54,7 @@ def __init__(self): def report_id(self): """ Gets the report_id of this CreateAntivirusScanItemResponse. - The ID for the report for this scan. A report ID will be generated if one is not provided. + The ID for the report for this scan. A report ID will be generated if one is not provided. :return: The report_id of this CreateAntivirusScanItemResponse. :rtype: str @@ -64,11 +65,12 @@ def report_id(self): def report_id(self, report_id): """ Sets the report_id of this CreateAntivirusScanItemResponse. - The ID for the report for this scan. A report ID will be generated if one is not provided. + The ID for the report for this scan. A report ID will be generated if one is not provided. :param report_id: The report_id of this CreateAntivirusScanItemResponse. :type: str """ + self._report_id = report_id @property @@ -91,6 +93,7 @@ def result(self, result): :param result: The result of this CreateAntivirusScanItemResponse. :type: str """ + self._result = result def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_auth_refresh_item_response.py b/isi_sdk/models/create_auth_refresh_item_response.py index 0ba379bf1..7b6be4755 100644 --- a/isi_sdk/models/create_auth_refresh_item_response.py +++ b/isi_sdk/models/create_auth_refresh_item_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateAuthRefreshItemResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateAuthRefreshItemResponse. :type: int """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_cloud_account_response.py b/isi_sdk/models/create_cloud_account_response.py index 97c7065e6..d9774581c 100644 --- a/isi_sdk/models/create_cloud_account_response.py +++ b/isi_sdk/models/create_cloud_account_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateCloudAccountResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateCloudAccountResponse. :type: str """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_cloud_job_response.py b/isi_sdk/models/create_cloud_job_response.py index 8b96b7491..65cfbf1ab 100644 --- a/isi_sdk/models/create_cloud_job_response.py +++ b/isi_sdk/models/create_cloud_job_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateCloudJobResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateCloudJobResponse. :type: int """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_cloud_pool_response.py b/isi_sdk/models/create_cloud_pool_response.py index 8e05376dd..fc7df432b 100644 --- a/isi_sdk/models/create_cloud_pool_response.py +++ b/isi_sdk/models/create_cloud_pool_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateCloudPoolResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateCloudPoolResponse. :type: str """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_compatibilities_class_active_item_response.py b/isi_sdk/models/create_compatibilities_class_active_item_response.py index cc75a1711..1401eb142 100644 --- a/isi_sdk/models/create_compatibilities_class_active_item_response.py +++ b/isi_sdk/models/create_compatibilities_class_active_item_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateCompatibilitiesClassActiveItemResponse(object): @@ -72,6 +73,7 @@ def merges(self, merges): :param merges: The merges of this CreateCompatibilitiesClassActiveItemResponse. :type: list[CreateCompatibilitiesClassActiveItemResponseMerge] """ + self._merges = merges @property @@ -94,6 +96,7 @@ def message(self, message): :param message: The message of this CreateCompatibilitiesClassActiveItemResponse. :type: str """ + self._message = message @property @@ -116,6 +119,7 @@ def splits(self, splits): :param splits: The splits of this CreateCompatibilitiesClassActiveItemResponse. :type: list[CreateCompatibilitiesClassActiveItemResponseSplit] """ + self._splits = splits def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_compatibilities_class_active_item_response_merge.py b/isi_sdk/models/create_compatibilities_class_active_item_response_merge.py index 2e7446b75..d26770869 100644 --- a/isi_sdk/models/create_compatibilities_class_active_item_response_merge.py +++ b/isi_sdk/models/create_compatibilities_class_active_item_response_merge.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateCompatibilitiesClassActiveItemResponseMerge(object): @@ -72,6 +73,7 @@ def ids(self, ids): :param ids: The ids of this CreateCompatibilitiesClassActiveItemResponseMerge. :type: list[int] """ + self._ids = ids @property @@ -94,6 +96,7 @@ def names(self, names): :param names: The names of this CreateCompatibilitiesClassActiveItemResponseMerge. :type: list[str] """ + self._names = names @property @@ -116,6 +119,7 @@ def result_name(self, result_name): :param result_name: The result_name of this CreateCompatibilitiesClassActiveItemResponseMerge. :type: str """ + self._result_name = result_name def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_compatibilities_class_active_item_response_split.py b/isi_sdk/models/create_compatibilities_class_active_item_response_split.py index 6c50b379b..bd2f304bb 100644 --- a/isi_sdk/models/create_compatibilities_class_active_item_response_split.py +++ b/isi_sdk/models/create_compatibilities_class_active_item_response_split.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateCompatibilitiesClassActiveItemResponseSplit(object): @@ -72,6 +73,7 @@ def id(self, id): :param id: The id of this CreateCompatibilitiesClassActiveItemResponseSplit. :type: int """ + self._id = id @property @@ -94,6 +96,7 @@ def name(self, name): :param name: The name of this CreateCompatibilitiesClassActiveItemResponseSplit. :type: str """ + self._name = name @property @@ -116,6 +119,7 @@ def tier_name(self, tier_name): :param tier_name: The tier_name of this CreateCompatibilitiesClassActiveItemResponseSplit. :type: str """ + self._tier_name = tier_name def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_filepool_policy_response.py b/isi_sdk/models/create_filepool_policy_response.py index d381a46d0..bac5edbec 100644 --- a/isi_sdk/models/create_filepool_policy_response.py +++ b/isi_sdk/models/create_filepool_policy_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateFilepoolPolicyResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateFilepoolPolicyResponse. :type: str """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_hardening_apply_item_response.py b/isi_sdk/models/create_hardening_apply_item_response.py index df4bec5ed..59f9ee6ac 100644 --- a/isi_sdk/models/create_hardening_apply_item_response.py +++ b/isi_sdk/models/create_hardening_apply_item_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateHardeningApplyItemResponse(object): @@ -66,6 +67,7 @@ def message(self, message): :param message: The message of this CreateHardeningApplyItemResponse. :type: str """ + self._message = message def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_hardening_resolve_item_response.py b/isi_sdk/models/create_hardening_resolve_item_response.py index 6b9b3bd3a..411b54531 100644 --- a/isi_sdk/models/create_hardening_resolve_item_response.py +++ b/isi_sdk/models/create_hardening_resolve_item_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateHardeningResolveItemResponse(object): @@ -66,6 +67,7 @@ def message(self, message): :param message: The message of this CreateHardeningResolveItemResponse. :type: str """ + self._message = message def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_hardening_revert_item_response.py b/isi_sdk/models/create_hardening_revert_item_response.py index 64c635002..786f2ab7a 100644 --- a/isi_sdk/models/create_hardening_revert_item_response.py +++ b/isi_sdk/models/create_hardening_revert_item_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateHardeningRevertItemResponse(object): @@ -66,6 +67,7 @@ def message(self, message): :param message: The message of this CreateHardeningRevertItemResponse. :type: str """ + self._message = message def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_job_job_response.py b/isi_sdk/models/create_job_job_response.py index c6a347ece..2789980fc 100644 --- a/isi_sdk/models/create_job_job_response.py +++ b/isi_sdk/models/create_job_job_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateJobJobResponse(object): @@ -66,6 +67,12 @@ def id(self, id): :param id: The id of this CreateJobJobResponse. :type: int """ + + if not id: + raise ValueError("Invalid value for `id`, must not be `None`") + if id < 1.0: + raise ValueError("Invalid value for `id`, must be a value greater than or equal to `1.0`") + self._id = id def to_dict(self): @@ -83,6 +90,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +113,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_nfs_aliase_response.py b/isi_sdk/models/create_nfs_aliase_response.py index a7e0570ac..4407be619 100644 --- a/isi_sdk/models/create_nfs_aliase_response.py +++ b/isi_sdk/models/create_nfs_aliase_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateNfsAliaseResponse(object): @@ -75,6 +76,7 @@ def health(self, health): "Invalid value for `health`, must be one of {0}" .format(allowed_values) ) + self._health = health @property @@ -97,6 +99,7 @@ def id(self, id): :param id: The id of this CreateNfsAliaseResponse. :type: str """ + self._id = id def to_dict(self): @@ -114,6 +117,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -131,14 +140,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_nfs_nlm_sessions_check_item_response.py b/isi_sdk/models/create_nfs_nlm_sessions_check_item_response.py index fa1de637f..d1d4f6b73 100644 --- a/isi_sdk/models/create_nfs_nlm_sessions_check_item_response.py +++ b/isi_sdk/models/create_nfs_nlm_sessions_check_item_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateNfsNlmSessionsCheckItemResponse(object): @@ -66,6 +67,7 @@ def count(self, count): :param count: The count of this CreateNfsNlmSessionsCheckItemResponse. :type: int """ + self._count = count def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_quota_report_response.py b/isi_sdk/models/create_quota_report_response.py index 4184a3826..7d396ac33 100644 --- a/isi_sdk/models/create_quota_report_response.py +++ b/isi_sdk/models/create_quota_report_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateQuotaReportResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateQuotaReportResponse. :type: int """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_response.py b/isi_sdk/models/create_response.py index aec818ad9..c59cba8b9 100644 --- a/isi_sdk/models/create_response.py +++ b/isi_sdk/models/create_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateResponse. :type: str """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_snapshot_aliase_response.py b/isi_sdk/models/create_snapshot_aliase_response.py index 855a1fbc7..744939218 100644 --- a/isi_sdk/models/create_snapshot_aliase_response.py +++ b/isi_sdk/models/create_snapshot_aliase_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateSnapshotAliaseResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateSnapshotAliaseResponse. :type: int """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_snapshot_changelist_response.py b/isi_sdk/models/create_snapshot_changelist_response.py index 1a2e968fb..bce915f20 100644 --- a/isi_sdk/models/create_snapshot_changelist_response.py +++ b/isi_sdk/models/create_snapshot_changelist_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateSnapshotChangelistResponse(object): @@ -81,6 +82,7 @@ def job_id(self, job_id): :param job_id: The job_id of this CreateSnapshotChangelistResponse. :type: int """ + self._job_id = job_id @property @@ -103,6 +105,7 @@ def num_entries(self, num_entries): :param num_entries: The num_entries of this CreateSnapshotChangelistResponse. :type: int """ + self._num_entries = num_entries @property @@ -125,6 +128,7 @@ def root_path(self, root_path): :param root_path: The root_path of this CreateSnapshotChangelistResponse. :type: str """ + self._root_path = root_path @property @@ -147,6 +151,7 @@ def snap1(self, snap1): :param snap1: The snap1 of this CreateSnapshotChangelistResponse. :type: int """ + self._snap1 = snap1 @property @@ -169,6 +174,7 @@ def snap2(self, snap2): :param snap2: The snap2 of this CreateSnapshotChangelistResponse. :type: int """ + self._snap2 = snap2 @property @@ -191,6 +197,7 @@ def status(self, status): :param status: The status of this CreateSnapshotChangelistResponse. :type: str """ + self._status = status def to_dict(self): @@ -208,6 +215,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +238,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_snapshot_lock_response.py b/isi_sdk/models/create_snapshot_lock_response.py new file mode 100644 index 000000000..c36a0003b --- /dev/null +++ b/isi_sdk/models/create_snapshot_lock_response.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class CreateSnapshotLockResponse(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + CreateSnapshotLockResponse - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'id': 'int' + } + + self.attribute_map = { + 'id': 'id' + } + + self._id = None + + @property + def id(self): + """ + Gets the id of this CreateSnapshotLockResponse. + The ID of the newly created snapshot lock. + + :return: The id of this CreateSnapshotLockResponse. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this CreateSnapshotLockResponse. + The ID of the newly created snapshot lock. + + :param id: The id of this CreateSnapshotLockResponse. + :type: int + """ + + self._id = id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/create_snapshot_repstate_response.py b/isi_sdk/models/create_snapshot_repstate_response.py index fdb92b789..72400cd03 100644 --- a/isi_sdk/models/create_snapshot_repstate_response.py +++ b/isi_sdk/models/create_snapshot_repstate_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateSnapshotRepstateResponse(object): @@ -69,6 +70,7 @@ def snap1(self, snap1): :param snap1: The snap1 of this CreateSnapshotRepstateResponse. :type: int """ + self._snap1 = snap1 @property @@ -91,6 +93,7 @@ def snap2(self, snap2): :param snap2: The snap2 of this CreateSnapshotRepstateResponse. :type: int """ + self._snap2 = snap2 def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_snapshot_schedule_response.py b/isi_sdk/models/create_snapshot_schedule_response.py index 5f5f71fca..1880138ce 100644 --- a/isi_sdk/models/create_snapshot_schedule_response.py +++ b/isi_sdk/models/create_snapshot_schedule_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateSnapshotScheduleResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateSnapshotScheduleResponse. :type: int """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_snapshot_snapshot_response.py b/isi_sdk/models/create_snapshot_snapshot_response.py index 058b38721..62b1b1f44 100644 --- a/isi_sdk/models/create_snapshot_snapshot_response.py +++ b/isi_sdk/models/create_snapshot_snapshot_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateSnapshotSnapshotResponse(object): @@ -108,6 +109,7 @@ def alias(self, alias): :param alias: The alias of this CreateSnapshotSnapshotResponse. :type: str """ + self._alias = alias @property @@ -130,6 +132,7 @@ def created(self, created): :param created: The created of this CreateSnapshotSnapshotResponse. :type: int """ + self._created = created @property @@ -152,6 +155,7 @@ def expires(self, expires): :param expires: The expires of this CreateSnapshotSnapshotResponse. :type: int """ + self._expires = expires @property @@ -174,6 +178,7 @@ def has_locks(self, has_locks): :param has_locks: The has_locks of this CreateSnapshotSnapshotResponse. :type: bool """ + self._has_locks = has_locks @property @@ -196,6 +201,7 @@ def id(self, id): :param id: The id of this CreateSnapshotSnapshotResponse. :type: int """ + self._id = id @property @@ -218,6 +224,7 @@ def name(self, name): :param name: The name of this CreateSnapshotSnapshotResponse. :type: str """ + self._name = name @property @@ -240,6 +247,7 @@ def path(self, path): :param path: The path of this CreateSnapshotSnapshotResponse. :type: str """ + self._path = path @property @@ -262,6 +270,7 @@ def pct_filesystem(self, pct_filesystem): :param pct_filesystem: The pct_filesystem of this CreateSnapshotSnapshotResponse. :type: float """ + self._pct_filesystem = pct_filesystem @property @@ -284,6 +293,7 @@ def pct_reserve(self, pct_reserve): :param pct_reserve: The pct_reserve of this CreateSnapshotSnapshotResponse. :type: float """ + self._pct_reserve = pct_reserve @property @@ -306,6 +316,7 @@ def schedule(self, schedule): :param schedule: The schedule of this CreateSnapshotSnapshotResponse. :type: str """ + self._schedule = schedule @property @@ -328,6 +339,7 @@ def shadow_bytes(self, shadow_bytes): :param shadow_bytes: The shadow_bytes of this CreateSnapshotSnapshotResponse. :type: int """ + self._shadow_bytes = shadow_bytes @property @@ -350,6 +362,7 @@ def size(self, size): :param size: The size of this CreateSnapshotSnapshotResponse. :type: int """ + self._size = size @property @@ -378,6 +391,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property @@ -400,6 +414,7 @@ def target_id(self, target_id): :param target_id: The target_id of this CreateSnapshotSnapshotResponse. :type: int """ + self._target_id = target_id @property @@ -422,6 +437,7 @@ def target_name(self, target_name): :param target_name: The target_name of this CreateSnapshotSnapshotResponse. :type: str """ + self._target_name = target_name def to_dict(self): @@ -439,6 +455,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -456,14 +478,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_storagepool_tier_response.py b/isi_sdk/models/create_storagepool_tier_response.py index 381b9fa5e..4f23208d8 100644 --- a/isi_sdk/models/create_storagepool_tier_response.py +++ b/isi_sdk/models/create_storagepool_tier_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateStoragepoolTierResponse(object): @@ -66,6 +67,7 @@ def id(self, id): :param id: The id of this CreateStoragepoolTierResponse. :type: int """ + self._id = id def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_sync_reports_rotate_item_response.py b/isi_sdk/models/create_sync_reports_rotate_item_response.py index 4d23e25ba..a358054df 100644 --- a/isi_sdk/models/create_sync_reports_rotate_item_response.py +++ b/isi_sdk/models/create_sync_reports_rotate_item_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateSyncReportsRotateItemResponse(object): @@ -66,6 +67,7 @@ def message(self, message): :param message: The message of this CreateSyncReportsRotateItemResponse. :type: str """ + self._message = message def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/create_worm_domain_response.py b/isi_sdk/models/create_worm_domain_response.py index 49754cc5c..0671833d5 100644 --- a/isi_sdk/models/create_worm_domain_response.py +++ b/isi_sdk/models/create_worm_domain_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class CreateWormDomainResponse(object): @@ -102,6 +103,12 @@ def autocommit_offset(self, autocommit_offset): :param autocommit_offset: The autocommit_offset of this CreateWormDomainResponse. :type: int """ + + if not autocommit_offset: + raise ValueError("Invalid value for `autocommit_offset`, must not be `None`") + if autocommit_offset < 0.0: + raise ValueError("Invalid value for `autocommit_offset`, must be a value greater than or equal to `0.0`") + self._autocommit_offset = autocommit_offset @property @@ -124,6 +131,12 @@ def default_retention(self, default_retention): :param default_retention: The default_retention of this CreateWormDomainResponse. :type: int """ + + if not default_retention: + raise ValueError("Invalid value for `default_retention`, must not be `None`") + if default_retention < 0.0: + raise ValueError("Invalid value for `default_retention`, must be a value greater than or equal to `0.0`") + self._default_retention = default_retention @property @@ -146,6 +159,7 @@ def id(self, id): :param id: The id of this CreateWormDomainResponse. :type: int """ + self._id = id @property @@ -168,6 +182,7 @@ def incomplete(self, incomplete): :param incomplete: The incomplete of this CreateWormDomainResponse. :type: bool """ + self._incomplete = incomplete @property @@ -190,6 +205,7 @@ def lin(self, lin): :param lin: The lin of this CreateWormDomainResponse. :type: int """ + self._lin = lin @property @@ -212,6 +228,7 @@ def max_modifies(self, max_modifies): :param max_modifies: The max_modifies of this CreateWormDomainResponse. :type: int """ + self._max_modifies = max_modifies @property @@ -234,6 +251,12 @@ def max_retention(self, max_retention): :param max_retention: The max_retention of this CreateWormDomainResponse. :type: int """ + + if not max_retention: + raise ValueError("Invalid value for `max_retention`, must not be `None`") + if max_retention < 0.0: + raise ValueError("Invalid value for `max_retention`, must be a value greater than or equal to `0.0`") + self._max_retention = max_retention @property @@ -256,6 +279,12 @@ def min_retention(self, min_retention): :param min_retention: The min_retention of this CreateWormDomainResponse. :type: int """ + + if not min_retention: + raise ValueError("Invalid value for `min_retention`, must not be `None`") + if min_retention < 0.0: + raise ValueError("Invalid value for `min_retention`, must be a value greater than or equal to `0.0`") + self._min_retention = min_retention @property @@ -278,6 +307,12 @@ def override_date(self, override_date): :param override_date: The override_date of this CreateWormDomainResponse. :type: int """ + + if not override_date: + raise ValueError("Invalid value for `override_date`, must not be `None`") + if override_date < 0.0: + raise ValueError("Invalid value for `override_date`, must be a value greater than or equal to `0.0`") + self._override_date = override_date @property @@ -300,6 +335,7 @@ def path(self, path): :param path: The path of this CreateWormDomainResponse. :type: str """ + self._path = path @property @@ -328,6 +364,7 @@ def privileged_delete(self, privileged_delete): "Invalid value for `privileged_delete`, must be one of {0}" .format(allowed_values) ) + self._privileged_delete = privileged_delete @property @@ -350,6 +387,7 @@ def total_modifies(self, total_modifies): :param total_modifies: The total_modifies of this CreateWormDomainResponse. :type: int """ + self._total_modifies = total_modifies @property @@ -378,6 +416,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -395,6 +434,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -412,14 +457,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/debug_stats.py b/isi_sdk/models/debug_stats.py index 654a275ba..2c0605988 100644 --- a/isi_sdk/models/debug_stats.py +++ b/isi_sdk/models/debug_stats.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DebugStats(object): @@ -72,6 +73,7 @@ def describe(self, describe): :param describe: The describe of this DebugStats. :type: DebugStatsUnknown """ + self._describe = describe @property @@ -94,6 +96,7 @@ def unknown(self, unknown): :param unknown: The unknown of this DebugStats. :type: DebugStatsUnknown """ + self._unknown = unknown @property @@ -116,6 +119,7 @@ def handlers(self, handlers): :param handlers: The handlers of this DebugStats. :type: list[DebugStatsHandler] """ + self._handlers = handlers def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/debug_stats_handler.py b/isi_sdk/models/debug_stats_handler.py index 56ec3a592..56a03d4ed 100644 --- a/isi_sdk/models/debug_stats_handler.py +++ b/isi_sdk/models/debug_stats_handler.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DebugStatsHandler(object): @@ -84,6 +85,7 @@ def delete(self, delete): :param delete: The delete of this DebugStatsHandler. :type: DebugStatsUnknown """ + self._delete = delete @property @@ -106,6 +108,7 @@ def get(self, get): :param get: The get of this DebugStatsHandler. :type: DebugStatsUnknown """ + self._get = get @property @@ -128,6 +131,7 @@ def head(self, head): :param head: The head of this DebugStatsHandler. :type: DebugStatsUnknown """ + self._head = head @property @@ -150,6 +154,7 @@ def post(self, post): :param post: The post of this DebugStatsHandler. :type: DebugStatsUnknown """ + self._post = post @property @@ -172,6 +177,7 @@ def put(self, put): :param put: The put of this DebugStatsHandler. :type: DebugStatsUnknown """ + self._put = put @property @@ -194,6 +200,7 @@ def unsupported(self, unsupported): :param unsupported: The unsupported of this DebugStatsHandler. :type: DebugStatsUnknown """ + self._unsupported = unsupported @property @@ -216,6 +223,7 @@ def name(self, name): :param name: The name of this DebugStatsHandler. :type: str """ + self._name = name def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/debug_stats_unknown.py b/isi_sdk/models/debug_stats_unknown.py index 8d25411ca..7460ceaee 100644 --- a/isi_sdk/models/debug_stats_unknown.py +++ b/isi_sdk/models/debug_stats_unknown.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DebugStatsUnknown(object): @@ -72,6 +73,7 @@ def calls(self, calls): :param calls: The calls of this DebugStatsUnknown. :type: int """ + self._calls = calls @property @@ -94,6 +96,7 @@ def errors(self, errors): :param errors: The errors of this DebugStatsUnknown. :type: int """ + self._errors = errors @property @@ -116,6 +119,7 @@ def time(self, time): :param time: The time of this DebugStatsUnknown. :type: float """ + self._time = time def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_dedupe_summary.py b/isi_sdk/models/dedupe_dedupe_summary.py index 8eef2b3e6..159796cbe 100644 --- a/isi_sdk/models/dedupe_dedupe_summary.py +++ b/isi_sdk/models/dedupe_dedupe_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeDedupeSummary(object): @@ -66,6 +67,7 @@ def summary(self, summary): :param summary: The summary of this DedupeDedupeSummary. :type: DedupeDedupeSummarySummary """ + self._summary = summary def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_dedupe_summary_summary.py b/isi_sdk/models/dedupe_dedupe_summary_summary.py index 51b6de69d..5e77b083d 100644 --- a/isi_sdk/models/dedupe_dedupe_summary_summary.py +++ b/isi_sdk/models/dedupe_dedupe_summary_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeDedupeSummarySummary(object): @@ -84,6 +85,7 @@ def block_size(self, block_size): :param block_size: The block_size of this DedupeDedupeSummarySummary. :type: float """ + self._block_size = block_size @property @@ -106,6 +108,7 @@ def estimated_physical_blocks(self, estimated_physical_blocks): :param estimated_physical_blocks: The estimated_physical_blocks of this DedupeDedupeSummarySummary. :type: float """ + self._estimated_physical_blocks = estimated_physical_blocks @property @@ -128,6 +131,7 @@ def estimated_saved_blocks(self, estimated_saved_blocks): :param estimated_saved_blocks: The estimated_saved_blocks of this DedupeDedupeSummarySummary. :type: float """ + self._estimated_saved_blocks = estimated_saved_blocks @property @@ -150,6 +154,7 @@ def logical_blocks(self, logical_blocks): :param logical_blocks: The logical_blocks of this DedupeDedupeSummarySummary. :type: float """ + self._logical_blocks = logical_blocks @property @@ -172,6 +177,7 @@ def saved_logical_blocks(self, saved_logical_blocks): :param saved_logical_blocks: The saved_logical_blocks of this DedupeDedupeSummarySummary. :type: float """ + self._saved_logical_blocks = saved_logical_blocks @property @@ -194,6 +200,7 @@ def total_blocks(self, total_blocks): :param total_blocks: The total_blocks of this DedupeDedupeSummarySummary. :type: float """ + self._total_blocks = total_blocks @property @@ -216,6 +223,7 @@ def used_blocks(self, used_blocks): :param used_blocks: The used_blocks of this DedupeDedupeSummarySummary. :type: float """ + self._used_blocks = used_blocks def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_report.py b/isi_sdk/models/dedupe_report.py index 8fe1097aa..c3ef49d22 100644 --- a/isi_sdk/models/dedupe_report.py +++ b/isi_sdk/models/dedupe_report.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeReport(object): @@ -72,6 +73,7 @@ def phase(self, phase): :param phase: The phase of this DedupeReport. :type: int """ + self._phase = phase @property @@ -94,6 +96,7 @@ def results(self, results): :param results: The results of this DedupeReport. :type: str """ + self._results = results @property @@ -116,6 +119,7 @@ def time(self, time): :param time: The time of this DedupeReport. :type: int """ + self._time = time def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_report_extended.py b/isi_sdk/models/dedupe_report_extended.py index 94ec676a7..4cff3254d 100644 --- a/isi_sdk/models/dedupe_report_extended.py +++ b/isi_sdk/models/dedupe_report_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeReportExtended(object): @@ -37,126 +38,52 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'phase': 'int', - 'job_type': 'str', - 'reports': 'list[DedupeReport]', - 'job_id': 'int', - 'elapsed_time': 'int', 'dedupe_percent': 'str', - 'time': 'int', + 'elapsed_time': 'int', 'id': 'int', - 'results': 'str' + 'job_id': 'int', + 'job_type': 'str', + 'reports': 'list[DedupeReport]' } self.attribute_map = { - 'phase': 'phase', - 'job_type': 'job_type', - 'reports': 'reports', - 'job_id': 'job_id', - 'elapsed_time': 'elapsed_time', 'dedupe_percent': 'dedupe_percent', - 'time': 'time', + 'elapsed_time': 'elapsed_time', 'id': 'id', - 'results': 'results' + 'job_id': 'job_id', + 'job_type': 'job_type', + 'reports': 'reports' } - self._phase = None - self._job_type = None - self._reports = None - self._job_id = None - self._elapsed_time = None self._dedupe_percent = None - self._time = None + self._elapsed_time = None self._id = None - self._results = None - - @property - def phase(self): - """ - Gets the phase of this DedupeReportExtended. - The phase of the job this report was generated for. - - :return: The phase of this DedupeReportExtended. - :rtype: int - """ - return self._phase - - @phase.setter - def phase(self, phase): - """ - Sets the phase of this DedupeReportExtended. - The phase of the job this report was generated for. - - :param phase: The phase of this DedupeReportExtended. - :type: int - """ - self._phase = phase + self._job_id = None + self._job_type = None + self._reports = None @property - def job_type(self): + def dedupe_percent(self): """ - Gets the job_type of this DedupeReportExtended. - The type of dedupe job this report refers to. + Gets the dedupe_percent of this DedupeReportExtended. + The amount of space the directory trees under this job's paths now take up, compared to what they would take up if not deduplicated (0 ~ 100). - :return: The job_type of this DedupeReportExtended. + :return: The dedupe_percent of this DedupeReportExtended. :rtype: str """ - return self._job_type + return self._dedupe_percent - @job_type.setter - def job_type(self, job_type): + @dedupe_percent.setter + def dedupe_percent(self, dedupe_percent): """ - Sets the job_type of this DedupeReportExtended. - The type of dedupe job this report refers to. + Sets the dedupe_percent of this DedupeReportExtended. + The amount of space the directory trees under this job's paths now take up, compared to what they would take up if not deduplicated (0 ~ 100). - :param job_type: The job_type of this DedupeReportExtended. + :param dedupe_percent: The dedupe_percent of this DedupeReportExtended. :type: str """ - self._job_type = job_type - - @property - def reports(self): - """ - Gets the reports of this DedupeReportExtended. - A list of report entries for this dedupe job. - - :return: The reports of this DedupeReportExtended. - :rtype: list[DedupeReport] - """ - return self._reports - - @reports.setter - def reports(self, reports): - """ - Sets the reports of this DedupeReportExtended. - A list of report entries for this dedupe job. - - :param reports: The reports of this DedupeReportExtended. - :type: list[DedupeReport] - """ - self._reports = reports - - @property - def job_id(self): - """ - Gets the job_id of this DedupeReportExtended. - The job id this report refers to. - - :return: The job_id of this DedupeReportExtended. - :rtype: int - """ - return self._job_id - - @job_id.setter - def job_id(self, job_id): - """ - Sets the job_id of this DedupeReportExtended. - The job id this report refers to. - - :param job_id: The job_id of this DedupeReportExtended. - :type: int - """ - self._job_id = job_id + + self._dedupe_percent = dedupe_percent @property def elapsed_time(self): @@ -178,95 +105,100 @@ def elapsed_time(self, elapsed_time): :param elapsed_time: The elapsed_time of this DedupeReportExtended. :type: int """ + self._elapsed_time = elapsed_time @property - def dedupe_percent(self): + def id(self): """ - Gets the dedupe_percent of this DedupeReportExtended. - The amount of space the directory trees under this job's paths now take up, compared to what they would take up if not deduplicated (0 ~ 100). + Gets the id of this DedupeReportExtended. + An unique identifier for this report. - :return: The dedupe_percent of this DedupeReportExtended. - :rtype: str + :return: The id of this DedupeReportExtended. + :rtype: int """ - return self._dedupe_percent + return self._id - @dedupe_percent.setter - def dedupe_percent(self, dedupe_percent): + @id.setter + def id(self, id): """ - Sets the dedupe_percent of this DedupeReportExtended. - The amount of space the directory trees under this job's paths now take up, compared to what they would take up if not deduplicated (0 ~ 100). + Sets the id of this DedupeReportExtended. + An unique identifier for this report. - :param dedupe_percent: The dedupe_percent of this DedupeReportExtended. - :type: str + :param id: The id of this DedupeReportExtended. + :type: int """ - self._dedupe_percent = dedupe_percent + + self._id = id @property - def time(self): + def job_id(self): """ - Gets the time of this DedupeReportExtended. - The time this report was generated in Unix epoch seconds. + Gets the job_id of this DedupeReportExtended. + The job id this report refers to. - :return: The time of this DedupeReportExtended. + :return: The job_id of this DedupeReportExtended. :rtype: int """ - return self._time + return self._job_id - @time.setter - def time(self, time): + @job_id.setter + def job_id(self, job_id): """ - Sets the time of this DedupeReportExtended. - The time this report was generated in Unix epoch seconds. + Sets the job_id of this DedupeReportExtended. + The job id this report refers to. - :param time: The time of this DedupeReportExtended. + :param job_id: The job_id of this DedupeReportExtended. :type: int """ - self._time = time + + self._job_id = job_id @property - def id(self): + def job_type(self): """ - Gets the id of this DedupeReportExtended. - An unique identifier for this report. + Gets the job_type of this DedupeReportExtended. + The type of dedupe job this report refers to. - :return: The id of this DedupeReportExtended. - :rtype: int + :return: The job_type of this DedupeReportExtended. + :rtype: str """ - return self._id + return self._job_type - @id.setter - def id(self, id): + @job_type.setter + def job_type(self, job_type): """ - Sets the id of this DedupeReportExtended. - An unique identifier for this report. + Sets the job_type of this DedupeReportExtended. + The type of dedupe job this report refers to. - :param id: The id of this DedupeReportExtended. - :type: int + :param job_type: The job_type of this DedupeReportExtended. + :type: str """ - self._id = id + + self._job_type = job_type @property - def results(self): + def reports(self): """ - Gets the results of this DedupeReportExtended. - The report results. + Gets the reports of this DedupeReportExtended. + A list of report entries for this dedupe job. - :return: The results of this DedupeReportExtended. - :rtype: str + :return: The reports of this DedupeReportExtended. + :rtype: list[DedupeReport] """ - return self._results + return self._reports - @results.setter - def results(self, results): + @reports.setter + def reports(self, reports): """ - Sets the results of this DedupeReportExtended. - The report results. + Sets the reports of this DedupeReportExtended. + A list of report entries for this dedupe job. - :param results: The results of this DedupeReportExtended. - :type: str + :param reports: The reports of this DedupeReportExtended. + :type: list[DedupeReport] """ - self._results = results + + self._reports = reports def to_dict(self): """ @@ -283,6 +215,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +238,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_reports.py b/isi_sdk/models/dedupe_reports.py index 7bc0f8c88..82c6bdfe5 100644 --- a/isi_sdk/models/dedupe_reports.py +++ b/isi_sdk/models/dedupe_reports.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeReports(object): @@ -66,6 +67,7 @@ def reports(self, reports): :param reports: The reports of this DedupeReports. :type: list[DedupeReportExtended] """ + self._reports = reports def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_reports_extended.py b/isi_sdk/models/dedupe_reports_extended.py index a1b046ded..348b98b53 100644 --- a/isi_sdk/models/dedupe_reports_extended.py +++ b/isi_sdk/models/dedupe_reports_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeReportsExtended(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', - 'reports': 'list[DedupeReportExtended]' + 'reports': 'list[DedupeReportExtended]', + 'resume': 'str' } self.attribute_map = { - 'resume': 'resume', - 'reports': 'reports' + 'reports': 'reports', + 'resume': 'resume' } - self._resume = None self._reports = None - - @property - def resume(self): - """ - Gets the resume of this DedupeReportsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this DedupeReportsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this DedupeReportsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this DedupeReportsExtended. - :type: str - """ - self._resume = resume + self._resume = None @property def reports(self): @@ -91,8 +70,32 @@ def reports(self, reports): :param reports: The reports of this DedupeReportsExtended. :type: list[DedupeReportExtended] """ + self._reports = reports + @property + def resume(self): + """ + Gets the resume of this DedupeReportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this DedupeReportsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this DedupeReportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this DedupeReportsExtended. + :type: str + """ + + self._resume = resume + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_settings.py b/isi_sdk/models/dedupe_settings.py index af278c296..1ac82135a 100644 --- a/isi_sdk/models/dedupe_settings.py +++ b/isi_sdk/models/dedupe_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this DedupeSettings. :type: DedupeSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_settings_extended.py b/isi_sdk/models/dedupe_settings_extended.py index 16958eeb3..5e6a92c4b 100644 --- a/isi_sdk/models/dedupe_settings_extended.py +++ b/isi_sdk/models/dedupe_settings_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeSettingsExtended(object): @@ -37,43 +38,18 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'settings': 'DedupeSettingsSettings', 'assess_paths': 'list[str]', 'paths': 'list[str]' } self.attribute_map = { - 'settings': 'settings', 'assess_paths': 'assess_paths', 'paths': 'paths' } - self._settings = None self._assess_paths = None self._paths = None - @property - def settings(self): - """ - Gets the settings of this DedupeSettingsExtended. - Dedupe settings. - - :return: The settings of this DedupeSettingsExtended. - :rtype: DedupeSettingsSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this DedupeSettingsExtended. - Dedupe settings. - - :param settings: The settings of this DedupeSettingsExtended. - :type: DedupeSettingsSettings - """ - self._settings = settings - @property def assess_paths(self): """ @@ -94,6 +70,7 @@ def assess_paths(self, assess_paths): :param assess_paths: The assess_paths of this DedupeSettingsExtended. :type: list[str] """ + self._assess_paths = assess_paths @property @@ -116,6 +93,7 @@ def paths(self, paths): :param paths: The paths of this DedupeSettingsExtended. :type: list[str] """ + self._paths = paths def to_dict(self): @@ -133,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/dedupe_settings_settings.py b/isi_sdk/models/dedupe_settings_settings.py index 2f2ae0fe4..33bb8ffdd 100644 --- a/isi_sdk/models/dedupe_settings_settings.py +++ b/isi_sdk/models/dedupe_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class DedupeSettingsSettings(object): @@ -72,6 +73,7 @@ def assess_paths(self, assess_paths): :param assess_paths: The assess_paths of this DedupeSettingsSettings. :type: list[str] """ + self._assess_paths = assess_paths @property @@ -94,6 +96,7 @@ def dedupe_schedule(self, dedupe_schedule): :param dedupe_schedule: The dedupe_schedule of this DedupeSettingsSettings. :type: str """ + self._dedupe_schedule = dedupe_schedule @property @@ -116,6 +119,7 @@ def paths(self, paths): :param paths: The paths of this DedupeSettingsSettings. :type: list[str] """ + self._paths = paths def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/drives_drive_firmware.py b/isi_sdk/models/drives_drive_firmware.py new file mode 100644 index 000000000..54fa901d7 --- /dev/null +++ b/isi_sdk/models/drives_drive_firmware.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDriveFirmware(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDriveFirmware - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[DrivesDriveFirmwareNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this DrivesDriveFirmware. + + + :return: The nodes of this DrivesDriveFirmware. + :rtype: list[DrivesDriveFirmwareNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this DrivesDriveFirmware. + + + :param nodes: The nodes of this DrivesDriveFirmware. + :type: list[DrivesDriveFirmwareNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this DrivesDriveFirmware. + Total number of items available. + + :return: The total of this DrivesDriveFirmware. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this DrivesDriveFirmware. + Total number of items available. + + :param total: The total of this DrivesDriveFirmware. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/drives_drive_firmware_node.py b/isi_sdk/models/drives_drive_firmware_node.py new file mode 100644 index 000000000..be2832740 --- /dev/null +++ b/isi_sdk/models/drives_drive_firmware_node.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDriveFirmwareNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDriveFirmwareNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'drives': 'list[DrivesDriveFirmwareNodeDrive]', + 'id': 'int', + 'lnn': 'int' + } + + self.attribute_map = { + 'drives': 'drives', + 'id': 'id', + 'lnn': 'lnn' + } + + self._drives = None + self._id = None + self._lnn = None + + @property + def drives(self): + """ + Gets the drives of this DrivesDriveFirmwareNode. + List of the firmware revisions on the drives in this node. + + :return: The drives of this DrivesDriveFirmwareNode. + :rtype: list[DrivesDriveFirmwareNodeDrive] + """ + return self._drives + + @drives.setter + def drives(self, drives): + """ + Sets the drives of this DrivesDriveFirmwareNode. + List of the firmware revisions on the drives in this node. + + :param drives: The drives of this DrivesDriveFirmwareNode. + :type: list[DrivesDriveFirmwareNodeDrive] + """ + + self._drives = drives + + @property + def id(self): + """ + Gets the id of this DrivesDriveFirmwareNode. + Node ID (Device Number) of this node. + + :return: The id of this DrivesDriveFirmwareNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DrivesDriveFirmwareNode. + Node ID (Device Number) of this node. + + :param id: The id of this DrivesDriveFirmwareNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this DrivesDriveFirmwareNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this DrivesDriveFirmwareNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this DrivesDriveFirmwareNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this DrivesDriveFirmwareNode. + :type: int + """ + + self._lnn = lnn + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/drives_drive_firmware_node_drive.py b/isi_sdk/models/drives_drive_firmware_node_drive.py new file mode 100644 index 000000000..c4e52b05a --- /dev/null +++ b/isi_sdk/models/drives_drive_firmware_node_drive.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDriveFirmwareNodeDrive(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDriveFirmwareNodeDrive - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'baynum': 'int', + 'current_firmware': 'str', + 'desired_firmware': 'str', + 'devname': 'str', + 'lnum': 'int', + 'locnstr': 'str', + 'model': 'str' + } + + self.attribute_map = { + 'baynum': 'baynum', + 'current_firmware': 'current_firmware', + 'desired_firmware': 'desired_firmware', + 'devname': 'devname', + 'lnum': 'lnum', + 'locnstr': 'locnstr', + 'model': 'model' + } + + self._baynum = None + self._current_firmware = None + self._desired_firmware = None + self._devname = None + self._lnum = None + self._locnstr = None + self._model = None + + @property + def baynum(self): + """ + Gets the baynum of this DrivesDriveFirmwareNodeDrive. + Numerical representation of this drive's bay. + + :return: The baynum of this DrivesDriveFirmwareNodeDrive. + :rtype: int + """ + return self._baynum + + @baynum.setter + def baynum(self, baynum): + """ + Sets the baynum of this DrivesDriveFirmwareNodeDrive. + Numerical representation of this drive's bay. + + :param baynum: The baynum of this DrivesDriveFirmwareNodeDrive. + :type: int + """ + + self._baynum = baynum + + @property + def current_firmware(self): + """ + Gets the current_firmware of this DrivesDriveFirmwareNodeDrive. + This drive's current firmware revision + + :return: The current_firmware of this DrivesDriveFirmwareNodeDrive. + :rtype: str + """ + return self._current_firmware + + @current_firmware.setter + def current_firmware(self, current_firmware): + """ + Sets the current_firmware of this DrivesDriveFirmwareNodeDrive. + This drive's current firmware revision + + :param current_firmware: The current_firmware of this DrivesDriveFirmwareNodeDrive. + :type: str + """ + + self._current_firmware = current_firmware + + @property + def desired_firmware(self): + """ + Gets the desired_firmware of this DrivesDriveFirmwareNodeDrive. + This drive's desired firmware revision. + + :return: The desired_firmware of this DrivesDriveFirmwareNodeDrive. + :rtype: str + """ + return self._desired_firmware + + @desired_firmware.setter + def desired_firmware(self, desired_firmware): + """ + Sets the desired_firmware of this DrivesDriveFirmwareNodeDrive. + This drive's desired firmware revision. + + :param desired_firmware: The desired_firmware of this DrivesDriveFirmwareNodeDrive. + :type: str + """ + + self._desired_firmware = desired_firmware + + @property + def devname(self): + """ + Gets the devname of this DrivesDriveFirmwareNodeDrive. + This drive's device name. + + :return: The devname of this DrivesDriveFirmwareNodeDrive. + :rtype: str + """ + return self._devname + + @devname.setter + def devname(self, devname): + """ + Sets the devname of this DrivesDriveFirmwareNodeDrive. + This drive's device name. + + :param devname: The devname of this DrivesDriveFirmwareNodeDrive. + :type: str + """ + + self._devname = devname + + @property + def lnum(self): + """ + Gets the lnum of this DrivesDriveFirmwareNodeDrive. + This drive's logical drive number in IFS. + + :return: The lnum of this DrivesDriveFirmwareNodeDrive. + :rtype: int + """ + return self._lnum + + @lnum.setter + def lnum(self, lnum): + """ + Sets the lnum of this DrivesDriveFirmwareNodeDrive. + This drive's logical drive number in IFS. + + :param lnum: The lnum of this DrivesDriveFirmwareNodeDrive. + :type: int + """ + + self._lnum = lnum + + @property + def locnstr(self): + """ + Gets the locnstr of this DrivesDriveFirmwareNodeDrive. + String representation of this drive's physical location. + + :return: The locnstr of this DrivesDriveFirmwareNodeDrive. + :rtype: str + """ + return self._locnstr + + @locnstr.setter + def locnstr(self, locnstr): + """ + Sets the locnstr of this DrivesDriveFirmwareNodeDrive. + String representation of this drive's physical location. + + :param locnstr: The locnstr of this DrivesDriveFirmwareNodeDrive. + :type: str + """ + + self._locnstr = locnstr + + @property + def model(self): + """ + Gets the model of this DrivesDriveFirmwareNodeDrive. + This drive's manufacturer and model. + + :return: The model of this DrivesDriveFirmwareNodeDrive. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this DrivesDriveFirmwareNodeDrive. + This drive's manufacturer and model. + + :param model: The model of this DrivesDriveFirmwareNodeDrive. + :type: str + """ + + self._model = model + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/drives_drive_firmware_update.py b/isi_sdk/models/drives_drive_firmware_update.py new file mode 100644 index 000000000..3709575e5 --- /dev/null +++ b/isi_sdk/models/drives_drive_firmware_update.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDriveFirmwareUpdate(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDriveFirmwareUpdate - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[DrivesDriveFirmwareUpdateNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this DrivesDriveFirmwareUpdate. + + + :return: The nodes of this DrivesDriveFirmwareUpdate. + :rtype: list[DrivesDriveFirmwareUpdateNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this DrivesDriveFirmwareUpdate. + + + :param nodes: The nodes of this DrivesDriveFirmwareUpdate. + :type: list[DrivesDriveFirmwareUpdateNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this DrivesDriveFirmwareUpdate. + Total number of items available. + + :return: The total of this DrivesDriveFirmwareUpdate. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this DrivesDriveFirmwareUpdate. + Total number of items available. + + :param total: The total of this DrivesDriveFirmwareUpdate. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/drives_drive_firmware_update_item.py b/isi_sdk/models/drives_drive_firmware_update_item.py new file mode 100644 index 000000000..88b8785db --- /dev/null +++ b/isi_sdk/models/drives_drive_firmware_update_item.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDriveFirmwareUpdateItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDriveFirmwareUpdateItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'cluster_wide': 'bool' + } + + self.attribute_map = { + 'cluster_wide': 'cluster_wide' + } + + self._cluster_wide = None + + @property + def cluster_wide(self): + """ + Gets the cluster_wide of this DrivesDriveFirmwareUpdateItem. + Indicates whether this is a cluster wide drive firwmare update or not + + :return: The cluster_wide of this DrivesDriveFirmwareUpdateItem. + :rtype: bool + """ + return self._cluster_wide + + @cluster_wide.setter + def cluster_wide(self, cluster_wide): + """ + Sets the cluster_wide of this DrivesDriveFirmwareUpdateItem. + Indicates whether this is a cluster wide drive firwmare update or not + + :param cluster_wide: The cluster_wide of this DrivesDriveFirmwareUpdateItem. + :type: bool + """ + + self._cluster_wide = cluster_wide + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/drives_drive_firmware_update_node.py b/isi_sdk/models/drives_drive_firmware_update_node.py new file mode 100644 index 000000000..d6c0b0ece --- /dev/null +++ b/isi_sdk/models/drives_drive_firmware_update_node.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDriveFirmwareUpdateNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDriveFirmwareUpdateNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'id': 'int', + 'lnn': 'int', + 'status': 'DrivesDriveFirmwareUpdateNodeStatus' + } + + self.attribute_map = { + 'id': 'id', + 'lnn': 'lnn', + 'status': 'status' + } + + self._id = None + self._lnn = None + self._status = None + + @property + def id(self): + """ + Gets the id of this DrivesDriveFirmwareUpdateNode. + Node ID (Device Number) of this node. + + :return: The id of this DrivesDriveFirmwareUpdateNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DrivesDriveFirmwareUpdateNode. + Node ID (Device Number) of this node. + + :param id: The id of this DrivesDriveFirmwareUpdateNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this DrivesDriveFirmwareUpdateNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this DrivesDriveFirmwareUpdateNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this DrivesDriveFirmwareUpdateNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this DrivesDriveFirmwareUpdateNode. + :type: int + """ + + self._lnn = lnn + + @property + def status(self): + """ + Gets the status of this DrivesDriveFirmwareUpdateNode. + Drive firmware update status information. + + :return: The status of this DrivesDriveFirmwareUpdateNode. + :rtype: DrivesDriveFirmwareUpdateNodeStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this DrivesDriveFirmwareUpdateNode. + Drive firmware update status information. + + :param status: The status of this DrivesDriveFirmwareUpdateNode. + :type: DrivesDriveFirmwareUpdateNodeStatus + """ + + self._status = status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/drives_drive_firmware_update_node_status.py b/isi_sdk/models/drives_drive_firmware_update_node_status.py new file mode 100644 index 000000000..9e8d8b376 --- /dev/null +++ b/isi_sdk/models/drives_drive_firmware_update_node_status.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDriveFirmwareUpdateNodeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDriveFirmwareUpdateNodeStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'failed': 'int', + 'finish_time': 'str', + 'remaining': 'int', + 'start_time': 'str', + 'status': 'str', + 'updated': 'int' + } + + self.attribute_map = { + 'failed': 'failed', + 'finish_time': 'finish_time', + 'remaining': 'remaining', + 'start_time': 'start_time', + 'status': 'status', + 'updated': 'updated' + } + + self._failed = None + self._finish_time = None + self._remaining = None + self._start_time = None + self._status = None + self._updated = None + + @property + def failed(self): + """ + Gets the failed of this DrivesDriveFirmwareUpdateNodeStatus. + The number of drives that did not successfully complete firmware updates update on the node. + + :return: The failed of this DrivesDriveFirmwareUpdateNodeStatus. + :rtype: int + """ + return self._failed + + @failed.setter + def failed(self, failed): + """ + Sets the failed of this DrivesDriveFirmwareUpdateNodeStatus. + The number of drives that did not successfully complete firmware updates update on the node. + + :param failed: The failed of this DrivesDriveFirmwareUpdateNodeStatus. + :type: int + """ + + self._failed = failed + + @property + def finish_time(self): + """ + Gets the finish_time of this DrivesDriveFirmwareUpdateNodeStatus. + Time when drive firmware update finished on node. + + :return: The finish_time of this DrivesDriveFirmwareUpdateNodeStatus. + :rtype: str + """ + return self._finish_time + + @finish_time.setter + def finish_time(self, finish_time): + """ + Sets the finish_time of this DrivesDriveFirmwareUpdateNodeStatus. + Time when drive firmware update finished on node. + + :param finish_time: The finish_time of this DrivesDriveFirmwareUpdateNodeStatus. + :type: str + """ + + self._finish_time = finish_time + + @property + def remaining(self): + """ + Gets the remaining of this DrivesDriveFirmwareUpdateNodeStatus. + Number of drives remaining to be updated on node. + + :return: The remaining of this DrivesDriveFirmwareUpdateNodeStatus. + :rtype: int + """ + return self._remaining + + @remaining.setter + def remaining(self, remaining): + """ + Sets the remaining of this DrivesDriveFirmwareUpdateNodeStatus. + Number of drives remaining to be updated on node. + + :param remaining: The remaining of this DrivesDriveFirmwareUpdateNodeStatus. + :type: int + """ + + self._remaining = remaining + + @property + def start_time(self): + """ + Gets the start_time of this DrivesDriveFirmwareUpdateNodeStatus. + Time when drive firmware update started on node. + + :return: The start_time of this DrivesDriveFirmwareUpdateNodeStatus. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this DrivesDriveFirmwareUpdateNodeStatus. + Time when drive firmware update started on node. + + :param start_time: The start_time of this DrivesDriveFirmwareUpdateNodeStatus. + :type: str + """ + + self._start_time = start_time + + @property + def status(self): + """ + Gets the status of this DrivesDriveFirmwareUpdateNodeStatus. + Overall status of this nodes firmware updates. + + :return: The status of this DrivesDriveFirmwareUpdateNodeStatus. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this DrivesDriveFirmwareUpdateNodeStatus. + Overall status of this nodes firmware updates. + + :param status: The status of this DrivesDriveFirmwareUpdateNodeStatus. + :type: str + """ + + self._status = status + + @property + def updated(self): + """ + Gets the updated of this DrivesDriveFirmwareUpdateNodeStatus. + The number of drives that completed firmware updates on the node. + + :return: The updated of this DrivesDriveFirmwareUpdateNodeStatus. + :rtype: int + """ + return self._updated + + @updated.setter + def updated(self, updated): + """ + Sets the updated of this DrivesDriveFirmwareUpdateNodeStatus. + The number of drives that completed firmware updates on the node. + + :param updated: The updated of this DrivesDriveFirmwareUpdateNodeStatus. + :type: int + """ + + self._updated = updated + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/drives_drive_format_item.py b/isi_sdk/models/drives_drive_format_item.py new file mode 100644 index 000000000..5b88219d0 --- /dev/null +++ b/isi_sdk/models/drives_drive_format_item.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDriveFormatItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDriveFormatItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'purpose': 'str' + } + + self.attribute_map = { + 'purpose': 'purpose' + } + + self._purpose = None + + @property + def purpose(self): + """ + Gets the purpose of this DrivesDriveFormatItem. + The purpose to which this drive should be formatted. If not specified, defaults to 'None', which will be automatically purposed based on node configuration and drive type. + + :return: The purpose of this DrivesDriveFormatItem. + :rtype: str + """ + return self._purpose + + @purpose.setter + def purpose(self, purpose): + """ + Sets the purpose of this DrivesDriveFormatItem. + The purpose to which this drive should be formatted. If not specified, defaults to 'None', which will be automatically purposed based on node configuration and drive type. + + :param purpose: The purpose of this DrivesDriveFormatItem. + :type: str + """ + + self._purpose = purpose + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/drives_drive_purpose_item.py b/isi_sdk/models/drives_drive_purpose_item.py new file mode 100644 index 000000000..daa2e9821 --- /dev/null +++ b/isi_sdk/models/drives_drive_purpose_item.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class DrivesDrivePurposeItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + DrivesDrivePurposeItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'purpose': 'str' + } + + self.attribute_map = { + 'purpose': 'purpose' + } + + self._purpose = None + + @property + def purpose(self): + """ + Gets the purpose of this DrivesDrivePurposeItem. + The purpose to which this drive should be assigned. This field is required for the 'purpose' action. + + :return: The purpose of this DrivesDrivePurposeItem. + :rtype: str + """ + return self._purpose + + @purpose.setter + def purpose(self, purpose): + """ + Sets the purpose of this DrivesDrivePurposeItem. + The purpose to which this drive should be assigned. This field is required for the 'purpose' action. + + :param purpose: The purpose of this DrivesDrivePurposeItem. + :type: str + """ + + self._purpose = purpose + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/empty.py b/isi_sdk/models/empty.py index 5b0968dbe..bc92c4c2c 100644 --- a/isi_sdk/models/empty.py +++ b/isi_sdk/models/empty.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class Empty(object): @@ -60,6 +61,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -77,14 +84,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/error.py b/isi_sdk/models/error.py index 3f0335697..e05791d3c 100644 --- a/isi_sdk/models/error.py +++ b/isi_sdk/models/error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class Error(object): @@ -69,6 +70,7 @@ def code(self, code): :param code: The code of this Error. :type: int """ + self._code = code @property @@ -91,6 +93,7 @@ def message(self, message): :param message: The message of this Error. :type: str """ + self._message = message def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_alert_condition.py b/isi_sdk/models/event_alert_condition.py index e0e653cd8..e443132b3 100644 --- a/isi_sdk/models/event_alert_condition.py +++ b/isi_sdk/models/event_alert_condition.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventAlertCondition(object): @@ -84,6 +85,7 @@ def categories(self, categories): :param categories: The categories of this EventAlertCondition. :type: list[str] """ + self._categories = categories @property @@ -106,6 +108,7 @@ def channel_ids(self, channel_ids): :param channel_ids: The channel_ids of this EventAlertCondition. :type: list[int] """ + self._channel_ids = channel_ids @property @@ -134,6 +137,7 @@ def condition(self, condition): "Invalid value for `condition`, must be one of {0}" .format(allowed_values) ) + self._condition = condition @property @@ -156,6 +160,7 @@ def eventgroup_ids(self, eventgroup_ids): :param eventgroup_ids: The eventgroup_ids of this EventAlertCondition. :type: list[str] """ + self._eventgroup_ids = eventgroup_ids @property @@ -178,6 +183,7 @@ def interval(self, interval): :param interval: The interval of this EventAlertCondition. :type: int """ + self._interval = interval @property @@ -200,6 +206,7 @@ def limit(self, limit): :param limit: The limit of this EventAlertCondition. :type: int """ + self._limit = limit @property @@ -222,6 +229,7 @@ def transient(self, transient): :param transient: The transient of this EventAlertCondition. :type: int """ + self._transient = transient def to_dict(self): @@ -239,6 +247,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -256,14 +270,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_alert_conditions.py b/isi_sdk/models/event_alert_conditions.py index 493aad366..75daef6bb 100644 --- a/isi_sdk/models/event_alert_conditions.py +++ b/isi_sdk/models/event_alert_conditions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventAlertConditions(object): @@ -66,6 +67,7 @@ def alert_conditions(self, alert_conditions): :param alert_conditions: The alert_conditions of this EventAlertConditions. :type: list[EventAlertConditionsAlertCondition] """ + self._alert_conditions = alert_conditions def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_alert_conditions_alert_condition.py b/isi_sdk/models/event_alert_conditions_alert_condition.py index c77a4ea35..4e2219841 100644 --- a/isi_sdk/models/event_alert_conditions_alert_condition.py +++ b/isi_sdk/models/event_alert_conditions_alert_condition.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventAlertConditionsAlertCondition(object): @@ -90,6 +91,7 @@ def categories(self, categories): :param categories: The categories of this EventAlertConditionsAlertCondition. :type: list[str] """ + self._categories = categories @property @@ -112,6 +114,7 @@ def channel_ids(self, channel_ids): :param channel_ids: The channel_ids of this EventAlertConditionsAlertCondition. :type: list[int] """ + self._channel_ids = channel_ids @property @@ -140,6 +143,7 @@ def condition(self, condition): "Invalid value for `condition`, must be one of {0}" .format(allowed_values) ) + self._condition = condition @property @@ -162,6 +166,7 @@ def eventgroup_ids(self, eventgroup_ids): :param eventgroup_ids: The eventgroup_ids of this EventAlertConditionsAlertCondition. :type: list[str] """ + self._eventgroup_ids = eventgroup_ids @property @@ -184,6 +189,7 @@ def id(self, id): :param id: The id of this EventAlertConditionsAlertCondition. :type: str """ + self._id = id @property @@ -206,6 +212,7 @@ def interval(self, interval): :param interval: The interval of this EventAlertConditionsAlertCondition. :type: int """ + self._interval = interval @property @@ -228,6 +235,7 @@ def limit(self, limit): :param limit: The limit of this EventAlertConditionsAlertCondition. :type: int """ + self._limit = limit @property @@ -250,6 +258,7 @@ def name(self, name): :param name: The name of this EventAlertConditionsAlertCondition. :type: str """ + self._name = name @property @@ -272,6 +281,7 @@ def transient(self, transient): :param transient: The transient of this EventAlertConditionsAlertCondition. :type: int """ + self._transient = transient def to_dict(self): @@ -289,6 +299,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -306,14 +322,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_alert_conditions_extended.py b/isi_sdk/models/event_alert_conditions_extended.py index 9456778b7..52bfa0b4a 100644 --- a/isi_sdk/models/event_alert_conditions_extended.py +++ b/isi_sdk/models/event_alert_conditions_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventAlertConditionsExtended(object): @@ -72,6 +73,7 @@ def alert_conditions(self, alert_conditions): :param alert_conditions: The alert_conditions of this EventAlertConditionsExtended. :type: list[EventAlertConditionsAlertCondition] """ + self._alert_conditions = alert_conditions @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this EventAlertConditionsExtended. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this EventAlertConditionsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_categories.py b/isi_sdk/models/event_categories.py index 89c5ec8e7..4efaf07ee 100644 --- a/isi_sdk/models/event_categories.py +++ b/isi_sdk/models/event_categories.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventCategories(object): @@ -66,6 +67,7 @@ def categories(self, categories): :param categories: The categories of this EventCategories. :type: list[EventCategory] """ + self._categories = categories def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_categories_extended.py b/isi_sdk/models/event_categories_extended.py index a1cda6a16..19cd239f1 100644 --- a/isi_sdk/models/event_categories_extended.py +++ b/isi_sdk/models/event_categories_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventCategoriesExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'categories': 'list[EventCategory]', 'resume': 'str', - 'total': 'int', - 'categories': 'list[EventCategory]' + 'total': 'int' } self.attribute_map = { + 'categories': 'categories', 'resume': 'resume', - 'total': 'total', - 'categories': 'categories' + 'total': 'total' } + self._categories = None self._resume = None self._total = None - self._categories = None + + @property + def categories(self): + """ + Gets the categories of this EventCategoriesExtended. + + + :return: The categories of this EventCategoriesExtended. + :rtype: list[EventCategory] + """ + return self._categories + + @categories.setter + def categories(self, categories): + """ + Sets the categories of this EventCategoriesExtended. + + + :param categories: The categories of this EventCategoriesExtended. + :type: list[EventCategory] + """ + + self._categories = categories @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this EventCategoriesExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this EventCategoriesExtended. :type: int """ + self._total = total - @property - def categories(self): - """ - Gets the categories of this EventCategoriesExtended. - - - :return: The categories of this EventCategoriesExtended. - :rtype: list[EventCategory] - """ - return self._categories - - @categories.setter - def categories(self, categories): - """ - Sets the categories of this EventCategoriesExtended. - - - :param categories: The categories of this EventCategoriesExtended. - :type: list[EventCategory] - """ - self._categories = categories - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_category.py b/isi_sdk/models/event_category.py index a9bbe9bcf..2484f2a87 100644 --- a/isi_sdk/models/event_category.py +++ b/isi_sdk/models/event_category.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventCategory(object): @@ -72,6 +73,7 @@ def category_description(self, category_description): :param category_description: The category_description of this EventCategory. :type: str """ + self._category_description = category_description @property @@ -94,6 +96,7 @@ def category_name(self, category_name): :param category_name: The category_name of this EventCategory. :type: str """ + self._category_name = category_name @property @@ -116,6 +119,7 @@ def id(self, id): :param id: The id of this EventCategory. :type: int """ + self._id = id def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_channel.py b/isi_sdk/models/event_channel.py index 891cbb16f..e5374650c 100644 --- a/isi_sdk/models/event_channel.py +++ b/isi_sdk/models/event_channel.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventChannel(object): @@ -81,6 +82,7 @@ def allowed_nodes(self, allowed_nodes): :param allowed_nodes: The allowed_nodes of this EventChannel. :type: list[int] """ + self._allowed_nodes = allowed_nodes @property @@ -103,6 +105,7 @@ def enabled(self, enabled): :param enabled: The enabled of this EventChannel. :type: bool """ + self._enabled = enabled @property @@ -125,6 +128,7 @@ def excluded_nodes(self, excluded_nodes): :param excluded_nodes: The excluded_nodes of this EventChannel. :type: list[int] """ + self._excluded_nodes = excluded_nodes @property @@ -147,6 +151,7 @@ def parameters(self, parameters): :param parameters: The parameters of this EventChannel. :type: EventChannelParameters """ + self._parameters = parameters @property @@ -169,6 +174,7 @@ def system(self, system): :param system: The system of this EventChannel. :type: bool """ + self._system = system @property @@ -197,6 +203,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -214,6 +221,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -231,14 +244,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_channel_parameters.py b/isi_sdk/models/event_channel_parameters.py index 3e895a2d7..bdb68c406 100644 --- a/isi_sdk/models/event_channel_parameters.py +++ b/isi_sdk/models/event_channel_parameters.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventChannelParameters(object): @@ -99,6 +100,7 @@ def address(self, address): :param address: The address of this EventChannelParameters. :type: list[str] """ + self._address = address @property @@ -127,6 +129,7 @@ def batch(self, batch): "Invalid value for `batch`, must be one of {0}" .format(allowed_values) ) + self._batch = batch @property @@ -149,6 +152,7 @@ def batch_period(self, batch_period): :param batch_period: The batch_period of this EventChannelParameters. :type: int """ + self._batch_period = batch_period @property @@ -171,6 +175,7 @@ def custom_template(self, custom_template): :param custom_template: The custom_template of this EventChannelParameters. :type: str """ + self._custom_template = custom_template @property @@ -193,6 +198,7 @@ def send_as(self, send_as): :param send_as: The send_as of this EventChannelParameters. :type: str """ + self._send_as = send_as @property @@ -215,6 +221,7 @@ def smtp_host(self, smtp_host): :param smtp_host: The smtp_host of this EventChannelParameters. :type: str """ + self._smtp_host = smtp_host @property @@ -237,6 +244,7 @@ def smtp_password(self, smtp_password): :param smtp_password: The smtp_password of this EventChannelParameters. :type: str """ + self._smtp_password = smtp_password @property @@ -259,6 +267,7 @@ def smtp_port(self, smtp_port): :param smtp_port: The smtp_port of this EventChannelParameters. :type: int """ + self._smtp_port = smtp_port @property @@ -287,6 +296,7 @@ def smtp_security(self, smtp_security): "Invalid value for `smtp_security`, must be one of {0}" .format(allowed_values) ) + self._smtp_security = smtp_security @property @@ -309,6 +319,7 @@ def smtp_use_auth(self, smtp_use_auth): :param smtp_use_auth: The smtp_use_auth of this EventChannelParameters. :type: bool """ + self._smtp_use_auth = smtp_use_auth @property @@ -331,6 +342,7 @@ def smtp_username(self, smtp_username): :param smtp_username: The smtp_username of this EventChannelParameters. :type: str """ + self._smtp_username = smtp_username @property @@ -353,6 +365,7 @@ def subject(self, subject): :param subject: The subject of this EventChannelParameters. :type: str """ + self._subject = subject def to_dict(self): @@ -370,6 +383,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -387,14 +406,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_channels.py b/isi_sdk/models/event_channels.py index 9dd685c0a..6edcb2927 100644 --- a/isi_sdk/models/event_channels.py +++ b/isi_sdk/models/event_channels.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventChannels(object): @@ -66,6 +67,7 @@ def alert_conditions(self, alert_conditions): :param alert_conditions: The alert_conditions of this EventChannels. :type: list[EventChannelsAlertCondition] """ + self._alert_conditions = alert_conditions def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_channels_alert_condition.py b/isi_sdk/models/event_channels_alert_condition.py index f9bab9263..0a0ee1603 100644 --- a/isi_sdk/models/event_channels_alert_condition.py +++ b/isi_sdk/models/event_channels_alert_condition.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventChannelsAlertCondition(object): @@ -87,6 +88,7 @@ def allowed_nodes(self, allowed_nodes): :param allowed_nodes: The allowed_nodes of this EventChannelsAlertCondition. :type: list[int] """ + self._allowed_nodes = allowed_nodes @property @@ -109,6 +111,7 @@ def enabled(self, enabled): :param enabled: The enabled of this EventChannelsAlertCondition. :type: bool """ + self._enabled = enabled @property @@ -131,6 +134,7 @@ def excluded_nodes(self, excluded_nodes): :param excluded_nodes: The excluded_nodes of this EventChannelsAlertCondition. :type: list[int] """ + self._excluded_nodes = excluded_nodes @property @@ -153,6 +157,7 @@ def id(self, id): :param id: The id of this EventChannelsAlertCondition. :type: int """ + self._id = id @property @@ -175,6 +180,7 @@ def name(self, name): :param name: The name of this EventChannelsAlertCondition. :type: str """ + self._name = name @property @@ -197,6 +203,7 @@ def parameters(self, parameters): :param parameters: The parameters of this EventChannelsAlertCondition. :type: EventChannelParameters """ + self._parameters = parameters @property @@ -219,6 +226,7 @@ def system(self, system): :param system: The system of this EventChannelsAlertCondition. :type: bool """ + self._system = system @property @@ -247,6 +255,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -264,6 +273,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -281,14 +296,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_channels_extended.py b/isi_sdk/models/event_channels_extended.py index bb6009930..c272b19e3 100644 --- a/isi_sdk/models/event_channels_extended.py +++ b/isi_sdk/models/event_channels_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventChannelsExtended(object): @@ -37,23 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'channels': 'list[EventChannelsAlertCondition]', 'resume': 'str', - 'total': 'int', - 'alert_conditions': 'list[EventChannelsAlertCondition]', - 'channels': 'list[EventChannelsAlertCondition]' + 'total': 'int' } self.attribute_map = { + 'channels': 'channels', 'resume': 'resume', - 'total': 'total', - 'alert_conditions': 'alert-conditions', - 'channels': 'channels' + 'total': 'total' } + self._channels = None self._resume = None self._total = None - self._alert_conditions = None - self._channels = None + + @property + def channels(self): + """ + Gets the channels of this EventChannelsExtended. + + + :return: The channels of this EventChannelsExtended. + :rtype: list[EventChannelsAlertCondition] + """ + return self._channels + + @channels.setter + def channels(self, channels): + """ + Sets the channels of this EventChannelsExtended. + + + :param channels: The channels of this EventChannelsExtended. + :type: list[EventChannelsAlertCondition] + """ + + self._channels = channels @property def resume(self): @@ -75,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this EventChannelsExtended. :type: str """ + self._resume = resume @property @@ -97,52 +119,9 @@ def total(self, total): :param total: The total of this EventChannelsExtended. :type: int """ + self._total = total - @property - def alert_conditions(self): - """ - Gets the alert_conditions of this EventChannelsExtended. - - - :return: The alert_conditions of this EventChannelsExtended. - :rtype: list[EventChannelsAlertCondition] - """ - return self._alert_conditions - - @alert_conditions.setter - def alert_conditions(self, alert_conditions): - """ - Sets the alert_conditions of this EventChannelsExtended. - - - :param alert_conditions: The alert_conditions of this EventChannelsExtended. - :type: list[EventChannelsAlertCondition] - """ - self._alert_conditions = alert_conditions - - @property - def channels(self): - """ - Gets the channels of this EventChannelsExtended. - - - :return: The channels of this EventChannelsExtended. - :rtype: list[EventChannelsAlertCondition] - """ - return self._channels - - @channels.setter - def channels(self, channels): - """ - Sets the channels of this EventChannelsExtended. - - - :param channels: The channels of this EventChannelsExtended. - :type: list[EventChannelsAlertCondition] - """ - self._channels = channels - def to_dict(self): """ Returns the model properties as a dict @@ -158,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_event.py b/isi_sdk/models/event_event.py index 06c1bae0d..6a7cbe78b 100644 --- a/isi_sdk/models/event_event.py +++ b/isi_sdk/models/event_event.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEvent(object): @@ -66,6 +67,7 @@ def message(self, message): :param message: The message of this EventEvent. :type: str """ + self._message = message def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventgroup_definitions.py b/isi_sdk/models/event_eventgroup_definitions.py index 4075ba407..1a9ebd025 100644 --- a/isi_sdk/models/event_eventgroup_definitions.py +++ b/isi_sdk/models/event_eventgroup_definitions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventgroupDefinitions(object): @@ -66,6 +67,7 @@ def eventgroup_definitions(self, eventgroup_definitions): :param eventgroup_definitions: The eventgroup_definitions of this EventEventgroupDefinitions. :type: list[EventEventgroupDefinitionsEventgroupDefinition] """ + self._eventgroup_definitions = eventgroup_definitions def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventgroup_definitions_eventgroup_definition.py b/isi_sdk/models/event_eventgroup_definitions_eventgroup_definition.py index b8e4d32e7..14796b9d6 100644 --- a/isi_sdk/models/event_eventgroup_definitions_eventgroup_definition.py +++ b/isi_sdk/models/event_eventgroup_definitions_eventgroup_definition.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventgroupDefinitionsEventgroupDefinition(object): @@ -75,6 +76,7 @@ def category(self, category): :param category: The category of this EventEventgroupDefinitionsEventgroupDefinition. :type: int """ + self._category = category @property @@ -97,6 +99,7 @@ def description(self, description): :param description: The description of this EventEventgroupDefinitionsEventgroupDefinition. :type: str """ + self._description = description @property @@ -119,6 +122,7 @@ def id(self, id): :param id: The id of this EventEventgroupDefinitionsEventgroupDefinition. :type: str """ + self._id = id @property @@ -141,6 +145,7 @@ def name(self, name): :param name: The name of this EventEventgroupDefinitionsEventgroupDefinition. :type: str """ + self._name = name def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventgroup_definitions_extended.py b/isi_sdk/models/event_eventgroup_definitions_extended.py index 108dba354..75cc99650 100644 --- a/isi_sdk/models/event_eventgroup_definitions_extended.py +++ b/isi_sdk/models/event_eventgroup_definitions_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventgroupDefinitionsExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'eventgroup_definitions': 'list[EventEventgroupDefinitionsEventgroupDefinition]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'eventgroup_definitions': 'eventgroup-definitions', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._eventgroup_definitions = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this EventEventgroupDefinitionsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this EventEventgroupDefinitionsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this EventEventgroupDefinitionsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this EventEventgroupDefinitionsExtended. - :type: str - """ - self._resume = resume - @property def eventgroup_definitions(self): """ @@ -94,8 +73,32 @@ def eventgroup_definitions(self, eventgroup_definitions): :param eventgroup_definitions: The eventgroup_definitions of this EventEventgroupDefinitionsExtended. :type: list[EventEventgroupDefinitionsEventgroupDefinition] """ + self._eventgroup_definitions = eventgroup_definitions + @property + def resume(self): + """ + Gets the resume of this EventEventgroupDefinitionsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this EventEventgroupDefinitionsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this EventEventgroupDefinitionsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this EventEventgroupDefinitionsExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this EventEventgroupDefinitionsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventgroup_occurrence.py b/isi_sdk/models/event_eventgroup_occurrence.py index f106349d6..3d546be6e 100644 --- a/isi_sdk/models/event_eventgroup_occurrence.py +++ b/isi_sdk/models/event_eventgroup_occurrence.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventgroupOccurrence(object): @@ -69,6 +70,7 @@ def ignore(self, ignore): :param ignore: The ignore of this EventEventgroupOccurrence. :type: bool """ + self._ignore = ignore @property @@ -91,6 +93,7 @@ def resolved(self, resolved): :param resolved: The resolved of this EventEventgroupOccurrence. :type: bool """ + self._resolved = resolved def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventgroup_occurrences.py b/isi_sdk/models/event_eventgroup_occurrences.py index ad803797c..30b0b9bba 100644 --- a/isi_sdk/models/event_eventgroup_occurrences.py +++ b/isi_sdk/models/event_eventgroup_occurrences.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventgroupOccurrences(object): @@ -66,6 +67,7 @@ def eventgroup_occurrences(self, eventgroup_occurrences): :param eventgroup_occurrences: The eventgroup_occurrences of this EventEventgroupOccurrences. :type: list[EventEventgroupOccurrencesEventgroupOccurrence] """ + self._eventgroup_occurrences = eventgroup_occurrences def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventgroup_occurrences_eventgroup_occurrence.py b/isi_sdk/models/event_eventgroup_occurrences_eventgroup_occurrence.py index cf35bd15e..c75fd6b4c 100644 --- a/isi_sdk/models/event_eventgroup_occurrences_eventgroup_occurrence.py +++ b/isi_sdk/models/event_eventgroup_occurrences_eventgroup_occurrence.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventgroupOccurrencesEventgroupOccurrence(object): @@ -108,6 +109,7 @@ def causes(self, causes): :param causes: The causes of this EventEventgroupOccurrencesEventgroupOccurrence. :type: list[ERRORUNKNOWN] """ + self._causes = causes @property @@ -130,6 +132,7 @@ def channels(self, channels): :param channels: The channels of this EventEventgroupOccurrencesEventgroupOccurrence. :type: list[str] """ + self._channels = channels @property @@ -152,6 +155,7 @@ def event_count(self, event_count): :param event_count: The event_count of this EventEventgroupOccurrencesEventgroupOccurrence. :type: int """ + self._event_count = event_count @property @@ -174,6 +178,7 @@ def eventgroup_instance(self, eventgroup_instance): :param eventgroup_instance: The eventgroup_instance of this EventEventgroupOccurrencesEventgroupOccurrence. :type: str """ + self._eventgroup_instance = eventgroup_instance @property @@ -196,6 +201,7 @@ def id(self, id): :param id: The id of this EventEventgroupOccurrencesEventgroupOccurrence. :type: str """ + self._id = id @property @@ -218,6 +224,7 @@ def ignore(self, ignore): :param ignore: The ignore of this EventEventgroupOccurrencesEventgroupOccurrence. :type: bool """ + self._ignore = ignore @property @@ -240,6 +247,7 @@ def ignore_time(self, ignore_time): :param ignore_time: The ignore_time of this EventEventgroupOccurrencesEventgroupOccurrence. :type: int """ + self._ignore_time = ignore_time @property @@ -262,6 +270,7 @@ def last_event(self, last_event): :param last_event: The last_event of this EventEventgroupOccurrencesEventgroupOccurrence. :type: int """ + self._last_event = last_event @property @@ -284,6 +293,7 @@ def resolve_time(self, resolve_time): :param resolve_time: The resolve_time of this EventEventgroupOccurrencesEventgroupOccurrence. :type: int """ + self._resolve_time = resolve_time @property @@ -306,6 +316,7 @@ def resolved(self, resolved): :param resolved: The resolved of this EventEventgroupOccurrencesEventgroupOccurrence. :type: bool """ + self._resolved = resolved @property @@ -328,6 +339,7 @@ def resolver(self, resolver): :param resolver: The resolver of this EventEventgroupOccurrencesEventgroupOccurrence. :type: str """ + self._resolver = resolver @property @@ -350,6 +362,7 @@ def sequence(self, sequence): :param sequence: The sequence of this EventEventgroupOccurrencesEventgroupOccurrence. :type: int """ + self._sequence = sequence @property @@ -372,6 +385,7 @@ def severity(self, severity): :param severity: The severity of this EventEventgroupOccurrencesEventgroupOccurrence. :type: str """ + self._severity = severity @property @@ -394,6 +408,7 @@ def specifier(self, specifier): :param specifier: The specifier of this EventEventgroupOccurrencesEventgroupOccurrence. :type: Empty """ + self._specifier = specifier @property @@ -416,6 +431,7 @@ def time_noticed(self, time_noticed): :param time_noticed: The time_noticed of this EventEventgroupOccurrencesEventgroupOccurrence. :type: int """ + self._time_noticed = time_noticed def to_dict(self): @@ -433,6 +449,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -450,14 +472,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventgroup_occurrences_extended.py b/isi_sdk/models/event_eventgroup_occurrences_extended.py index 89803e330..24f88f078 100644 --- a/isi_sdk/models/event_eventgroup_occurrences_extended.py +++ b/isi_sdk/models/event_eventgroup_occurrences_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventgroupOccurrencesExtended(object): @@ -72,6 +73,7 @@ def eventgroup_occurrences(self, eventgroup_occurrences): :param eventgroup_occurrences: The eventgroup_occurrences of this EventEventgroupOccurrencesExtended. :type: list[EventEventgroupOccurrencesEventgroupOccurrence] """ + self._eventgroup_occurrences = eventgroup_occurrences @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this EventEventgroupOccurrencesExtended. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this EventEventgroupOccurrencesExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventlists.py b/isi_sdk/models/event_eventlists.py index 6718e626b..35756a648 100644 --- a/isi_sdk/models/event_eventlists.py +++ b/isi_sdk/models/event_eventlists.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventlists(object): @@ -66,6 +67,7 @@ def eventlist(self, eventlist): :param eventlist: The eventlist of this EventEventlists. :type: list[EventEventlistsEventlistItem] """ + self._eventlist = eventlist def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventlists_eventlist_item.py b/isi_sdk/models/event_eventlists_eventlist_item.py index 070be5776..828af4e3d 100644 --- a/isi_sdk/models/event_eventlists_eventlist_item.py +++ b/isi_sdk/models/event_eventlists_eventlist_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventlistsEventlistItem(object): @@ -75,6 +76,7 @@ def event_count(self, event_count): :param event_count: The event_count of this EventEventlistsEventlistItem. :type: int """ + self._event_count = event_count @property @@ -97,6 +99,7 @@ def eventgroup_instance(self, eventgroup_instance): :param eventgroup_instance: The eventgroup_instance of this EventEventlistsEventlistItem. :type: str """ + self._eventgroup_instance = eventgroup_instance @property @@ -119,6 +122,7 @@ def events(self, events): :param events: The events of this EventEventlistsEventlistItem. :type: list[EventEventlistsEventlistItemEvent] """ + self._events = events @property @@ -141,6 +145,7 @@ def id(self, id): :param id: The id of this EventEventlistsEventlistItem. :type: str """ + self._id = id def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventlists_eventlist_item_event.py b/isi_sdk/models/event_eventlists_eventlist_item_event.py index e3206c3f0..e728333c7 100644 --- a/isi_sdk/models/event_eventlists_eventlist_item_event.py +++ b/isi_sdk/models/event_eventlists_eventlist_item_event.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventlistsEventlistItemEvent(object): @@ -90,6 +91,7 @@ def devid(self, devid): :param devid: The devid of this EventEventlistsEventlistItemEvent. :type: int """ + self._devid = devid @property @@ -112,6 +114,7 @@ def ended(self, ended): :param ended: The ended of this EventEventlistsEventlistItemEvent. :type: float """ + self._ended = ended @property @@ -134,6 +137,7 @@ def event_id(self, event_id): :param event_id: The event_id of this EventEventlistsEventlistItemEvent. :type: int """ + self._event_id = event_id @property @@ -156,6 +160,7 @@ def id(self, id): :param id: The id of this EventEventlistsEventlistItemEvent. :type: str """ + self._id = id @property @@ -178,6 +183,7 @@ def message(self, message): :param message: The message of this EventEventlistsEventlistItemEvent. :type: str """ + self._message = message @property @@ -206,6 +212,7 @@ def severity(self, severity): "Invalid value for `severity`, must be one of {0}" .format(allowed_values) ) + self._severity = severity @property @@ -228,6 +235,7 @@ def specifier(self, specifier): :param specifier: The specifier of this EventEventlistsEventlistItemEvent. :type: Empty """ + self._specifier = specifier @property @@ -250,6 +258,7 @@ def time(self, time): :param time: The time of this EventEventlistsEventlistItemEvent. :type: int """ + self._time = time @property @@ -272,6 +281,7 @@ def value(self, value): :param value: The value of this EventEventlistsEventlistItemEvent. :type: float """ + self._value = value def to_dict(self): @@ -289,6 +299,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -306,14 +322,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_eventlists_extended.py b/isi_sdk/models/event_eventlists_extended.py index e349743d0..679d94403 100644 --- a/isi_sdk/models/event_eventlists_extended.py +++ b/isi_sdk/models/event_eventlists_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventEventlistsExtended(object): @@ -37,23 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'eventlists': 'list[EventEventlistsEventlistItem]', 'resume': 'str', - 'eventlist': 'list[EventEventlistsEventlistItem]', - 'total': 'int', - 'eventlists': 'list[EventEventlistsEventlistItem]' + 'total': 'int' } self.attribute_map = { + 'eventlists': 'eventlists', 'resume': 'resume', - 'eventlist': 'eventlist', - 'total': 'total', - 'eventlists': 'eventlists' + 'total': 'total' } + self._eventlists = None self._resume = None - self._eventlist = None self._total = None - self._eventlists = None + + @property + def eventlists(self): + """ + Gets the eventlists of this EventEventlistsExtended. + + + :return: The eventlists of this EventEventlistsExtended. + :rtype: list[EventEventlistsEventlistItem] + """ + return self._eventlists + + @eventlists.setter + def eventlists(self, eventlists): + """ + Sets the eventlists of this EventEventlistsExtended. + + + :param eventlists: The eventlists of this EventEventlistsExtended. + :type: list[EventEventlistsEventlistItem] + """ + + self._eventlists = eventlists @property def resume(self): @@ -75,30 +96,9 @@ def resume(self, resume): :param resume: The resume of this EventEventlistsExtended. :type: str """ + self._resume = resume - @property - def eventlist(self): - """ - Gets the eventlist of this EventEventlistsExtended. - - - :return: The eventlist of this EventEventlistsExtended. - :rtype: list[EventEventlistsEventlistItem] - """ - return self._eventlist - - @eventlist.setter - def eventlist(self, eventlist): - """ - Sets the eventlist of this EventEventlistsExtended. - - - :param eventlist: The eventlist of this EventEventlistsExtended. - :type: list[EventEventlistsEventlistItem] - """ - self._eventlist = eventlist - @property def total(self): """ @@ -119,30 +119,9 @@ def total(self, total): :param total: The total of this EventEventlistsExtended. :type: int """ + self._total = total - @property - def eventlists(self): - """ - Gets the eventlists of this EventEventlistsExtended. - - - :return: The eventlists of this EventEventlistsExtended. - :rtype: list[EventEventlistsEventlistItem] - """ - return self._eventlists - - @eventlists.setter - def eventlists(self, eventlists): - """ - Sets the eventlists of this EventEventlistsExtended. - - - :param eventlists: The eventlists of this EventEventlistsExtended. - :type: list[EventEventlistsEventlistItem] - """ - self._eventlists = eventlists - def to_dict(self): """ Returns the model properties as a dict @@ -158,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_settings.py b/isi_sdk/models/event_settings.py index d456fd196..5b91f2402 100644 --- a/isi_sdk/models/event_settings.py +++ b/isi_sdk/models/event_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventSettings(object): @@ -75,6 +76,7 @@ def heartbeat_interval(self, heartbeat_interval): :param heartbeat_interval: The heartbeat_interval of this EventSettings. :type: str """ + self._heartbeat_interval = heartbeat_interval @property @@ -97,6 +99,7 @@ def maintenance(self, maintenance): :param maintenance: The maintenance of this EventSettings. :type: EventSettingsMaintenance """ + self._maintenance = maintenance @property @@ -119,6 +122,7 @@ def retention_days(self, retention_days): :param retention_days: The retention_days of this EventSettings. :type: int """ + self._retention_days = retention_days @property @@ -141,6 +145,7 @@ def storage_limit(self, storage_limit): :param storage_limit: The storage_limit of this EventSettings. :type: int """ + self._storage_limit = storage_limit def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/event_settings_maintenance.py b/isi_sdk/models/event_settings_maintenance.py index 012291856..66de554b4 100644 --- a/isi_sdk/models/event_settings_maintenance.py +++ b/isi_sdk/models/event_settings_maintenance.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class EventSettingsMaintenance(object): @@ -69,6 +70,7 @@ def duration(self, duration): :param duration: The duration of this EventSettingsMaintenance. :type: int """ + self._duration = duration @property @@ -91,6 +93,7 @@ def start(self, start): :param start: The start of this EventSettingsMaintenance. :type: int """ + self._start = start def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/file_filter_settings.py b/isi_sdk/models/file_filter_settings.py index 882fc8c9b..e7a22bd2a 100644 --- a/isi_sdk/models/file_filter_settings.py +++ b/isi_sdk/models/file_filter_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FileFilterSettings(object): @@ -72,6 +73,7 @@ def file_filter_extensions(self, file_filter_extensions): :param file_filter_extensions: The file_filter_extensions of this FileFilterSettings. :type: list[str] """ + self._file_filter_extensions = file_filter_extensions @property @@ -100,6 +102,7 @@ def file_filter_type(self, file_filter_type): "Invalid value for `file_filter_type`, must be one of {0}" .format(allowed_values) ) + self._file_filter_type = file_filter_type @property @@ -122,6 +125,7 @@ def file_filtering_enabled(self, file_filtering_enabled): :param file_filtering_enabled: The file_filtering_enabled of this FileFilterSettings. :type: bool """ + self._file_filtering_enabled = file_filtering_enabled def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_default_policy.py b/isi_sdk/models/filepool_default_policy.py index 5c89739e6..b02bb54ec 100644 --- a/isi_sdk/models/filepool_default_policy.py +++ b/isi_sdk/models/filepool_default_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolDefaultPolicy(object): @@ -66,6 +67,7 @@ def default_policy(self, default_policy): :param default_policy: The default_policy of this FilepoolDefaultPolicy. :type: FilepoolDefaultPolicyDefaultPolicy """ + self._default_policy = default_policy def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_default_policy_default_policy.py b/isi_sdk/models/filepool_default_policy_default_policy.py index 9a3489cf0..b2b7598a1 100644 --- a/isi_sdk/models/filepool_default_policy_default_policy.py +++ b/isi_sdk/models/filepool_default_policy_default_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolDefaultPolicyDefaultPolicy(object): @@ -66,6 +67,7 @@ def actions(self, actions): :param actions: The actions of this FilepoolDefaultPolicyDefaultPolicy. :type: list[FilepoolDefaultPolicyDefaultPolicyAction] """ + self._actions = actions def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_default_policy_default_policy_action.py b/isi_sdk/models/filepool_default_policy_default_policy_action.py index 0c0dfb731..46ade6753 100644 --- a/isi_sdk/models/filepool_default_policy_default_policy_action.py +++ b/isi_sdk/models/filepool_default_policy_default_policy_action.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolDefaultPolicyDefaultPolicyAction(object): @@ -69,6 +70,7 @@ def action_param(self, action_param): :param action_param: The action_param of this FilepoolDefaultPolicyDefaultPolicyAction. :type: str """ + self._action_param = action_param @property @@ -97,6 +99,7 @@ def action_type(self, action_type): "Invalid value for `action_type`, must be one of {0}" .format(allowed_values) ) + self._action_type = action_type def to_dict(self): @@ -114,6 +117,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -131,14 +140,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_default_policy_extended.py b/isi_sdk/models/filepool_default_policy_extended.py index dc929bfee..40e503540 100644 --- a/isi_sdk/models/filepool_default_policy_extended.py +++ b/isi_sdk/models/filepool_default_policy_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolDefaultPolicyExtended(object): @@ -37,17 +38,14 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'actions': 'list[FilepoolDefaultPolicyDefaultPolicyAction]', - 'default_policy': 'FilepoolDefaultPolicyDefaultPolicy' + 'actions': 'list[FilepoolDefaultPolicyDefaultPolicyAction]' } self.attribute_map = { - 'actions': 'actions', - 'default_policy': 'default-policy' + 'actions': 'actions' } self._actions = None - self._default_policy = None @property def actions(self): @@ -69,30 +67,9 @@ def actions(self, actions): :param actions: The actions of this FilepoolDefaultPolicyExtended. :type: list[FilepoolDefaultPolicyDefaultPolicyAction] """ + self._actions = actions - @property - def default_policy(self): - """ - Gets the default_policy of this FilepoolDefaultPolicyExtended. - A default filepool policy object - - :return: The default_policy of this FilepoolDefaultPolicyExtended. - :rtype: FilepoolDefaultPolicyDefaultPolicy - """ - return self._default_policy - - @default_policy.setter - def default_policy(self, default_policy): - """ - Sets the default_policy of this FilepoolDefaultPolicyExtended. - A default filepool policy object - - :param default_policy: The default_policy of this FilepoolDefaultPolicyExtended. - :type: FilepoolDefaultPolicyDefaultPolicy - """ - self._default_policy = default_policy - def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_policies.py b/isi_sdk/models/filepool_policies.py index 9a1773ae0..cf0978d3c 100644 --- a/isi_sdk/models/filepool_policies.py +++ b/isi_sdk/models/filepool_policies.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolPolicies(object): @@ -72,6 +73,7 @@ def policies(self, policies): :param policies: The policies of this FilepoolPolicies. :type: list[FilepoolPolicyExtended] """ + self._policies = policies @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this FilepoolPolicies. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this FilepoolPolicies. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_policy.py b/isi_sdk/models/filepool_policy.py index f46fe010e..54d8888ae 100644 --- a/isi_sdk/models/filepool_policy.py +++ b/isi_sdk/models/filepool_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolPolicy(object): @@ -78,6 +79,7 @@ def actions(self, actions): :param actions: The actions of this FilepoolPolicy. :type: list[FilepoolDefaultPolicyDefaultPolicyAction] """ + self._actions = actions @property @@ -100,6 +102,7 @@ def apply_order(self, apply_order): :param apply_order: The apply_order of this FilepoolPolicy. :type: int """ + self._apply_order = apply_order @property @@ -122,6 +125,7 @@ def description(self, description): :param description: The description of this FilepoolPolicy. :type: str """ + self._description = description @property @@ -144,6 +148,7 @@ def file_matching_pattern(self, file_matching_pattern): :param file_matching_pattern: The file_matching_pattern of this FilepoolPolicy. :type: FilepoolPolicyFileMatchingPattern """ + self._file_matching_pattern = file_matching_pattern @property @@ -166,6 +171,7 @@ def name(self, name): :param name: The name of this FilepoolPolicy. :type: str """ + self._name = name def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_policy_extended.py b/isi_sdk/models/filepool_policy_extended.py index 744079086..ed9d55a24 100644 --- a/isi_sdk/models/filepool_policy_extended.py +++ b/isi_sdk/models/filepool_policy_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolPolicyExtended(object): @@ -37,60 +38,61 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'birth_cluster_id': 'str', + 'actions': 'list[FilepoolDefaultPolicyDefaultPolicyAction]', 'apply_order': 'int', - 'state_details': 'str', - 'name': 'str', 'description': 'str', + 'file_matching_pattern': 'FilepoolPolicyFileMatchingPattern', + 'name': 'str', + 'birth_cluster_id': 'str', 'id': 'int', 'state': 'str', - 'file_matching_pattern': 'FilepoolPolicyFileMatchingPattern', - 'actions': 'list[FilepoolDefaultPolicyDefaultPolicyAction]' + 'state_details': 'str' } self.attribute_map = { - 'birth_cluster_id': 'birth_cluster_id', + 'actions': 'actions', 'apply_order': 'apply_order', - 'state_details': 'state_details', - 'name': 'name', 'description': 'description', + 'file_matching_pattern': 'file_matching_pattern', + 'name': 'name', + 'birth_cluster_id': 'birth_cluster_id', 'id': 'id', 'state': 'state', - 'file_matching_pattern': 'file_matching_pattern', - 'actions': 'actions' + 'state_details': 'state_details' } - self._birth_cluster_id = None + self._actions = None self._apply_order = None - self._state_details = None - self._name = None self._description = None + self._file_matching_pattern = None + self._name = None + self._birth_cluster_id = None self._id = None self._state = None - self._file_matching_pattern = None - self._actions = None + self._state_details = None @property - def birth_cluster_id(self): + def actions(self): """ - Gets the birth_cluster_id of this FilepoolPolicyExtended. - The guid assigned to the cluster on which the account was created + Gets the actions of this FilepoolPolicyExtended. + A list of actions to be taken for matching files - :return: The birth_cluster_id of this FilepoolPolicyExtended. - :rtype: str + :return: The actions of this FilepoolPolicyExtended. + :rtype: list[FilepoolDefaultPolicyDefaultPolicyAction] """ - return self._birth_cluster_id + return self._actions - @birth_cluster_id.setter - def birth_cluster_id(self, birth_cluster_id): + @actions.setter + def actions(self, actions): """ - Sets the birth_cluster_id of this FilepoolPolicyExtended. - The guid assigned to the cluster on which the account was created + Sets the actions of this FilepoolPolicyExtended. + A list of actions to be taken for matching files - :param birth_cluster_id: The birth_cluster_id of this FilepoolPolicyExtended. - :type: str + :param actions: The actions of this FilepoolPolicyExtended. + :type: list[FilepoolDefaultPolicyDefaultPolicyAction] """ - self._birth_cluster_id = birth_cluster_id + + self._actions = actions @property def apply_order(self): @@ -112,29 +114,54 @@ def apply_order(self, apply_order): :param apply_order: The apply_order of this FilepoolPolicyExtended. :type: int """ + self._apply_order = apply_order @property - def state_details(self): + def description(self): """ - Gets the state_details of this FilepoolPolicyExtended. - Gives further information to describe the state of this policy + Gets the description of this FilepoolPolicyExtended. + A description for this policy - :return: The state_details of this FilepoolPolicyExtended. + :return: The description of this FilepoolPolicyExtended. :rtype: str """ - return self._state_details + return self._description - @state_details.setter - def state_details(self, state_details): + @description.setter + def description(self, description): """ - Sets the state_details of this FilepoolPolicyExtended. - Gives further information to describe the state of this policy + Sets the description of this FilepoolPolicyExtended. + A description for this policy - :param state_details: The state_details of this FilepoolPolicyExtended. + :param description: The description of this FilepoolPolicyExtended. :type: str """ - self._state_details = state_details + + self._description = description + + @property + def file_matching_pattern(self): + """ + Gets the file_matching_pattern of this FilepoolPolicyExtended. + The file matching rules for this policy + + :return: The file_matching_pattern of this FilepoolPolicyExtended. + :rtype: FilepoolPolicyFileMatchingPattern + """ + return self._file_matching_pattern + + @file_matching_pattern.setter + def file_matching_pattern(self, file_matching_pattern): + """ + Sets the file_matching_pattern of this FilepoolPolicyExtended. + The file matching rules for this policy + + :param file_matching_pattern: The file_matching_pattern of this FilepoolPolicyExtended. + :type: FilepoolPolicyFileMatchingPattern + """ + + self._file_matching_pattern = file_matching_pattern @property def name(self): @@ -156,29 +183,31 @@ def name(self, name): :param name: The name of this FilepoolPolicyExtended. :type: str """ + self._name = name @property - def description(self): + def birth_cluster_id(self): """ - Gets the description of this FilepoolPolicyExtended. - A description for this policy + Gets the birth_cluster_id of this FilepoolPolicyExtended. + The guid assigned to the cluster on which the account was created - :return: The description of this FilepoolPolicyExtended. + :return: The birth_cluster_id of this FilepoolPolicyExtended. :rtype: str """ - return self._description + return self._birth_cluster_id - @description.setter - def description(self, description): + @birth_cluster_id.setter + def birth_cluster_id(self, birth_cluster_id): """ - Sets the description of this FilepoolPolicyExtended. - A description for this policy + Sets the birth_cluster_id of this FilepoolPolicyExtended. + The guid assigned to the cluster on which the account was created - :param description: The description of this FilepoolPolicyExtended. + :param birth_cluster_id: The birth_cluster_id of this FilepoolPolicyExtended. :type: str """ - self._description = description + + self._birth_cluster_id = birth_cluster_id @property def id(self): @@ -200,6 +229,7 @@ def id(self, id): :param id: The id of this FilepoolPolicyExtended. :type: int """ + self._id = id @property @@ -228,51 +258,31 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) - self._state = state - - @property - def file_matching_pattern(self): - """ - Gets the file_matching_pattern of this FilepoolPolicyExtended. - The file matching rules for this policy - - :return: The file_matching_pattern of this FilepoolPolicyExtended. - :rtype: FilepoolPolicyFileMatchingPattern - """ - return self._file_matching_pattern - @file_matching_pattern.setter - def file_matching_pattern(self, file_matching_pattern): - """ - Sets the file_matching_pattern of this FilepoolPolicyExtended. - The file matching rules for this policy - - :param file_matching_pattern: The file_matching_pattern of this FilepoolPolicyExtended. - :type: FilepoolPolicyFileMatchingPattern - """ - self._file_matching_pattern = file_matching_pattern + self._state = state @property - def actions(self): + def state_details(self): """ - Gets the actions of this FilepoolPolicyExtended. - A list of actions to be taken for matching files + Gets the state_details of this FilepoolPolicyExtended. + Gives further information to describe the state of this policy - :return: The actions of this FilepoolPolicyExtended. - :rtype: list[FilepoolDefaultPolicyDefaultPolicyAction] + :return: The state_details of this FilepoolPolicyExtended. + :rtype: str """ - return self._actions + return self._state_details - @actions.setter - def actions(self, actions): + @state_details.setter + def state_details(self, state_details): """ - Sets the actions of this FilepoolPolicyExtended. - A list of actions to be taken for matching files + Sets the state_details of this FilepoolPolicyExtended. + Gives further information to describe the state of this policy - :param actions: The actions of this FilepoolPolicyExtended. - :type: list[FilepoolDefaultPolicyDefaultPolicyAction] + :param state_details: The state_details of this FilepoolPolicyExtended. + :type: str """ - self._actions = actions + + self._state_details = state_details def to_dict(self): """ @@ -289,6 +299,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -306,14 +322,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_policy_file_matching_pattern.py b/isi_sdk/models/filepool_policy_file_matching_pattern.py index d5d4773a5..c59bf524f 100644 --- a/isi_sdk/models/filepool_policy_file_matching_pattern.py +++ b/isi_sdk/models/filepool_policy_file_matching_pattern.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolPolicyFileMatchingPattern(object): @@ -66,6 +67,7 @@ def or_criteria(self, or_criteria): :param or_criteria: The or_criteria of this FilepoolPolicyFileMatchingPattern. :type: list[FilepoolPolicyFileMatchingPatternOrCriteriaItem] """ + self._or_criteria = or_criteria def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item.py b/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item.py index d3093cc5c..9309ecfc7 100644 --- a/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item.py +++ b/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolPolicyFileMatchingPatternOrCriteriaItem(object): @@ -66,6 +67,7 @@ def and_criteria(self, and_criteria): :param and_criteria: The and_criteria of this FilepoolPolicyFileMatchingPatternOrCriteriaItem. :type: list[FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem] """ + self._and_criteria = and_criteria def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py b/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py index 54a865f1e..e0508bb74 100644 --- a/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py +++ b/isi_sdk/models/filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem(object): @@ -90,6 +91,7 @@ def attribute_exists(self, attribute_exists): :param attribute_exists: The attribute_exists of this FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. :type: bool """ + self._attribute_exists = attribute_exists @property @@ -112,6 +114,7 @@ def begins_with(self, begins_with): :param begins_with: The begins_with of this FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. :type: bool """ + self._begins_with = begins_with @property @@ -134,6 +137,7 @@ def case_sensitive(self, case_sensitive): :param case_sensitive: The case_sensitive of this FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. :type: bool """ + self._case_sensitive = case_sensitive @property @@ -156,6 +160,7 @@ def field(self, field): :param field: The field of this FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. :type: str """ + self._field = field @property @@ -184,6 +189,7 @@ def operator(self, operator): "Invalid value for `operator`, must be one of {0}" .format(allowed_values) ) + self._operator = operator @property @@ -212,6 +218,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type @property @@ -234,6 +241,7 @@ def units(self, units): :param units: The units of this FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. :type: str """ + self._units = units @property @@ -256,6 +264,7 @@ def use_relative_time(self, use_relative_time): :param use_relative_time: The use_relative_time of this FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. :type: bool """ + self._use_relative_time = use_relative_time @property @@ -278,6 +287,7 @@ def value(self, value): :param value: The value of this FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. :type: str """ + self._value = value def to_dict(self): @@ -295,6 +305,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -312,14 +328,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_template.py b/isi_sdk/models/filepool_template.py index 186f25bcd..76ea1e62a 100644 --- a/isi_sdk/models/filepool_template.py +++ b/isi_sdk/models/filepool_template.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolTemplate(object): @@ -90,6 +91,7 @@ def actions(self, actions): :param actions: The actions of this FilepoolTemplate. :type: list[FilepoolDefaultPolicyDefaultPolicyAction] """ + self._actions = actions @property @@ -112,6 +114,7 @@ def apply_order(self, apply_order): :param apply_order: The apply_order of this FilepoolTemplate. :type: int """ + self._apply_order = apply_order @property @@ -134,6 +137,7 @@ def birth_cluster_id(self, birth_cluster_id): :param birth_cluster_id: The birth_cluster_id of this FilepoolTemplate. :type: str """ + self._birth_cluster_id = birth_cluster_id @property @@ -156,6 +160,7 @@ def description(self, description): :param description: The description of this FilepoolTemplate. :type: str """ + self._description = description @property @@ -178,6 +183,7 @@ def file_matching_pattern(self, file_matching_pattern): :param file_matching_pattern: The file_matching_pattern of this FilepoolTemplate. :type: FilepoolPolicyFileMatchingPattern """ + self._file_matching_pattern = file_matching_pattern @property @@ -200,6 +206,7 @@ def id(self, id): :param id: The id of this FilepoolTemplate. :type: int """ + self._id = id @property @@ -222,6 +229,7 @@ def name(self, name): :param name: The name of this FilepoolTemplate. :type: str """ + self._name = name @property @@ -250,6 +258,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property @@ -272,6 +281,7 @@ def state_details(self, state_details): :param state_details: The state_details of this FilepoolTemplate. :type: str """ + self._state_details = state_details def to_dict(self): @@ -289,6 +299,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -306,14 +322,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/filepool_templates.py b/isi_sdk/models/filepool_templates.py index eddeca0f2..c7369b248 100644 --- a/isi_sdk/models/filepool_templates.py +++ b/isi_sdk/models/filepool_templates.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FilepoolTemplates(object): @@ -72,6 +73,7 @@ def resume(self, resume): :param resume: The resume of this FilepoolTemplates. :type: str """ + self._resume = resume @property @@ -94,6 +96,7 @@ def templates(self, templates): :param templates: The templates of this FilepoolTemplates. :type: list[FilepoolTemplate] """ + self._templates = templates @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this FilepoolTemplates. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/fsa_result.py b/isi_sdk/models/fsa_result.py index f27d630c6..75314e3b3 100644 --- a/isi_sdk/models/fsa_result.py +++ b/isi_sdk/models/fsa_result.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FsaResult(object): @@ -66,6 +67,7 @@ def pinned(self, pinned): :param pinned: The pinned of this FsaResult. :type: bool """ + self._pinned = pinned def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/fsa_result_extended.py b/isi_sdk/models/fsa_result_extended.py index 0b8badda6..c02421970 100644 --- a/isi_sdk/models/fsa_result_extended.py +++ b/isi_sdk/models/fsa_result_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FsaResultExtended(object): @@ -37,132 +38,136 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'delete_link': 'str', - 'properties_link': 'str', 'pinned': 'bool', - 'size': 'int', - 'end_time': 'int', - 'fsa_state': 'str', 'begin_time': 'int', 'content_path': 'str', + 'delete_link': 'str', + 'end_time': 'int', + 'fsa_state': 'str', 'id': 'int', 'job_state': 'list[str]', + 'properties_link': 'str', + 'size': 'int', 'version': 'int' } self.attribute_map = { - 'delete_link': 'delete_link', - 'properties_link': 'properties_link', 'pinned': 'pinned', - 'size': 'size', - 'end_time': 'end_time', - 'fsa_state': 'fsa_state', 'begin_time': 'begin_time', 'content_path': 'content_path', + 'delete_link': 'delete_link', + 'end_time': 'end_time', + 'fsa_state': 'fsa_state', 'id': 'id', 'job_state': 'job_state', + 'properties_link': 'properties_link', + 'size': 'size', 'version': 'version' } - self._delete_link = None - self._properties_link = None self._pinned = None - self._size = None - self._end_time = None - self._fsa_state = None self._begin_time = None self._content_path = None + self._delete_link = None + self._end_time = None + self._fsa_state = None self._id = None self._job_state = None + self._properties_link = None + self._size = None self._version = None @property - def delete_link(self): + def pinned(self): """ - Gets the delete_link of this FsaResultExtended. - Resource to call with DELETE to remove results.. + Gets the pinned of this FsaResultExtended. + True if the result is pinned to prevent automatic removal. - :return: The delete_link of this FsaResultExtended. - :rtype: str + :return: The pinned of this FsaResultExtended. + :rtype: bool """ - return self._delete_link + return self._pinned - @delete_link.setter - def delete_link(self, delete_link): + @pinned.setter + def pinned(self, pinned): """ - Sets the delete_link of this FsaResultExtended. - Resource to call with DELETE to remove results.. + Sets the pinned of this FsaResultExtended. + True if the result is pinned to prevent automatic removal. - :param delete_link: The delete_link of this FsaResultExtended. - :type: str + :param pinned: The pinned of this FsaResultExtended. + :type: bool """ - self._delete_link = delete_link + + self._pinned = pinned @property - def properties_link(self): + def begin_time(self): """ - Gets the properties_link of this FsaResultExtended. - Resource to call to get result properties. + Gets the begin_time of this FsaResultExtended. + Unix Epoch time of start of results collection job. - :return: The properties_link of this FsaResultExtended. - :rtype: str + :return: The begin_time of this FsaResultExtended. + :rtype: int """ - return self._properties_link + return self._begin_time - @properties_link.setter - def properties_link(self, properties_link): + @begin_time.setter + def begin_time(self, begin_time): """ - Sets the properties_link of this FsaResultExtended. - Resource to call to get result properties. + Sets the begin_time of this FsaResultExtended. + Unix Epoch time of start of results collection job. - :param properties_link: The properties_link of this FsaResultExtended. - :type: str + :param begin_time: The begin_time of this FsaResultExtended. + :type: int """ - self._properties_link = properties_link + + self._begin_time = begin_time @property - def pinned(self): + def content_path(self): """ - Gets the pinned of this FsaResultExtended. - True if the result is pinned to prevent automatic removal. + Gets the content_path of this FsaResultExtended. + Path to results database. - :return: The pinned of this FsaResultExtended. - :rtype: bool + :return: The content_path of this FsaResultExtended. + :rtype: str """ - return self._pinned + return self._content_path - @pinned.setter - def pinned(self, pinned): + @content_path.setter + def content_path(self, content_path): """ - Sets the pinned of this FsaResultExtended. - True if the result is pinned to prevent automatic removal. + Sets the content_path of this FsaResultExtended. + Path to results database. - :param pinned: The pinned of this FsaResultExtended. - :type: bool + :param content_path: The content_path of this FsaResultExtended. + :type: str """ - self._pinned = pinned + + self._content_path = content_path @property - def size(self): + def delete_link(self): """ - Gets the size of this FsaResultExtended. - Size of the result set database in bytes. + Gets the delete_link of this FsaResultExtended. + Resource to call with DELETE to remove results.. - :return: The size of this FsaResultExtended. - :rtype: int + :return: The delete_link of this FsaResultExtended. + :rtype: str """ - return self._size + return self._delete_link - @size.setter - def size(self, size): + @delete_link.setter + def delete_link(self, delete_link): """ - Sets the size of this FsaResultExtended. - Size of the result set database in bytes. + Sets the delete_link of this FsaResultExtended. + Resource to call with DELETE to remove results.. - :param size: The size of this FsaResultExtended. - :type: int + :param delete_link: The delete_link of this FsaResultExtended. + :type: str """ - self._size = size + + self._delete_link = delete_link @property def end_time(self): @@ -184,6 +189,7 @@ def end_time(self, end_time): :param end_time: The end_time of this FsaResultExtended. :type: int """ + self._end_time = end_time @property @@ -212,51 +218,8 @@ def fsa_state(self, fsa_state): "Invalid value for `fsa_state`, must be one of {0}" .format(allowed_values) ) - self._fsa_state = fsa_state - - @property - def begin_time(self): - """ - Gets the begin_time of this FsaResultExtended. - Unix Epoch time of start of results collection job. - - :return: The begin_time of this FsaResultExtended. - :rtype: int - """ - return self._begin_time - - @begin_time.setter - def begin_time(self, begin_time): - """ - Sets the begin_time of this FsaResultExtended. - Unix Epoch time of start of results collection job. - - :param begin_time: The begin_time of this FsaResultExtended. - :type: int - """ - self._begin_time = begin_time - - @property - def content_path(self): - """ - Gets the content_path of this FsaResultExtended. - Path to results database. - - :return: The content_path of this FsaResultExtended. - :rtype: str - """ - return self._content_path - - @content_path.setter - def content_path(self, content_path): - """ - Sets the content_path of this FsaResultExtended. - Path to results database. - :param content_path: The content_path of this FsaResultExtended. - :type: str - """ - self._content_path = content_path + self._fsa_state = fsa_state @property def id(self): @@ -278,6 +241,7 @@ def id(self, id): :param id: The id of this FsaResultExtended. :type: int """ + self._id = id @property @@ -300,8 +264,55 @@ def job_state(self, job_state): :param job_state: The job_state of this FsaResultExtended. :type: list[str] """ + self._job_state = job_state + @property + def properties_link(self): + """ + Gets the properties_link of this FsaResultExtended. + Resource to call to get result properties. + + :return: The properties_link of this FsaResultExtended. + :rtype: str + """ + return self._properties_link + + @properties_link.setter + def properties_link(self, properties_link): + """ + Sets the properties_link of this FsaResultExtended. + Resource to call to get result properties. + + :param properties_link: The properties_link of this FsaResultExtended. + :type: str + """ + + self._properties_link = properties_link + + @property + def size(self): + """ + Gets the size of this FsaResultExtended. + Size of the result set database in bytes. + + :return: The size of this FsaResultExtended. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this FsaResultExtended. + Size of the result set database in bytes. + + :param size: The size of this FsaResultExtended. + :type: int + """ + + self._size = size + @property def version(self): """ @@ -322,6 +333,7 @@ def version(self, version): :param version: The version of this FsaResultExtended. :type: int """ + self._version = version def to_dict(self): @@ -339,6 +351,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -356,14 +374,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/fsa_results.py b/isi_sdk/models/fsa_results.py index bcdd6ef73..ed9ac995a 100644 --- a/isi_sdk/models/fsa_results.py +++ b/isi_sdk/models/fsa_results.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FsaResults(object): @@ -66,6 +67,7 @@ def results(self, results): :param results: The results of this FsaResults. :type: list[FsaResultExtended] """ + self._results = results def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/fsa_results_extended.py b/isi_sdk/models/fsa_results_extended.py index 4c42d58a4..ed4e961c4 100644 --- a/isi_sdk/models/fsa_results_extended.py +++ b/isi_sdk/models/fsa_results_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FsaResultsExtended(object): @@ -69,6 +70,7 @@ def results(self, results): :param results: The results of this FsaResultsExtended. :type: list[FsaResultExtended] """ + self._results = results @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this FsaResultsExtended. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/fsa_settings.py b/isi_sdk/models/fsa_settings.py index dea846298..e51154423 100644 --- a/isi_sdk/models/fsa_settings.py +++ b/isi_sdk/models/fsa_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FsaSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this FsaSettings. :type: FsaSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/fsa_settings_settings.py b/isi_sdk/models/fsa_settings_settings.py index f8b223be0..74e2e78ab 100644 --- a/isi_sdk/models/fsa_settings_settings.py +++ b/isi_sdk/models/fsa_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FsaSettingsSettings(object): @@ -84,6 +85,7 @@ def default_template(self, default_template): :param default_template: The default_template of this FsaSettingsSettings. :type: str """ + self._default_template = default_template @property @@ -106,6 +108,7 @@ def disk_usage_depth(self, disk_usage_depth): :param disk_usage_depth: The disk_usage_depth of this FsaSettingsSettings. :type: int """ + self._disk_usage_depth = disk_usage_depth @property @@ -128,6 +131,7 @@ def max_age(self, max_age): :param max_age: The max_age of this FsaSettingsSettings. :type: int """ + self._max_age = max_age @property @@ -150,6 +154,7 @@ def max_count(self, max_count): :param max_count: The max_count of this FsaSettingsSettings. :type: int """ + self._max_count = max_count @property @@ -172,6 +177,7 @@ def squash_depth(self, squash_depth): :param squash_depth: The squash_depth of this FsaSettingsSettings. :type: int """ + self._squash_depth = squash_depth @property @@ -194,6 +200,7 @@ def top_n_max(self, top_n_max): :param top_n_max: The top_n_max of this FsaSettingsSettings. :type: int """ + self._top_n_max = top_n_max @property @@ -216,6 +223,7 @@ def use_snapshot(self, use_snapshot): :param use_snapshot: The use_snapshot of this FsaSettingsSettings. :type: bool """ + self._use_snapshot = use_snapshot def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ftp_settings.py b/isi_sdk/models/ftp_settings.py index a42133928..30fae2665 100644 --- a/isi_sdk/models/ftp_settings.py +++ b/isi_sdk/models/ftp_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FtpSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this FtpSettings. :type: FtpSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ftp_settings_settings.py b/isi_sdk/models/ftp_settings_settings.py index 64c6dbaa1..db940c4b1 100644 --- a/isi_sdk/models/ftp_settings_settings.py +++ b/isi_sdk/models/ftp_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class FtpSettingsSettings(object): @@ -150,6 +151,14 @@ def accept_timeout(self, accept_timeout): :param accept_timeout: The accept_timeout of this FtpSettingsSettings. :type: int """ + + if not accept_timeout: + raise ValueError("Invalid value for `accept_timeout`, must not be `None`") + if accept_timeout > 600.0: + raise ValueError("Invalid value for `accept_timeout`, must be a value less than or equal to `600.0`") + if accept_timeout < 30.0: + raise ValueError("Invalid value for `accept_timeout`, must be a value greater than or equal to `30.0`") + self._accept_timeout = accept_timeout @property @@ -172,6 +181,7 @@ def allow_anon_access(self, allow_anon_access): :param allow_anon_access: The allow_anon_access of this FtpSettingsSettings. :type: bool """ + self._allow_anon_access = allow_anon_access @property @@ -194,6 +204,7 @@ def allow_anon_upload(self, allow_anon_upload): :param allow_anon_upload: The allow_anon_upload of this FtpSettingsSettings. :type: bool """ + self._allow_anon_upload = allow_anon_upload @property @@ -216,6 +227,7 @@ def allow_dirlists(self, allow_dirlists): :param allow_dirlists: The allow_dirlists of this FtpSettingsSettings. :type: bool """ + self._allow_dirlists = allow_dirlists @property @@ -238,6 +250,7 @@ def allow_downloads(self, allow_downloads): :param allow_downloads: The allow_downloads of this FtpSettingsSettings. :type: bool """ + self._allow_downloads = allow_downloads @property @@ -260,6 +273,7 @@ def allow_local_access(self, allow_local_access): :param allow_local_access: The allow_local_access of this FtpSettingsSettings. :type: bool """ + self._allow_local_access = allow_local_access @property @@ -282,6 +296,7 @@ def allow_writes(self, allow_writes): :param allow_writes: The allow_writes of this FtpSettingsSettings. :type: bool """ + self._allow_writes = allow_writes @property @@ -304,6 +319,7 @@ def always_chdir_homedir(self, always_chdir_homedir): :param always_chdir_homedir: The always_chdir_homedir of this FtpSettingsSettings. :type: bool """ + self._always_chdir_homedir = always_chdir_homedir @property @@ -326,6 +342,7 @@ def anon_chown_username(self, anon_chown_username): :param anon_chown_username: The anon_chown_username of this FtpSettingsSettings. :type: str """ + self._anon_chown_username = anon_chown_username @property @@ -348,6 +365,7 @@ def anon_password_list(self, anon_password_list): :param anon_password_list: The anon_password_list of this FtpSettingsSettings. :type: list[str] """ + self._anon_password_list = anon_password_list @property @@ -370,6 +388,7 @@ def anon_root_path(self, anon_root_path): :param anon_root_path: The anon_root_path of this FtpSettingsSettings. :type: str """ + self._anon_root_path = anon_root_path @property @@ -392,6 +411,14 @@ def anon_umask(self, anon_umask): :param anon_umask: The anon_umask of this FtpSettingsSettings. :type: int """ + + if not anon_umask: + raise ValueError("Invalid value for `anon_umask`, must not be `None`") + if anon_umask > 511.0: + raise ValueError("Invalid value for `anon_umask`, must be a value less than or equal to `511.0`") + if anon_umask < 0.0: + raise ValueError("Invalid value for `anon_umask`, must be a value greater than or equal to `0.0`") + self._anon_umask = anon_umask @property @@ -420,6 +447,7 @@ def ascii_mode(self, ascii_mode): "Invalid value for `ascii_mode`, must be one of {0}" .format(allowed_values) ) + self._ascii_mode = ascii_mode @property @@ -442,6 +470,7 @@ def chroot_exception_list(self, chroot_exception_list): :param chroot_exception_list: The chroot_exception_list of this FtpSettingsSettings. :type: list[str] """ + self._chroot_exception_list = chroot_exception_list @property @@ -470,6 +499,7 @@ def chroot_local_mode(self, chroot_local_mode): "Invalid value for `chroot_local_mode`, must be one of {0}" .format(allowed_values) ) + self._chroot_local_mode = chroot_local_mode @property @@ -492,6 +522,14 @@ def connect_timeout(self, connect_timeout): :param connect_timeout: The connect_timeout of this FtpSettingsSettings. :type: int """ + + if not connect_timeout: + raise ValueError("Invalid value for `connect_timeout`, must not be `None`") + if connect_timeout > 600.0: + raise ValueError("Invalid value for `connect_timeout`, must be a value less than or equal to `600.0`") + if connect_timeout < 30.0: + raise ValueError("Invalid value for `connect_timeout`, must be a value greater than or equal to `30.0`") + self._connect_timeout = connect_timeout @property @@ -514,6 +552,14 @@ def data_timeout(self, data_timeout): :param data_timeout: The data_timeout of this FtpSettingsSettings. :type: int """ + + if not data_timeout: + raise ValueError("Invalid value for `data_timeout`, must not be `None`") + if data_timeout > 600.0: + raise ValueError("Invalid value for `data_timeout`, must be a value less than or equal to `600.0`") + if data_timeout < 30.0: + raise ValueError("Invalid value for `data_timeout`, must be a value greater than or equal to `30.0`") + self._data_timeout = data_timeout @property @@ -536,6 +582,7 @@ def denied_user_list(self, denied_user_list): :param denied_user_list: The denied_user_list of this FtpSettingsSettings. :type: list[str] """ + self._denied_user_list = denied_user_list @property @@ -558,6 +605,7 @@ def dirlist_localtime(self, dirlist_localtime): :param dirlist_localtime: The dirlist_localtime of this FtpSettingsSettings. :type: bool """ + self._dirlist_localtime = dirlist_localtime @property @@ -586,6 +634,7 @@ def dirlist_names(self, dirlist_names): "Invalid value for `dirlist_names`, must be one of {0}" .format(allowed_values) ) + self._dirlist_names = dirlist_names @property @@ -608,6 +657,14 @@ def file_create_perm(self, file_create_perm): :param file_create_perm: The file_create_perm of this FtpSettingsSettings. :type: int """ + + if not file_create_perm: + raise ValueError("Invalid value for `file_create_perm`, must not be `None`") + if file_create_perm > 511.0: + raise ValueError("Invalid value for `file_create_perm`, must be a value less than or equal to `511.0`") + if file_create_perm < 0.0: + raise ValueError("Invalid value for `file_create_perm`, must be a value greater than or equal to `0.0`") + self._file_create_perm = file_create_perm @property @@ -630,6 +687,7 @@ def limit_anon_passwords(self, limit_anon_passwords): :param limit_anon_passwords: The limit_anon_passwords of this FtpSettingsSettings. :type: bool """ + self._limit_anon_passwords = limit_anon_passwords @property @@ -652,6 +710,7 @@ def local_root_path(self, local_root_path): :param local_root_path: The local_root_path of this FtpSettingsSettings. :type: str """ + self._local_root_path = local_root_path @property @@ -674,6 +733,14 @@ def local_umask(self, local_umask): :param local_umask: The local_umask of this FtpSettingsSettings. :type: int """ + + if not local_umask: + raise ValueError("Invalid value for `local_umask`, must not be `None`") + if local_umask > 511.0: + raise ValueError("Invalid value for `local_umask`, must be a value less than or equal to `511.0`") + if local_umask < 0.0: + raise ValueError("Invalid value for `local_umask`, must be a value greater than or equal to `0.0`") + self._local_umask = local_umask @property @@ -696,6 +763,7 @@ def server_to_server(self, server_to_server): :param server_to_server: The server_to_server of this FtpSettingsSettings. :type: bool """ + self._server_to_server = server_to_server @property @@ -718,6 +786,7 @@ def service(self, service): :param service: The service of this FtpSettingsSettings. :type: bool """ + self._service = service @property @@ -740,6 +809,7 @@ def session_support(self, session_support): :param session_support: The session_support of this FtpSettingsSettings. :type: bool """ + self._session_support = session_support @property @@ -762,6 +832,14 @@ def session_timeout(self, session_timeout): :param session_timeout: The session_timeout of this FtpSettingsSettings. :type: int """ + + if not session_timeout: + raise ValueError("Invalid value for `session_timeout`, must not be `None`") + if session_timeout > 600.0: + raise ValueError("Invalid value for `session_timeout`, must be a value less than or equal to `600.0`") + if session_timeout < 30.0: + raise ValueError("Invalid value for `session_timeout`, must be a value greater than or equal to `30.0`") + self._session_timeout = session_timeout @property @@ -784,6 +862,7 @@ def user_config_dir(self, user_config_dir): :param user_config_dir: The user_config_dir of this FtpSettingsSettings. :type: str """ + self._user_config_dir = user_config_dir def to_dict(self): @@ -801,6 +880,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -818,14 +903,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/group_member.py b/isi_sdk/models/group_member.py new file mode 100644 index 000000000..55c5be0da --- /dev/null +++ b/isi_sdk/models/group_member.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class GroupMember(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + GroupMember - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'id': 'str', + 'name': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'id': 'id', + 'name': 'name', + 'type': 'type' + } + + self._id = None + self._name = None + self._type = None + + @property + def id(self): + """ + Gets the id of this GroupMember. + Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'. + + :return: The id of this GroupMember. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this GroupMember. + Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'. + + :param id: The id of this GroupMember. + :type: str + """ + + self._id = id + + @property + def name(self): + """ + Gets the name of this GroupMember. + Specifies the persona name, which must be combined with a type. + + :return: The name of this GroupMember. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this GroupMember. + Specifies the persona name, which must be combined with a type. + + :param name: The name of this GroupMember. + :type: str + """ + + self._name = name + + @property + def type(self): + """ + Gets the type of this GroupMember. + Specifies the type of persona, which must be combined with a name. + + :return: The type of this GroupMember. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this GroupMember. + Specifies the type of persona, which must be combined with a name. + + :param type: The type of this GroupMember. + :type: str + """ + allowed_values = ["user", "group", "wellknown"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/group_members.py b/isi_sdk/models/group_members.py new file mode 100644 index 000000000..ccff00457 --- /dev/null +++ b/isi_sdk/models/group_members.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class GroupMembers(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + GroupMembers - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'members': 'list[GroupMember]', + 'resume': 'str' + } + + self.attribute_map = { + 'members': 'members', + 'resume': 'resume' + } + + self._members = None + self._resume = None + + @property + def members(self): + """ + Gets the members of this GroupMembers. + + + :return: The members of this GroupMembers. + :rtype: list[GroupMember] + """ + return self._members + + @members.setter + def members(self, members): + """ + Sets the members of this GroupMembers. + + + :param members: The members of this GroupMembers. + :type: list[GroupMember] + """ + + self._members = members + + @property + def resume(self): + """ + Gets the resume of this GroupMembers. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this GroupMembers. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this GroupMembers. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this GroupMembers. + :type: str + """ + + self._resume = resume + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/groupnet_subnet.py b/isi_sdk/models/groupnet_subnet.py new file mode 100644 index 000000000..68ffcbc51 --- /dev/null +++ b/isi_sdk/models/groupnet_subnet.py @@ -0,0 +1,394 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class GroupnetSubnet(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + GroupnetSubnet - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'dsr_addrs': 'list[str]', + 'gateway': 'str', + 'gateway_priority': 'int', + 'mtu': 'int', + 'name': 'str', + 'prefixlen': 'int', + 'sc_service_addr': 'str', + 'vlan_enabled': 'bool', + 'vlan_id': 'int' + } + + self.attribute_map = { + 'description': 'description', + 'dsr_addrs': 'dsr_addrs', + 'gateway': 'gateway', + 'gateway_priority': 'gateway_priority', + 'mtu': 'mtu', + 'name': 'name', + 'prefixlen': 'prefixlen', + 'sc_service_addr': 'sc_service_addr', + 'vlan_enabled': 'vlan_enabled', + 'vlan_id': 'vlan_id' + } + + self._description = None + self._dsr_addrs = None + self._gateway = None + self._gateway_priority = None + self._mtu = None + self._name = None + self._prefixlen = None + self._sc_service_addr = None + self._vlan_enabled = None + self._vlan_id = None + + @property + def description(self): + """ + Gets the description of this GroupnetSubnet. + A description of the subnet. + + :return: The description of this GroupnetSubnet. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this GroupnetSubnet. + A description of the subnet. + + :param description: The description of this GroupnetSubnet. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def dsr_addrs(self): + """ + Gets the dsr_addrs of this GroupnetSubnet. + List of Direct Server Return addresses. + + :return: The dsr_addrs of this GroupnetSubnet. + :rtype: list[str] + """ + return self._dsr_addrs + + @dsr_addrs.setter + def dsr_addrs(self, dsr_addrs): + """ + Sets the dsr_addrs of this GroupnetSubnet. + List of Direct Server Return addresses. + + :param dsr_addrs: The dsr_addrs of this GroupnetSubnet. + :type: list[str] + """ + + self._dsr_addrs = dsr_addrs + + @property + def gateway(self): + """ + Gets the gateway of this GroupnetSubnet. + Gateway IP address. + + :return: The gateway of this GroupnetSubnet. + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """ + Sets the gateway of this GroupnetSubnet. + Gateway IP address. + + :param gateway: The gateway of this GroupnetSubnet. + :type: str + """ + + self._gateway = gateway + + @property + def gateway_priority(self): + """ + Gets the gateway_priority of this GroupnetSubnet. + Gateway priority. + + :return: The gateway_priority of this GroupnetSubnet. + :rtype: int + """ + return self._gateway_priority + + @gateway_priority.setter + def gateway_priority(self, gateway_priority): + """ + Sets the gateway_priority of this GroupnetSubnet. + Gateway priority. + + :param gateway_priority: The gateway_priority of this GroupnetSubnet. + :type: int + """ + + if not gateway_priority: + raise ValueError("Invalid value for `gateway_priority`, must not be `None`") + if gateway_priority > 2.147483647E9: + raise ValueError("Invalid value for `gateway_priority`, must be a value less than or equal to `2.147483647E9`") + if gateway_priority < 1.0: + raise ValueError("Invalid value for `gateway_priority`, must be a value greater than or equal to `1.0`") + + self._gateway_priority = gateway_priority + + @property + def mtu(self): + """ + Gets the mtu of this GroupnetSubnet. + MTU of the subnet. + + :return: The mtu of this GroupnetSubnet. + :rtype: int + """ + return self._mtu + + @mtu.setter + def mtu(self, mtu): + """ + Sets the mtu of this GroupnetSubnet. + MTU of the subnet. + + :param mtu: The mtu of this GroupnetSubnet. + :type: int + """ + + if not mtu: + raise ValueError("Invalid value for `mtu`, must not be `None`") + if mtu > 9000.0: + raise ValueError("Invalid value for `mtu`, must be a value less than or equal to `9000.0`") + if mtu < 576.0: + raise ValueError("Invalid value for `mtu`, must be a value greater than or equal to `576.0`") + + self._mtu = mtu + + @property + def name(self): + """ + Gets the name of this GroupnetSubnet. + The name of the subnet. + + :return: The name of this GroupnetSubnet. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this GroupnetSubnet. + The name of the subnet. + + :param name: The name of this GroupnetSubnet. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + + self._name = name + + @property + def prefixlen(self): + """ + Gets the prefixlen of this GroupnetSubnet. + Subnet Prefix Length. + + :return: The prefixlen of this GroupnetSubnet. + :rtype: int + """ + return self._prefixlen + + @prefixlen.setter + def prefixlen(self, prefixlen): + """ + Sets the prefixlen of this GroupnetSubnet. + Subnet Prefix Length. + + :param prefixlen: The prefixlen of this GroupnetSubnet. + :type: int + """ + + if not prefixlen: + raise ValueError("Invalid value for `prefixlen`, must not be `None`") + if prefixlen > 128.0: + raise ValueError("Invalid value for `prefixlen`, must be a value less than or equal to `128.0`") + if prefixlen < 1.0: + raise ValueError("Invalid value for `prefixlen`, must be a value greater than or equal to `1.0`") + + self._prefixlen = prefixlen + + @property + def sc_service_addr(self): + """ + Gets the sc_service_addr of this GroupnetSubnet. + The address that SmartConnect listens for DNS requests. + + :return: The sc_service_addr of this GroupnetSubnet. + :rtype: str + """ + return self._sc_service_addr + + @sc_service_addr.setter + def sc_service_addr(self, sc_service_addr): + """ + Sets the sc_service_addr of this GroupnetSubnet. + The address that SmartConnect listens for DNS requests. + + :param sc_service_addr: The sc_service_addr of this GroupnetSubnet. + :type: str + """ + + self._sc_service_addr = sc_service_addr + + @property + def vlan_enabled(self): + """ + Gets the vlan_enabled of this GroupnetSubnet. + VLAN tagging enabled or disabled. + + :return: The vlan_enabled of this GroupnetSubnet. + :rtype: bool + """ + return self._vlan_enabled + + @vlan_enabled.setter + def vlan_enabled(self, vlan_enabled): + """ + Sets the vlan_enabled of this GroupnetSubnet. + VLAN tagging enabled or disabled. + + :param vlan_enabled: The vlan_enabled of this GroupnetSubnet. + :type: bool + """ + + self._vlan_enabled = vlan_enabled + + @property + def vlan_id(self): + """ + Gets the vlan_id of this GroupnetSubnet. + VLAN ID for all interfaces in the subnet. + + :return: The vlan_id of this GroupnetSubnet. + :rtype: int + """ + return self._vlan_id + + @vlan_id.setter + def vlan_id(self, vlan_id): + """ + Sets the vlan_id of this GroupnetSubnet. + VLAN ID for all interfaces in the subnet. + + :param vlan_id: The vlan_id of this GroupnetSubnet. + :type: int + """ + + if not vlan_id: + raise ValueError("Invalid value for `vlan_id`, must not be `None`") + if vlan_id > 4094.0: + raise ValueError("Invalid value for `vlan_id`, must be a value less than or equal to `4094.0`") + if vlan_id < 2.0: + raise ValueError("Invalid value for `vlan_id`, must be a value greater than or equal to `2.0`") + + self._vlan_id = vlan_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/groupnet_subnet_create_params.py b/isi_sdk/models/groupnet_subnet_create_params.py new file mode 100644 index 000000000..6bbd40320 --- /dev/null +++ b/isi_sdk/models/groupnet_subnet_create_params.py @@ -0,0 +1,426 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class GroupnetSubnetCreateParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + GroupnetSubnetCreateParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'dsr_addrs': 'list[str]', + 'gateway': 'str', + 'gateway_priority': 'int', + 'mtu': 'int', + 'name': 'str', + 'prefixlen': 'int', + 'sc_service_addr': 'str', + 'vlan_enabled': 'bool', + 'vlan_id': 'int', + 'addr_family': 'str' + } + + self.attribute_map = { + 'description': 'description', + 'dsr_addrs': 'dsr_addrs', + 'gateway': 'gateway', + 'gateway_priority': 'gateway_priority', + 'mtu': 'mtu', + 'name': 'name', + 'prefixlen': 'prefixlen', + 'sc_service_addr': 'sc_service_addr', + 'vlan_enabled': 'vlan_enabled', + 'vlan_id': 'vlan_id', + 'addr_family': 'addr_family' + } + + self._description = None + self._dsr_addrs = None + self._gateway = None + self._gateway_priority = None + self._mtu = None + self._name = None + self._prefixlen = None + self._sc_service_addr = None + self._vlan_enabled = None + self._vlan_id = None + self._addr_family = None + + @property + def description(self): + """ + Gets the description of this GroupnetSubnetCreateParams. + A description of the subnet. + + :return: The description of this GroupnetSubnetCreateParams. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this GroupnetSubnetCreateParams. + A description of the subnet. + + :param description: The description of this GroupnetSubnetCreateParams. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def dsr_addrs(self): + """ + Gets the dsr_addrs of this GroupnetSubnetCreateParams. + List of Direct Server Return addresses. + + :return: The dsr_addrs of this GroupnetSubnetCreateParams. + :rtype: list[str] + """ + return self._dsr_addrs + + @dsr_addrs.setter + def dsr_addrs(self, dsr_addrs): + """ + Sets the dsr_addrs of this GroupnetSubnetCreateParams. + List of Direct Server Return addresses. + + :param dsr_addrs: The dsr_addrs of this GroupnetSubnetCreateParams. + :type: list[str] + """ + + self._dsr_addrs = dsr_addrs + + @property + def gateway(self): + """ + Gets the gateway of this GroupnetSubnetCreateParams. + Gateway IP address. + + :return: The gateway of this GroupnetSubnetCreateParams. + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """ + Sets the gateway of this GroupnetSubnetCreateParams. + Gateway IP address. + + :param gateway: The gateway of this GroupnetSubnetCreateParams. + :type: str + """ + + self._gateway = gateway + + @property + def gateway_priority(self): + """ + Gets the gateway_priority of this GroupnetSubnetCreateParams. + Gateway priority. + + :return: The gateway_priority of this GroupnetSubnetCreateParams. + :rtype: int + """ + return self._gateway_priority + + @gateway_priority.setter + def gateway_priority(self, gateway_priority): + """ + Sets the gateway_priority of this GroupnetSubnetCreateParams. + Gateway priority. + + :param gateway_priority: The gateway_priority of this GroupnetSubnetCreateParams. + :type: int + """ + + if not gateway_priority: + raise ValueError("Invalid value for `gateway_priority`, must not be `None`") + if gateway_priority > 2.147483647E9: + raise ValueError("Invalid value for `gateway_priority`, must be a value less than or equal to `2.147483647E9`") + if gateway_priority < 1.0: + raise ValueError("Invalid value for `gateway_priority`, must be a value greater than or equal to `1.0`") + + self._gateway_priority = gateway_priority + + @property + def mtu(self): + """ + Gets the mtu of this GroupnetSubnetCreateParams. + MTU of the subnet. + + :return: The mtu of this GroupnetSubnetCreateParams. + :rtype: int + """ + return self._mtu + + @mtu.setter + def mtu(self, mtu): + """ + Sets the mtu of this GroupnetSubnetCreateParams. + MTU of the subnet. + + :param mtu: The mtu of this GroupnetSubnetCreateParams. + :type: int + """ + + if not mtu: + raise ValueError("Invalid value for `mtu`, must not be `None`") + if mtu > 9000.0: + raise ValueError("Invalid value for `mtu`, must be a value less than or equal to `9000.0`") + if mtu < 576.0: + raise ValueError("Invalid value for `mtu`, must be a value greater than or equal to `576.0`") + + self._mtu = mtu + + @property + def name(self): + """ + Gets the name of this GroupnetSubnetCreateParams. + The name of the subnet. + + :return: The name of this GroupnetSubnetCreateParams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this GroupnetSubnetCreateParams. + The name of the subnet. + + :param name: The name of this GroupnetSubnetCreateParams. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + + self._name = name + + @property + def prefixlen(self): + """ + Gets the prefixlen of this GroupnetSubnetCreateParams. + Subnet Prefix Length. + + :return: The prefixlen of this GroupnetSubnetCreateParams. + :rtype: int + """ + return self._prefixlen + + @prefixlen.setter + def prefixlen(self, prefixlen): + """ + Sets the prefixlen of this GroupnetSubnetCreateParams. + Subnet Prefix Length. + + :param prefixlen: The prefixlen of this GroupnetSubnetCreateParams. + :type: int + """ + + if not prefixlen: + raise ValueError("Invalid value for `prefixlen`, must not be `None`") + if prefixlen > 128.0: + raise ValueError("Invalid value for `prefixlen`, must be a value less than or equal to `128.0`") + if prefixlen < 1.0: + raise ValueError("Invalid value for `prefixlen`, must be a value greater than or equal to `1.0`") + + self._prefixlen = prefixlen + + @property + def sc_service_addr(self): + """ + Gets the sc_service_addr of this GroupnetSubnetCreateParams. + The address that SmartConnect listens for DNS requests. + + :return: The sc_service_addr of this GroupnetSubnetCreateParams. + :rtype: str + """ + return self._sc_service_addr + + @sc_service_addr.setter + def sc_service_addr(self, sc_service_addr): + """ + Sets the sc_service_addr of this GroupnetSubnetCreateParams. + The address that SmartConnect listens for DNS requests. + + :param sc_service_addr: The sc_service_addr of this GroupnetSubnetCreateParams. + :type: str + """ + + self._sc_service_addr = sc_service_addr + + @property + def vlan_enabled(self): + """ + Gets the vlan_enabled of this GroupnetSubnetCreateParams. + VLAN tagging enabled or disabled. + + :return: The vlan_enabled of this GroupnetSubnetCreateParams. + :rtype: bool + """ + return self._vlan_enabled + + @vlan_enabled.setter + def vlan_enabled(self, vlan_enabled): + """ + Sets the vlan_enabled of this GroupnetSubnetCreateParams. + VLAN tagging enabled or disabled. + + :param vlan_enabled: The vlan_enabled of this GroupnetSubnetCreateParams. + :type: bool + """ + + self._vlan_enabled = vlan_enabled + + @property + def vlan_id(self): + """ + Gets the vlan_id of this GroupnetSubnetCreateParams. + VLAN ID for all interfaces in the subnet. + + :return: The vlan_id of this GroupnetSubnetCreateParams. + :rtype: int + """ + return self._vlan_id + + @vlan_id.setter + def vlan_id(self, vlan_id): + """ + Sets the vlan_id of this GroupnetSubnetCreateParams. + VLAN ID for all interfaces in the subnet. + + :param vlan_id: The vlan_id of this GroupnetSubnetCreateParams. + :type: int + """ + + if not vlan_id: + raise ValueError("Invalid value for `vlan_id`, must not be `None`") + if vlan_id > 4094.0: + raise ValueError("Invalid value for `vlan_id`, must be a value less than or equal to `4094.0`") + if vlan_id < 2.0: + raise ValueError("Invalid value for `vlan_id`, must be a value greater than or equal to `2.0`") + + self._vlan_id = vlan_id + + @property + def addr_family(self): + """ + Gets the addr_family of this GroupnetSubnetCreateParams. + IP address format. + + :return: The addr_family of this GroupnetSubnetCreateParams. + :rtype: str + """ + return self._addr_family + + @addr_family.setter + def addr_family(self, addr_family): + """ + Sets the addr_family of this GroupnetSubnetCreateParams. + IP address format. + + :param addr_family: The addr_family of this GroupnetSubnetCreateParams. + :type: str + """ + allowed_values = ["ipv4", "ipv6"] + if addr_family not in allowed_values: + raise ValueError( + "Invalid value for `addr_family`, must be one of {0}" + .format(allowed_values) + ) + + self._addr_family = addr_family + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/groupnet_subnet_extended.py b/isi_sdk/models/groupnet_subnet_extended.py new file mode 100644 index 000000000..3590a2323 --- /dev/null +++ b/isi_sdk/models/groupnet_subnet_extended.py @@ -0,0 +1,530 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class GroupnetSubnetExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + GroupnetSubnetExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'dsr_addrs': 'list[str]', + 'gateway': 'str', + 'gateway_priority': 'int', + 'mtu': 'int', + 'name': 'str', + 'prefixlen': 'int', + 'sc_service_addr': 'str', + 'vlan_enabled': 'bool', + 'vlan_id': 'int', + 'addr_family': 'str', + 'base_addr': 'str', + 'groupnet': 'str', + 'id': 'str', + 'pools': 'list[str]' + } + + self.attribute_map = { + 'description': 'description', + 'dsr_addrs': 'dsr_addrs', + 'gateway': 'gateway', + 'gateway_priority': 'gateway_priority', + 'mtu': 'mtu', + 'name': 'name', + 'prefixlen': 'prefixlen', + 'sc_service_addr': 'sc_service_addr', + 'vlan_enabled': 'vlan_enabled', + 'vlan_id': 'vlan_id', + 'addr_family': 'addr_family', + 'base_addr': 'base_addr', + 'groupnet': 'groupnet', + 'id': 'id', + 'pools': 'pools' + } + + self._description = None + self._dsr_addrs = None + self._gateway = None + self._gateway_priority = None + self._mtu = None + self._name = None + self._prefixlen = None + self._sc_service_addr = None + self._vlan_enabled = None + self._vlan_id = None + self._addr_family = None + self._base_addr = None + self._groupnet = None + self._id = None + self._pools = None + + @property + def description(self): + """ + Gets the description of this GroupnetSubnetExtended. + A description of the subnet. + + :return: The description of this GroupnetSubnetExtended. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this GroupnetSubnetExtended. + A description of the subnet. + + :param description: The description of this GroupnetSubnetExtended. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def dsr_addrs(self): + """ + Gets the dsr_addrs of this GroupnetSubnetExtended. + List of Direct Server Return addresses. + + :return: The dsr_addrs of this GroupnetSubnetExtended. + :rtype: list[str] + """ + return self._dsr_addrs + + @dsr_addrs.setter + def dsr_addrs(self, dsr_addrs): + """ + Sets the dsr_addrs of this GroupnetSubnetExtended. + List of Direct Server Return addresses. + + :param dsr_addrs: The dsr_addrs of this GroupnetSubnetExtended. + :type: list[str] + """ + + self._dsr_addrs = dsr_addrs + + @property + def gateway(self): + """ + Gets the gateway of this GroupnetSubnetExtended. + Gateway IP address. + + :return: The gateway of this GroupnetSubnetExtended. + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """ + Sets the gateway of this GroupnetSubnetExtended. + Gateway IP address. + + :param gateway: The gateway of this GroupnetSubnetExtended. + :type: str + """ + + self._gateway = gateway + + @property + def gateway_priority(self): + """ + Gets the gateway_priority of this GroupnetSubnetExtended. + Gateway priority. + + :return: The gateway_priority of this GroupnetSubnetExtended. + :rtype: int + """ + return self._gateway_priority + + @gateway_priority.setter + def gateway_priority(self, gateway_priority): + """ + Sets the gateway_priority of this GroupnetSubnetExtended. + Gateway priority. + + :param gateway_priority: The gateway_priority of this GroupnetSubnetExtended. + :type: int + """ + + if not gateway_priority: + raise ValueError("Invalid value for `gateway_priority`, must not be `None`") + if gateway_priority > 2.147483647E9: + raise ValueError("Invalid value for `gateway_priority`, must be a value less than or equal to `2.147483647E9`") + if gateway_priority < 1.0: + raise ValueError("Invalid value for `gateway_priority`, must be a value greater than or equal to `1.0`") + + self._gateway_priority = gateway_priority + + @property + def mtu(self): + """ + Gets the mtu of this GroupnetSubnetExtended. + MTU of the subnet. + + :return: The mtu of this GroupnetSubnetExtended. + :rtype: int + """ + return self._mtu + + @mtu.setter + def mtu(self, mtu): + """ + Sets the mtu of this GroupnetSubnetExtended. + MTU of the subnet. + + :param mtu: The mtu of this GroupnetSubnetExtended. + :type: int + """ + + if not mtu: + raise ValueError("Invalid value for `mtu`, must not be `None`") + if mtu > 9000.0: + raise ValueError("Invalid value for `mtu`, must be a value less than or equal to `9000.0`") + if mtu < 576.0: + raise ValueError("Invalid value for `mtu`, must be a value greater than or equal to `576.0`") + + self._mtu = mtu + + @property + def name(self): + """ + Gets the name of this GroupnetSubnetExtended. + The name of the subnet. + + :return: The name of this GroupnetSubnetExtended. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this GroupnetSubnetExtended. + The name of the subnet. + + :param name: The name of this GroupnetSubnetExtended. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + + self._name = name + + @property + def prefixlen(self): + """ + Gets the prefixlen of this GroupnetSubnetExtended. + Subnet Prefix Length. + + :return: The prefixlen of this GroupnetSubnetExtended. + :rtype: int + """ + return self._prefixlen + + @prefixlen.setter + def prefixlen(self, prefixlen): + """ + Sets the prefixlen of this GroupnetSubnetExtended. + Subnet Prefix Length. + + :param prefixlen: The prefixlen of this GroupnetSubnetExtended. + :type: int + """ + + if not prefixlen: + raise ValueError("Invalid value for `prefixlen`, must not be `None`") + if prefixlen > 128.0: + raise ValueError("Invalid value for `prefixlen`, must be a value less than or equal to `128.0`") + if prefixlen < 1.0: + raise ValueError("Invalid value for `prefixlen`, must be a value greater than or equal to `1.0`") + + self._prefixlen = prefixlen + + @property + def sc_service_addr(self): + """ + Gets the sc_service_addr of this GroupnetSubnetExtended. + The address that SmartConnect listens for DNS requests. + + :return: The sc_service_addr of this GroupnetSubnetExtended. + :rtype: str + """ + return self._sc_service_addr + + @sc_service_addr.setter + def sc_service_addr(self, sc_service_addr): + """ + Sets the sc_service_addr of this GroupnetSubnetExtended. + The address that SmartConnect listens for DNS requests. + + :param sc_service_addr: The sc_service_addr of this GroupnetSubnetExtended. + :type: str + """ + + self._sc_service_addr = sc_service_addr + + @property + def vlan_enabled(self): + """ + Gets the vlan_enabled of this GroupnetSubnetExtended. + VLAN tagging enabled or disabled. + + :return: The vlan_enabled of this GroupnetSubnetExtended. + :rtype: bool + """ + return self._vlan_enabled + + @vlan_enabled.setter + def vlan_enabled(self, vlan_enabled): + """ + Sets the vlan_enabled of this GroupnetSubnetExtended. + VLAN tagging enabled or disabled. + + :param vlan_enabled: The vlan_enabled of this GroupnetSubnetExtended. + :type: bool + """ + + self._vlan_enabled = vlan_enabled + + @property + def vlan_id(self): + """ + Gets the vlan_id of this GroupnetSubnetExtended. + VLAN ID for all interfaces in the subnet. + + :return: The vlan_id of this GroupnetSubnetExtended. + :rtype: int + """ + return self._vlan_id + + @vlan_id.setter + def vlan_id(self, vlan_id): + """ + Sets the vlan_id of this GroupnetSubnetExtended. + VLAN ID for all interfaces in the subnet. + + :param vlan_id: The vlan_id of this GroupnetSubnetExtended. + :type: int + """ + + if not vlan_id: + raise ValueError("Invalid value for `vlan_id`, must not be `None`") + if vlan_id > 4094.0: + raise ValueError("Invalid value for `vlan_id`, must be a value less than or equal to `4094.0`") + if vlan_id < 2.0: + raise ValueError("Invalid value for `vlan_id`, must be a value greater than or equal to `2.0`") + + self._vlan_id = vlan_id + + @property + def addr_family(self): + """ + Gets the addr_family of this GroupnetSubnetExtended. + IP address format. + + :return: The addr_family of this GroupnetSubnetExtended. + :rtype: str + """ + return self._addr_family + + @addr_family.setter + def addr_family(self, addr_family): + """ + Sets the addr_family of this GroupnetSubnetExtended. + IP address format. + + :param addr_family: The addr_family of this GroupnetSubnetExtended. + :type: str + """ + allowed_values = ["ipv4", "ipv6"] + if addr_family not in allowed_values: + raise ValueError( + "Invalid value for `addr_family`, must be one of {0}" + .format(allowed_values) + ) + + self._addr_family = addr_family + + @property + def base_addr(self): + """ + Gets the base_addr of this GroupnetSubnetExtended. + The base IP address. + + :return: The base_addr of this GroupnetSubnetExtended. + :rtype: str + """ + return self._base_addr + + @base_addr.setter + def base_addr(self, base_addr): + """ + Sets the base_addr of this GroupnetSubnetExtended. + The base IP address. + + :param base_addr: The base_addr of this GroupnetSubnetExtended. + :type: str + """ + + self._base_addr = base_addr + + @property + def groupnet(self): + """ + Gets the groupnet of this GroupnetSubnetExtended. + Name of the groupnet this subnet belongs to. + + :return: The groupnet of this GroupnetSubnetExtended. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this GroupnetSubnetExtended. + Name of the groupnet this subnet belongs to. + + :param groupnet: The groupnet of this GroupnetSubnetExtended. + :type: str + """ + + self._groupnet = groupnet + + @property + def id(self): + """ + Gets the id of this GroupnetSubnetExtended. + Unique Subnet ID. + + :return: The id of this GroupnetSubnetExtended. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this GroupnetSubnetExtended. + Unique Subnet ID. + + :param id: The id of this GroupnetSubnetExtended. + :type: str + """ + + self._id = id + + @property + def pools(self): + """ + Gets the pools of this GroupnetSubnetExtended. + Name of the pools in the subnet. + + :return: The pools of this GroupnetSubnetExtended. + :rtype: list[str] + """ + return self._pools + + @pools.setter + def pools(self, pools): + """ + Sets the pools of this GroupnetSubnetExtended. + Name of the pools in the subnet. + + :param pools: The pools of this GroupnetSubnetExtended. + :type: list[str] + """ + + self._pools = pools + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/groupnet_subnets.py b/isi_sdk/models/groupnet_subnets.py new file mode 100644 index 000000000..cbe30184b --- /dev/null +++ b/isi_sdk/models/groupnet_subnets.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class GroupnetSubnets(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + GroupnetSubnets - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'subnets': 'list[GroupnetSubnetExtended]' + } + + self.attribute_map = { + 'subnets': 'subnets' + } + + self._subnets = None + + @property + def subnets(self): + """ + Gets the subnets of this GroupnetSubnets. + + + :return: The subnets of this GroupnetSubnets. + :rtype: list[GroupnetSubnetExtended] + """ + return self._subnets + + @subnets.setter + def subnets(self, subnets): + """ + Sets the subnets of this GroupnetSubnets. + + + :param subnets: The subnets of this GroupnetSubnets. + :type: list[GroupnetSubnetExtended] + """ + + self._subnets = subnets + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/groupnet_subnets_extended.py b/isi_sdk/models/groupnet_subnets_extended.py new file mode 100644 index 000000000..10133b64d --- /dev/null +++ b/isi_sdk/models/groupnet_subnets_extended.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class GroupnetSubnetsExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + GroupnetSubnetsExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'subnets': 'list[GroupnetSubnetExtended]', + 'resume': 'str', + 'total': 'int' + } + + self.attribute_map = { + 'subnets': 'subnets', + 'resume': 'resume', + 'total': 'total' + } + + self._subnets = None + self._resume = None + self._total = None + + @property + def subnets(self): + """ + Gets the subnets of this GroupnetSubnetsExtended. + + + :return: The subnets of this GroupnetSubnetsExtended. + :rtype: list[GroupnetSubnetExtended] + """ + return self._subnets + + @subnets.setter + def subnets(self, subnets): + """ + Sets the subnets of this GroupnetSubnetsExtended. + + + :param subnets: The subnets of this GroupnetSubnetsExtended. + :type: list[GroupnetSubnetExtended] + """ + + self._subnets = subnets + + @property + def resume(self): + """ + Gets the resume of this GroupnetSubnetsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this GroupnetSubnetsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this GroupnetSubnetsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this GroupnetSubnetsExtended. + :type: str + """ + + self._resume = resume + + @property + def total(self): + """ + Gets the total of this GroupnetSubnetsExtended. + Total number of items available. + + :return: The total of this GroupnetSubnetsExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this GroupnetSubnetsExtended. + Total number of items available. + + :param total: The total of this GroupnetSubnetsExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/hardening_apply_item.py b/isi_sdk/models/hardening_apply_item.py index 1cb54927d..f116677db 100644 --- a/isi_sdk/models/hardening_apply_item.py +++ b/isi_sdk/models/hardening_apply_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardeningApplyItem(object): @@ -69,6 +70,7 @@ def profile(self, profile): :param profile: The profile of this HardeningApplyItem. :type: str """ + self._profile = profile @property @@ -91,6 +93,7 @@ def report(self, report): :param report: The report of this HardeningApplyItem. :type: bool """ + self._report = report def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardening_resolve_item.py b/isi_sdk/models/hardening_resolve_item.py index cf8ee5a36..ad289eb0d 100644 --- a/isi_sdk/models/hardening_resolve_item.py +++ b/isi_sdk/models/hardening_resolve_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardeningResolveItem(object): @@ -66,6 +67,7 @@ def profile(self, profile): :param profile: The profile of this HardeningResolveItem. :type: str """ + self._profile = profile def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardening_state.py b/isi_sdk/models/hardening_state.py index 6fa2efa59..91112c30d 100644 --- a/isi_sdk/models/hardening_state.py +++ b/isi_sdk/models/hardening_state.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardeningState(object): @@ -66,6 +67,7 @@ def state(self, state): :param state: The state of this HardeningState. :type: HardeningStateState """ + self._state = state def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardening_state_state.py b/isi_sdk/models/hardening_state_state.py index b2ef8b235..5bb11ed3b 100644 --- a/isi_sdk/models/hardening_state_state.py +++ b/isi_sdk/models/hardening_state_state.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardeningStateState(object): @@ -72,6 +73,7 @@ def issues_file(self, issues_file): :param issues_file: The issues_file of this HardeningStateState. :type: str """ + self._issues_file = issues_file @property @@ -94,6 +96,7 @@ def message(self, message): :param message: The message of this HardeningStateState. :type: str """ + self._message = message @property @@ -122,6 +125,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardening_status.py b/isi_sdk/models/hardening_status.py index 3d7f1156d..11988d9dc 100644 --- a/isi_sdk/models/hardening_status.py +++ b/isi_sdk/models/hardening_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardeningStatus(object): @@ -66,6 +67,7 @@ def status(self, status): :param status: The status of this HardeningStatus. :type: HardeningStatusStatus """ + self._status = status def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardening_status_status.py b/isi_sdk/models/hardening_status_status.py index ee3951abc..f2274ded2 100644 --- a/isi_sdk/models/hardening_status_status.py +++ b/isi_sdk/models/hardening_status_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardeningStatusStatus(object): @@ -66,6 +67,7 @@ def status_text(self, status_text): :param status_text: The status_text of this HardeningStatusStatus. :type: str """ + self._status_text = status_text def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardware_fcport.py b/isi_sdk/models/hardware_fcport.py index 7e2b437b6..af60f846c 100644 --- a/isi_sdk/models/hardware_fcport.py +++ b/isi_sdk/models/hardware_fcport.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardwareFcport(object): @@ -81,6 +82,7 @@ def id(self, id): :param id: The id of this HardwareFcport. :type: str """ + self._id = id @property @@ -109,6 +111,7 @@ def rate(self, rate): "Invalid value for `rate`, must be one of {0}" .format(allowed_values) ) + self._rate = rate @property @@ -137,6 +140,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property @@ -165,6 +169,7 @@ def topology(self, topology): "Invalid value for `topology`, must be one of {0}" .format(allowed_values) ) + self._topology = topology @property @@ -187,6 +192,7 @@ def wwnn(self, wwnn): :param wwnn: The wwnn of this HardwareFcport. :type: str """ + self._wwnn = wwnn @property @@ -209,6 +215,7 @@ def wwpn(self, wwpn): :param wwpn: The wwpn of this HardwareFcport. :type: str """ + self._wwpn = wwpn def to_dict(self): @@ -226,6 +233,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -243,14 +256,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardware_fcports.py b/isi_sdk/models/hardware_fcports.py index 688665855..756209eca 100644 --- a/isi_sdk/models/hardware_fcports.py +++ b/isi_sdk/models/hardware_fcports.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardwareFcports(object): @@ -84,6 +85,7 @@ def id(self, id): :param id: The id of this HardwareFcports. :type: str """ + self._id = id @property @@ -106,6 +108,7 @@ def port(self, port): :param port: The port of this HardwareFcports. :type: str """ + self._port = port @property @@ -134,6 +137,7 @@ def rate(self, rate): "Invalid value for `rate`, must be one of {0}" .format(allowed_values) ) + self._rate = rate @property @@ -162,6 +166,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property @@ -190,6 +195,7 @@ def topology(self, topology): "Invalid value for `topology`, must be one of {0}" .format(allowed_values) ) + self._topology = topology @property @@ -212,6 +218,7 @@ def wwnn(self, wwnn): :param wwnn: The wwnn of this HardwareFcports. :type: str """ + self._wwnn = wwnn @property @@ -234,6 +241,7 @@ def wwpn(self, wwpn): :param wwpn: The wwpn of this HardwareFcports. :type: str """ + self._wwpn = wwpn def to_dict(self): @@ -251,6 +259,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -268,14 +282,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardware_tape_name_params.py b/isi_sdk/models/hardware_tape_name_params.py index 0667806cb..d0a7fe190 100644 --- a/isi_sdk/models/hardware_tape_name_params.py +++ b/isi_sdk/models/hardware_tape_name_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardwareTapeNameParams(object): @@ -69,6 +70,7 @@ def name(self, name): :param name: The name of this HardwareTapeNameParams. :type: str """ + self._name = name @property @@ -97,6 +99,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state def to_dict(self): @@ -114,6 +117,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -131,14 +140,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hardware_tapes.py b/isi_sdk/models/hardware_tapes.py index 9f5a7352b..32bad1582 100644 --- a/isi_sdk/models/hardware_tapes.py +++ b/isi_sdk/models/hardware_tapes.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HardwareTapes(object): @@ -69,6 +70,7 @@ def resume(self, resume): :param resume: The resume of this HardwareTapes. :type: str """ + self._resume = resume @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this HardwareTapes. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_log_level.py b/isi_sdk/models/hdfs_log_level.py index 0651444a7..973387073 100644 --- a/isi_sdk/models/hdfs_log_level.py +++ b/isi_sdk/models/hdfs_log_level.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsLogLevel(object): @@ -72,6 +73,7 @@ def level(self, level): "Invalid value for `level`, must be one of {0}" .format(allowed_values) ) + self._level = level def to_dict(self): @@ -89,6 +91,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -106,14 +114,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_proxyuser.py b/isi_sdk/models/hdfs_proxyuser.py index 9c5b05fc2..2641a0937 100644 --- a/isi_sdk/models/hdfs_proxyuser.py +++ b/isi_sdk/models/hdfs_proxyuser.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsProxyuser(object): @@ -38,7 +39,7 @@ def __init__(self): """ self.swagger_types = { 'id': 'str', - 'members': 'list[GroupsGroupMember]', + 'members': 'list[GroupMember]', 'name': 'str' } @@ -72,6 +73,7 @@ def id(self, id): :param id: The id of this HdfsProxyuser. :type: str """ + self._id = id @property @@ -81,7 +83,7 @@ def members(self): Users or groups impersonated by proxyuser. :return: The members of this HdfsProxyuser. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._members @@ -92,8 +94,9 @@ def members(self, members): Users or groups impersonated by proxyuser. :param members: The members of this HdfsProxyuser. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._members = members @property @@ -116,6 +119,7 @@ def name(self, name): :param name: The name of this HdfsProxyuser. :type: str """ + self._name = name def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_proxyusers.py b/isi_sdk/models/hdfs_proxyusers.py index cb58d7b32..2a2a72c79 100644 --- a/isi_sdk/models/hdfs_proxyusers.py +++ b/isi_sdk/models/hdfs_proxyusers.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsProxyusers(object): @@ -72,6 +73,7 @@ def proxyusers(self, proxyusers): :param proxyusers: The proxyusers of this HdfsProxyusers. :type: list[HdfsProxyuser] """ + self._proxyusers = proxyusers @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this HdfsProxyusers. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this HdfsProxyusers. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_rack.py b/isi_sdk/models/hdfs_rack.py index 9f7399cef..25d9f9dca 100644 --- a/isi_sdk/models/hdfs_rack.py +++ b/isi_sdk/models/hdfs_rack.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsRack(object): @@ -72,6 +73,7 @@ def client_ip_ranges(self, client_ip_ranges): :param client_ip_ranges: The client_ip_ranges of this HdfsRack. :type: list[str] """ + self._client_ip_ranges = client_ip_ranges @property @@ -94,6 +96,7 @@ def ip_pools(self, ip_pools): :param ip_pools: The ip_pools of this HdfsRack. :type: list[str] """ + self._ip_pools = ip_pools @property @@ -116,6 +119,7 @@ def name(self, name): :param name: The name of this HdfsRack. :type: str """ + self._name = name def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_rack_extended.py b/isi_sdk/models/hdfs_rack_extended.py index 0e628ece1..b37a90fab 100644 --- a/isi_sdk/models/hdfs_rack_extended.py +++ b/isi_sdk/models/hdfs_rack_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsRackExtended(object): @@ -38,22 +39,22 @@ def __init__(self): """ self.swagger_types = { 'client_ip_ranges': 'list[str]', + 'ip_pools': 'list[str]', 'name': 'str', - 'id': 'str', - 'ip_pools': 'list[str]' + 'id': 'str' } self.attribute_map = { 'client_ip_ranges': 'client_ip_ranges', + 'ip_pools': 'ip_pools', 'name': 'name', - 'id': 'id', - 'ip_pools': 'ip_pools' + 'id': 'id' } self._client_ip_ranges = None + self._ip_pools = None self._name = None self._id = None - self._ip_pools = None @property def client_ip_ranges(self): @@ -75,8 +76,32 @@ def client_ip_ranges(self, client_ip_ranges): :param client_ip_ranges: The client_ip_ranges of this HdfsRackExtended. :type: list[str] """ + self._client_ip_ranges = client_ip_ranges + @property + def ip_pools(self): + """ + Gets the ip_pools of this HdfsRackExtended. + Array of IP pool names to use for serving clients from client_ip_ranges. + + :return: The ip_pools of this HdfsRackExtended. + :rtype: list[str] + """ + return self._ip_pools + + @ip_pools.setter + def ip_pools(self, ip_pools): + """ + Sets the ip_pools of this HdfsRackExtended. + Array of IP pool names to use for serving clients from client_ip_ranges. + + :param ip_pools: The ip_pools of this HdfsRackExtended. + :type: list[str] + """ + + self._ip_pools = ip_pools + @property def name(self): """ @@ -97,6 +122,7 @@ def name(self, name): :param name: The name of this HdfsRackExtended. :type: str """ + self._name = name @property @@ -119,30 +145,9 @@ def id(self, id): :param id: The id of this HdfsRackExtended. :type: str """ + self._id = id - @property - def ip_pools(self): - """ - Gets the ip_pools of this HdfsRackExtended. - Array of IP pool names to use for serving clients from client_ip_ranges. - - :return: The ip_pools of this HdfsRackExtended. - :rtype: list[str] - """ - return self._ip_pools - - @ip_pools.setter - def ip_pools(self, ip_pools): - """ - Sets the ip_pools of this HdfsRackExtended. - Array of IP pool names to use for serving clients from client_ip_ranges. - - :param ip_pools: The ip_pools of this HdfsRackExtended. - :type: list[str] - """ - self._ip_pools = ip_pools - def to_dict(self): """ Returns the model properties as a dict @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_racks.py b/isi_sdk/models/hdfs_racks.py index 2878a6104..ef36ce83a 100644 --- a/isi_sdk/models/hdfs_racks.py +++ b/isi_sdk/models/hdfs_racks.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsRacks(object): @@ -66,6 +67,7 @@ def racks(self, racks): :param racks: The racks of this HdfsRacks. :type: list[HdfsRackExtended] """ + self._racks = racks def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_racks_extended.py b/isi_sdk/models/hdfs_racks_extended.py index 3d29b05d3..81e579cf7 100644 --- a/isi_sdk/models/hdfs_racks_extended.py +++ b/isi_sdk/models/hdfs_racks_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsRacksExtended(object): @@ -72,6 +73,7 @@ def racks(self, racks): :param racks: The racks of this HdfsRacksExtended. :type: list[HdfsRackExtended] """ + self._racks = racks @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this HdfsRacksExtended. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this HdfsRacksExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_settings.py b/isi_sdk/models/hdfs_settings.py index bd722237c..c84481d0d 100644 --- a/isi_sdk/models/hdfs_settings.py +++ b/isi_sdk/models/hdfs_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this HdfsSettings. :type: HdfsSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/hdfs_settings_settings.py b/isi_sdk/models/hdfs_settings_settings.py index e0f2df0b3..49d72d6e3 100644 --- a/isi_sdk/models/hdfs_settings_settings.py +++ b/isi_sdk/models/hdfs_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HdfsSettingsSettings(object): @@ -90,6 +91,7 @@ def ambari_namenode(self, ambari_namenode): :param ambari_namenode: The ambari_namenode of this HdfsSettingsSettings. :type: str """ + self._ambari_namenode = ambari_namenode @property @@ -112,6 +114,7 @@ def ambari_server(self, ambari_server): :param ambari_server: The ambari_server of this HdfsSettingsSettings. :type: str """ + self._ambari_server = ambari_server @property @@ -140,6 +143,7 @@ def authentication_mode(self, authentication_mode): "Invalid value for `authentication_mode`, must be one of {0}" .format(allowed_values) ) + self._authentication_mode = authentication_mode @property @@ -162,6 +166,7 @@ def default_block_size(self, default_block_size): :param default_block_size: The default_block_size of this HdfsSettingsSettings. :type: int """ + self._default_block_size = default_block_size @property @@ -190,6 +195,7 @@ def default_checksum_type(self, default_checksum_type): "Invalid value for `default_checksum_type`, must be one of {0}" .format(allowed_values) ) + self._default_checksum_type = default_checksum_type @property @@ -212,6 +218,7 @@ def odp_version(self, odp_version): :param odp_version: The odp_version of this HdfsSettingsSettings. :type: str """ + self._odp_version = odp_version @property @@ -234,6 +241,7 @@ def root_directory(self, root_directory): :param root_directory: The root_directory of this HdfsSettingsSettings. :type: str """ + self._root_directory = root_directory @property @@ -256,6 +264,7 @@ def service(self, service): :param service: The service of this HdfsSettingsSettings. :type: bool """ + self._service = service @property @@ -278,6 +287,7 @@ def webhdfs_enabled(self, webhdfs_enabled): :param webhdfs_enabled: The webhdfs_enabled of this HdfsSettingsSettings. :type: bool """ + self._webhdfs_enabled = webhdfs_enabled def to_dict(self): @@ -295,6 +305,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -312,14 +328,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/history_file.py b/isi_sdk/models/history_file.py index 5defee004..13e84a884 100644 --- a/isi_sdk/models/history_file.py +++ b/isi_sdk/models/history_file.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HistoryFile(object): @@ -69,6 +70,7 @@ def statistics(self, statistics): :param statistics: The statistics of this HistoryFile. :type: list[HistoryFileStatistic] """ + self._statistics = statistics @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this HistoryFile. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/history_file_statistic.py b/isi_sdk/models/history_file_statistic.py index af74138a0..e4e58771d 100644 --- a/isi_sdk/models/history_file_statistic.py +++ b/isi_sdk/models/history_file_statistic.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HistoryFileStatistic(object): @@ -78,6 +79,7 @@ def allocated(self, allocated): :param allocated: The allocated of this HistoryFileStatistic. :type: int """ + self._allocated = allocated @property @@ -100,6 +102,7 @@ def id(self, id): :param id: The id of this HistoryFileStatistic. :type: int """ + self._id = id @property @@ -122,6 +125,7 @@ def limit(self, limit): :param limit: The limit of this HistoryFileStatistic. :type: int """ + self._limit = limit @property @@ -144,6 +148,7 @@ def timestamp(self, timestamp): :param timestamp: The timestamp of this HistoryFileStatistic. :type: int """ + self._timestamp = timestamp @property @@ -166,6 +171,7 @@ def total(self, total): :param total: The total of this HistoryFileStatistic. :type: int """ + self._total = total def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/http_settings.py b/isi_sdk/models/http_settings.py index 23ce9a4f4..f6ba62b18 100644 --- a/isi_sdk/models/http_settings.py +++ b/isi_sdk/models/http_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HttpSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this HttpSettings. :type: HttpSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/http_settings_settings.py b/isi_sdk/models/http_settings_settings.py index d28269daf..d55f6550b 100644 --- a/isi_sdk/models/http_settings_settings.py +++ b/isi_sdk/models/http_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class HttpSettingsSettings(object): @@ -84,6 +85,7 @@ def access_control(self, access_control): :param access_control: The access_control of this HttpSettingsSettings. :type: bool """ + self._access_control = access_control @property @@ -106,6 +108,7 @@ def basic_authentication(self, basic_authentication): :param basic_authentication: The basic_authentication of this HttpSettingsSettings. :type: bool """ + self._basic_authentication = basic_authentication @property @@ -128,6 +131,7 @@ def dav(self, dav): :param dav: The dav of this HttpSettingsSettings. :type: bool """ + self._dav = dav @property @@ -150,6 +154,7 @@ def enable_access_log(self, enable_access_log): :param enable_access_log: The enable_access_log of this HttpSettingsSettings. :type: bool """ + self._enable_access_log = enable_access_log @property @@ -172,6 +177,7 @@ def integrated_authentication(self, integrated_authentication): :param integrated_authentication: The integrated_authentication of this HttpSettingsSettings. :type: bool """ + self._integrated_authentication = integrated_authentication @property @@ -194,6 +200,7 @@ def server_root(self, server_root): :param server_root: The server_root of this HttpSettingsSettings. :type: str """ + self._server_root = server_root @property @@ -222,6 +229,7 @@ def service(self, service): "Invalid value for `service`, must be one of {0}" .format(allowed_values) ) + self._service = service def to_dict(self): @@ -239,6 +247,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -256,14 +270,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_event.py b/isi_sdk/models/job_event.py index c84136753..883cf9f30 100644 --- a/isi_sdk/models/job_event.py +++ b/isi_sdk/models/job_event.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobEvent(object): @@ -87,6 +88,7 @@ def flags(self, flags): :param flags: The flags of this JobEvent. :type: str """ + self._flags = flags @property @@ -109,6 +111,7 @@ def id(self, id): :param id: The id of this JobEvent. :type: str """ + self._id = id @property @@ -131,6 +134,12 @@ def job_id(self, job_id): :param job_id: The job_id of this JobEvent. :type: int """ + + if not job_id: + raise ValueError("Invalid value for `job_id`, must not be `None`") + if job_id < 1.0: + raise ValueError("Invalid value for `job_id`, must be a value greater than or equal to `1.0`") + self._job_id = job_id @property @@ -153,6 +162,7 @@ def job_type(self, job_type): :param job_type: The job_type of this JobEvent. :type: str """ + self._job_type = job_type @property @@ -175,6 +185,7 @@ def key(self, key): :param key: The key of this JobEvent. :type: str """ + self._key = key @property @@ -197,6 +208,7 @@ def phase(self, phase): :param phase: The phase of this JobEvent. :type: int """ + self._phase = phase @property @@ -219,6 +231,7 @@ def time(self, time): :param time: The time of this JobEvent. :type: int """ + self._time = time @property @@ -241,6 +254,7 @@ def value(self, value): :param value: The value of this JobEvent. :type: str """ + self._value = value def to_dict(self): @@ -258,6 +272,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +295,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_events.py b/isi_sdk/models/job_events.py index 236f292f8..a20723c76 100644 --- a/isi_sdk/models/job_events.py +++ b/isi_sdk/models/job_events.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobEvents(object): @@ -72,6 +73,7 @@ def events(self, events): :param events: The events of this JobEvents. :type: list[JobEvent] """ + self._events = events @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this JobEvents. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this JobEvents. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job.py b/isi_sdk/models/job_job.py index 20700036b..692af1f04 100644 --- a/isi_sdk/models/job_job.py +++ b/isi_sdk/models/job_job.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJob(object): @@ -72,6 +73,7 @@ def policy(self, policy): :param policy: The policy of this JobJob. :type: str """ + self._policy = policy @property @@ -94,6 +96,14 @@ def priority(self, priority): :param priority: The priority of this JobJob. :type: int """ + + if not priority: + raise ValueError("Invalid value for `priority`, must not be `None`") + if priority > 10.0: + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `10.0`") + if priority < 1.0: + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1.0`") + self._priority = priority @property @@ -122,6 +132,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state def to_dict(self): @@ -139,6 +150,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +173,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_avscan_params.py b/isi_sdk/models/job_job_avscan_params.py index dcfc3540d..58918fc6a 100644 --- a/isi_sdk/models/job_job_avscan_params.py +++ b/isi_sdk/models/job_job_avscan_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobAvscanParams(object): @@ -75,6 +76,7 @@ def force_run(self, force_run): :param force_run: The force_run of this JobJobAvscanParams. :type: bool """ + self._force_run = force_run @property @@ -97,6 +99,12 @@ def policy(self, policy): :param policy: The policy of this JobJobAvscanParams. :type: str """ + + if not policy: + raise ValueError("Invalid value for `policy`, must not be `None`") + if len(policy) < 1: + raise ValueError("Invalid value for `policy`, length must be greater than or equal to `1`") + self._policy = policy @property @@ -119,6 +127,14 @@ def report_id(self, report_id): :param report_id: The report_id of this JobJobAvscanParams. :type: str """ + + if not report_id: + raise ValueError("Invalid value for `report_id`, must not be `None`") + if len(report_id) > 15: + raise ValueError("Invalid value for `report_id`, length must be less than `15`") + if len(report_id) < 1: + raise ValueError("Invalid value for `report_id`, length must be greater than or equal to `1`") + self._report_id = report_id @property @@ -141,6 +157,7 @@ def update(self, update): :param update: The update of this JobJobAvscanParams. :type: bool """ + self._update = update def to_dict(self): @@ -158,6 +175,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +198,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_changelistcreate_params.py b/isi_sdk/models/job_job_changelistcreate_params.py index 4d0b0c7fe..518cccd5b 100644 --- a/isi_sdk/models/job_job_changelistcreate_params.py +++ b/isi_sdk/models/job_job_changelistcreate_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobChangelistcreateParams(object): @@ -72,6 +73,12 @@ def newer_snapid(self, newer_snapid): :param newer_snapid: The newer_snapid of this JobJobChangelistcreateParams. :type: int """ + + if not newer_snapid: + raise ValueError("Invalid value for `newer_snapid`, must not be `None`") + if newer_snapid < 1.0: + raise ValueError("Invalid value for `newer_snapid`, must be a value greater than or equal to `1.0`") + self._newer_snapid = newer_snapid @property @@ -94,6 +101,12 @@ def older_snapid(self, older_snapid): :param older_snapid: The older_snapid of this JobJobChangelistcreateParams. :type: int """ + + if not older_snapid: + raise ValueError("Invalid value for `older_snapid`, must not be `None`") + if older_snapid < 1.0: + raise ValueError("Invalid value for `older_snapid`, must be a value greater than or equal to `1.0`") + self._older_snapid = older_snapid @property @@ -116,6 +129,7 @@ def retain_repstate(self, retain_repstate): :param retain_repstate: The retain_repstate of this JobJobChangelistcreateParams. :type: bool """ + self._retain_repstate = retain_repstate def to_dict(self): @@ -133,6 +147,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +170,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_create_params.py b/isi_sdk/models/job_job_create_params.py index 5df90312e..9a3114608 100644 --- a/isi_sdk/models/job_job_create_params.py +++ b/isi_sdk/models/job_job_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobCreateParams(object): @@ -37,113 +38,136 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'snaprevert_params': 'JobJobSnaprevertParams', - 'prepair_params': 'JobJobPrepairParams', - 'avscan_params': 'JobJobAvscanParams', - 'paths': 'list[str]', 'allow_dup': 'bool', - 'state': 'str', - 'priority': 'int', + 'avscan_params': 'JobJobAvscanParams', + 'changelistcreate_params': 'JobJobChangelistcreateParams', 'domainmark_params': 'JobJobDomainmarkParams', - 'type': 'str', + 'paths': 'list[str]', 'policy': 'str', - 'changelistcreate_params': 'JobJobChangelistcreateParams', - 'smartpoolstree_params': 'JobJobSmartpoolstreeParams' + 'prepair_params': 'JobJobPrepairParams', + 'priority': 'int', + 'smartpoolstree_params': 'JobJobSmartpoolstreeParams', + 'snaprevert_params': 'JobJobSnaprevertParams', + 'type': 'str' } self.attribute_map = { - 'snaprevert_params': 'snaprevert_params', - 'prepair_params': 'prepair_params', - 'avscan_params': 'avscan_params', - 'paths': 'paths', 'allow_dup': 'allow_dup', - 'state': 'state', - 'priority': 'priority', + 'avscan_params': 'avscan_params', + 'changelistcreate_params': 'changelistcreate_params', 'domainmark_params': 'domainmark_params', - 'type': 'type', + 'paths': 'paths', 'policy': 'policy', - 'changelistcreate_params': 'changelistcreate_params', - 'smartpoolstree_params': 'smartpoolstree_params' + 'prepair_params': 'prepair_params', + 'priority': 'priority', + 'smartpoolstree_params': 'smartpoolstree_params', + 'snaprevert_params': 'snaprevert_params', + 'type': 'type' } - self._snaprevert_params = None - self._prepair_params = None - self._avscan_params = None - self._paths = None self._allow_dup = None - self._state = None - self._priority = None + self._avscan_params = None + self._changelistcreate_params = None self._domainmark_params = None - self._type = None + self._paths = None self._policy = None - self._changelistcreate_params = None + self._prepair_params = None + self._priority = None self._smartpoolstree_params = None + self._snaprevert_params = None + self._type = None @property - def snaprevert_params(self): + def allow_dup(self): + """ + Gets the allow_dup of this JobJobCreateParams. + Whether or not to queue the job if one of the same type is already running or queued. + + :return: The allow_dup of this JobJobCreateParams. + :rtype: bool + """ + return self._allow_dup + + @allow_dup.setter + def allow_dup(self, allow_dup): + """ + Sets the allow_dup of this JobJobCreateParams. + Whether or not to queue the job if one of the same type is already running or queued. + + :param allow_dup: The allow_dup of this JobJobCreateParams. + :type: bool """ - Gets the snaprevert_params of this JobJobCreateParams. + self._allow_dup = allow_dup - :return: The snaprevert_params of this JobJobCreateParams. - :rtype: JobJobSnaprevertParams + @property + def avscan_params(self): """ - return self._snaprevert_params + Gets the avscan_params of this JobJobCreateParams. + - @snaprevert_params.setter - def snaprevert_params(self, snaprevert_params): + :return: The avscan_params of this JobJobCreateParams. + :rtype: JobJobAvscanParams """ - Sets the snaprevert_params of this JobJobCreateParams. + return self._avscan_params + + @avscan_params.setter + def avscan_params(self, avscan_params): + """ + Sets the avscan_params of this JobJobCreateParams. - :param snaprevert_params: The snaprevert_params of this JobJobCreateParams. - :type: JobJobSnaprevertParams + :param avscan_params: The avscan_params of this JobJobCreateParams. + :type: JobJobAvscanParams """ - self._snaprevert_params = snaprevert_params + + self._avscan_params = avscan_params @property - def prepair_params(self): + def changelistcreate_params(self): """ - Gets the prepair_params of this JobJobCreateParams. + Gets the changelistcreate_params of this JobJobCreateParams. - :return: The prepair_params of this JobJobCreateParams. - :rtype: JobJobPrepairParams + :return: The changelistcreate_params of this JobJobCreateParams. + :rtype: JobJobChangelistcreateParams """ - return self._prepair_params + return self._changelistcreate_params - @prepair_params.setter - def prepair_params(self, prepair_params): + @changelistcreate_params.setter + def changelistcreate_params(self, changelistcreate_params): """ - Sets the prepair_params of this JobJobCreateParams. + Sets the changelistcreate_params of this JobJobCreateParams. - :param prepair_params: The prepair_params of this JobJobCreateParams. - :type: JobJobPrepairParams + :param changelistcreate_params: The changelistcreate_params of this JobJobCreateParams. + :type: JobJobChangelistcreateParams """ - self._prepair_params = prepair_params + + self._changelistcreate_params = changelistcreate_params @property - def avscan_params(self): + def domainmark_params(self): """ - Gets the avscan_params of this JobJobCreateParams. + Gets the domainmark_params of this JobJobCreateParams. - :return: The avscan_params of this JobJobCreateParams. - :rtype: JobJobAvscanParams + :return: The domainmark_params of this JobJobCreateParams. + :rtype: JobJobDomainmarkParams """ - return self._avscan_params + return self._domainmark_params - @avscan_params.setter - def avscan_params(self, avscan_params): + @domainmark_params.setter + def domainmark_params(self, domainmark_params): """ - Sets the avscan_params of this JobJobCreateParams. + Sets the domainmark_params of this JobJobCreateParams. - :param avscan_params: The avscan_params of this JobJobCreateParams. - :type: JobJobAvscanParams + :param domainmark_params: The domainmark_params of this JobJobCreateParams. + :type: JobJobDomainmarkParams """ - self._avscan_params = avscan_params + + self._domainmark_params = domainmark_params @property def paths(self): @@ -165,57 +189,54 @@ def paths(self, paths): :param paths: The paths of this JobJobCreateParams. :type: list[str] """ + self._paths = paths @property - def allow_dup(self): + def policy(self): """ - Gets the allow_dup of this JobJobCreateParams. - Whether or not to queue the job if one of the same type is already running or queued. + Gets the policy of this JobJobCreateParams. + Impact policy of this job instance. - :return: The allow_dup of this JobJobCreateParams. - :rtype: bool + :return: The policy of this JobJobCreateParams. + :rtype: str """ - return self._allow_dup + return self._policy - @allow_dup.setter - def allow_dup(self, allow_dup): + @policy.setter + def policy(self, policy): """ - Sets the allow_dup of this JobJobCreateParams. - Whether or not to queue the job if one of the same type is already running or queued. + Sets the policy of this JobJobCreateParams. + Impact policy of this job instance. - :param allow_dup: The allow_dup of this JobJobCreateParams. - :type: bool + :param policy: The policy of this JobJobCreateParams. + :type: str """ - self._allow_dup = allow_dup + + self._policy = policy @property - def state(self): + def prepair_params(self): """ - Gets the state of this JobJobCreateParams. - Desired new state of this job instance. + Gets the prepair_params of this JobJobCreateParams. + - :return: The state of this JobJobCreateParams. - :rtype: str + :return: The prepair_params of this JobJobCreateParams. + :rtype: JobJobPrepairParams """ - return self._state + return self._prepair_params - @state.setter - def state(self, state): + @prepair_params.setter + def prepair_params(self, prepair_params): """ - Sets the state of this JobJobCreateParams. - Desired new state of this job instance. + Sets the prepair_params of this JobJobCreateParams. + - :param state: The state of this JobJobCreateParams. - :type: str + :param prepair_params: The prepair_params of this JobJobCreateParams. + :type: JobJobPrepairParams """ - allowed_values = ["run", "pause", "cancel"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state`, must be one of {0}" - .format(allowed_values) - ) - self._state = state + + self._prepair_params = prepair_params @property def priority(self): @@ -237,29 +258,61 @@ def priority(self, priority): :param priority: The priority of this JobJobCreateParams. :type: int """ + + if not priority: + raise ValueError("Invalid value for `priority`, must not be `None`") + if priority > 10.0: + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `10.0`") + if priority < 1.0: + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1.0`") + self._priority = priority @property - def domainmark_params(self): + def smartpoolstree_params(self): """ - Gets the domainmark_params of this JobJobCreateParams. + Gets the smartpoolstree_params of this JobJobCreateParams. - :return: The domainmark_params of this JobJobCreateParams. - :rtype: JobJobDomainmarkParams + :return: The smartpoolstree_params of this JobJobCreateParams. + :rtype: JobJobSmartpoolstreeParams """ - return self._domainmark_params + return self._smartpoolstree_params - @domainmark_params.setter - def domainmark_params(self, domainmark_params): + @smartpoolstree_params.setter + def smartpoolstree_params(self, smartpoolstree_params): """ - Sets the domainmark_params of this JobJobCreateParams. + Sets the smartpoolstree_params of this JobJobCreateParams. - :param domainmark_params: The domainmark_params of this JobJobCreateParams. - :type: JobJobDomainmarkParams + :param smartpoolstree_params: The smartpoolstree_params of this JobJobCreateParams. + :type: JobJobSmartpoolstreeParams """ - self._domainmark_params = domainmark_params + + self._smartpoolstree_params = smartpoolstree_params + + @property + def snaprevert_params(self): + """ + Gets the snaprevert_params of this JobJobCreateParams. + + + :return: The snaprevert_params of this JobJobCreateParams. + :rtype: JobJobSnaprevertParams + """ + return self._snaprevert_params + + @snaprevert_params.setter + def snaprevert_params(self, snaprevert_params): + """ + Sets the snaprevert_params of this JobJobCreateParams. + + + :param snaprevert_params: The snaprevert_params of this JobJobCreateParams. + :type: JobJobSnaprevertParams + """ + + self._snaprevert_params = snaprevert_params @property def type(self): @@ -281,73 +334,8 @@ def type(self, type): :param type: The type of this JobJobCreateParams. :type: str """ - self._type = type - - @property - def policy(self): - """ - Gets the policy of this JobJobCreateParams. - Impact policy of this job instance. - - :return: The policy of this JobJobCreateParams. - :rtype: str - """ - return self._policy - - @policy.setter - def policy(self, policy): - """ - Sets the policy of this JobJobCreateParams. - Impact policy of this job instance. - - :param policy: The policy of this JobJobCreateParams. - :type: str - """ - self._policy = policy - - @property - def changelistcreate_params(self): - """ - Gets the changelistcreate_params of this JobJobCreateParams. - - - :return: The changelistcreate_params of this JobJobCreateParams. - :rtype: JobJobChangelistcreateParams - """ - return self._changelistcreate_params - - @changelistcreate_params.setter - def changelistcreate_params(self, changelistcreate_params): - """ - Sets the changelistcreate_params of this JobJobCreateParams. - - - :param changelistcreate_params: The changelistcreate_params of this JobJobCreateParams. - :type: JobJobChangelistcreateParams - """ - self._changelistcreate_params = changelistcreate_params - - @property - def smartpoolstree_params(self): - """ - Gets the smartpoolstree_params of this JobJobCreateParams. - - - :return: The smartpoolstree_params of this JobJobCreateParams. - :rtype: JobJobSmartpoolstreeParams - """ - return self._smartpoolstree_params - - @smartpoolstree_params.setter - def smartpoolstree_params(self, smartpoolstree_params): - """ - Sets the smartpoolstree_params of this JobJobCreateParams. - - :param smartpoolstree_params: The smartpoolstree_params of this JobJobCreateParams. - :type: JobJobSmartpoolstreeParams - """ - self._smartpoolstree_params = smartpoolstree_params + self._type = type def to_dict(self): """ @@ -364,6 +352,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -381,14 +375,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_domainmark_params.py b/isi_sdk/models/job_job_domainmark_params.py index 0ee702577..ea956916e 100644 --- a/isi_sdk/models/job_job_domainmark_params.py +++ b/isi_sdk/models/job_job_domainmark_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobDomainmarkParams(object): @@ -72,6 +73,7 @@ def delete(self, delete): :param delete: The delete of this JobJobDomainmarkParams. :type: bool """ + self._delete = delete @property @@ -94,6 +96,7 @@ def root(self, root): :param root: The root of this JobJobDomainmarkParams. :type: str """ + self._root = root @property @@ -122,6 +125,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_extended.py b/isi_sdk/models/job_job_extended.py index 602bde383..27bb87155 100644 --- a/isi_sdk/models/job_job_extended.py +++ b/isi_sdk/models/job_job_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobExtended(object): @@ -37,215 +38,228 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'total_phases': 'int', + 'policy': 'str', + 'priority': 'int', + 'state': 'str', + 'control_state': 'str', 'create_time': 'int', 'current_phase': 'int', - 'impact': 'str', - 'waiting_reason': 'str', - 'end_time': 'int', 'description': 'str', - 'priority': 'int', - 'type': 'str', - 'control_state': 'str', - 'start_time': 'int', + 'end_time': 'int', + 'id': 'int', + 'impact': 'str', + 'participants': 'list[int]', 'paths': 'list[str]', - 'retries_remaining': 'int', 'progress': 'str', + 'retries_remaining': 'int', 'running_time': 'int', + 'start_time': 'int', + 'total_phases': 'int', + 'type': 'str', 'waiting_on': 'int', - 'state': 'str', - 'id': 'int', - 'policy': 'str', - 'participants': 'list[int]' + 'waiting_reason': 'str' } self.attribute_map = { - 'total_phases': 'total_phases', + 'policy': 'policy', + 'priority': 'priority', + 'state': 'state', + 'control_state': 'control_state', 'create_time': 'create_time', 'current_phase': 'current_phase', - 'impact': 'impact', - 'waiting_reason': 'waiting_reason', - 'end_time': 'end_time', 'description': 'description', - 'priority': 'priority', - 'type': 'type', - 'control_state': 'control_state', - 'start_time': 'start_time', + 'end_time': 'end_time', + 'id': 'id', + 'impact': 'impact', + 'participants': 'participants', 'paths': 'paths', - 'retries_remaining': 'retries_remaining', 'progress': 'progress', + 'retries_remaining': 'retries_remaining', 'running_time': 'running_time', + 'start_time': 'start_time', + 'total_phases': 'total_phases', + 'type': 'type', 'waiting_on': 'waiting_on', - 'state': 'state', - 'id': 'id', - 'policy': 'policy', - 'participants': 'participants' + 'waiting_reason': 'waiting_reason' } - self._total_phases = None + self._policy = None + self._priority = None + self._state = None + self._control_state = None self._create_time = None self._current_phase = None - self._impact = None - self._waiting_reason = None - self._end_time = None self._description = None - self._priority = None - self._type = None - self._control_state = None - self._start_time = None + self._end_time = None + self._id = None + self._impact = None + self._participants = None self._paths = None - self._retries_remaining = None self._progress = None + self._retries_remaining = None self._running_time = None + self._start_time = None + self._total_phases = None + self._type = None self._waiting_on = None - self._state = None - self._id = None - self._policy = None - self._participants = None + self._waiting_reason = None @property - def total_phases(self): + def policy(self): """ - Gets the total_phases of this JobJobExtended. - The total number of phases of the job type. + Gets the policy of this JobJobExtended. + Impact policy of this job instance. - :return: The total_phases of this JobJobExtended. - :rtype: int + :return: The policy of this JobJobExtended. + :rtype: str """ - return self._total_phases + return self._policy - @total_phases.setter - def total_phases(self, total_phases): + @policy.setter + def policy(self, policy): """ - Sets the total_phases of this JobJobExtended. - The total number of phases of the job type. + Sets the policy of this JobJobExtended. + Impact policy of this job instance. - :param total_phases: The total_phases of this JobJobExtended. - :type: int + :param policy: The policy of this JobJobExtended. + :type: str """ - self._total_phases = total_phases + + self._policy = policy @property - def create_time(self): + def priority(self): """ - Gets the create_time of this JobJobExtended. - The time the job was queued, in seconds since the epoch. + Gets the priority of this JobJobExtended. + Priority of this job instance; lower numbers preempt higher numbers. - :return: The create_time of this JobJobExtended. + :return: The priority of this JobJobExtended. :rtype: int """ - return self._create_time + return self._priority - @create_time.setter - def create_time(self, create_time): + @priority.setter + def priority(self, priority): """ - Sets the create_time of this JobJobExtended. - The time the job was queued, in seconds since the epoch. + Sets the priority of this JobJobExtended. + Priority of this job instance; lower numbers preempt higher numbers. - :param create_time: The create_time of this JobJobExtended. + :param priority: The priority of this JobJobExtended. :type: int """ - self._create_time = create_time + + if not priority: + raise ValueError("Invalid value for `priority`, must not be `None`") + if priority > 10.0: + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `10.0`") + if priority < 1.0: + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1.0`") + + self._priority = priority @property - def current_phase(self): + def state(self): """ - Gets the current_phase of this JobJobExtended. - The current phase of the job. + Gets the state of this JobJobExtended. + Desired new state of this job instance. - :return: The current_phase of this JobJobExtended. - :rtype: int + :return: The state of this JobJobExtended. + :rtype: str """ - return self._current_phase + return self._state - @current_phase.setter - def current_phase(self, current_phase): + @state.setter + def state(self, state): """ - Sets the current_phase of this JobJobExtended. - The current phase of the job. + Sets the state of this JobJobExtended. + Desired new state of this job instance. - :param current_phase: The current_phase of this JobJobExtended. - :type: int + :param state: The state of this JobJobExtended. + :type: str """ - self._current_phase = current_phase + allowed_values = ["run", "pause", "cancel"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state`, must be one of {0}" + .format(allowed_values) + ) + + self._state = state @property - def impact(self): + def control_state(self): """ - Gets the impact of this JobJobExtended. - The current impact of the job. + Gets the control_state of this JobJobExtended. + State to which the job is transitioning; if control_state is identical to state, the job's state is stable. - :return: The impact of this JobJobExtended. + :return: The control_state of this JobJobExtended. :rtype: str """ - return self._impact + return self._control_state - @impact.setter - def impact(self, impact): + @control_state.setter + def control_state(self, control_state): """ - Sets the impact of this JobJobExtended. - The current impact of the job. + Sets the control_state of this JobJobExtended. + State to which the job is transitioning; if control_state is identical to state, the job's state is stable. - :param impact: The impact of this JobJobExtended. + :param control_state: The control_state of this JobJobExtended. :type: str """ - allowed_values = ["Low", "Medium", "High", "Paused"] - if impact not in allowed_values: + allowed_values = ["running", "paused_user", "paused_system", "paused_policy", "paused_priority", "cancelled_user", "cancelled_system", "failed", "succeeded", "unknown"] + if control_state not in allowed_values: raise ValueError( - "Invalid value for `impact`, must be one of {0}" + "Invalid value for `control_state`, must be one of {0}" .format(allowed_values) ) - self._impact = impact + + self._control_state = control_state @property - def waiting_reason(self): + def create_time(self): """ - Gets the waiting_reason of this JobJobExtended. - The reason the job is waiting. + Gets the create_time of this JobJobExtended. + The time the job was queued, in seconds since the epoch. - :return: The waiting_reason of this JobJobExtended. - :rtype: str + :return: The create_time of this JobJobExtended. + :rtype: int """ - return self._waiting_reason + return self._create_time - @waiting_reason.setter - def waiting_reason(self, waiting_reason): + @create_time.setter + def create_time(self, create_time): """ - Sets the waiting_reason of this JobJobExtended. - The reason the job is waiting. + Sets the create_time of this JobJobExtended. + The time the job was queued, in seconds since the epoch. - :param waiting_reason: The waiting_reason of this JobJobExtended. - :type: str + :param create_time: The create_time of this JobJobExtended. + :type: int """ - allowed_values = ["blocked_by_priority"] - if waiting_reason not in allowed_values: - raise ValueError( - "Invalid value for `waiting_reason`, must be one of {0}" - .format(allowed_values) - ) - self._waiting_reason = waiting_reason + + self._create_time = create_time @property - def end_time(self): + def current_phase(self): """ - Gets the end_time of this JobJobExtended. - The time the job ended, in seconds since the Epoch. + Gets the current_phase of this JobJobExtended. + The current phase of the job. - :return: The end_time of this JobJobExtended. + :return: The current_phase of this JobJobExtended. :rtype: int """ - return self._end_time + return self._current_phase - @end_time.setter - def end_time(self, end_time): + @current_phase.setter + def current_phase(self, current_phase): """ - Sets the end_time of this JobJobExtended. - The time the job ended, in seconds since the Epoch. + Sets the current_phase of this JobJobExtended. + The current phase of the job. - :param end_time: The end_time of this JobJobExtended. + :param current_phase: The current_phase of this JobJobExtended. :type: int """ - self._end_time = end_time + + self._current_phase = current_phase @property def description(self): @@ -267,101 +281,111 @@ def description(self, description): :param description: The description of this JobJobExtended. :type: str """ + self._description = description @property - def priority(self): + def end_time(self): """ - Gets the priority of this JobJobExtended. - Priority of this job instance; lower numbers preempt higher numbers. + Gets the end_time of this JobJobExtended. + The time the job ended, in seconds since the Epoch. - :return: The priority of this JobJobExtended. + :return: The end_time of this JobJobExtended. :rtype: int """ - return self._priority + return self._end_time - @priority.setter - def priority(self, priority): + @end_time.setter + def end_time(self, end_time): """ - Sets the priority of this JobJobExtended. - Priority of this job instance; lower numbers preempt higher numbers. + Sets the end_time of this JobJobExtended. + The time the job ended, in seconds since the Epoch. - :param priority: The priority of this JobJobExtended. + :param end_time: The end_time of this JobJobExtended. :type: int """ - self._priority = priority + + self._end_time = end_time @property - def type(self): + def id(self): """ - Gets the type of this JobJobExtended. - The job type. + Gets the id of this JobJobExtended. + The ID of the job. - :return: The type of this JobJobExtended. - :rtype: str + :return: The id of this JobJobExtended. + :rtype: int """ - return self._type + return self._id - @type.setter - def type(self, type): + @id.setter + def id(self, id): """ - Sets the type of this JobJobExtended. - The job type. + Sets the id of this JobJobExtended. + The ID of the job. - :param type: The type of this JobJobExtended. - :type: str + :param id: The id of this JobJobExtended. + :type: int """ - self._type = type + + if not id: + raise ValueError("Invalid value for `id`, must not be `None`") + if id < 1.0: + raise ValueError("Invalid value for `id`, must be a value greater than or equal to `1.0`") + + self._id = id @property - def control_state(self): + def impact(self): """ - Gets the control_state of this JobJobExtended. - State to which the job is transitioning; if control_state is identical to state, the job's state is stable. + Gets the impact of this JobJobExtended. + The current impact of the job. - :return: The control_state of this JobJobExtended. + :return: The impact of this JobJobExtended. :rtype: str """ - return self._control_state + return self._impact - @control_state.setter - def control_state(self, control_state): + @impact.setter + def impact(self, impact): """ - Sets the control_state of this JobJobExtended. - State to which the job is transitioning; if control_state is identical to state, the job's state is stable. + Sets the impact of this JobJobExtended. + The current impact of the job. - :param control_state: The control_state of this JobJobExtended. + :param impact: The impact of this JobJobExtended. :type: str """ - allowed_values = ["running", "paused_user", "paused_system", "paused_policy", "paused_priority", "cancelled_user", "cancelled_system", "failed", "succeeded", "unknown"] - if control_state not in allowed_values: + allowed_values = ["Low", "Medium", "High", "Paused"] + if impact not in allowed_values: raise ValueError( - "Invalid value for `control_state`, must be one of {0}" + "Invalid value for `impact`, must be one of {0}" .format(allowed_values) ) - self._control_state = control_state + + self._impact = impact @property - def start_time(self): + def participants(self): """ - Gets the start_time of this JobJobExtended. - The time the job started, in seconds since the Epoch. + Gets the participants of this JobJobExtended. + The set of devids working on the job. - :return: The start_time of this JobJobExtended. - :rtype: int + :return: The participants of this JobJobExtended. + :rtype: list[int] """ - return self._start_time + return self._participants - @start_time.setter - def start_time(self, start_time): + @participants.setter + def participants(self, participants): """ - Sets the start_time of this JobJobExtended. - The time the job started, in seconds since the Epoch. + Sets the participants of this JobJobExtended. + The set of devids working on the job. - :param start_time: The start_time of this JobJobExtended. - :type: int + :param participants: The participants of this JobJobExtended. + :type: list[int] """ - self._start_time = start_time + + self._participants = participants @property def paths(self): @@ -383,30 +407,9 @@ def paths(self, paths): :param paths: The paths of this JobJobExtended. :type: list[str] """ + self._paths = paths - @property - def retries_remaining(self): - """ - Gets the retries_remaining of this JobJobExtended. - The number of retries remaining if the job fails. - - :return: The retries_remaining of this JobJobExtended. - :rtype: int - """ - return self._retries_remaining - - @retries_remaining.setter - def retries_remaining(self, retries_remaining): - """ - Sets the retries_remaining of this JobJobExtended. - The number of retries remaining if the job fails. - - :param retries_remaining: The retries_remaining of this JobJobExtended. - :type: int - """ - self._retries_remaining = retries_remaining - @property def progress(self): """ @@ -427,8 +430,32 @@ def progress(self, progress): :param progress: The progress of this JobJobExtended. :type: str """ + self._progress = progress + @property + def retries_remaining(self): + """ + Gets the retries_remaining of this JobJobExtended. + The number of retries remaining if the job fails. + + :return: The retries_remaining of this JobJobExtended. + :rtype: int + """ + return self._retries_remaining + + @retries_remaining.setter + def retries_remaining(self, retries_remaining): + """ + Sets the retries_remaining of this JobJobExtended. + The number of retries remaining if the job fails. + + :param retries_remaining: The retries_remaining of this JobJobExtended. + :type: int + """ + + self._retries_remaining = retries_remaining + @property def running_time(self): """ @@ -449,123 +476,129 @@ def running_time(self, running_time): :param running_time: The running_time of this JobJobExtended. :type: int """ + self._running_time = running_time @property - def waiting_on(self): + def start_time(self): """ - Gets the waiting_on of this JobJobExtended. - The ID of a job for which this job is waiting. + Gets the start_time of this JobJobExtended. + The time the job started, in seconds since the Epoch. - :return: The waiting_on of this JobJobExtended. + :return: The start_time of this JobJobExtended. :rtype: int """ - return self._waiting_on + return self._start_time - @waiting_on.setter - def waiting_on(self, waiting_on): + @start_time.setter + def start_time(self, start_time): """ - Sets the waiting_on of this JobJobExtended. - The ID of a job for which this job is waiting. + Sets the start_time of this JobJobExtended. + The time the job started, in seconds since the Epoch. - :param waiting_on: The waiting_on of this JobJobExtended. + :param start_time: The start_time of this JobJobExtended. :type: int """ - self._waiting_on = waiting_on + + self._start_time = start_time @property - def state(self): + def total_phases(self): """ - Gets the state of this JobJobExtended. - Desired new state of this job instance. + Gets the total_phases of this JobJobExtended. + The total number of phases of the job type. - :return: The state of this JobJobExtended. - :rtype: str + :return: The total_phases of this JobJobExtended. + :rtype: int """ - return self._state + return self._total_phases - @state.setter - def state(self, state): + @total_phases.setter + def total_phases(self, total_phases): """ - Sets the state of this JobJobExtended. - Desired new state of this job instance. + Sets the total_phases of this JobJobExtended. + The total number of phases of the job type. - :param state: The state of this JobJobExtended. - :type: str + :param total_phases: The total_phases of this JobJobExtended. + :type: int """ - allowed_values = ["run", "pause", "cancel"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state`, must be one of {0}" - .format(allowed_values) - ) - self._state = state + + self._total_phases = total_phases @property - def id(self): + def type(self): """ - Gets the id of this JobJobExtended. - The ID of the job. + Gets the type of this JobJobExtended. + The job type. - :return: The id of this JobJobExtended. - :rtype: int + :return: The type of this JobJobExtended. + :rtype: str """ - return self._id + return self._type - @id.setter - def id(self, id): + @type.setter + def type(self, type): """ - Sets the id of this JobJobExtended. - The ID of the job. + Sets the type of this JobJobExtended. + The job type. - :param id: The id of this JobJobExtended. - :type: int + :param type: The type of this JobJobExtended. + :type: str """ - self._id = id + + self._type = type @property - def policy(self): + def waiting_on(self): """ - Gets the policy of this JobJobExtended. - Impact policy of this job instance. + Gets the waiting_on of this JobJobExtended. + The ID of a job for which this job is waiting. - :return: The policy of this JobJobExtended. - :rtype: str + :return: The waiting_on of this JobJobExtended. + :rtype: int """ - return self._policy + return self._waiting_on - @policy.setter - def policy(self, policy): + @waiting_on.setter + def waiting_on(self, waiting_on): """ - Sets the policy of this JobJobExtended. - Impact policy of this job instance. + Sets the waiting_on of this JobJobExtended. + The ID of a job for which this job is waiting. - :param policy: The policy of this JobJobExtended. - :type: str + :param waiting_on: The waiting_on of this JobJobExtended. + :type: int """ - self._policy = policy + + self._waiting_on = waiting_on @property - def participants(self): + def waiting_reason(self): """ - Gets the participants of this JobJobExtended. - The set of devids working on the job. + Gets the waiting_reason of this JobJobExtended. + The reason the job is waiting. - :return: The participants of this JobJobExtended. - :rtype: list[int] + :return: The waiting_reason of this JobJobExtended. + :rtype: str """ - return self._participants + return self._waiting_reason - @participants.setter - def participants(self, participants): + @waiting_reason.setter + def waiting_reason(self, waiting_reason): """ - Sets the participants of this JobJobExtended. - The set of devids working on the job. + Sets the waiting_reason of this JobJobExtended. + The reason the job is waiting. - :param participants: The participants of this JobJobExtended. - :type: list[int] + :param waiting_reason: The waiting_reason of this JobJobExtended. + :type: str """ - self._participants = participants + allowed_values = ["blocked_by_priority"] + if waiting_reason not in allowed_values: + raise ValueError( + "Invalid value for `waiting_reason`, must be one of {0}" + .format(allowed_values) + ) + + self._waiting_reason = waiting_reason def to_dict(self): """ @@ -582,6 +615,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -599,14 +638,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_prepair_params.py b/isi_sdk/models/job_job_prepair_params.py index daebfc44b..4cbb718bc 100644 --- a/isi_sdk/models/job_job_prepair_params.py +++ b/isi_sdk/models/job_job_prepair_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobPrepairParams(object): @@ -81,6 +82,7 @@ def mapping_type(self, mapping_type): "Invalid value for `mapping_type`, must be one of {0}" .format(allowed_values) ) + self._mapping_type = mapping_type @property @@ -109,6 +111,7 @@ def mode(self, mode): "Invalid value for `mode`, must be one of {0}" .format(allowed_values) ) + self._mode = mode @property @@ -131,6 +134,7 @@ def template(self, template): :param template: The template of this JobJobPrepairParams. :type: str """ + self._template = template @property @@ -153,6 +157,7 @@ def zone(self, zone): :param zone: The zone of this JobJobPrepairParams. :type: str """ + self._zone = zone def to_dict(self): @@ -170,6 +175,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -187,14 +198,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_smartpoolstree_params.py b/isi_sdk/models/job_job_smartpoolstree_params.py index 80c796cd4..e78356736 100644 --- a/isi_sdk/models/job_job_smartpoolstree_params.py +++ b/isi_sdk/models/job_job_smartpoolstree_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobSmartpoolstreeParams(object): @@ -75,6 +76,7 @@ def directory_only(self, directory_only): :param directory_only: The directory_only of this JobJobSmartpoolstreeParams. :type: bool """ + self._directory_only = directory_only @property @@ -97,6 +99,7 @@ def nop(self, nop): :param nop: The nop of this JobJobSmartpoolstreeParams. :type: bool """ + self._nop = nop @property @@ -119,6 +122,7 @@ def policy_only(self, policy_only): :param policy_only: The policy_only of this JobJobSmartpoolstreeParams. :type: bool """ + self._policy_only = policy_only @property @@ -141,6 +145,7 @@ def recurse(self, recurse): :param recurse: The recurse of this JobJobSmartpoolstreeParams. :type: bool """ + self._recurse = recurse def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_snaprevert_params.py b/isi_sdk/models/job_job_snaprevert_params.py index f2f8df50b..acabdebb4 100644 --- a/isi_sdk/models/job_job_snaprevert_params.py +++ b/isi_sdk/models/job_job_snaprevert_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobSnaprevertParams(object): @@ -66,6 +67,12 @@ def snapid(self, snapid): :param snapid: The snapid of this JobJobSnaprevertParams. :type: int """ + + if not snapid: + raise ValueError("Invalid value for `snapid`, must not be `None`") + if snapid < 1.0: + raise ValueError("Invalid value for `snapid`, must be a value greater than or equal to `1.0`") + self._snapid = snapid def to_dict(self): @@ -83,6 +90,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +113,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_summary.py b/isi_sdk/models/job_job_summary.py index d4757e729..856ddd0db 100644 --- a/isi_sdk/models/job_job_summary.py +++ b/isi_sdk/models/job_job_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobSummary(object): @@ -66,6 +67,7 @@ def summary(self, summary): :param summary: The summary of this JobJobSummary. :type: JobJobSummarySummary """ + self._summary = summary def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_job_summary_summary.py b/isi_sdk/models/job_job_summary_summary.py index 880a8ba43..0d2366069 100644 --- a/isi_sdk/models/job_job_summary_summary.py +++ b/isi_sdk/models/job_job_summary_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobSummarySummary(object): @@ -87,6 +88,7 @@ def cluster_is_degraded(self, cluster_is_degraded): :param cluster_is_degraded: The cluster_is_degraded of this JobJobSummarySummary. :type: bool """ + self._cluster_is_degraded = cluster_is_degraded @property @@ -109,6 +111,7 @@ def connected(self, connected): :param connected: The connected of this JobJobSummarySummary. :type: bool """ + self._connected = connected @property @@ -131,6 +134,7 @@ def coordinator(self, coordinator): :param coordinator: The coordinator of this JobJobSummarySummary. :type: int """ + self._coordinator = coordinator @property @@ -153,6 +157,7 @@ def disconnected_nodes(self, disconnected_nodes): :param disconnected_nodes: The disconnected_nodes of this JobJobSummarySummary. :type: list[int] """ + self._disconnected_nodes = disconnected_nodes @property @@ -175,6 +180,7 @@ def down_or_read_only_nodes(self, down_or_read_only_nodes): :param down_or_read_only_nodes: The down_or_read_only_nodes of this JobJobSummarySummary. :type: bool """ + self._down_or_read_only_nodes = down_or_read_only_nodes @property @@ -197,6 +203,7 @@ def next_jid(self, next_jid): :param next_jid: The next_jid of this JobJobSummarySummary. :type: int """ + self._next_jid = next_jid @property @@ -219,6 +226,7 @@ def run_degraded(self, run_degraded): :param run_degraded: The run_degraded of this JobJobSummarySummary. :type: bool """ + self._run_degraded = run_degraded @property @@ -241,6 +249,7 @@ def stats_ready(self, stats_ready): :param stats_ready: The stats_ready of this JobJobSummarySummary. :type: bool """ + self._stats_ready = stats_ready def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_jobs.py b/isi_sdk/models/job_jobs.py index efdbb1a8b..d370bd55a 100644 --- a/isi_sdk/models/job_jobs.py +++ b/isi_sdk/models/job_jobs.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobs(object): @@ -66,6 +67,7 @@ def jobs(self, jobs): :param jobs: The jobs of this JobJobs. :type: list[JobJobExtended] """ + self._jobs = jobs def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_jobs_extended.py b/isi_sdk/models/job_jobs_extended.py index 6b112323f..21b8e63ea 100644 --- a/isi_sdk/models/job_jobs_extended.py +++ b/isi_sdk/models/job_jobs_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobJobsExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'jobs': 'list[JobJobExtended]', 'resume': 'str', - 'total': 'int', - 'jobs': 'list[JobJobExtended]' + 'total': 'int' } self.attribute_map = { + 'jobs': 'jobs', 'resume': 'resume', - 'total': 'total', - 'jobs': 'jobs' + 'total': 'total' } + self._jobs = None self._resume = None self._total = None - self._jobs = None + + @property + def jobs(self): + """ + Gets the jobs of this JobJobsExtended. + + + :return: The jobs of this JobJobsExtended. + :rtype: list[JobJobExtended] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """ + Sets the jobs of this JobJobsExtended. + + + :param jobs: The jobs of this JobJobsExtended. + :type: list[JobJobExtended] + """ + + self._jobs = jobs @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this JobJobsExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this JobJobsExtended. :type: int """ + self._total = total - @property - def jobs(self): - """ - Gets the jobs of this JobJobsExtended. - - - :return: The jobs of this JobJobsExtended. - :rtype: list[JobJobExtended] - """ - return self._jobs - - @jobs.setter - def jobs(self, jobs): - """ - Sets the jobs of this JobJobsExtended. - - - :param jobs: The jobs of this JobJobsExtended. - :type: list[JobJobExtended] - """ - self._jobs = jobs - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_policies.py b/isi_sdk/models/job_policies.py index 31f93bccd..8176a155d 100644 --- a/isi_sdk/models/job_policies.py +++ b/isi_sdk/models/job_policies.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobPolicies(object): @@ -66,6 +67,7 @@ def types(self, types): :param types: The types of this JobPolicies. :type: list[JobPoliciesType] """ + self._types = types def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_policies_extended.py b/isi_sdk/models/job_policies_extended.py index d7951a1c0..05dcac05d 100644 --- a/isi_sdk/models/job_policies_extended.py +++ b/isi_sdk/models/job_policies_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobPoliciesExtended(object): @@ -39,20 +40,17 @@ def __init__(self): self.swagger_types = { 'policies': 'list[JobPoliciesType]', 'resume': 'str', - 'types': 'list[JobPoliciesType]', 'total': 'int' } self.attribute_map = { 'policies': 'policies', 'resume': 'resume', - 'types': 'types', 'total': 'total' } self._policies = None self._resume = None - self._types = None self._total = None @property @@ -75,6 +73,7 @@ def policies(self, policies): :param policies: The policies of this JobPoliciesExtended. :type: list[JobPoliciesType] """ + self._policies = policies @property @@ -97,30 +96,9 @@ def resume(self, resume): :param resume: The resume of this JobPoliciesExtended. :type: str """ + self._resume = resume - @property - def types(self): - """ - Gets the types of this JobPoliciesExtended. - - - :return: The types of this JobPoliciesExtended. - :rtype: list[JobPoliciesType] - """ - return self._types - - @types.setter - def types(self, types): - """ - Sets the types of this JobPoliciesExtended. - - - :param types: The types of this JobPoliciesExtended. - :type: list[JobPoliciesType] - """ - self._types = types - @property def total(self): """ @@ -141,6 +119,7 @@ def total(self, total): :param total: The total of this JobPoliciesExtended. :type: int """ + self._total = total def to_dict(self): @@ -158,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_policies_type.py b/isi_sdk/models/job_policies_type.py index 18fa2479d..cb562b262 100644 --- a/isi_sdk/models/job_policies_type.py +++ b/isi_sdk/models/job_policies_type.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobPoliciesType(object): @@ -78,6 +79,7 @@ def description(self, description): :param description: The description of this JobPoliciesType. :type: str """ + self._description = description @property @@ -100,6 +102,7 @@ def id(self, id): :param id: The id of this JobPoliciesType. :type: str """ + self._id = id @property @@ -122,6 +125,7 @@ def intervals(self, intervals): :param intervals: The intervals of this JobPoliciesType. :type: list[JobPolicyInterval] """ + self._intervals = intervals @property @@ -144,6 +148,12 @@ def name(self, name): :param name: The name of this JobPoliciesType. :type: str """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) < 1: + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") + self._name = name @property @@ -166,6 +176,7 @@ def system(self, system): :param system: The system of this JobPoliciesType. :type: bool """ + self._system = system def to_dict(self): @@ -183,6 +194,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +217,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_policy.py b/isi_sdk/models/job_policy.py index 63d09bd3d..4f0fbe06d 100644 --- a/isi_sdk/models/job_policy.py +++ b/isi_sdk/models/job_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobPolicy(object): @@ -69,6 +70,7 @@ def description(self, description): :param description: The description of this JobPolicy. :type: str """ + self._description = description @property @@ -91,6 +93,7 @@ def intervals(self, intervals): :param intervals: The intervals of this JobPolicy. :type: list[JobPolicyInterval] """ + self._intervals = intervals def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_policy_create_params.py b/isi_sdk/models/job_policy_create_params.py index 778ef2c33..67847eed7 100644 --- a/isi_sdk/models/job_policy_create_params.py +++ b/isi_sdk/models/job_policy_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobPolicyCreateParams(object): @@ -37,42 +38,20 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', 'description': 'str', - 'intervals': 'list[JobPolicyInterval]' + 'intervals': 'list[JobPolicyInterval]', + 'name': 'str' } self.attribute_map = { - 'name': 'name', 'description': 'description', - 'intervals': 'intervals' + 'intervals': 'intervals', + 'name': 'name' } - self._name = None self._description = None self._intervals = None - - @property - def name(self): - """ - Gets the name of this JobPolicyCreateParams. - The name of the impact policy. - - :return: The name of this JobPolicyCreateParams. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this JobPolicyCreateParams. - The name of the impact policy. - - :param name: The name of this JobPolicyCreateParams. - :type: str - """ - self._name = name + self._name = None @property def description(self): @@ -94,6 +73,7 @@ def description(self, description): :param description: The description of this JobPolicyCreateParams. :type: str """ + self._description = description @property @@ -116,8 +96,37 @@ def intervals(self, intervals): :param intervals: The intervals of this JobPolicyCreateParams. :type: list[JobPolicyInterval] """ + self._intervals = intervals + @property + def name(self): + """ + Gets the name of this JobPolicyCreateParams. + The name of the impact policy. + + :return: The name of this JobPolicyCreateParams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this JobPolicyCreateParams. + The name of the impact policy. + + :param name: The name of this JobPolicyCreateParams. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) < 1: + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") + + self._name = name + def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +142,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +165,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_policy_interval.py b/isi_sdk/models/job_policy_interval.py index e3319c082..504dcfd61 100644 --- a/isi_sdk/models/job_policy_interval.py +++ b/isi_sdk/models/job_policy_interval.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobPolicyInterval(object): @@ -72,6 +73,7 @@ def begin(self, begin): :param begin: The begin of this JobPolicyInterval. :type: str """ + self._begin = begin @property @@ -94,6 +96,7 @@ def end(self, end): :param end: The end of this JobPolicyInterval. :type: str """ + self._end = end @property @@ -122,6 +125,7 @@ def impact(self, impact): "Invalid value for `impact`, must be one of {0}" .format(allowed_values) ) + self._impact = impact def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_recent.py b/isi_sdk/models/job_recent.py index fcfa55e6c..5eea0c947 100644 --- a/isi_sdk/models/job_recent.py +++ b/isi_sdk/models/job_recent.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobRecent(object): @@ -69,6 +70,7 @@ def recent(self, recent): :param recent: The recent of this JobRecent. :type: list[JobRecentRecentItem] """ + self._recent = recent @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this JobRecent. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_recent_recent_item.py b/isi_sdk/models/job_recent_recent_item.py index fdb6863e8..0465f513e 100644 --- a/isi_sdk/models/job_recent_recent_item.py +++ b/isi_sdk/models/job_recent_recent_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobRecentRecentItem(object): @@ -129,6 +130,7 @@ def control_state(self, control_state): "Invalid value for `control_state`, must be one of {0}" .format(allowed_values) ) + self._control_state = control_state @property @@ -151,6 +153,7 @@ def create_time(self, create_time): :param create_time: The create_time of this JobRecentRecentItem. :type: int """ + self._create_time = create_time @property @@ -173,6 +176,7 @@ def current_phase(self, current_phase): :param current_phase: The current_phase of this JobRecentRecentItem. :type: int """ + self._current_phase = current_phase @property @@ -195,6 +199,7 @@ def description(self, description): :param description: The description of this JobRecentRecentItem. :type: str """ + self._description = description @property @@ -217,6 +222,7 @@ def end_time(self, end_time): :param end_time: The end_time of this JobRecentRecentItem. :type: int """ + self._end_time = end_time @property @@ -239,6 +245,12 @@ def id(self, id): :param id: The id of this JobRecentRecentItem. :type: int """ + + if not id: + raise ValueError("Invalid value for `id`, must not be `None`") + if id < 1.0: + raise ValueError("Invalid value for `id`, must be a value greater than or equal to `1.0`") + self._id = id @property @@ -267,6 +279,7 @@ def impact(self, impact): "Invalid value for `impact`, must be one of {0}" .format(allowed_values) ) + self._impact = impact @property @@ -289,6 +302,7 @@ def participants(self, participants): :param participants: The participants of this JobRecentRecentItem. :type: list[int] """ + self._participants = participants @property @@ -311,6 +325,7 @@ def paths(self, paths): :param paths: The paths of this JobRecentRecentItem. :type: list[str] """ + self._paths = paths @property @@ -333,6 +348,7 @@ def policy(self, policy): :param policy: The policy of this JobRecentRecentItem. :type: str """ + self._policy = policy @property @@ -355,6 +371,14 @@ def priority(self, priority): :param priority: The priority of this JobRecentRecentItem. :type: int """ + + if not priority: + raise ValueError("Invalid value for `priority`, must not be `None`") + if priority > 10.0: + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `10.0`") + if priority < 1.0: + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1.0`") + self._priority = priority @property @@ -377,6 +401,7 @@ def progress(self, progress): :param progress: The progress of this JobRecentRecentItem. :type: str """ + self._progress = progress @property @@ -399,6 +424,7 @@ def retries_remaining(self, retries_remaining): :param retries_remaining: The retries_remaining of this JobRecentRecentItem. :type: int """ + self._retries_remaining = retries_remaining @property @@ -421,6 +447,7 @@ def running_time(self, running_time): :param running_time: The running_time of this JobRecentRecentItem. :type: int """ + self._running_time = running_time @property @@ -443,6 +470,7 @@ def start_time(self, start_time): :param start_time: The start_time of this JobRecentRecentItem. :type: int """ + self._start_time = start_time @property @@ -471,6 +499,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property @@ -493,6 +522,7 @@ def total_phases(self, total_phases): :param total_phases: The total_phases of this JobRecentRecentItem. :type: int """ + self._total_phases = total_phases @property @@ -515,6 +545,7 @@ def type(self, type): :param type: The type of this JobRecentRecentItem. :type: str """ + self._type = type @property @@ -537,6 +568,7 @@ def waiting_on(self, waiting_on): :param waiting_on: The waiting_on of this JobRecentRecentItem. :type: int """ + self._waiting_on = waiting_on @property @@ -565,6 +597,7 @@ def waiting_reason(self, waiting_reason): "Invalid value for `waiting_reason`, must be one of {0}" .format(allowed_values) ) + self._waiting_reason = waiting_reason def to_dict(self): @@ -582,6 +615,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -599,14 +638,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_reports.py b/isi_sdk/models/job_reports.py index 88382ca4c..e8b543717 100644 --- a/isi_sdk/models/job_reports.py +++ b/isi_sdk/models/job_reports.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobReports(object): @@ -72,6 +73,7 @@ def reports(self, reports): :param reports: The reports of this JobReports. :type: list[JobEvent] """ + self._reports = reports @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this JobReports. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this JobReports. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics.py b/isi_sdk/models/job_statistics.py index 51a144503..434decb6a 100644 --- a/isi_sdk/models/job_statistics.py +++ b/isi_sdk/models/job_statistics.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatistics(object): @@ -69,6 +70,7 @@ def jobs(self, jobs): :param jobs: The jobs of this JobStatistics. :type: list[JobStatisticsJob] """ + self._jobs = jobs @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this JobStatistics. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job.py b/isi_sdk/models/job_statistics_job.py index adac7a60c..6c0ea42f9 100644 --- a/isi_sdk/models/job_statistics_job.py +++ b/isi_sdk/models/job_statistics_job.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJob(object): @@ -75,6 +76,7 @@ def job_id(self, job_id): :param job_id: The job_id of this JobStatisticsJob. :type: int """ + self._job_id = job_id @property @@ -97,6 +99,7 @@ def nodes(self, nodes): :param nodes: The nodes of this JobStatisticsJob. :type: list[JobStatisticsJobNode] """ + self._nodes = nodes @property @@ -119,6 +122,7 @@ def phase(self, phase): :param phase: The phase of this JobStatisticsJob. :type: int """ + self._phase = phase @property @@ -141,6 +145,7 @@ def total_nodes(self, total_nodes): :param total_nodes: The total_nodes of this JobStatisticsJob. :type: int """ + self._total_nodes = total_nodes def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node.py b/isi_sdk/models/job_statistics_job_node.py index 353de6912..4ba0502a1 100644 --- a/isi_sdk/models/job_statistics_job_node.py +++ b/isi_sdk/models/job_statistics_job_node.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNode(object): @@ -84,6 +85,7 @@ def cpu(self, cpu): :param cpu: The cpu of this JobStatisticsJobNode. :type: JobStatisticsJobNodeCpu """ + self._cpu = cpu @property @@ -106,6 +108,7 @@ def io(self, io): :param io: The io of this JobStatisticsJobNode. :type: JobStatisticsJobNodeIo """ + self._io = io @property @@ -128,6 +131,7 @@ def memory(self, memory): :param memory: The memory of this JobStatisticsJobNode. :type: JobStatisticsJobNodeMemory """ + self._memory = memory @property @@ -150,6 +154,7 @@ def node(self, node): :param node: The node of this JobStatisticsJobNode. :type: int """ + self._node = node @property @@ -172,6 +177,7 @@ def pid(self, pid): :param pid: The pid of this JobStatisticsJobNode. :type: int """ + self._pid = pid @property @@ -194,6 +200,7 @@ def total_workers(self, total_workers): :param total_workers: The total_workers of this JobStatisticsJobNode. :type: int """ + self._total_workers = total_workers @property @@ -216,6 +223,7 @@ def workers(self, workers): :param workers: The workers of this JobStatisticsJobNode. :type: list[JobStatisticsJobNodeWorker] """ + self._workers = workers def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node_cpu.py b/isi_sdk/models/job_statistics_job_node_cpu.py index 53886a4c4..194715710 100644 --- a/isi_sdk/models/job_statistics_job_node_cpu.py +++ b/isi_sdk/models/job_statistics_job_node_cpu.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNodeCpu(object): @@ -75,6 +76,7 @@ def average(self, average): :param average: The average of this JobStatisticsJobNodeCpu. :type: float """ + self._average = average @property @@ -97,6 +99,7 @@ def current(self, current): :param current: The current of this JobStatisticsJobNodeCpu. :type: float """ + self._current = current @property @@ -119,6 +122,7 @@ def maximum(self, maximum): :param maximum: The maximum of this JobStatisticsJobNodeCpu. :type: float """ + self._maximum = maximum @property @@ -141,6 +145,7 @@ def minimum(self, minimum): :param minimum: The minimum of this JobStatisticsJobNodeCpu. :type: float """ + self._minimum = minimum def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node_io.py b/isi_sdk/models/job_statistics_job_node_io.py index b9d0841bb..96fd8505c 100644 --- a/isi_sdk/models/job_statistics_job_node_io.py +++ b/isi_sdk/models/job_statistics_job_node_io.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNodeIo(object): @@ -69,6 +70,7 @@ def read(self, read): :param read: The read of this JobStatisticsJobNodeIo. :type: JobStatisticsJobNodeIoRead """ + self._read = read @property @@ -91,6 +93,7 @@ def write(self, write): :param write: The write of this JobStatisticsJobNodeIo. :type: JobStatisticsJobNodeIoWrite """ + self._write = write def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node_io_read.py b/isi_sdk/models/job_statistics_job_node_io_read.py index 88a9d4696..e1498fb42 100644 --- a/isi_sdk/models/job_statistics_job_node_io_read.py +++ b/isi_sdk/models/job_statistics_job_node_io_read.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNodeIoRead(object): @@ -69,6 +70,7 @@ def bytes(self, bytes): :param bytes: The bytes of this JobStatisticsJobNodeIoRead. :type: int """ + self._bytes = bytes @property @@ -91,6 +93,7 @@ def ops(self, ops): :param ops: The ops of this JobStatisticsJobNodeIoRead. :type: int """ + self._ops = ops def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node_io_write.py b/isi_sdk/models/job_statistics_job_node_io_write.py index a8405c22e..823f03c6b 100644 --- a/isi_sdk/models/job_statistics_job_node_io_write.py +++ b/isi_sdk/models/job_statistics_job_node_io_write.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNodeIoWrite(object): @@ -69,6 +70,7 @@ def bytes(self, bytes): :param bytes: The bytes of this JobStatisticsJobNodeIoWrite. :type: int """ + self._bytes = bytes @property @@ -91,6 +93,7 @@ def ops(self, ops): :param ops: The ops of this JobStatisticsJobNodeIoWrite. :type: int """ + self._ops = ops def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node_memory.py b/isi_sdk/models/job_statistics_job_node_memory.py index 8d04438cf..58efadcb1 100644 --- a/isi_sdk/models/job_statistics_job_node_memory.py +++ b/isi_sdk/models/job_statistics_job_node_memory.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNodeMemory(object): @@ -69,6 +70,7 @@ def physical(self, physical): :param physical: The physical of this JobStatisticsJobNodeMemory. :type: JobStatisticsJobNodeMemoryPhysical """ + self._physical = physical @property @@ -91,6 +93,7 @@ def virtual(self, virtual): :param virtual: The virtual of this JobStatisticsJobNodeMemory. :type: JobStatisticsJobNodeMemoryVirtual """ + self._virtual = virtual def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node_memory_physical.py b/isi_sdk/models/job_statistics_job_node_memory_physical.py index 235338324..e5ad94336 100644 --- a/isi_sdk/models/job_statistics_job_node_memory_physical.py +++ b/isi_sdk/models/job_statistics_job_node_memory_physical.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNodeMemoryPhysical(object): @@ -75,6 +76,7 @@ def average(self, average): :param average: The average of this JobStatisticsJobNodeMemoryPhysical. :type: float """ + self._average = average @property @@ -97,6 +99,7 @@ def current(self, current): :param current: The current of this JobStatisticsJobNodeMemoryPhysical. :type: float """ + self._current = current @property @@ -119,6 +122,7 @@ def maximum(self, maximum): :param maximum: The maximum of this JobStatisticsJobNodeMemoryPhysical. :type: float """ + self._maximum = maximum @property @@ -141,6 +145,7 @@ def minimum(self, minimum): :param minimum: The minimum of this JobStatisticsJobNodeMemoryPhysical. :type: float """ + self._minimum = minimum def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node_memory_virtual.py b/isi_sdk/models/job_statistics_job_node_memory_virtual.py index 5f2ba372c..88d7cc9b7 100644 --- a/isi_sdk/models/job_statistics_job_node_memory_virtual.py +++ b/isi_sdk/models/job_statistics_job_node_memory_virtual.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNodeMemoryVirtual(object): @@ -75,6 +76,7 @@ def average(self, average): :param average: The average of this JobStatisticsJobNodeMemoryVirtual. :type: float """ + self._average = average @property @@ -97,6 +99,7 @@ def current(self, current): :param current: The current of this JobStatisticsJobNodeMemoryVirtual. :type: float """ + self._current = current @property @@ -119,6 +122,7 @@ def maximum(self, maximum): :param maximum: The maximum of this JobStatisticsJobNodeMemoryVirtual. :type: float """ + self._maximum = maximum @property @@ -141,6 +145,7 @@ def minimum(self, minimum): :param minimum: The minimum of this JobStatisticsJobNodeMemoryVirtual. :type: float """ + self._minimum = minimum def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_statistics_job_node_worker.py b/isi_sdk/models/job_statistics_job_node_worker.py index e83cb1431..1b900a2c9 100644 --- a/isi_sdk/models/job_statistics_job_node_worker.py +++ b/isi_sdk/models/job_statistics_job_node_worker.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobStatisticsJobNodeWorker(object): @@ -75,6 +76,7 @@ def stw(self, stw): :param stw: The stw of this JobStatisticsJobNodeWorker. :type: float """ + self._stw = stw @property @@ -97,6 +99,7 @@ def task(self, task): :param task: The task of this JobStatisticsJobNodeWorker. :type: str """ + self._task = task @property @@ -119,6 +122,7 @@ def task_result(self, task_result): :param task_result: The task_result of this JobStatisticsJobNodeWorker. :type: str """ + self._task_result = task_result @property @@ -141,6 +145,7 @@ def worker(self, worker): :param worker: The worker of this JobStatisticsJobNodeWorker. :type: int """ + self._worker = worker def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_type.py b/isi_sdk/models/job_type.py index cbd5c1b23..b172742e4 100644 --- a/isi_sdk/models/job_type.py +++ b/isi_sdk/models/job_type.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobType(object): @@ -75,6 +76,7 @@ def enabled(self, enabled): :param enabled: The enabled of this JobType. :type: bool """ + self._enabled = enabled @property @@ -97,6 +99,7 @@ def policy(self, policy): :param policy: The policy of this JobType. :type: str """ + self._policy = policy @property @@ -119,6 +122,14 @@ def priority(self, priority): :param priority: The priority of this JobType. :type: int """ + + if not priority: + raise ValueError("Invalid value for `priority`, must not be `None`") + if priority > 10.0: + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `10.0`") + if priority < 1.0: + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1.0`") + self._priority = priority @property @@ -141,6 +152,7 @@ def schedule(self, schedule): :param schedule: The schedule of this JobType. :type: str """ + self._schedule = schedule def to_dict(self): @@ -158,6 +170,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +193,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_type_extended.py b/isi_sdk/models/job_type_extended.py index c8365a5c2..21374f461 100644 --- a/isi_sdk/models/job_type_extended.py +++ b/isi_sdk/models/job_type_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobTypeExtended(object): @@ -37,126 +38,137 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'enabled': 'bool', + 'policy': 'str', + 'priority': 'int', 'schedule': 'str', + 'allow_multiple_instances': 'bool', + 'description': 'str', 'exclusion_set': 'str', 'hidden': 'bool', - 'description': 'str', - 'allow_multiple_instances': 'bool', - 'id': 'str', - 'priority': 'int', - 'enabled': 'bool', - 'policy': 'str' + 'id': 'str' } self.attribute_map = { + 'enabled': 'enabled', + 'policy': 'policy', + 'priority': 'priority', 'schedule': 'schedule', + 'allow_multiple_instances': 'allow_multiple_instances', + 'description': 'description', 'exclusion_set': 'exclusion_set', 'hidden': 'hidden', - 'description': 'description', - 'allow_multiple_instances': 'allow_multiple_instances', - 'id': 'id', - 'priority': 'priority', - 'enabled': 'enabled', - 'policy': 'policy' + 'id': 'id' } + self._enabled = None + self._policy = None + self._priority = None self._schedule = None + self._allow_multiple_instances = None + self._description = None self._exclusion_set = None self._hidden = None - self._description = None - self._allow_multiple_instances = None self._id = None - self._priority = None - self._enabled = None - self._policy = None @property - def schedule(self): + def enabled(self): """ - Gets the schedule of this JobTypeExtended. - The schedule on which this job type is queued, if any. + Gets the enabled of this JobTypeExtended. + Whether the job type is enabled and able to run. - :return: The schedule of this JobTypeExtended. - :rtype: str + :return: The enabled of this JobTypeExtended. + :rtype: bool """ - return self._schedule + return self._enabled - @schedule.setter - def schedule(self, schedule): + @enabled.setter + def enabled(self, enabled): """ - Sets the schedule of this JobTypeExtended. - The schedule on which this job type is queued, if any. + Sets the enabled of this JobTypeExtended. + Whether the job type is enabled and able to run. - :param schedule: The schedule of this JobTypeExtended. - :type: str + :param enabled: The enabled of this JobTypeExtended. + :type: bool """ - self._schedule = schedule + + self._enabled = enabled @property - def exclusion_set(self): + def policy(self): """ - Gets the exclusion_set of this JobTypeExtended. - The set(s) of mutually-exclusive job types to which this job belongs. No job in this set may run with any other job in this set. Obsolete; this value will always be an empty string, as exclusion sets are no longer a job type property. + Gets the policy of this JobTypeExtended. + Default impact policy of this job type. - :return: The exclusion_set of this JobTypeExtended. + :return: The policy of this JobTypeExtended. :rtype: str """ - return self._exclusion_set + return self._policy - @exclusion_set.setter - def exclusion_set(self, exclusion_set): + @policy.setter + def policy(self, policy): """ - Sets the exclusion_set of this JobTypeExtended. - The set(s) of mutually-exclusive job types to which this job belongs. No job in this set may run with any other job in this set. Obsolete; this value will always be an empty string, as exclusion sets are no longer a job type property. + Sets the policy of this JobTypeExtended. + Default impact policy of this job type. - :param exclusion_set: The exclusion_set of this JobTypeExtended. + :param policy: The policy of this JobTypeExtended. :type: str """ - self._exclusion_set = exclusion_set + + self._policy = policy @property - def hidden(self): + def priority(self): """ - Gets the hidden of this JobTypeExtended. - Whether this job type is normally visible in the UI. + Gets the priority of this JobTypeExtended. + Default priority of this job type; lower numbers preempt higher numbers. - :return: The hidden of this JobTypeExtended. - :rtype: bool + :return: The priority of this JobTypeExtended. + :rtype: int """ - return self._hidden + return self._priority - @hidden.setter - def hidden(self, hidden): + @priority.setter + def priority(self, priority): """ - Sets the hidden of this JobTypeExtended. - Whether this job type is normally visible in the UI. + Sets the priority of this JobTypeExtended. + Default priority of this job type; lower numbers preempt higher numbers. - :param hidden: The hidden of this JobTypeExtended. - :type: bool + :param priority: The priority of this JobTypeExtended. + :type: int """ - self._hidden = hidden + + if not priority: + raise ValueError("Invalid value for `priority`, must not be `None`") + if priority > 10.0: + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `10.0`") + if priority < 1.0: + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1.0`") + + self._priority = priority @property - def description(self): + def schedule(self): """ - Gets the description of this JobTypeExtended. - Brief description of the job type. + Gets the schedule of this JobTypeExtended. + The schedule on which this job type is queued, if any. - :return: The description of this JobTypeExtended. + :return: The schedule of this JobTypeExtended. :rtype: str """ - return self._description + return self._schedule - @description.setter - def description(self, description): + @schedule.setter + def schedule(self, schedule): """ - Sets the description of this JobTypeExtended. - Brief description of the job type. + Sets the schedule of this JobTypeExtended. + The schedule on which this job type is queued, if any. - :param description: The description of this JobTypeExtended. + :param schedule: The schedule of this JobTypeExtended. :type: str """ - self._description = description + + self._schedule = schedule @property def allow_multiple_instances(self): @@ -178,95 +190,100 @@ def allow_multiple_instances(self, allow_multiple_instances): :param allow_multiple_instances: The allow_multiple_instances of this JobTypeExtended. :type: bool """ + self._allow_multiple_instances = allow_multiple_instances @property - def id(self): + def description(self): """ - Gets the id of this JobTypeExtended. - Job type ID. + Gets the description of this JobTypeExtended. + Brief description of the job type. - :return: The id of this JobTypeExtended. + :return: The description of this JobTypeExtended. :rtype: str """ - return self._id + return self._description - @id.setter - def id(self, id): + @description.setter + def description(self, description): """ - Sets the id of this JobTypeExtended. - Job type ID. + Sets the description of this JobTypeExtended. + Brief description of the job type. - :param id: The id of this JobTypeExtended. + :param description: The description of this JobTypeExtended. :type: str """ - self._id = id + + self._description = description @property - def priority(self): + def exclusion_set(self): """ - Gets the priority of this JobTypeExtended. - Default priority of this job type; lower numbers preempt higher numbers. + Gets the exclusion_set of this JobTypeExtended. + The set(s) of mutually-exclusive job types to which this job belongs. No job in this set may run with any other job in this set. Obsolete; this value will always be an empty string, as exclusion sets are no longer a job type property. - :return: The priority of this JobTypeExtended. - :rtype: int + :return: The exclusion_set of this JobTypeExtended. + :rtype: str """ - return self._priority + return self._exclusion_set - @priority.setter - def priority(self, priority): + @exclusion_set.setter + def exclusion_set(self, exclusion_set): """ - Sets the priority of this JobTypeExtended. - Default priority of this job type; lower numbers preempt higher numbers. + Sets the exclusion_set of this JobTypeExtended. + The set(s) of mutually-exclusive job types to which this job belongs. No job in this set may run with any other job in this set. Obsolete; this value will always be an empty string, as exclusion sets are no longer a job type property. - :param priority: The priority of this JobTypeExtended. - :type: int + :param exclusion_set: The exclusion_set of this JobTypeExtended. + :type: str """ - self._priority = priority + + self._exclusion_set = exclusion_set @property - def enabled(self): + def hidden(self): """ - Gets the enabled of this JobTypeExtended. - Whether the job type is enabled and able to run. + Gets the hidden of this JobTypeExtended. + Whether this job type is normally visible in the UI. - :return: The enabled of this JobTypeExtended. + :return: The hidden of this JobTypeExtended. :rtype: bool """ - return self._enabled + return self._hidden - @enabled.setter - def enabled(self, enabled): + @hidden.setter + def hidden(self, hidden): """ - Sets the enabled of this JobTypeExtended. - Whether the job type is enabled and able to run. + Sets the hidden of this JobTypeExtended. + Whether this job type is normally visible in the UI. - :param enabled: The enabled of this JobTypeExtended. + :param hidden: The hidden of this JobTypeExtended. :type: bool """ - self._enabled = enabled + + self._hidden = hidden @property - def policy(self): + def id(self): """ - Gets the policy of this JobTypeExtended. - Default impact policy of this job type. + Gets the id of this JobTypeExtended. + Job type ID. - :return: The policy of this JobTypeExtended. + :return: The id of this JobTypeExtended. :rtype: str """ - return self._policy + return self._id - @policy.setter - def policy(self, policy): + @id.setter + def id(self, id): """ - Sets the policy of this JobTypeExtended. - Default impact policy of this job type. + Sets the id of this JobTypeExtended. + Job type ID. - :param policy: The policy of this JobTypeExtended. + :param id: The id of this JobTypeExtended. :type: str """ - self._policy = policy + + self._id = id def to_dict(self): """ @@ -283,6 +300,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +323,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_types.py b/isi_sdk/models/job_types.py index bc7454eda..a1f1d16ab 100644 --- a/isi_sdk/models/job_types.py +++ b/isi_sdk/models/job_types.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobTypes(object): @@ -66,6 +67,7 @@ def types(self, types): :param types: The types of this JobTypes. :type: list[JobTypeExtended] """ + self._types = types def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/job_types_extended.py b/isi_sdk/models/job_types_extended.py index 008116ceb..fafc801c3 100644 --- a/isi_sdk/models/job_types_extended.py +++ b/isi_sdk/models/job_types_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class JobTypesExtended(object): @@ -69,6 +70,7 @@ def types(self, types): :param types: The types of this JobTypesExtended. :type: list[JobTypeExtended] """ + self._types = types @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this JobTypesExtended. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/license_license.py b/isi_sdk/models/license_license.py index 64ec7b267..302c8d88c 100644 --- a/isi_sdk/models/license_license.py +++ b/isi_sdk/models/license_license.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class LicenseLicense(object): @@ -78,6 +79,7 @@ def duration(self, duration): :param duration: The duration of this LicenseLicense. :type: int """ + self._duration = duration @property @@ -100,6 +102,7 @@ def expiration(self, expiration): :param expiration: The expiration of this LicenseLicense. :type: int """ + self._expiration = expiration @property @@ -122,6 +125,7 @@ def id(self, id): :param id: The id of this LicenseLicense. :type: str """ + self._id = id @property @@ -144,6 +148,7 @@ def name(self, name): :param name: The name of this LicenseLicense. :type: str """ + self._name = name @property @@ -172,6 +177,7 @@ def status(self, status): "Invalid value for `status`, must be one of {0}" .format(allowed_values) ) + self._status = status def to_dict(self): @@ -189,6 +195,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -206,14 +218,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/license_license_create_params.py b/isi_sdk/models/license_license_create_params.py index 95208ac2d..974b430cc 100644 --- a/isi_sdk/models/license_license_create_params.py +++ b/isi_sdk/models/license_license_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class LicenseLicenseCreateParams(object): @@ -37,117 +38,14 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'duration': 'int', - 'name': 'str', - 'expiration': 'int', - 'id': 'str', - 'key': 'str', - 'status': 'str' + 'key': 'str' } self.attribute_map = { - 'duration': 'duration', - 'name': 'name', - 'expiration': 'expiration', - 'id': 'id', - 'key': 'key', - 'status': 'status' + 'key': 'key' } - self._duration = None - self._name = None - self._expiration = None - self._id = None self._key = None - self._status = None - - @property - def duration(self): - """ - Gets the duration of this LicenseLicenseCreateParams. - Total duration in seconds for temporary licenses. - - :return: The duration of this LicenseLicenseCreateParams. - :rtype: int - """ - return self._duration - - @duration.setter - def duration(self, duration): - """ - Sets the duration of this LicenseLicenseCreateParams. - Total duration in seconds for temporary licenses. - - :param duration: The duration of this LicenseLicenseCreateParams. - :type: int - """ - self._duration = duration - - @property - def name(self): - """ - Gets the name of this LicenseLicenseCreateParams. - Name of the licensed feature. - - :return: The name of this LicenseLicenseCreateParams. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this LicenseLicenseCreateParams. - Name of the licensed feature. - - :param name: The name of this LicenseLicenseCreateParams. - :type: str - """ - self._name = name - - @property - def expiration(self): - """ - Gets the expiration of this LicenseLicenseCreateParams. - Unix epoch time the license will expire. - - :return: The expiration of this LicenseLicenseCreateParams. - :rtype: int - """ - return self._expiration - - @expiration.setter - def expiration(self, expiration): - """ - Sets the expiration of this LicenseLicenseCreateParams. - Unix epoch time the license will expire. - - :param expiration: The expiration of this LicenseLicenseCreateParams. - :type: int - """ - self._expiration = expiration - - @property - def id(self): - """ - Gets the id of this LicenseLicenseCreateParams. - Unique identifier for the license. - - :return: The id of this LicenseLicenseCreateParams. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this LicenseLicenseCreateParams. - Unique identifier for the license. - - :param id: The id of this LicenseLicenseCreateParams. - :type: str - """ - self._id = id @property def key(self): @@ -169,36 +67,9 @@ def key(self, key): :param key: The key of this LicenseLicenseCreateParams. :type: str """ + self._key = key - @property - def status(self): - """ - Gets the status of this LicenseLicenseCreateParams. - Current status of the license. - - :return: The status of this LicenseLicenseCreateParams. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this LicenseLicenseCreateParams. - Current status of the license. - - :param status: The status of this LicenseLicenseCreateParams. - :type: str - """ - allowed_values = ["Activated", "Evaluation", "Expired", "Inactive", "Unknown"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status`, must be one of {0}" - .format(allowed_values) - ) - self._status = status - def to_dict(self): """ Returns the model properties as a dict @@ -214,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -231,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/license_licenses.py b/isi_sdk/models/license_licenses.py index 2149aa2ac..b428a20af 100644 --- a/isi_sdk/models/license_licenses.py +++ b/isi_sdk/models/license_licenses.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class LicenseLicenses(object): @@ -66,6 +67,7 @@ def licenses(self, licenses): :param licenses: The licenses of this LicenseLicenses. :type: list[LicenseLicense] """ + self._licenses = licenses def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_dump.py b/isi_sdk/models/mapping_dump.py index ff55b82d9..544f69174 100644 --- a/isi_sdk/models/mapping_dump.py +++ b/isi_sdk/models/mapping_dump.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingDump(object): @@ -72,6 +73,7 @@ def identities(self, identities): :param identities: The identities of this MappingDump. :type: list[list[str]] """ + self._identities = identities @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this MappingDump. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this MappingDump. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_identities.py b/isi_sdk/models/mapping_identities.py index 31c78d1da..030717ce4 100644 --- a/isi_sdk/models/mapping_identities.py +++ b/isi_sdk/models/mapping_identities.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingIdentities(object): @@ -66,6 +67,7 @@ def identities(self, identities): :param identities: The identities of this MappingIdentities. :type: list[MappingIdentity] """ + self._identities = identities def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_identity.py b/isi_sdk/models/mapping_identity.py index 0cdbfb65a..f88c2c238 100644 --- a/isi_sdk/models/mapping_identity.py +++ b/isi_sdk/models/mapping_identity.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingIdentity(object): @@ -38,7 +39,7 @@ def __init__(self): """ self.swagger_types = { 'id': 'str', - 'source': 'GroupsGroupMember', + 'source': 'GroupMember', 'targets': 'list[MappingIdentityTarget]' } @@ -72,6 +73,7 @@ def id(self, id): :param id: The id of this MappingIdentity. :type: str """ + self._id = id @property @@ -81,7 +83,7 @@ def source(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The source of this MappingIdentity. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._source @@ -92,8 +94,9 @@ def source(self, source): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param source: The source of this MappingIdentity. - :type: GroupsGroupMember + :type: GroupMember """ + self._source = source @property @@ -116,6 +119,7 @@ def targets(self, targets): :param targets: The targets of this MappingIdentity. :type: list[MappingIdentityTarget] """ + self._targets = targets def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_identity_create_params.py b/isi_sdk/models/mapping_identity_create_params.py index 4f450ff97..ddf8fe881 100644 --- a/isi_sdk/models/mapping_identity_create_params.py +++ b/isi_sdk/models/mapping_identity_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingIdentityCreateParams(object): @@ -37,43 +38,18 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'id': 'str', - 'source': 'GroupsGroupMember', - 'targets': 'list[MappingIdentityTarget]' + 'source': 'GroupMember', + 'targets': 'list[MappingIdentityTargetCreateParams]' } self.attribute_map = { - 'id': 'id', 'source': 'source', 'targets': 'targets' } - self._id = None self._source = None self._targets = None - @property - def id(self): - """ - Gets the id of this MappingIdentityCreateParams. - Specifies the identity mapping entry id. - - :return: The id of this MappingIdentityCreateParams. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this MappingIdentityCreateParams. - Specifies the identity mapping entry id. - - :param id: The id of this MappingIdentityCreateParams. - :type: str - """ - self._id = id - @property def source(self): """ @@ -81,7 +57,7 @@ def source(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The source of this MappingIdentityCreateParams. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._source @@ -92,8 +68,9 @@ def source(self, source): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param source: The source of this MappingIdentityCreateParams. - :type: GroupsGroupMember + :type: GroupMember """ + self._source = source @property @@ -103,7 +80,7 @@ def targets(self): :return: The targets of this MappingIdentityCreateParams. - :rtype: list[MappingIdentityTarget] + :rtype: list[MappingIdentityTargetCreateParams] """ return self._targets @@ -114,8 +91,9 @@ def targets(self, targets): :param targets: The targets of this MappingIdentityCreateParams. - :type: list[MappingIdentityTarget] + :type: list[MappingIdentityTargetCreateParams] """ + self._targets = targets def to_dict(self): @@ -133,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_identity_target.py b/isi_sdk/models/mapping_identity_target.py index 71c916c2f..c46ed1c4d 100644 --- a/isi_sdk/models/mapping_identity_target.py +++ b/isi_sdk/models/mapping_identity_target.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingIdentityTarget(object): @@ -38,7 +39,7 @@ def __init__(self): """ self.swagger_types = { 'on_disk': 'bool', - 'target': 'GroupsGroupMember', + 'target': 'GroupMember', 'type': 'str' } @@ -72,6 +73,7 @@ def on_disk(self, on_disk): :param on_disk: The on_disk of this MappingIdentityTarget. :type: bool """ + self._on_disk = on_disk @property @@ -81,7 +83,7 @@ def target(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The target of this MappingIdentityTarget. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._target @@ -92,8 +94,9 @@ def target(self, target): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param target: The target of this MappingIdentityTarget. - :type: GroupsGroupMember + :type: GroupMember """ + self._target = target @property @@ -122,6 +125,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_identity_target_create_params.py b/isi_sdk/models/mapping_identity_target_create_params.py index 0ecd7d7bc..d96407395 100644 --- a/isi_sdk/models/mapping_identity_target_create_params.py +++ b/isi_sdk/models/mapping_identity_target_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingIdentityTargetCreateParams(object): @@ -37,48 +38,20 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'type': 'str', 'on_disk': 'bool', - 'target': 'GroupsGroupMember' + 'target': 'GroupMember', + 'type': 'str' } self.attribute_map = { - 'type': 'type', 'on_disk': 'on_disk', - 'target': 'target' + 'target': 'target', + 'type': 'type' } - self._type = None self._on_disk = None self._target = None - - @property - def type(self): - """ - Gets the type of this MappingIdentityTargetCreateParams. - Specifies the origin of the identity mapping. - - :return: The type of this MappingIdentityTargetCreateParams. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this MappingIdentityTargetCreateParams. - Specifies the origin of the identity mapping. - - :param type: The type of this MappingIdentityTargetCreateParams. - :type: str - """ - allowed_values = ["auto", "external", "manual"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type`, must be one of {0}" - .format(allowed_values) - ) - self._type = type + self._type = None @property def on_disk(self): @@ -100,6 +73,7 @@ def on_disk(self, on_disk): :param on_disk: The on_disk of this MappingIdentityTargetCreateParams. :type: bool """ + self._on_disk = on_disk @property @@ -109,7 +83,7 @@ def target(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The target of this MappingIdentityTargetCreateParams. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._target @@ -120,10 +94,40 @@ def target(self, target): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param target: The target of this MappingIdentityTargetCreateParams. - :type: GroupsGroupMember + :type: GroupMember """ + self._target = target + @property + def type(self): + """ + Gets the type of this MappingIdentityTargetCreateParams. + Specifies the origin of the identity mapping. + + :return: The type of this MappingIdentityTargetCreateParams. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this MappingIdentityTargetCreateParams. + Specifies the origin of the identity mapping. + + :param type: The type of this MappingIdentityTargetCreateParams. + :type: str + """ + allowed_values = ["auto", "external", "manual"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type + def to_dict(self): """ Returns the model properties as a dict @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_import.py b/isi_sdk/models/mapping_import.py index c33583e83..6273a9306 100644 --- a/isi_sdk/models/mapping_import.py +++ b/isi_sdk/models/mapping_import.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingImport(object): @@ -66,6 +67,7 @@ def identities(self, identities): :param identities: The identities of this MappingImport. :type: list[list[str]] """ + self._identities = identities def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_lookup.py b/isi_sdk/models/mapping_users_lookup.py index dedc1e94e..c3b3b4479 100644 --- a/isi_sdk/models/mapping_users_lookup.py +++ b/isi_sdk/models/mapping_users_lookup.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersLookup(object): @@ -66,6 +67,7 @@ def mapping(self, mapping): :param mapping: The mapping of this MappingUsersLookup. :type: list[MappingUsersLookupMappingItem] """ + self._mapping = mapping def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_lookup_mapping_item.py b/isi_sdk/models/mapping_users_lookup_mapping_item.py index e8ea2923c..35b2958e1 100644 --- a/isi_sdk/models/mapping_users_lookup_mapping_item.py +++ b/isi_sdk/models/mapping_users_lookup_mapping_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersLookupMappingItem(object): @@ -78,6 +79,7 @@ def groups(self, groups): :param groups: The groups of this MappingUsersLookupMappingItem. :type: list[MappingUsersLookupMappingItemGroup] """ + self._groups = groups @property @@ -100,6 +102,7 @@ def privileges(self, privileges): :param privileges: The privileges of this MappingUsersLookupMappingItem. :type: list[AuthIdNtokenPrivilegeItem] """ + self._privileges = privileges @property @@ -122,6 +125,7 @@ def user(self, user): :param user: The user of this MappingUsersLookupMappingItem. :type: MappingUsersLookupMappingItemUser """ + self._user = user @property @@ -144,6 +148,7 @@ def zid(self, zid): :param zid: The zid of this MappingUsersLookupMappingItem. :type: int """ + self._zid = zid @property @@ -166,6 +171,7 @@ def zone(self, zone): :param zone: The zone of this MappingUsersLookupMappingItem. :type: str """ + self._zone = zone def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_lookup_mapping_item_group.py b/isi_sdk/models/mapping_users_lookup_mapping_item_group.py index 071fc6e9a..a355ecba0 100644 --- a/isi_sdk/models/mapping_users_lookup_mapping_item_group.py +++ b/isi_sdk/models/mapping_users_lookup_mapping_item_group.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersLookupMappingItemGroup(object): @@ -48,27 +49,27 @@ def __init__(self): 'generated_gid': 'bool', 'generated_uid': 'bool', 'generated_upn': 'bool', - 'gid': 'GroupsGroupMember', + 'gid': 'GroupMember', 'home_directory': 'str', 'id': 'str', 'locked': 'bool', 'max_password_age': 'int', - 'member_of': 'list[GroupsGroupMember]', + 'member_of': 'list[GroupMember]', 'name': 'str', - 'on_disk_group_identity': 'GroupsGroupMember', - 'on_disk_user_identity': 'GroupsGroupMember', + 'on_disk_group_identity': 'GroupMember', + 'on_disk_user_identity': 'GroupMember', 'password_expired': 'bool', 'password_expires': 'bool', 'password_expiry': 'int', 'password_last_set': 'int', - 'primary_group_sid': 'GroupsGroupMember', + 'primary_group_sid': 'GroupMember', 'prompt_password_change': 'bool', 'provider': 'str', 'sam_account_name': 'str', 'shell': 'str', - 'sid': 'GroupsGroupMember', + 'sid': 'GroupMember', 'type': 'str', - 'uid': 'GroupsGroupMember', + 'uid': 'GroupMember', 'upn': 'str', 'user_can_change_password': 'bool' } @@ -165,6 +166,7 @@ def dn(self, dn): :param dn: The dn of this MappingUsersLookupMappingItemGroup. :type: str """ + self._dn = dn @property @@ -187,6 +189,7 @@ def dns_domain(self, dns_domain): :param dns_domain: The dns_domain of this MappingUsersLookupMappingItemGroup. :type: str """ + self._dns_domain = dns_domain @property @@ -209,6 +212,7 @@ def domain(self, domain): :param domain: The domain of this MappingUsersLookupMappingItemGroup. :type: str """ + self._domain = domain @property @@ -231,6 +235,7 @@ def email(self, email): :param email: The email of this MappingUsersLookupMappingItemGroup. :type: str """ + self._email = email @property @@ -253,6 +258,7 @@ def enabled(self, enabled): :param enabled: The enabled of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._enabled = enabled @property @@ -275,6 +281,7 @@ def expired(self, expired): :param expired: The expired of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._expired = expired @property @@ -297,6 +304,7 @@ def expiry(self, expiry): :param expiry: The expiry of this MappingUsersLookupMappingItemGroup. :type: int """ + self._expiry = expiry @property @@ -319,6 +327,7 @@ def gecos(self, gecos): :param gecos: The gecos of this MappingUsersLookupMappingItemGroup. :type: str """ + self._gecos = gecos @property @@ -341,6 +350,7 @@ def generated_gid(self, generated_gid): :param generated_gid: The generated_gid of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._generated_gid = generated_gid @property @@ -363,6 +373,7 @@ def generated_uid(self, generated_uid): :param generated_uid: The generated_uid of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._generated_uid = generated_uid @property @@ -385,6 +396,7 @@ def generated_upn(self, generated_upn): :param generated_upn: The generated_upn of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._generated_upn = generated_upn @property @@ -394,7 +406,7 @@ def gid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The gid of this MappingUsersLookupMappingItemGroup. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._gid @@ -405,8 +417,9 @@ def gid(self, gid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param gid: The gid of this MappingUsersLookupMappingItemGroup. - :type: GroupsGroupMember + :type: GroupMember """ + self._gid = gid @property @@ -429,6 +442,7 @@ def home_directory(self, home_directory): :param home_directory: The home_directory of this MappingUsersLookupMappingItemGroup. :type: str """ + self._home_directory = home_directory @property @@ -451,6 +465,7 @@ def id(self, id): :param id: The id of this MappingUsersLookupMappingItemGroup. :type: str """ + self._id = id @property @@ -473,6 +488,7 @@ def locked(self, locked): :param locked: The locked of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._locked = locked @property @@ -495,6 +511,7 @@ def max_password_age(self, max_password_age): :param max_password_age: The max_password_age of this MappingUsersLookupMappingItemGroup. :type: int """ + self._max_password_age = max_password_age @property @@ -504,7 +521,7 @@ def member_of(self): :return: The member_of of this MappingUsersLookupMappingItemGroup. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._member_of @@ -515,8 +532,9 @@ def member_of(self, member_of): :param member_of: The member_of of this MappingUsersLookupMappingItemGroup. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._member_of = member_of @property @@ -539,6 +557,7 @@ def name(self, name): :param name: The name of this MappingUsersLookupMappingItemGroup. :type: str """ + self._name = name @property @@ -548,7 +567,7 @@ def on_disk_group_identity(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The on_disk_group_identity of this MappingUsersLookupMappingItemGroup. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._on_disk_group_identity @@ -559,8 +578,9 @@ def on_disk_group_identity(self, on_disk_group_identity): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param on_disk_group_identity: The on_disk_group_identity of this MappingUsersLookupMappingItemGroup. - :type: GroupsGroupMember + :type: GroupMember """ + self._on_disk_group_identity = on_disk_group_identity @property @@ -570,7 +590,7 @@ def on_disk_user_identity(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The on_disk_user_identity of this MappingUsersLookupMappingItemGroup. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._on_disk_user_identity @@ -581,8 +601,9 @@ def on_disk_user_identity(self, on_disk_user_identity): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param on_disk_user_identity: The on_disk_user_identity of this MappingUsersLookupMappingItemGroup. - :type: GroupsGroupMember + :type: GroupMember """ + self._on_disk_user_identity = on_disk_user_identity @property @@ -605,6 +626,7 @@ def password_expired(self, password_expired): :param password_expired: The password_expired of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._password_expired = password_expired @property @@ -627,6 +649,7 @@ def password_expires(self, password_expires): :param password_expires: The password_expires of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._password_expires = password_expires @property @@ -649,6 +672,7 @@ def password_expiry(self, password_expiry): :param password_expiry: The password_expiry of this MappingUsersLookupMappingItemGroup. :type: int """ + self._password_expiry = password_expiry @property @@ -671,6 +695,7 @@ def password_last_set(self, password_last_set): :param password_last_set: The password_last_set of this MappingUsersLookupMappingItemGroup. :type: int """ + self._password_last_set = password_last_set @property @@ -680,7 +705,7 @@ def primary_group_sid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The primary_group_sid of this MappingUsersLookupMappingItemGroup. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._primary_group_sid @@ -691,8 +716,9 @@ def primary_group_sid(self, primary_group_sid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param primary_group_sid: The primary_group_sid of this MappingUsersLookupMappingItemGroup. - :type: GroupsGroupMember + :type: GroupMember """ + self._primary_group_sid = primary_group_sid @property @@ -715,6 +741,7 @@ def prompt_password_change(self, prompt_password_change): :param prompt_password_change: The prompt_password_change of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._prompt_password_change = prompt_password_change @property @@ -737,6 +764,7 @@ def provider(self, provider): :param provider: The provider of this MappingUsersLookupMappingItemGroup. :type: str """ + self._provider = provider @property @@ -759,6 +787,7 @@ def sam_account_name(self, sam_account_name): :param sam_account_name: The sam_account_name of this MappingUsersLookupMappingItemGroup. :type: str """ + self._sam_account_name = sam_account_name @property @@ -781,6 +810,7 @@ def shell(self, shell): :param shell: The shell of this MappingUsersLookupMappingItemGroup. :type: str """ + self._shell = shell @property @@ -790,7 +820,7 @@ def sid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The sid of this MappingUsersLookupMappingItemGroup. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._sid @@ -801,8 +831,9 @@ def sid(self, sid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param sid: The sid of this MappingUsersLookupMappingItemGroup. - :type: GroupsGroupMember + :type: GroupMember """ + self._sid = sid @property @@ -825,6 +856,7 @@ def type(self, type): :param type: The type of this MappingUsersLookupMappingItemGroup. :type: str """ + self._type = type @property @@ -834,7 +866,7 @@ def uid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The uid of this MappingUsersLookupMappingItemGroup. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._uid @@ -845,8 +877,9 @@ def uid(self, uid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param uid: The uid of this MappingUsersLookupMappingItemGroup. - :type: GroupsGroupMember + :type: GroupMember """ + self._uid = uid @property @@ -869,6 +902,7 @@ def upn(self, upn): :param upn: The upn of this MappingUsersLookupMappingItemGroup. :type: str """ + self._upn = upn @property @@ -891,6 +925,7 @@ def user_can_change_password(self, user_can_change_password): :param user_can_change_password: The user_can_change_password of this MappingUsersLookupMappingItemGroup. :type: bool """ + self._user_can_change_password = user_can_change_password def to_dict(self): @@ -908,6 +943,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -925,14 +966,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_lookup_mapping_item_user.py b/isi_sdk/models/mapping_users_lookup_mapping_item_user.py index 5e8812712..39a13fe08 100644 --- a/isi_sdk/models/mapping_users_lookup_mapping_item_user.py +++ b/isi_sdk/models/mapping_users_lookup_mapping_item_user.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersLookupMappingItemUser(object): @@ -48,27 +49,27 @@ def __init__(self): 'generated_gid': 'bool', 'generated_uid': 'bool', 'generated_upn': 'bool', - 'gid': 'GroupsGroupMember', + 'gid': 'GroupMember', 'home_directory': 'str', 'id': 'str', 'locked': 'bool', 'max_password_age': 'int', - 'member_of': 'list[GroupsGroupMember]', + 'member_of': 'list[GroupMember]', 'name': 'str', - 'on_disk_group_identity': 'GroupsGroupMember', - 'on_disk_user_identity': 'GroupsGroupMember', + 'on_disk_group_identity': 'GroupMember', + 'on_disk_user_identity': 'GroupMember', 'password_expired': 'bool', 'password_expires': 'bool', 'password_expiry': 'int', 'password_last_set': 'int', - 'primary_group_sid': 'GroupsGroupMember', + 'primary_group_sid': 'GroupMember', 'prompt_password_change': 'bool', 'provider': 'str', 'sam_account_name': 'str', 'shell': 'str', - 'sid': 'GroupsGroupMember', + 'sid': 'GroupMember', 'type': 'str', - 'uid': 'GroupsGroupMember', + 'uid': 'GroupMember', 'upn': 'str', 'user_can_change_password': 'bool' } @@ -165,6 +166,7 @@ def dn(self, dn): :param dn: The dn of this MappingUsersLookupMappingItemUser. :type: str """ + self._dn = dn @property @@ -187,6 +189,7 @@ def dns_domain(self, dns_domain): :param dns_domain: The dns_domain of this MappingUsersLookupMappingItemUser. :type: str """ + self._dns_domain = dns_domain @property @@ -209,6 +212,7 @@ def domain(self, domain): :param domain: The domain of this MappingUsersLookupMappingItemUser. :type: str """ + self._domain = domain @property @@ -231,6 +235,7 @@ def email(self, email): :param email: The email of this MappingUsersLookupMappingItemUser. :type: str """ + self._email = email @property @@ -253,6 +258,7 @@ def enabled(self, enabled): :param enabled: The enabled of this MappingUsersLookupMappingItemUser. :type: bool """ + self._enabled = enabled @property @@ -275,6 +281,7 @@ def expired(self, expired): :param expired: The expired of this MappingUsersLookupMappingItemUser. :type: bool """ + self._expired = expired @property @@ -297,6 +304,7 @@ def expiry(self, expiry): :param expiry: The expiry of this MappingUsersLookupMappingItemUser. :type: int """ + self._expiry = expiry @property @@ -319,6 +327,7 @@ def gecos(self, gecos): :param gecos: The gecos of this MappingUsersLookupMappingItemUser. :type: str """ + self._gecos = gecos @property @@ -341,6 +350,7 @@ def generated_gid(self, generated_gid): :param generated_gid: The generated_gid of this MappingUsersLookupMappingItemUser. :type: bool """ + self._generated_gid = generated_gid @property @@ -363,6 +373,7 @@ def generated_uid(self, generated_uid): :param generated_uid: The generated_uid of this MappingUsersLookupMappingItemUser. :type: bool """ + self._generated_uid = generated_uid @property @@ -385,6 +396,7 @@ def generated_upn(self, generated_upn): :param generated_upn: The generated_upn of this MappingUsersLookupMappingItemUser. :type: bool """ + self._generated_upn = generated_upn @property @@ -394,7 +406,7 @@ def gid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The gid of this MappingUsersLookupMappingItemUser. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._gid @@ -405,8 +417,9 @@ def gid(self, gid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param gid: The gid of this MappingUsersLookupMappingItemUser. - :type: GroupsGroupMember + :type: GroupMember """ + self._gid = gid @property @@ -429,6 +442,7 @@ def home_directory(self, home_directory): :param home_directory: The home_directory of this MappingUsersLookupMappingItemUser. :type: str """ + self._home_directory = home_directory @property @@ -451,6 +465,7 @@ def id(self, id): :param id: The id of this MappingUsersLookupMappingItemUser. :type: str """ + self._id = id @property @@ -473,6 +488,7 @@ def locked(self, locked): :param locked: The locked of this MappingUsersLookupMappingItemUser. :type: bool """ + self._locked = locked @property @@ -495,6 +511,7 @@ def max_password_age(self, max_password_age): :param max_password_age: The max_password_age of this MappingUsersLookupMappingItemUser. :type: int """ + self._max_password_age = max_password_age @property @@ -504,7 +521,7 @@ def member_of(self): :return: The member_of of this MappingUsersLookupMappingItemUser. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._member_of @@ -515,8 +532,9 @@ def member_of(self, member_of): :param member_of: The member_of of this MappingUsersLookupMappingItemUser. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._member_of = member_of @property @@ -539,6 +557,7 @@ def name(self, name): :param name: The name of this MappingUsersLookupMappingItemUser. :type: str """ + self._name = name @property @@ -548,7 +567,7 @@ def on_disk_group_identity(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The on_disk_group_identity of this MappingUsersLookupMappingItemUser. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._on_disk_group_identity @@ -559,8 +578,9 @@ def on_disk_group_identity(self, on_disk_group_identity): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param on_disk_group_identity: The on_disk_group_identity of this MappingUsersLookupMappingItemUser. - :type: GroupsGroupMember + :type: GroupMember """ + self._on_disk_group_identity = on_disk_group_identity @property @@ -570,7 +590,7 @@ def on_disk_user_identity(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The on_disk_user_identity of this MappingUsersLookupMappingItemUser. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._on_disk_user_identity @@ -581,8 +601,9 @@ def on_disk_user_identity(self, on_disk_user_identity): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param on_disk_user_identity: The on_disk_user_identity of this MappingUsersLookupMappingItemUser. - :type: GroupsGroupMember + :type: GroupMember """ + self._on_disk_user_identity = on_disk_user_identity @property @@ -605,6 +626,7 @@ def password_expired(self, password_expired): :param password_expired: The password_expired of this MappingUsersLookupMappingItemUser. :type: bool """ + self._password_expired = password_expired @property @@ -627,6 +649,7 @@ def password_expires(self, password_expires): :param password_expires: The password_expires of this MappingUsersLookupMappingItemUser. :type: bool """ + self._password_expires = password_expires @property @@ -649,6 +672,7 @@ def password_expiry(self, password_expiry): :param password_expiry: The password_expiry of this MappingUsersLookupMappingItemUser. :type: int """ + self._password_expiry = password_expiry @property @@ -671,6 +695,7 @@ def password_last_set(self, password_last_set): :param password_last_set: The password_last_set of this MappingUsersLookupMappingItemUser. :type: int """ + self._password_last_set = password_last_set @property @@ -680,7 +705,7 @@ def primary_group_sid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The primary_group_sid of this MappingUsersLookupMappingItemUser. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._primary_group_sid @@ -691,8 +716,9 @@ def primary_group_sid(self, primary_group_sid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param primary_group_sid: The primary_group_sid of this MappingUsersLookupMappingItemUser. - :type: GroupsGroupMember + :type: GroupMember """ + self._primary_group_sid = primary_group_sid @property @@ -715,6 +741,7 @@ def prompt_password_change(self, prompt_password_change): :param prompt_password_change: The prompt_password_change of this MappingUsersLookupMappingItemUser. :type: bool """ + self._prompt_password_change = prompt_password_change @property @@ -737,6 +764,7 @@ def provider(self, provider): :param provider: The provider of this MappingUsersLookupMappingItemUser. :type: str """ + self._provider = provider @property @@ -759,6 +787,7 @@ def sam_account_name(self, sam_account_name): :param sam_account_name: The sam_account_name of this MappingUsersLookupMappingItemUser. :type: str """ + self._sam_account_name = sam_account_name @property @@ -781,6 +810,7 @@ def shell(self, shell): :param shell: The shell of this MappingUsersLookupMappingItemUser. :type: str """ + self._shell = shell @property @@ -790,7 +820,7 @@ def sid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The sid of this MappingUsersLookupMappingItemUser. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._sid @@ -801,8 +831,9 @@ def sid(self, sid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param sid: The sid of this MappingUsersLookupMappingItemUser. - :type: GroupsGroupMember + :type: GroupMember """ + self._sid = sid @property @@ -825,6 +856,7 @@ def type(self, type): :param type: The type of this MappingUsersLookupMappingItemUser. :type: str """ + self._type = type @property @@ -834,7 +866,7 @@ def uid(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The uid of this MappingUsersLookupMappingItemUser. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._uid @@ -845,8 +877,9 @@ def uid(self, uid): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param uid: The uid of this MappingUsersLookupMappingItemUser. - :type: GroupsGroupMember + :type: GroupMember """ + self._uid = uid @property @@ -869,6 +902,7 @@ def upn(self, upn): :param upn: The upn of this MappingUsersLookupMappingItemUser. :type: str """ + self._upn = upn @property @@ -891,6 +925,7 @@ def user_can_change_password(self, user_can_change_password): :param user_can_change_password: The user_can_change_password of this MappingUsersLookupMappingItemUser. :type: bool """ + self._user_can_change_password = user_can_change_password def to_dict(self): @@ -908,6 +943,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -925,14 +966,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_rules.py b/isi_sdk/models/mapping_users_rules.py index 8700cb0d5..3005e563c 100644 --- a/isi_sdk/models/mapping_users_rules.py +++ b/isi_sdk/models/mapping_users_rules.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersRules(object): @@ -66,6 +67,7 @@ def rules(self, rules): :param rules: The rules of this MappingUsersRules. :type: MappingUsersRulesRules """ + self._rules = rules def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_rules_rule.py b/isi_sdk/models/mapping_users_rules_rule.py index 53f0dfbe0..f38db56ac 100644 --- a/isi_sdk/models/mapping_users_rules_rule.py +++ b/isi_sdk/models/mapping_users_rules_rule.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersRulesRule(object): @@ -81,6 +82,7 @@ def operator(self, operator): "Invalid value for `operator`, must be one of {0}" .format(allowed_values) ) + self._operator = operator @property @@ -103,6 +105,7 @@ def options(self, options): :param options: The options of this MappingUsersRulesRule. :type: MappingUsersRulesRuleOptions """ + self._options = options @property @@ -125,6 +128,7 @@ def user1(self, user1): :param user1: The user1 of this MappingUsersRulesRule. :type: MappingUsersRulesRuleUser2 """ + self._user1 = user1 @property @@ -147,6 +151,7 @@ def user2(self, user2): :param user2: The user2 of this MappingUsersRulesRule. :type: MappingUsersRulesRuleUser2 """ + self._user2 = user2 def to_dict(self): @@ -164,6 +169,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -181,14 +192,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_rules_rule_options.py b/isi_sdk/models/mapping_users_rules_rule_options.py index a015a7bee..066dc0642 100644 --- a/isi_sdk/models/mapping_users_rules_rule_options.py +++ b/isi_sdk/models/mapping_users_rules_rule_options.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersRulesRuleOptions(object): @@ -78,6 +79,7 @@ def _break(self, _break): :param _break: The _break of this MappingUsersRulesRuleOptions. :type: bool """ + self.__break = _break @property @@ -100,6 +102,7 @@ def default_user(self, default_user): :param default_user: The default_user of this MappingUsersRulesRuleOptions. :type: MappingUsersRulesRuleUser2 """ + self._default_user = default_user @property @@ -122,6 +125,7 @@ def group(self, group): :param group: The group of this MappingUsersRulesRuleOptions. :type: bool """ + self._group = group @property @@ -144,6 +148,7 @@ def groups(self, groups): :param groups: The groups of this MappingUsersRulesRuleOptions. :type: bool """ + self._groups = groups @property @@ -166,6 +171,7 @@ def user(self, user): :param user: The user of this MappingUsersRulesRuleOptions. :type: bool """ + self._user = user def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_rules_rule_user2.py b/isi_sdk/models/mapping_users_rules_rule_user2.py index 6d59aaddc..9cdddaa04 100644 --- a/isi_sdk/models/mapping_users_rules_rule_user2.py +++ b/isi_sdk/models/mapping_users_rules_rule_user2.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersRulesRuleUser2(object): @@ -69,6 +70,7 @@ def domain(self, domain): :param domain: The domain of this MappingUsersRulesRuleUser2. :type: str """ + self._domain = domain @property @@ -91,6 +93,7 @@ def user(self, user): :param user: The user of this MappingUsersRulesRuleUser2. :type: str """ + self._user = user def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_rules_rules.py b/isi_sdk/models/mapping_users_rules_rules.py index a12023caa..e61a3c4ef 100644 --- a/isi_sdk/models/mapping_users_rules_rules.py +++ b/isi_sdk/models/mapping_users_rules_rules.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersRulesRules(object): @@ -69,6 +70,7 @@ def parameters(self, parameters): :param parameters: The parameters of this MappingUsersRulesRules. :type: MappingUsersRulesRulesParameters """ + self._parameters = parameters @property @@ -91,6 +93,7 @@ def rules(self, rules): :param rules: The rules of this MappingUsersRulesRules. :type: list[MappingUsersRulesRule] """ + self._rules = rules def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/mapping_users_rules_rules_parameters.py b/isi_sdk/models/mapping_users_rules_rules_parameters.py index a4a49ee9f..8baaecda0 100644 --- a/isi_sdk/models/mapping_users_rules_rules_parameters.py +++ b/isi_sdk/models/mapping_users_rules_rules_parameters.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class MappingUsersRulesRulesParameters(object): @@ -66,6 +67,7 @@ def default_unix_user(self, default_unix_user): :param default_unix_user: The default_unix_user of this MappingUsersRulesRulesParameters. :type: MappingUsersRulesRuleUser2 """ + self._default_unix_user = default_unix_user def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_contexts_bre.py b/isi_sdk/models/ndmp_contexts_bre.py index de2b3147d..d3b46b40a 100644 --- a/isi_sdk/models/ndmp_contexts_bre.py +++ b/isi_sdk/models/ndmp_contexts_bre.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpContextsBre(object): @@ -72,6 +73,7 @@ def contexts(self, contexts): :param contexts: The contexts of this NdmpContextsBre. :type: list[NdmpContextsBreContext] """ + self._contexts = contexts @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this NdmpContextsBre. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this NdmpContextsBre. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_contexts_bre_context.py b/isi_sdk/models/ndmp_contexts_bre_context.py index 138e9e2c8..cdbd47029 100644 --- a/isi_sdk/models/ndmp_contexts_bre_context.py +++ b/isi_sdk/models/ndmp_contexts_bre_context.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpContextsBreContext(object): @@ -69,6 +70,7 @@ def bre_context_id(self, bre_context_id): :param bre_context_id: The bre_context_id of this NdmpContextsBreContext. :type: str """ + self._bre_context_id = bre_context_id @property @@ -91,6 +93,7 @@ def id(self, id): :param id: The id of this NdmpContextsBreContext. :type: str """ + self._id = id def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_diagnostics.py b/isi_sdk/models/ndmp_diagnostics.py index 262ab43ac..827b65c3b 100644 --- a/isi_sdk/models/ndmp_diagnostics.py +++ b/isi_sdk/models/ndmp_diagnostics.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpDiagnostics(object): @@ -66,6 +67,7 @@ def diagnostics(self, diagnostics): :param diagnostics: The diagnostics of this NdmpDiagnostics. :type: NdmpDiagnosticsDiagnostics """ + self._diagnostics = diagnostics def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_diagnostics_diagnostics.py b/isi_sdk/models/ndmp_diagnostics_diagnostics.py index d75e0ab98..c76351712 100644 --- a/isi_sdk/models/ndmp_diagnostics_diagnostics.py +++ b/isi_sdk/models/ndmp_diagnostics_diagnostics.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpDiagnosticsDiagnostics(object): @@ -72,6 +73,7 @@ def diag_level(self, diag_level): :param diag_level: The diag_level of this NdmpDiagnosticsDiagnostics. :type: int """ + self._diag_level = diag_level @property @@ -94,6 +96,7 @@ def protocol_version(self, protocol_version): :param protocol_version: The protocol_version of this NdmpDiagnosticsDiagnostics. :type: int """ + self._protocol_version = protocol_version @property @@ -122,6 +125,7 @@ def trace_level(self, trace_level): "Invalid value for `trace_level`, must be one of {0}" .format(allowed_values) ) + self._trace_level = trace_level def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_logs.py b/isi_sdk/models/ndmp_logs.py index a1efcc74c..96e760a00 100644 --- a/isi_sdk/models/ndmp_logs.py +++ b/isi_sdk/models/ndmp_logs.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpLogs(object): @@ -66,6 +67,7 @@ def logs(self, logs): :param logs: The logs of this NdmpLogs. :type: str """ + self._logs = logs def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_session.py b/isi_sdk/models/ndmp_session.py index c8c163fd0..468698388 100644 --- a/isi_sdk/models/ndmp_session.py +++ b/isi_sdk/models/ndmp_session.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpSession(object): @@ -114,6 +115,7 @@ def data_bytes_transferred(self, data_bytes_transferred): :param data_bytes_transferred: The data_bytes_transferred of this NdmpSession. :type: int """ + self._data_bytes_transferred = data_bytes_transferred @property @@ -142,6 +144,7 @@ def data_state(self, data_state): "Invalid value for `data_state`, must be one of {0}" .format(allowed_values) ) + self._data_state = data_state @property @@ -164,6 +167,7 @@ def dest_path(self, dest_path): :param dest_path: The dest_path of this NdmpSession. :type: str """ + self._dest_path = dest_path @property @@ -186,6 +190,7 @@ def dma_ip_addr(self, dma_ip_addr): :param dma_ip_addr: The dma_ip_addr of this NdmpSession. :type: str """ + self._dma_ip_addr = dma_ip_addr @property @@ -208,6 +213,7 @@ def elapsed_time(self, elapsed_time): :param elapsed_time: The elapsed_time of this NdmpSession. :type: int """ + self._elapsed_time = elapsed_time @property @@ -230,6 +236,7 @@ def id(self, id): :param id: The id of this NdmpSession. :type: str """ + self._id = id @property @@ -252,6 +259,7 @@ def mover_bytes_transferred(self, mover_bytes_transferred): :param mover_bytes_transferred: The mover_bytes_transferred of this NdmpSession. :type: int """ + self._mover_bytes_transferred = mover_bytes_transferred @property @@ -280,6 +288,7 @@ def mover_state(self, mover_state): "Invalid value for `mover_state`, must be one of {0}" .format(allowed_values) ) + self._mover_state = mover_state @property @@ -308,6 +317,7 @@ def operation(self, operation): "Invalid value for `operation`, must be one of {0}" .format(allowed_values) ) + self._operation = operation @property @@ -330,6 +340,7 @@ def remote_ip_addr(self, remote_ip_addr): :param remote_ip_addr: The remote_ip_addr of this NdmpSession. :type: str """ + self._remote_ip_addr = remote_ip_addr @property @@ -352,6 +363,7 @@ def scsi_device(self, scsi_device): :param scsi_device: The scsi_device of this NdmpSession. :type: str """ + self._scsi_device = scsi_device @property @@ -374,6 +386,7 @@ def session(self, session): :param session: The session of this NdmpSession. :type: str """ + self._session = session @property @@ -396,6 +409,7 @@ def source_path(self, source_path): :param source_path: The source_path of this NdmpSession. :type: str """ + self._source_path = source_path @property @@ -418,6 +432,7 @@ def start_time(self, start_time): :param start_time: The start_time of this NdmpSession. :type: int """ + self._start_time = start_time @property @@ -440,6 +455,7 @@ def tape_device(self, tape_device): :param tape_device: The tape_device of this NdmpSession. :type: str """ + self._tape_device = tape_device @property @@ -468,6 +484,7 @@ def tape_open_mode(self, tape_open_mode): "Invalid value for `tape_open_mode`, must be one of {0}" .format(allowed_values) ) + self._tape_open_mode = tape_open_mode @property @@ -490,6 +507,7 @@ def throughput(self, throughput): :param throughput: The throughput of this NdmpSession. :type: int """ + self._throughput = throughput def to_dict(self): @@ -507,6 +525,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -524,14 +548,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_sessions.py b/isi_sdk/models/ndmp_sessions.py index 939f2ab64..10640e032 100644 --- a/isi_sdk/models/ndmp_sessions.py +++ b/isi_sdk/models/ndmp_sessions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpSessions(object): @@ -72,6 +73,7 @@ def resume(self, resume): :param resume: The resume of this NdmpSessions. :type: str """ + self._resume = resume @property @@ -94,6 +96,7 @@ def sessions(self, sessions): :param sessions: The sessions of this NdmpSessions. :type: list[NdmpSession] """ + self._sessions = sessions @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this NdmpSessions. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_settings_global.py b/isi_sdk/models/ndmp_settings_global.py index 71e89abe5..84e6d5aca 100644 --- a/isi_sdk/models/ndmp_settings_global.py +++ b/isi_sdk/models/ndmp_settings_global.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpSettingsGlobal(object): @@ -66,6 +67,7 @@ def _global(self, _global): :param _global: The _global of this NdmpSettingsGlobal. :type: NdmpSettingsGlobalGlobal """ + self.__global = _global def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_settings_global_global.py b/isi_sdk/models/ndmp_settings_global_global.py index fbbcebcc7..19c6ab496 100644 --- a/isi_sdk/models/ndmp_settings_global_global.py +++ b/isi_sdk/models/ndmp_settings_global_global.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpSettingsGlobalGlobal(object): @@ -81,6 +82,7 @@ def bre_max_num_contexts(self, bre_max_num_contexts): :param bre_max_num_contexts: The bre_max_num_contexts of this NdmpSettingsGlobalGlobal. :type: int """ + self._bre_max_num_contexts = bre_max_num_contexts @property @@ -109,6 +111,7 @@ def dma(self, dma): "Invalid value for `dma`, must be one of {0}" .format(allowed_values) ) + self._dma = dma @property @@ -131,6 +134,7 @@ def msb_context_retention_duration(self, msb_context_retention_duration): :param msb_context_retention_duration: The msb_context_retention_duration of this NdmpSettingsGlobalGlobal. :type: int """ + self._msb_context_retention_duration = msb_context_retention_duration @property @@ -153,6 +157,7 @@ def msr_context_retention_duration(self, msr_context_retention_duration): :param msr_context_retention_duration: The msr_context_retention_duration of this NdmpSettingsGlobalGlobal. :type: int """ + self._msr_context_retention_duration = msr_context_retention_duration @property @@ -175,6 +180,7 @@ def port(self, port): :param port: The port of this NdmpSettingsGlobalGlobal. :type: int """ + self._port = port @property @@ -197,6 +203,7 @@ def service(self, service): :param service: The service of this NdmpSettingsGlobalGlobal. :type: bool """ + self._service = service def to_dict(self): @@ -214,6 +221,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -231,14 +244,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_settings_variable.py b/isi_sdk/models/ndmp_settings_variable.py index 1a87cfc2a..f2676dee7 100644 --- a/isi_sdk/models/ndmp_settings_variable.py +++ b/isi_sdk/models/ndmp_settings_variable.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpSettingsVariable(object): @@ -66,6 +67,7 @@ def value(self, value): :param value: The value of this NdmpSettingsVariable. :type: str """ + self._value = value def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_user.py b/isi_sdk/models/ndmp_user.py index 2cdc06217..770df04c5 100644 --- a/isi_sdk/models/ndmp_user.py +++ b/isi_sdk/models/ndmp_user.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpUser(object): @@ -66,6 +67,7 @@ def password(self, password): :param password: The password of this NdmpUser. :type: str """ + self._password = password def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_user_create_params.py b/isi_sdk/models/ndmp_user_create_params.py index 8267d814b..8d7f60313 100644 --- a/isi_sdk/models/ndmp_user_create_params.py +++ b/isi_sdk/models/ndmp_user_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpUserCreateParams(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', - 'password': 'str' + 'password': 'str', + 'name': 'str' } self.attribute_map = { - 'name': 'name', - 'password': 'password' + 'password': 'password', + 'name': 'name' } - self._name = None self._password = None - - @property - def name(self): - """ - Gets the name of this NdmpUserCreateParams. - A unique user name for NDMP administrator. - - :return: The name of this NdmpUserCreateParams. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this NdmpUserCreateParams. - A unique user name for NDMP administrator. - - :param name: The name of this NdmpUserCreateParams. - :type: str - """ - self._name = name + self._name = None @property def password(self): @@ -91,8 +70,32 @@ def password(self, password): :param password: The password of this NdmpUserCreateParams. :type: str """ + self._password = password + @property + def name(self): + """ + Gets the name of this NdmpUserCreateParams. + A unique user name for NDMP administrator. + + :return: The name of this NdmpUserCreateParams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NdmpUserCreateParams. + A unique user name for NDMP administrator. + + :param name: The name of this NdmpUserCreateParams. + :type: str + """ + + self._name = name + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_users.py b/isi_sdk/models/ndmp_users.py index 3a5a442cb..7f291c38f 100644 --- a/isi_sdk/models/ndmp_users.py +++ b/isi_sdk/models/ndmp_users.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpUsers(object): @@ -69,6 +70,7 @@ def id(self, id): :param id: The id of this NdmpUsers. :type: str """ + self._id = id @property @@ -91,6 +93,7 @@ def name(self, name): :param name: The name of this NdmpUsers. :type: str """ + self._name = name def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ndmp_users_extended.py b/isi_sdk/models/ndmp_users_extended.py index ba1c32f0d..06f4c1270 100644 --- a/isi_sdk/models/ndmp_users_extended.py +++ b/isi_sdk/models/ndmp_users_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NdmpUsersExtended(object): @@ -37,46 +38,18 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', 'total': 'int', - 'id': 'str', 'users': 'list[NdmpUsers]' } self.attribute_map = { - 'name': 'name', 'total': 'total', - 'id': 'id', 'users': 'users' } - self._name = None self._total = None - self._id = None self._users = None - @property - def name(self): - """ - Gets the name of this NdmpUsersExtended. - A unique user name for NDMP administrator. - - :return: The name of this NdmpUsersExtended. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this NdmpUsersExtended. - A unique user name for NDMP administrator. - - :param name: The name of this NdmpUsersExtended. - :type: str - """ - self._name = name - @property def total(self): """ @@ -97,30 +70,9 @@ def total(self, total): :param total: The total of this NdmpUsersExtended. :type: int """ + self._total = total - @property - def id(self): - """ - Gets the id of this NdmpUsersExtended. - Unique display ID. - - :return: The id of this NdmpUsersExtended. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this NdmpUsersExtended. - Unique display ID. - - :param id: The id of this NdmpUsersExtended. - :type: str - """ - self._id = id - @property def users(self): """ @@ -141,6 +93,7 @@ def users(self, users): :param users: The users of this NdmpUsersExtended. :type: list[NdmpUsers] """ + self._users = users def to_dict(self): @@ -158,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_dnscache.py b/isi_sdk/models/network_dnscache.py index c93fa7213..57e7718a8 100644 --- a/isi_sdk/models/network_dnscache.py +++ b/isi_sdk/models/network_dnscache.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkDnscache(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this NetworkDnscache. :type: list[NetworkDnscacheSetting] """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_dnscache_setting.py b/isi_sdk/models/network_dnscache_setting.py index 883d4b0d5..c46a4bc8c 100644 --- a/isi_sdk/models/network_dnscache_setting.py +++ b/isi_sdk/models/network_dnscache_setting.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkDnscacheSetting(object): @@ -102,6 +103,14 @@ def cache_entry_limit(self, cache_entry_limit): :param cache_entry_limit: The cache_entry_limit of this NetworkDnscacheSetting. :type: int """ + + if not cache_entry_limit: + raise ValueError("Invalid value for `cache_entry_limit`, must not be `None`") + if cache_entry_limit > 1048576.0: + raise ValueError("Invalid value for `cache_entry_limit`, must be a value less than or equal to `1048576.0`") + if cache_entry_limit < 1024.0: + raise ValueError("Invalid value for `cache_entry_limit`, must be a value greater than or equal to `1024.0`") + self._cache_entry_limit = cache_entry_limit @property @@ -124,6 +133,14 @@ def cluster_timeout(self, cluster_timeout): :param cluster_timeout: The cluster_timeout of this NetworkDnscacheSetting. :type: int """ + + if not cluster_timeout: + raise ValueError("Invalid value for `cluster_timeout`, must not be `None`") + if cluster_timeout > 30.0: + raise ValueError("Invalid value for `cluster_timeout`, must be a value less than or equal to `30.0`") + if cluster_timeout < 1.0: + raise ValueError("Invalid value for `cluster_timeout`, must be a value greater than or equal to `1.0`") + self._cluster_timeout = cluster_timeout @property @@ -146,6 +163,14 @@ def dns_timeout(self, dns_timeout): :param dns_timeout: The dns_timeout of this NetworkDnscacheSetting. :type: int """ + + if not dns_timeout: + raise ValueError("Invalid value for `dns_timeout`, must not be `None`") + if dns_timeout > 30.0: + raise ValueError("Invalid value for `dns_timeout`, must be a value less than or equal to `30.0`") + if dns_timeout < 1.0: + raise ValueError("Invalid value for `dns_timeout`, must be a value greater than or equal to `1.0`") + self._dns_timeout = dns_timeout @property @@ -168,6 +193,14 @@ def eager_refresh(self, eager_refresh): :param eager_refresh: The eager_refresh of this NetworkDnscacheSetting. :type: int """ + + if not eager_refresh: + raise ValueError("Invalid value for `eager_refresh`, must not be `None`") + if eager_refresh > 60.0: + raise ValueError("Invalid value for `eager_refresh`, must be a value less than or equal to `60.0`") + if eager_refresh < 0.0: + raise ValueError("Invalid value for `eager_refresh`, must be a value greater than or equal to `0.0`") + self._eager_refresh = eager_refresh @property @@ -190,6 +223,14 @@ def testping_delta(self, testping_delta): :param testping_delta: The testping_delta of this NetworkDnscacheSetting. :type: int """ + + if not testping_delta: + raise ValueError("Invalid value for `testping_delta`, must not be `None`") + if testping_delta > 60.0: + raise ValueError("Invalid value for `testping_delta`, must be a value less than or equal to `60.0`") + if testping_delta < 0.0: + raise ValueError("Invalid value for `testping_delta`, must be a value greater than or equal to `0.0`") + self._testping_delta = testping_delta @property @@ -212,6 +253,14 @@ def ttl_max_noerror(self, ttl_max_noerror): :param ttl_max_noerror: The ttl_max_noerror of this NetworkDnscacheSetting. :type: int """ + + if not ttl_max_noerror: + raise ValueError("Invalid value for `ttl_max_noerror`, must not be `None`") + if ttl_max_noerror > 3600.0: + raise ValueError("Invalid value for `ttl_max_noerror`, must be a value less than or equal to `3600.0`") + if ttl_max_noerror < 0.0: + raise ValueError("Invalid value for `ttl_max_noerror`, must be a value greater than or equal to `0.0`") + self._ttl_max_noerror = ttl_max_noerror @property @@ -234,6 +283,14 @@ def ttl_max_nxdomain(self, ttl_max_nxdomain): :param ttl_max_nxdomain: The ttl_max_nxdomain of this NetworkDnscacheSetting. :type: int """ + + if not ttl_max_nxdomain: + raise ValueError("Invalid value for `ttl_max_nxdomain`, must not be `None`") + if ttl_max_nxdomain > 3600.0: + raise ValueError("Invalid value for `ttl_max_nxdomain`, must be a value less than or equal to `3600.0`") + if ttl_max_nxdomain < 0.0: + raise ValueError("Invalid value for `ttl_max_nxdomain`, must be a value greater than or equal to `0.0`") + self._ttl_max_nxdomain = ttl_max_nxdomain @property @@ -256,6 +313,14 @@ def ttl_max_other(self, ttl_max_other): :param ttl_max_other: The ttl_max_other of this NetworkDnscacheSetting. :type: int """ + + if not ttl_max_other: + raise ValueError("Invalid value for `ttl_max_other`, must not be `None`") + if ttl_max_other > 3600.0: + raise ValueError("Invalid value for `ttl_max_other`, must be a value less than or equal to `3600.0`") + if ttl_max_other < 0.0: + raise ValueError("Invalid value for `ttl_max_other`, must be a value greater than or equal to `0.0`") + self._ttl_max_other = ttl_max_other @property @@ -278,6 +343,14 @@ def ttl_max_servfail(self, ttl_max_servfail): :param ttl_max_servfail: The ttl_max_servfail of this NetworkDnscacheSetting. :type: int """ + + if not ttl_max_servfail: + raise ValueError("Invalid value for `ttl_max_servfail`, must not be `None`") + if ttl_max_servfail > 3600.0: + raise ValueError("Invalid value for `ttl_max_servfail`, must be a value less than or equal to `3600.0`") + if ttl_max_servfail < 0.0: + raise ValueError("Invalid value for `ttl_max_servfail`, must be a value greater than or equal to `0.0`") + self._ttl_max_servfail = ttl_max_servfail @property @@ -300,6 +373,14 @@ def ttl_min_noerror(self, ttl_min_noerror): :param ttl_min_noerror: The ttl_min_noerror of this NetworkDnscacheSetting. :type: int """ + + if not ttl_min_noerror: + raise ValueError("Invalid value for `ttl_min_noerror`, must not be `None`") + if ttl_min_noerror > 3600.0: + raise ValueError("Invalid value for `ttl_min_noerror`, must be a value less than or equal to `3600.0`") + if ttl_min_noerror < 0.0: + raise ValueError("Invalid value for `ttl_min_noerror`, must be a value greater than or equal to `0.0`") + self._ttl_min_noerror = ttl_min_noerror @property @@ -322,6 +403,14 @@ def ttl_min_nxdomain(self, ttl_min_nxdomain): :param ttl_min_nxdomain: The ttl_min_nxdomain of this NetworkDnscacheSetting. :type: int """ + + if not ttl_min_nxdomain: + raise ValueError("Invalid value for `ttl_min_nxdomain`, must not be `None`") + if ttl_min_nxdomain > 3600.0: + raise ValueError("Invalid value for `ttl_min_nxdomain`, must be a value less than or equal to `3600.0`") + if ttl_min_nxdomain < 0.0: + raise ValueError("Invalid value for `ttl_min_nxdomain`, must be a value greater than or equal to `0.0`") + self._ttl_min_nxdomain = ttl_min_nxdomain @property @@ -344,6 +433,14 @@ def ttl_min_other(self, ttl_min_other): :param ttl_min_other: The ttl_min_other of this NetworkDnscacheSetting. :type: int """ + + if not ttl_min_other: + raise ValueError("Invalid value for `ttl_min_other`, must not be `None`") + if ttl_min_other > 3600.0: + raise ValueError("Invalid value for `ttl_min_other`, must be a value less than or equal to `3600.0`") + if ttl_min_other < 0.0: + raise ValueError("Invalid value for `ttl_min_other`, must be a value greater than or equal to `0.0`") + self._ttl_min_other = ttl_min_other @property @@ -366,6 +463,14 @@ def ttl_min_servfail(self, ttl_min_servfail): :param ttl_min_servfail: The ttl_min_servfail of this NetworkDnscacheSetting. :type: int """ + + if not ttl_min_servfail: + raise ValueError("Invalid value for `ttl_min_servfail`, must not be `None`") + if ttl_min_servfail > 3600.0: + raise ValueError("Invalid value for `ttl_min_servfail`, must be a value less than or equal to `3600.0`") + if ttl_min_servfail < 0.0: + raise ValueError("Invalid value for `ttl_min_servfail`, must be a value greater than or equal to `0.0`") + self._ttl_min_servfail = ttl_min_servfail def to_dict(self): @@ -383,6 +488,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -400,14 +511,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_external.py b/isi_sdk/models/network_external.py index 5b58ddbbb..00e9eee58 100644 --- a/isi_sdk/models/network_external.py +++ b/isi_sdk/models/network_external.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkExternal(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this NetworkExternal. :type: list[NetworkExternalSetting] """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_external_extended.py b/isi_sdk/models/network_external_extended.py index 72839eecf..fcb1d0a07 100644 --- a/isi_sdk/models/network_external_extended.py +++ b/isi_sdk/models/network_external_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkExternalExtended(object): @@ -37,68 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'sc_rebalance_delay': 'int', - 'settings': 'list[NetworkExternalSetting]', 'sbr': 'bool', + 'sc_rebalance_delay': 'int', 'tcp_ports': 'list[int]' } self.attribute_map = { - 'sc_rebalance_delay': 'sc_rebalance_delay', - 'settings': 'settings', 'sbr': 'sbr', + 'sc_rebalance_delay': 'sc_rebalance_delay', 'tcp_ports': 'tcp_ports' } - self._sc_rebalance_delay = None - self._settings = None self._sbr = None + self._sc_rebalance_delay = None self._tcp_ports = None - @property - def sc_rebalance_delay(self): - """ - Gets the sc_rebalance_delay of this NetworkExternalExtended. - Delay in seconds for IP rebalance. - - :return: The sc_rebalance_delay of this NetworkExternalExtended. - :rtype: int - """ - return self._sc_rebalance_delay - - @sc_rebalance_delay.setter - def sc_rebalance_delay(self, sc_rebalance_delay): - """ - Sets the sc_rebalance_delay of this NetworkExternalExtended. - Delay in seconds for IP rebalance. - - :param sc_rebalance_delay: The sc_rebalance_delay of this NetworkExternalExtended. - :type: int - """ - self._sc_rebalance_delay = sc_rebalance_delay - - @property - def settings(self): - """ - Gets the settings of this NetworkExternalExtended. - - - :return: The settings of this NetworkExternalExtended. - :rtype: list[NetworkExternalSetting] - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this NetworkExternalExtended. - - - :param settings: The settings of this NetworkExternalExtended. - :type: list[NetworkExternalSetting] - """ - self._settings = settings - @property def sbr(self): """ @@ -119,8 +73,39 @@ def sbr(self, sbr): :param sbr: The sbr of this NetworkExternalExtended. :type: bool """ + self._sbr = sbr + @property + def sc_rebalance_delay(self): + """ + Gets the sc_rebalance_delay of this NetworkExternalExtended. + Delay in seconds for IP rebalance. + + :return: The sc_rebalance_delay of this NetworkExternalExtended. + :rtype: int + """ + return self._sc_rebalance_delay + + @sc_rebalance_delay.setter + def sc_rebalance_delay(self, sc_rebalance_delay): + """ + Sets the sc_rebalance_delay of this NetworkExternalExtended. + Delay in seconds for IP rebalance. + + :param sc_rebalance_delay: The sc_rebalance_delay of this NetworkExternalExtended. + :type: int + """ + + if not sc_rebalance_delay: + raise ValueError("Invalid value for `sc_rebalance_delay`, must not be `None`") + if sc_rebalance_delay > 10.0: + raise ValueError("Invalid value for `sc_rebalance_delay`, must be a value less than or equal to `10.0`") + if sc_rebalance_delay < 0.0: + raise ValueError("Invalid value for `sc_rebalance_delay`, must be a value greater than or equal to `0.0`") + + self._sc_rebalance_delay = sc_rebalance_delay + @property def tcp_ports(self): """ @@ -141,6 +126,7 @@ def tcp_ports(self, tcp_ports): :param tcp_ports: The tcp_ports of this NetworkExternalExtended. :type: list[int] """ + self._tcp_ports = tcp_ports def to_dict(self): @@ -158,6 +144,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +167,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_external_setting.py b/isi_sdk/models/network_external_setting.py index 090ebf3d1..155310864 100644 --- a/isi_sdk/models/network_external_setting.py +++ b/isi_sdk/models/network_external_setting.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkExternalSetting(object): @@ -75,6 +76,7 @@ def default_groupnet(self, default_groupnet): :param default_groupnet: The default_groupnet of this NetworkExternalSetting. :type: str """ + self._default_groupnet = default_groupnet @property @@ -97,6 +99,7 @@ def sbr(self, sbr): :param sbr: The sbr of this NetworkExternalSetting. :type: bool """ + self._sbr = sbr @property @@ -119,6 +122,14 @@ def sc_rebalance_delay(self, sc_rebalance_delay): :param sc_rebalance_delay: The sc_rebalance_delay of this NetworkExternalSetting. :type: int """ + + if not sc_rebalance_delay: + raise ValueError("Invalid value for `sc_rebalance_delay`, must not be `None`") + if sc_rebalance_delay > 10.0: + raise ValueError("Invalid value for `sc_rebalance_delay`, must be a value less than or equal to `10.0`") + if sc_rebalance_delay < 0.0: + raise ValueError("Invalid value for `sc_rebalance_delay`, must be a value greater than or equal to `0.0`") + self._sc_rebalance_delay = sc_rebalance_delay @property @@ -141,6 +152,7 @@ def tcp_ports(self, tcp_ports): :param tcp_ports: The tcp_ports of this NetworkExternalSetting. :type: list[int] """ + self._tcp_ports = tcp_ports def to_dict(self): @@ -158,6 +170,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +193,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_groupnet.py b/isi_sdk/models/network_groupnet.py index 245a9dbb4..c58902c58 100644 --- a/isi_sdk/models/network_groupnet.py +++ b/isi_sdk/models/network_groupnet.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkGroupnet(object): @@ -84,6 +85,12 @@ def description(self, description): :param description: The description of this NetworkGroupnet. :type: str """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + self._description = description @property @@ -106,6 +113,7 @@ def dns_cache_enabled(self, dns_cache_enabled): :param dns_cache_enabled: The dns_cache_enabled of this NetworkGroupnet. :type: bool """ + self._dns_cache_enabled = dns_cache_enabled @property @@ -128,6 +136,7 @@ def dns_options(self, dns_options): :param dns_options: The dns_options of this NetworkGroupnet. :type: list[str] """ + self._dns_options = dns_options @property @@ -150,6 +159,7 @@ def dns_search(self, dns_search): :param dns_search: The dns_search of this NetworkGroupnet. :type: list[str] """ + self._dns_search = dns_search @property @@ -172,6 +182,7 @@ def dns_servers(self, dns_servers): :param dns_servers: The dns_servers of this NetworkGroupnet. :type: list[str] """ + self._dns_servers = dns_servers @property @@ -194,6 +205,12 @@ def name(self, name): :param name: The name of this NetworkGroupnet. :type: str """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + self._name = name @property @@ -216,6 +233,7 @@ def server_side_dns_search(self, server_side_dns_search): :param server_side_dns_search: The server_side_dns_search of this NetworkGroupnet. :type: bool """ + self._server_side_dns_search = server_side_dns_search def to_dict(self): @@ -233,6 +251,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +274,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_groupnet_extended.py b/isi_sdk/models/network_groupnet_extended.py index 0fe95c8a8..3bd0fe18a 100644 --- a/isi_sdk/models/network_groupnet_extended.py +++ b/isi_sdk/models/network_groupnet_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkGroupnetExtended(object): @@ -37,38 +38,89 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'description': 'str', + 'dns_cache_enabled': 'bool', 'dns_options': 'list[str]', - 'server_side_dns_search': 'bool', 'dns_search': 'list[str]', + 'dns_servers': 'list[str]', 'name': 'str', - 'description': 'str', - 'dns_cache_enabled': 'bool', - 'subnets': 'list[str]', + 'server_side_dns_search': 'bool', 'id': 'str', - 'dns_servers': 'list[str]' + 'subnets': 'list[str]' } self.attribute_map = { + 'description': 'description', + 'dns_cache_enabled': 'dns_cache_enabled', 'dns_options': 'dns_options', - 'server_side_dns_search': 'server_side_dns_search', 'dns_search': 'dns_search', + 'dns_servers': 'dns_servers', 'name': 'name', - 'description': 'description', - 'dns_cache_enabled': 'dns_cache_enabled', - 'subnets': 'subnets', + 'server_side_dns_search': 'server_side_dns_search', 'id': 'id', - 'dns_servers': 'dns_servers' + 'subnets': 'subnets' } + self._description = None + self._dns_cache_enabled = None self._dns_options = None - self._server_side_dns_search = None self._dns_search = None + self._dns_servers = None self._name = None - self._description = None - self._dns_cache_enabled = None - self._subnets = None + self._server_side_dns_search = None self._id = None - self._dns_servers = None + self._subnets = None + + @property + def description(self): + """ + Gets the description of this NetworkGroupnetExtended. + A description of the groupnet. + + :return: The description of this NetworkGroupnetExtended. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this NetworkGroupnetExtended. + A description of the groupnet. + + :param description: The description of this NetworkGroupnetExtended. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def dns_cache_enabled(self): + """ + Gets the dns_cache_enabled of this NetworkGroupnetExtended. + DNS caching is enabled or disabled. + + :return: The dns_cache_enabled of this NetworkGroupnetExtended. + :rtype: bool + """ + return self._dns_cache_enabled + + @dns_cache_enabled.setter + def dns_cache_enabled(self, dns_cache_enabled): + """ + Sets the dns_cache_enabled of this NetworkGroupnetExtended. + DNS caching is enabled or disabled. + + :param dns_cache_enabled: The dns_cache_enabled of this NetworkGroupnetExtended. + :type: bool + """ + + self._dns_cache_enabled = dns_cache_enabled @property def dns_options(self): @@ -90,30 +142,9 @@ def dns_options(self, dns_options): :param dns_options: The dns_options of this NetworkGroupnetExtended. :type: list[str] """ + self._dns_options = dns_options - @property - def server_side_dns_search(self): - """ - Gets the server_side_dns_search of this NetworkGroupnetExtended. - Enable or disable appending nodes DNS search list to client DNS inquiries directed at SmartConnect service IP. - - :return: The server_side_dns_search of this NetworkGroupnetExtended. - :rtype: bool - """ - return self._server_side_dns_search - - @server_side_dns_search.setter - def server_side_dns_search(self, server_side_dns_search): - """ - Sets the server_side_dns_search of this NetworkGroupnetExtended. - Enable or disable appending nodes DNS search list to client DNS inquiries directed at SmartConnect service IP. - - :param server_side_dns_search: The server_side_dns_search of this NetworkGroupnetExtended. - :type: bool - """ - self._server_side_dns_search = server_side_dns_search - @property def dns_search(self): """ @@ -134,8 +165,32 @@ def dns_search(self, dns_search): :param dns_search: The dns_search of this NetworkGroupnetExtended. :type: list[str] """ + self._dns_search = dns_search + @property + def dns_servers(self): + """ + Gets the dns_servers of this NetworkGroupnetExtended. + List of Domain Name Server IP addresses. + + :return: The dns_servers of this NetworkGroupnetExtended. + :rtype: list[str] + """ + return self._dns_servers + + @dns_servers.setter + def dns_servers(self, dns_servers): + """ + Sets the dns_servers of this NetworkGroupnetExtended. + List of Domain Name Server IP addresses. + + :param dns_servers: The dns_servers of this NetworkGroupnetExtended. + :type: list[str] + """ + + self._dns_servers = dns_servers + @property def name(self): """ @@ -156,73 +211,36 @@ def name(self, name): :param name: The name of this NetworkGroupnetExtended. :type: str """ - self._name = name - - @property - def description(self): - """ - Gets the description of this NetworkGroupnetExtended. - A description of the groupnet. + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") - :return: The description of this NetworkGroupnetExtended. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """ - Sets the description of this NetworkGroupnetExtended. - A description of the groupnet. - - :param description: The description of this NetworkGroupnetExtended. - :type: str - """ - self._description = description + self._name = name @property - def dns_cache_enabled(self): + def server_side_dns_search(self): """ - Gets the dns_cache_enabled of this NetworkGroupnetExtended. - DNS caching is enabled or disabled. + Gets the server_side_dns_search of this NetworkGroupnetExtended. + Enable or disable appending nodes DNS search list to client DNS inquiries directed at SmartConnect service IP. - :return: The dns_cache_enabled of this NetworkGroupnetExtended. + :return: The server_side_dns_search of this NetworkGroupnetExtended. :rtype: bool """ - return self._dns_cache_enabled + return self._server_side_dns_search - @dns_cache_enabled.setter - def dns_cache_enabled(self, dns_cache_enabled): + @server_side_dns_search.setter + def server_side_dns_search(self, server_side_dns_search): """ - Sets the dns_cache_enabled of this NetworkGroupnetExtended. - DNS caching is enabled or disabled. + Sets the server_side_dns_search of this NetworkGroupnetExtended. + Enable or disable appending nodes DNS search list to client DNS inquiries directed at SmartConnect service IP. - :param dns_cache_enabled: The dns_cache_enabled of this NetworkGroupnetExtended. + :param server_side_dns_search: The server_side_dns_search of this NetworkGroupnetExtended. :type: bool """ - self._dns_cache_enabled = dns_cache_enabled - - @property - def subnets(self): - """ - Gets the subnets of this NetworkGroupnetExtended. - Name of the subnets in the groupnet. - - :return: The subnets of this NetworkGroupnetExtended. - :rtype: list[str] - """ - return self._subnets - - @subnets.setter - def subnets(self, subnets): - """ - Sets the subnets of this NetworkGroupnetExtended. - Name of the subnets in the groupnet. - - :param subnets: The subnets of this NetworkGroupnetExtended. - :type: list[str] - """ - self._subnets = subnets + + self._server_side_dns_search = server_side_dns_search @property def id(self): @@ -244,29 +262,31 @@ def id(self, id): :param id: The id of this NetworkGroupnetExtended. :type: str """ + self._id = id @property - def dns_servers(self): + def subnets(self): """ - Gets the dns_servers of this NetworkGroupnetExtended. - List of Domain Name Server IP addresses. + Gets the subnets of this NetworkGroupnetExtended. + Name of the subnets in the groupnet. - :return: The dns_servers of this NetworkGroupnetExtended. + :return: The subnets of this NetworkGroupnetExtended. :rtype: list[str] """ - return self._dns_servers + return self._subnets - @dns_servers.setter - def dns_servers(self, dns_servers): + @subnets.setter + def subnets(self, subnets): """ - Sets the dns_servers of this NetworkGroupnetExtended. - List of Domain Name Server IP addresses. + Sets the subnets of this NetworkGroupnetExtended. + Name of the subnets in the groupnet. - :param dns_servers: The dns_servers of this NetworkGroupnetExtended. + :param subnets: The subnets of this NetworkGroupnetExtended. :type: list[str] """ - self._dns_servers = dns_servers + + self._subnets = subnets def to_dict(self): """ @@ -283,6 +303,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +326,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_groupnets.py b/isi_sdk/models/network_groupnets.py index 141a616ad..2bd406d6b 100644 --- a/isi_sdk/models/network_groupnets.py +++ b/isi_sdk/models/network_groupnets.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkGroupnets(object): @@ -66,6 +67,7 @@ def groupnets(self, groupnets): :param groupnets: The groupnets of this NetworkGroupnets. :type: list[NetworkGroupnetExtended] """ + self._groupnets = groupnets def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_groupnets_extended.py b/isi_sdk/models/network_groupnets_extended.py index b47eb7415..05b2385aa 100644 --- a/isi_sdk/models/network_groupnets_extended.py +++ b/isi_sdk/models/network_groupnets_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkGroupnetsExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'groupnets': 'list[NetworkGroupnetExtended]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'groupnets': 'groupnets', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._groupnets = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this NetworkGroupnetsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this NetworkGroupnetsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this NetworkGroupnetsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this NetworkGroupnetsExtended. - :type: str - """ - self._resume = resume - @property def groupnets(self): """ @@ -94,8 +73,32 @@ def groupnets(self, groupnets): :param groupnets: The groupnets of this NetworkGroupnetsExtended. :type: list[NetworkGroupnetExtended] """ + self._groupnets = groupnets + @property + def resume(self): + """ + Gets the resume of this NetworkGroupnetsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this NetworkGroupnetsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this NetworkGroupnetsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this NetworkGroupnetsExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this NetworkGroupnetsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_pools.py b/isi_sdk/models/network_pools.py index 7844d4055..65e0dd499 100644 --- a/isi_sdk/models/network_pools.py +++ b/isi_sdk/models/network_pools.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkPools(object): @@ -37,7 +38,7 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'pools': 'list[GroupnetsGroupnetSubnetsSubnetPoolsPool]', + 'pools': 'list[SubnetsSubnetPoolsPool]', 'resume': 'str', 'total': 'int' } @@ -59,7 +60,7 @@ def pools(self): :return: The pools of this NetworkPools. - :rtype: list[GroupnetsGroupnetSubnetsSubnetPoolsPool] + :rtype: list[SubnetsSubnetPoolsPool] """ return self._pools @@ -70,8 +71,9 @@ def pools(self, pools): :param pools: The pools of this NetworkPools. - :type: list[GroupnetsGroupnetSubnetsSubnetPoolsPool] + :type: list[SubnetsSubnetPoolsPool] """ + self._pools = pools @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this NetworkPools. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this NetworkPools. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_rules.py b/isi_sdk/models/network_rules.py index 8f1763d08..3803ca7ef 100644 --- a/isi_sdk/models/network_rules.py +++ b/isi_sdk/models/network_rules.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkRules(object): @@ -38,7 +39,7 @@ def __init__(self): """ self.swagger_types = { 'resume': 'str', - 'rules': 'list[GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesRule]', + 'rules': 'list[PoolsPoolRulesRule]', 'total': 'int' } @@ -72,6 +73,7 @@ def resume(self, resume): :param resume: The resume of this NetworkRules. :type: str """ + self._resume = resume @property @@ -81,7 +83,7 @@ def rules(self): :return: The rules of this NetworkRules. - :rtype: list[GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesRule] + :rtype: list[PoolsPoolRulesRule] """ return self._rules @@ -92,8 +94,9 @@ def rules(self, rules): :param rules: The rules of this NetworkRules. - :type: list[GroupnetsGroupnetSubnetsSubnetPoolsPoolRulesRule] + :type: list[PoolsPoolRulesRule] """ + self._rules = rules @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this NetworkRules. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/network_subnet.py b/isi_sdk/models/network_subnet.py new file mode 100644 index 000000000..78d4983f1 --- /dev/null +++ b/isi_sdk/models/network_subnet.py @@ -0,0 +1,530 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NetworkSubnet(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NetworkSubnet - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'addr_family': 'str', + 'base_addr': 'str', + 'description': 'str', + 'dsr_addrs': 'list[str]', + 'gateway': 'str', + 'gateway_priority': 'int', + 'groupnet': 'str', + 'id': 'str', + 'mtu': 'int', + 'name': 'str', + 'pools': 'list[str]', + 'prefixlen': 'int', + 'sc_service_addr': 'str', + 'vlan_enabled': 'bool', + 'vlan_id': 'int' + } + + self.attribute_map = { + 'addr_family': 'addr_family', + 'base_addr': 'base_addr', + 'description': 'description', + 'dsr_addrs': 'dsr_addrs', + 'gateway': 'gateway', + 'gateway_priority': 'gateway_priority', + 'groupnet': 'groupnet', + 'id': 'id', + 'mtu': 'mtu', + 'name': 'name', + 'pools': 'pools', + 'prefixlen': 'prefixlen', + 'sc_service_addr': 'sc_service_addr', + 'vlan_enabled': 'vlan_enabled', + 'vlan_id': 'vlan_id' + } + + self._addr_family = None + self._base_addr = None + self._description = None + self._dsr_addrs = None + self._gateway = None + self._gateway_priority = None + self._groupnet = None + self._id = None + self._mtu = None + self._name = None + self._pools = None + self._prefixlen = None + self._sc_service_addr = None + self._vlan_enabled = None + self._vlan_id = None + + @property + def addr_family(self): + """ + Gets the addr_family of this NetworkSubnet. + IP address format. + + :return: The addr_family of this NetworkSubnet. + :rtype: str + """ + return self._addr_family + + @addr_family.setter + def addr_family(self, addr_family): + """ + Sets the addr_family of this NetworkSubnet. + IP address format. + + :param addr_family: The addr_family of this NetworkSubnet. + :type: str + """ + allowed_values = ["ipv4", "ipv6"] + if addr_family not in allowed_values: + raise ValueError( + "Invalid value for `addr_family`, must be one of {0}" + .format(allowed_values) + ) + + self._addr_family = addr_family + + @property + def base_addr(self): + """ + Gets the base_addr of this NetworkSubnet. + The base IP address. + + :return: The base_addr of this NetworkSubnet. + :rtype: str + """ + return self._base_addr + + @base_addr.setter + def base_addr(self, base_addr): + """ + Sets the base_addr of this NetworkSubnet. + The base IP address. + + :param base_addr: The base_addr of this NetworkSubnet. + :type: str + """ + + self._base_addr = base_addr + + @property + def description(self): + """ + Gets the description of this NetworkSubnet. + A description of the subnet. + + :return: The description of this NetworkSubnet. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this NetworkSubnet. + A description of the subnet. + + :param description: The description of this NetworkSubnet. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def dsr_addrs(self): + """ + Gets the dsr_addrs of this NetworkSubnet. + List of Direct Server Return addresses. + + :return: The dsr_addrs of this NetworkSubnet. + :rtype: list[str] + """ + return self._dsr_addrs + + @dsr_addrs.setter + def dsr_addrs(self, dsr_addrs): + """ + Sets the dsr_addrs of this NetworkSubnet. + List of Direct Server Return addresses. + + :param dsr_addrs: The dsr_addrs of this NetworkSubnet. + :type: list[str] + """ + + self._dsr_addrs = dsr_addrs + + @property + def gateway(self): + """ + Gets the gateway of this NetworkSubnet. + Gateway IP address. + + :return: The gateway of this NetworkSubnet. + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """ + Sets the gateway of this NetworkSubnet. + Gateway IP address. + + :param gateway: The gateway of this NetworkSubnet. + :type: str + """ + + self._gateway = gateway + + @property + def gateway_priority(self): + """ + Gets the gateway_priority of this NetworkSubnet. + Gateway priority. + + :return: The gateway_priority of this NetworkSubnet. + :rtype: int + """ + return self._gateway_priority + + @gateway_priority.setter + def gateway_priority(self, gateway_priority): + """ + Sets the gateway_priority of this NetworkSubnet. + Gateway priority. + + :param gateway_priority: The gateway_priority of this NetworkSubnet. + :type: int + """ + + if not gateway_priority: + raise ValueError("Invalid value for `gateway_priority`, must not be `None`") + if gateway_priority > 2.147483647E9: + raise ValueError("Invalid value for `gateway_priority`, must be a value less than or equal to `2.147483647E9`") + if gateway_priority < 1.0: + raise ValueError("Invalid value for `gateway_priority`, must be a value greater than or equal to `1.0`") + + self._gateway_priority = gateway_priority + + @property + def groupnet(self): + """ + Gets the groupnet of this NetworkSubnet. + Name of the groupnet this subnet belongs to. + + :return: The groupnet of this NetworkSubnet. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this NetworkSubnet. + Name of the groupnet this subnet belongs to. + + :param groupnet: The groupnet of this NetworkSubnet. + :type: str + """ + + self._groupnet = groupnet + + @property + def id(self): + """ + Gets the id of this NetworkSubnet. + Unique Subnet ID. + + :return: The id of this NetworkSubnet. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NetworkSubnet. + Unique Subnet ID. + + :param id: The id of this NetworkSubnet. + :type: str + """ + + self._id = id + + @property + def mtu(self): + """ + Gets the mtu of this NetworkSubnet. + MTU of the subnet. + + :return: The mtu of this NetworkSubnet. + :rtype: int + """ + return self._mtu + + @mtu.setter + def mtu(self, mtu): + """ + Sets the mtu of this NetworkSubnet. + MTU of the subnet. + + :param mtu: The mtu of this NetworkSubnet. + :type: int + """ + + if not mtu: + raise ValueError("Invalid value for `mtu`, must not be `None`") + if mtu > 9000.0: + raise ValueError("Invalid value for `mtu`, must be a value less than or equal to `9000.0`") + if mtu < 576.0: + raise ValueError("Invalid value for `mtu`, must be a value greater than or equal to `576.0`") + + self._mtu = mtu + + @property + def name(self): + """ + Gets the name of this NetworkSubnet. + The name of the subnet. + + :return: The name of this NetworkSubnet. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NetworkSubnet. + The name of the subnet. + + :param name: The name of this NetworkSubnet. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + + self._name = name + + @property + def pools(self): + """ + Gets the pools of this NetworkSubnet. + Name of the pools in the subnet. + + :return: The pools of this NetworkSubnet. + :rtype: list[str] + """ + return self._pools + + @pools.setter + def pools(self, pools): + """ + Sets the pools of this NetworkSubnet. + Name of the pools in the subnet. + + :param pools: The pools of this NetworkSubnet. + :type: list[str] + """ + + self._pools = pools + + @property + def prefixlen(self): + """ + Gets the prefixlen of this NetworkSubnet. + Subnet Prefix Length. + + :return: The prefixlen of this NetworkSubnet. + :rtype: int + """ + return self._prefixlen + + @prefixlen.setter + def prefixlen(self, prefixlen): + """ + Sets the prefixlen of this NetworkSubnet. + Subnet Prefix Length. + + :param prefixlen: The prefixlen of this NetworkSubnet. + :type: int + """ + + if not prefixlen: + raise ValueError("Invalid value for `prefixlen`, must not be `None`") + if prefixlen > 128.0: + raise ValueError("Invalid value for `prefixlen`, must be a value less than or equal to `128.0`") + if prefixlen < 1.0: + raise ValueError("Invalid value for `prefixlen`, must be a value greater than or equal to `1.0`") + + self._prefixlen = prefixlen + + @property + def sc_service_addr(self): + """ + Gets the sc_service_addr of this NetworkSubnet. + The address that SmartConnect listens for DNS requests. + + :return: The sc_service_addr of this NetworkSubnet. + :rtype: str + """ + return self._sc_service_addr + + @sc_service_addr.setter + def sc_service_addr(self, sc_service_addr): + """ + Sets the sc_service_addr of this NetworkSubnet. + The address that SmartConnect listens for DNS requests. + + :param sc_service_addr: The sc_service_addr of this NetworkSubnet. + :type: str + """ + + self._sc_service_addr = sc_service_addr + + @property + def vlan_enabled(self): + """ + Gets the vlan_enabled of this NetworkSubnet. + VLAN tagging enabled or disabled. + + :return: The vlan_enabled of this NetworkSubnet. + :rtype: bool + """ + return self._vlan_enabled + + @vlan_enabled.setter + def vlan_enabled(self, vlan_enabled): + """ + Sets the vlan_enabled of this NetworkSubnet. + VLAN tagging enabled or disabled. + + :param vlan_enabled: The vlan_enabled of this NetworkSubnet. + :type: bool + """ + + self._vlan_enabled = vlan_enabled + + @property + def vlan_id(self): + """ + Gets the vlan_id of this NetworkSubnet. + VLAN ID for all interfaces in the subnet. + + :return: The vlan_id of this NetworkSubnet. + :rtype: int + """ + return self._vlan_id + + @vlan_id.setter + def vlan_id(self, vlan_id): + """ + Sets the vlan_id of this NetworkSubnet. + VLAN ID for all interfaces in the subnet. + + :param vlan_id: The vlan_id of this NetworkSubnet. + :type: int + """ + + if not vlan_id: + raise ValueError("Invalid value for `vlan_id`, must not be `None`") + if vlan_id > 4094.0: + raise ValueError("Invalid value for `vlan_id`, must be a value less than or equal to `4094.0`") + if vlan_id < 2.0: + raise ValueError("Invalid value for `vlan_id`, must be a value greater than or equal to `2.0`") + + self._vlan_id = vlan_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/network_subnets.py b/isi_sdk/models/network_subnets.py index 45b719371..e1f67cc00 100644 --- a/isi_sdk/models/network_subnets.py +++ b/isi_sdk/models/network_subnets.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NetworkSubnets(object): @@ -38,7 +39,7 @@ def __init__(self): """ self.swagger_types = { 'resume': 'str', - 'subnets': 'list[GroupnetsGroupnetSubnetsSubnet]', + 'subnets': 'list[NetworkSubnet]', 'total': 'int' } @@ -72,6 +73,7 @@ def resume(self, resume): :param resume: The resume of this NetworkSubnets. :type: str """ + self._resume = resume @property @@ -81,7 +83,7 @@ def subnets(self): :return: The subnets of this NetworkSubnets. - :rtype: list[GroupnetsGroupnetSubnetsSubnet] + :rtype: list[NetworkSubnet] """ return self._subnets @@ -92,8 +94,9 @@ def subnets(self, subnets): :param subnets: The subnets of this NetworkSubnets. - :type: list[GroupnetsGroupnetSubnetsSubnet] + :type: list[NetworkSubnet] """ + self._subnets = subnets @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this NetworkSubnets. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_aliase.py b/isi_sdk/models/nfs_aliase.py index f153a9e83..bffefe1a3 100644 --- a/isi_sdk/models/nfs_aliase.py +++ b/isi_sdk/models/nfs_aliase.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsAliase(object): @@ -81,6 +82,7 @@ def health(self, health): "Invalid value for `health`, must be one of {0}" .format(allowed_values) ) + self._health = health @property @@ -103,6 +105,7 @@ def name(self, name): :param name: The name of this NfsAliase. :type: str """ + self._name = name @property @@ -125,6 +128,7 @@ def path(self, path): :param path: The path of this NfsAliase. :type: str """ + self._path = path @property @@ -147,6 +151,7 @@ def zone(self, zone): :param zone: The zone of this NfsAliase. :type: str """ + self._zone = zone def to_dict(self): @@ -164,6 +169,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -181,14 +192,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_aliase_extended.py b/isi_sdk/models/nfs_aliase_extended.py index 2b9259481..b7ca4eb33 100644 --- a/isi_sdk/models/nfs_aliase_extended.py +++ b/isi_sdk/models/nfs_aliase_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsAliaseExtended(object): @@ -37,48 +38,26 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', 'health': 'str', + 'name': 'str', 'path': 'str', - 'id': 'str', - 'zone': 'str' + 'zone': 'str', + 'id': 'str' } self.attribute_map = { - 'name': 'name', 'health': 'health', + 'name': 'name', 'path': 'path', - 'id': 'id', - 'zone': 'zone' + 'zone': 'zone', + 'id': 'id' } - self._name = None self._health = None + self._name = None self._path = None - self._id = None self._zone = None - - @property - def name(self): - """ - Gets the name of this NfsAliaseExtended. - Specifies the name by which the alias can be referenced. - - :return: The name of this NfsAliaseExtended. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this NfsAliaseExtended. - Specifies the name by which the alias can be referenced. - - :param name: The name of this NfsAliaseExtended. - :type: str - """ - self._name = name + self._id = None @property def health(self): @@ -106,51 +85,54 @@ def health(self, health): "Invalid value for `health`, must be one of {0}" .format(allowed_values) ) + self._health = health @property - def path(self): + def name(self): """ - Gets the path of this NfsAliaseExtended. - Specifies the path to which the alias points. + Gets the name of this NfsAliaseExtended. + Specifies the name by which the alias can be referenced. - :return: The path of this NfsAliaseExtended. + :return: The name of this NfsAliaseExtended. :rtype: str """ - return self._path + return self._name - @path.setter - def path(self, path): + @name.setter + def name(self, name): """ - Sets the path of this NfsAliaseExtended. - Specifies the path to which the alias points. + Sets the name of this NfsAliaseExtended. + Specifies the name by which the alias can be referenced. - :param path: The path of this NfsAliaseExtended. + :param name: The name of this NfsAliaseExtended. :type: str """ - self._path = path + + self._name = name @property - def id(self): + def path(self): """ - Gets the id of this NfsAliaseExtended. - Specifies a string which represents the unique location of the alias. + Gets the path of this NfsAliaseExtended. + Specifies the path to which the alias points. - :return: The id of this NfsAliaseExtended. + :return: The path of this NfsAliaseExtended. :rtype: str """ - return self._id + return self._path - @id.setter - def id(self, id): + @path.setter + def path(self, path): """ - Sets the id of this NfsAliaseExtended. - Specifies a string which represents the unique location of the alias. + Sets the path of this NfsAliaseExtended. + Specifies the path to which the alias points. - :param id: The id of this NfsAliaseExtended. + :param path: The path of this NfsAliaseExtended. :type: str """ - self._id = id + + self._path = path @property def zone(self): @@ -172,8 +154,32 @@ def zone(self, zone): :param zone: The zone of this NfsAliaseExtended. :type: str """ + self._zone = zone + @property + def id(self): + """ + Gets the id of this NfsAliaseExtended. + Specifies a string which represents the unique location of the alias. + + :return: The id of this NfsAliaseExtended. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NfsAliaseExtended. + Specifies a string which represents the unique location of the alias. + + :param id: The id of this NfsAliaseExtended. + :type: str + """ + + self._id = id + def to_dict(self): """ Returns the model properties as a dict @@ -189,6 +195,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -206,14 +218,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_aliases.py b/isi_sdk/models/nfs_aliases.py index 9c9dcc8a6..415964507 100644 --- a/isi_sdk/models/nfs_aliases.py +++ b/isi_sdk/models/nfs_aliases.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsAliases(object): @@ -66,6 +67,7 @@ def aliases(self, aliases): :param aliases: The aliases of this NfsAliases. :type: list[NfsAliaseExtended] """ + self._aliases = aliases def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_aliases_extended.py b/isi_sdk/models/nfs_aliases_extended.py index ed4384b49..a56228158 100644 --- a/isi_sdk/models/nfs_aliases_extended.py +++ b/isi_sdk/models/nfs_aliases_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsAliasesExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'aliases': 'list[NfsAliaseExtended]', 'resume': 'str', - 'total': 'int', - 'aliases': 'list[NfsAliaseExtended]' + 'total': 'int' } self.attribute_map = { + 'aliases': 'aliases', 'resume': 'resume', - 'total': 'total', - 'aliases': 'aliases' + 'total': 'total' } + self._aliases = None self._resume = None self._total = None - self._aliases = None + + @property + def aliases(self): + """ + Gets the aliases of this NfsAliasesExtended. + + + :return: The aliases of this NfsAliasesExtended. + :rtype: list[NfsAliaseExtended] + """ + return self._aliases + + @aliases.setter + def aliases(self, aliases): + """ + Sets the aliases of this NfsAliasesExtended. + + + :param aliases: The aliases of this NfsAliasesExtended. + :type: list[NfsAliaseExtended] + """ + + self._aliases = aliases @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this NfsAliasesExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this NfsAliasesExtended. :type: int """ + self._total = total - @property - def aliases(self): - """ - Gets the aliases of this NfsAliasesExtended. - - - :return: The aliases of this NfsAliasesExtended. - :rtype: list[NfsAliaseExtended] - """ - return self._aliases - - @aliases.setter - def aliases(self, aliases): - """ - Sets the aliases of this NfsAliasesExtended. - - - :param aliases: The aliases of this NfsAliasesExtended. - :type: list[NfsAliaseExtended] - """ - self._aliases = aliases - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_check.py b/isi_sdk/models/nfs_check.py index df517f3fd..5e157a675 100644 --- a/isi_sdk/models/nfs_check.py +++ b/isi_sdk/models/nfs_check.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsCheck(object): @@ -69,6 +70,7 @@ def id(self, id): :param id: The id of this NfsCheck. :type: int """ + self._id = id @property @@ -91,6 +93,7 @@ def messages(self, messages): :param messages: The messages of this NfsCheck. :type: str """ + self._messages = messages def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_check_extended.py b/isi_sdk/models/nfs_check_extended.py index f5959afcf..371e13a2b 100644 --- a/isi_sdk/models/nfs_check_extended.py +++ b/isi_sdk/models/nfs_check_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsCheckExtended(object): @@ -37,65 +38,15 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'messages': 'str', - 'id': 'int', 'checks': 'list[NfsCheck]' } self.attribute_map = { - 'messages': 'messages', - 'id': 'id', 'checks': 'checks' } - self._messages = None - self._id = None self._checks = None - @property - def messages(self): - """ - Gets the messages of this NfsCheckExtended. - The message about the export. - - :return: The messages of this NfsCheckExtended. - :rtype: str - """ - return self._messages - - @messages.setter - def messages(self, messages): - """ - Sets the messages of this NfsCheckExtended. - The message about the export. - - :param messages: The messages of this NfsCheckExtended. - :type: str - """ - self._messages = messages - - @property - def id(self): - """ - Gets the id of this NfsCheckExtended. - The ID of the export. - - :return: The id of this NfsCheckExtended. - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this NfsCheckExtended. - The ID of the export. - - :param id: The id of this NfsCheckExtended. - :type: int - """ - self._id = id - @property def checks(self): """ @@ -116,6 +67,7 @@ def checks(self, checks): :param checks: The checks of this NfsCheckExtended. :type: list[NfsCheck] """ + self._checks = checks def to_dict(self): @@ -133,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_export.py b/isi_sdk/models/nfs_export.py index 349c05410..2c01d655c 100644 --- a/isi_sdk/models/nfs_export.py +++ b/isi_sdk/models/nfs_export.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsExport(object): @@ -207,6 +208,7 @@ def all_dirs(self, all_dirs): :param all_dirs: The all_dirs of this NfsExport. :type: bool """ + self._all_dirs = all_dirs @property @@ -229,6 +231,7 @@ def block_size(self, block_size): :param block_size: The block_size of this NfsExport. :type: int """ + self._block_size = block_size @property @@ -251,6 +254,7 @@ def can_set_time(self, can_set_time): :param can_set_time: The can_set_time of this NfsExport. :type: bool """ + self._can_set_time = can_set_time @property @@ -273,6 +277,7 @@ def case_insensitive(self, case_insensitive): :param case_insensitive: The case_insensitive of this NfsExport. :type: bool """ + self._case_insensitive = case_insensitive @property @@ -295,6 +300,7 @@ def case_preserving(self, case_preserving): :param case_preserving: The case_preserving of this NfsExport. :type: bool """ + self._case_preserving = case_preserving @property @@ -317,6 +323,7 @@ def chown_restricted(self, chown_restricted): :param chown_restricted: The chown_restricted of this NfsExport. :type: bool """ + self._chown_restricted = chown_restricted @property @@ -339,6 +346,7 @@ def clients(self, clients): :param clients: The clients of this NfsExport. :type: list[str] """ + self._clients = clients @property @@ -361,6 +369,7 @@ def commit_asynchronous(self, commit_asynchronous): :param commit_asynchronous: The commit_asynchronous of this NfsExport. :type: bool """ + self._commit_asynchronous = commit_asynchronous @property @@ -383,6 +392,7 @@ def description(self, description): :param description: The description of this NfsExport. :type: str """ + self._description = description @property @@ -405,6 +415,7 @@ def directory_transfer_size(self, directory_transfer_size): :param directory_transfer_size: The directory_transfer_size of this NfsExport. :type: int """ + self._directory_transfer_size = directory_transfer_size @property @@ -427,6 +438,7 @@ def encoding(self, encoding): :param encoding: The encoding of this NfsExport. :type: str """ + self._encoding = encoding @property @@ -449,6 +461,7 @@ def link_max(self, link_max): :param link_max: The link_max of this NfsExport. :type: int """ + self._link_max = link_max @property @@ -471,6 +484,7 @@ def map_all(self, map_all): :param map_all: The map_all of this NfsExport. :type: NfsExportMapAll """ + self._map_all = map_all @property @@ -493,6 +507,7 @@ def map_failure(self, map_failure): :param map_failure: The map_failure of this NfsExport. :type: NfsExportMapAll """ + self._map_failure = map_failure @property @@ -515,6 +530,7 @@ def map_full(self, map_full): :param map_full: The map_full of this NfsExport. :type: bool """ + self._map_full = map_full @property @@ -537,6 +553,7 @@ def map_lookup_uid(self, map_lookup_uid): :param map_lookup_uid: The map_lookup_uid of this NfsExport. :type: bool """ + self._map_lookup_uid = map_lookup_uid @property @@ -559,6 +576,7 @@ def map_non_root(self, map_non_root): :param map_non_root: The map_non_root of this NfsExport. :type: NfsExportMapAll """ + self._map_non_root = map_non_root @property @@ -581,6 +599,7 @@ def map_retry(self, map_retry): :param map_retry: The map_retry of this NfsExport. :type: bool """ + self._map_retry = map_retry @property @@ -603,6 +622,7 @@ def map_root(self, map_root): :param map_root: The map_root of this NfsExport. :type: NfsExportMapAll """ + self._map_root = map_root @property @@ -625,6 +645,7 @@ def max_file_size(self, max_file_size): :param max_file_size: The max_file_size of this NfsExport. :type: int """ + self._max_file_size = max_file_size @property @@ -647,6 +668,7 @@ def name_max_size(self, name_max_size): :param name_max_size: The name_max_size of this NfsExport. :type: int """ + self._name_max_size = name_max_size @property @@ -669,6 +691,7 @@ def no_truncate(self, no_truncate): :param no_truncate: The no_truncate of this NfsExport. :type: bool """ + self._no_truncate = no_truncate @property @@ -691,6 +714,7 @@ def paths(self, paths): :param paths: The paths of this NfsExport. :type: list[str] """ + self._paths = paths @property @@ -713,6 +737,7 @@ def read_only(self, read_only): :param read_only: The read_only of this NfsExport. :type: bool """ + self._read_only = read_only @property @@ -735,6 +760,7 @@ def read_only_clients(self, read_only_clients): :param read_only_clients: The read_only_clients of this NfsExport. :type: list[str] """ + self._read_only_clients = read_only_clients @property @@ -757,6 +783,7 @@ def read_transfer_max_size(self, read_transfer_max_size): :param read_transfer_max_size: The read_transfer_max_size of this NfsExport. :type: int """ + self._read_transfer_max_size = read_transfer_max_size @property @@ -779,6 +806,7 @@ def read_transfer_multiple(self, read_transfer_multiple): :param read_transfer_multiple: The read_transfer_multiple of this NfsExport. :type: int """ + self._read_transfer_multiple = read_transfer_multiple @property @@ -801,6 +829,7 @@ def read_transfer_size(self, read_transfer_size): :param read_transfer_size: The read_transfer_size of this NfsExport. :type: int """ + self._read_transfer_size = read_transfer_size @property @@ -823,6 +852,7 @@ def read_write_clients(self, read_write_clients): :param read_write_clients: The read_write_clients of this NfsExport. :type: list[str] """ + self._read_write_clients = read_write_clients @property @@ -845,6 +875,7 @@ def readdirplus(self, readdirplus): :param readdirplus: The readdirplus of this NfsExport. :type: bool """ + self._readdirplus = readdirplus @property @@ -867,6 +898,7 @@ def readdirplus_prefetch(self, readdirplus_prefetch): :param readdirplus_prefetch: The readdirplus_prefetch of this NfsExport. :type: int """ + self._readdirplus_prefetch = readdirplus_prefetch @property @@ -889,6 +921,7 @@ def return_32bit_file_ids(self, return_32bit_file_ids): :param return_32bit_file_ids: The return_32bit_file_ids of this NfsExport. :type: bool """ + self._return_32bit_file_ids = return_32bit_file_ids @property @@ -911,6 +944,7 @@ def root_clients(self, root_clients): :param root_clients: The root_clients of this NfsExport. :type: list[str] """ + self._root_clients = root_clients @property @@ -933,6 +967,7 @@ def security_flavors(self, security_flavors): :param security_flavors: The security_flavors of this NfsExport. :type: list[str] """ + self._security_flavors = security_flavors @property @@ -955,6 +990,7 @@ def setattr_asynchronous(self, setattr_asynchronous): :param setattr_asynchronous: The setattr_asynchronous of this NfsExport. :type: bool """ + self._setattr_asynchronous = setattr_asynchronous @property @@ -977,6 +1013,7 @@ def snapshot(self, snapshot): :param snapshot: The snapshot of this NfsExport. :type: str """ + self._snapshot = snapshot @property @@ -999,6 +1036,7 @@ def symlinks(self, symlinks): :param symlinks: The symlinks of this NfsExport. :type: bool """ + self._symlinks = symlinks @property @@ -1021,6 +1059,7 @@ def time_delta(self, time_delta): :param time_delta: The time_delta of this NfsExport. :type: float """ + self._time_delta = time_delta @property @@ -1049,6 +1088,7 @@ def write_datasync_action(self, write_datasync_action): "Invalid value for `write_datasync_action`, must be one of {0}" .format(allowed_values) ) + self._write_datasync_action = write_datasync_action @property @@ -1077,6 +1117,7 @@ def write_datasync_reply(self, write_datasync_reply): "Invalid value for `write_datasync_reply`, must be one of {0}" .format(allowed_values) ) + self._write_datasync_reply = write_datasync_reply @property @@ -1105,6 +1146,7 @@ def write_filesync_action(self, write_filesync_action): "Invalid value for `write_filesync_action`, must be one of {0}" .format(allowed_values) ) + self._write_filesync_action = write_filesync_action @property @@ -1133,6 +1175,7 @@ def write_filesync_reply(self, write_filesync_reply): "Invalid value for `write_filesync_reply`, must be one of {0}" .format(allowed_values) ) + self._write_filesync_reply = write_filesync_reply @property @@ -1155,6 +1198,7 @@ def write_transfer_max_size(self, write_transfer_max_size): :param write_transfer_max_size: The write_transfer_max_size of this NfsExport. :type: int """ + self._write_transfer_max_size = write_transfer_max_size @property @@ -1177,6 +1221,7 @@ def write_transfer_multiple(self, write_transfer_multiple): :param write_transfer_multiple: The write_transfer_multiple of this NfsExport. :type: int """ + self._write_transfer_multiple = write_transfer_multiple @property @@ -1199,6 +1244,7 @@ def write_transfer_size(self, write_transfer_size): :param write_transfer_size: The write_transfer_size of this NfsExport. :type: int """ + self._write_transfer_size = write_transfer_size @property @@ -1227,6 +1273,7 @@ def write_unstable_action(self, write_unstable_action): "Invalid value for `write_unstable_action`, must be one of {0}" .format(allowed_values) ) + self._write_unstable_action = write_unstable_action @property @@ -1255,6 +1302,7 @@ def write_unstable_reply(self, write_unstable_reply): "Invalid value for `write_unstable_reply`, must be one of {0}" .format(allowed_values) ) + self._write_unstable_reply = write_unstable_reply @property @@ -1277,6 +1325,7 @@ def zone(self, zone): :param zone: The zone of this NfsExport. :type: str """ + self._zone = zone def to_dict(self): @@ -1294,6 +1343,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1311,14 +1366,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_export_extended.py b/isi_sdk/models/nfs_export_extended.py index 2b3255de8..bc2da41f9 100644 --- a/isi_sdk/models/nfs_export_extended.py +++ b/isi_sdk/models/nfs_export_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsExportExtended(object): @@ -37,428 +38,394 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'commit_asynchronous': 'bool', - 'read_write_clients': 'list[str]', + 'all_dirs': 'bool', + 'block_size': 'int', + 'can_set_time': 'bool', + 'case_insensitive': 'bool', 'case_preserving': 'bool', - 'read_only': 'bool', - 'zone': 'str', - 'readdirplus': 'bool', - 'map_non_root': 'NfsExportMapAll', - 'id': 'int', - 'time_delta': 'float', - 'name_max_size': 'int', - 'readdirplus_prefetch': 'int', 'chown_restricted': 'bool', + 'clients': 'list[str]', + 'commit_asynchronous': 'bool', + 'description': 'str', + 'directory_transfer_size': 'int', 'encoding': 'str', 'link_max': 'int', - 'return_32bit_file_ids': 'bool', + 'map_all': 'NfsExportMapAll', + 'map_failure': 'NfsExportMapAll', 'map_full': 'bool', - 'paths': 'list[str]', - 'write_unstable_action': 'str', - 'can_set_time': 'bool', - 'write_transfer_size': 'int', - 'write_unstable_reply': 'str', - 'snapshot': 'str', - 'write_transfer_max_size': 'int', - 'directory_transfer_size': 'int', - 'clients': 'list[str]', + 'map_lookup_uid': 'bool', + 'map_non_root': 'NfsExportMapAll', 'map_retry': 'bool', - 'description': 'str', - 'all_dirs': 'bool', - 'read_transfer_multiple': 'int', 'map_root': 'NfsExportMapAll', - 'symlinks': 'bool', - 'no_truncate': 'bool', 'max_file_size': 'int', - 'root_clients': 'list[str]', - 'write_transfer_multiple': 'int', - 'write_datasync_reply': 'str', + 'name_max_size': 'int', + 'no_truncate': 'bool', + 'paths': 'list[str]', + 'read_only': 'bool', + 'read_only_clients': 'list[str]', + 'read_transfer_max_size': 'int', + 'read_transfer_multiple': 'int', 'read_transfer_size': 'int', - 'map_failure': 'NfsExportMapAll', - 'unresolved_clients': 'list[str]', - 'write_datasync_action': 'str', - 'map_all': 'NfsExportMapAll', - 'block_size': 'int', + 'read_write_clients': 'list[str]', + 'readdirplus': 'bool', + 'readdirplus_prefetch': 'int', + 'return_32bit_file_ids': 'bool', + 'root_clients': 'list[str]', + 'security_flavors': 'list[str]', 'setattr_asynchronous': 'bool', - 'map_lookup_uid': 'bool', + 'snapshot': 'str', + 'symlinks': 'bool', + 'time_delta': 'float', + 'write_datasync_action': 'str', + 'write_datasync_reply': 'str', 'write_filesync_action': 'str', + 'write_filesync_reply': 'str', + 'write_transfer_max_size': 'int', + 'write_transfer_multiple': 'int', + 'write_transfer_size': 'int', + 'write_unstable_action': 'str', + 'write_unstable_reply': 'str', + 'zone': 'str', 'conflicting_paths': 'list[str]', - 'case_insensitive': 'bool', - 'read_only_clients': 'list[str]', - 'read_transfer_max_size': 'int', - 'security_flavors': 'list[str]', - 'write_filesync_reply': 'str' + 'id': 'int', + 'unresolved_clients': 'list[str]' } self.attribute_map = { - 'commit_asynchronous': 'commit_asynchronous', - 'read_write_clients': 'read_write_clients', + 'all_dirs': 'all_dirs', + 'block_size': 'block_size', + 'can_set_time': 'can_set_time', + 'case_insensitive': 'case_insensitive', 'case_preserving': 'case_preserving', - 'read_only': 'read_only', - 'zone': 'zone', - 'readdirplus': 'readdirplus', - 'map_non_root': 'map_non_root', - 'id': 'id', - 'time_delta': 'time_delta', - 'name_max_size': 'name_max_size', - 'readdirplus_prefetch': 'readdirplus_prefetch', 'chown_restricted': 'chown_restricted', + 'clients': 'clients', + 'commit_asynchronous': 'commit_asynchronous', + 'description': 'description', + 'directory_transfer_size': 'directory_transfer_size', 'encoding': 'encoding', 'link_max': 'link_max', - 'return_32bit_file_ids': 'return_32bit_file_ids', + 'map_all': 'map_all', + 'map_failure': 'map_failure', 'map_full': 'map_full', - 'paths': 'paths', - 'write_unstable_action': 'write_unstable_action', - 'can_set_time': 'can_set_time', - 'write_transfer_size': 'write_transfer_size', - 'write_unstable_reply': 'write_unstable_reply', - 'snapshot': 'snapshot', - 'write_transfer_max_size': 'write_transfer_max_size', - 'directory_transfer_size': 'directory_transfer_size', - 'clients': 'clients', + 'map_lookup_uid': 'map_lookup_uid', + 'map_non_root': 'map_non_root', 'map_retry': 'map_retry', - 'description': 'description', - 'all_dirs': 'all_dirs', - 'read_transfer_multiple': 'read_transfer_multiple', 'map_root': 'map_root', - 'symlinks': 'symlinks', - 'no_truncate': 'no_truncate', 'max_file_size': 'max_file_size', - 'root_clients': 'root_clients', - 'write_transfer_multiple': 'write_transfer_multiple', - 'write_datasync_reply': 'write_datasync_reply', + 'name_max_size': 'name_max_size', + 'no_truncate': 'no_truncate', + 'paths': 'paths', + 'read_only': 'read_only', + 'read_only_clients': 'read_only_clients', + 'read_transfer_max_size': 'read_transfer_max_size', + 'read_transfer_multiple': 'read_transfer_multiple', 'read_transfer_size': 'read_transfer_size', - 'map_failure': 'map_failure', - 'unresolved_clients': 'unresolved_clients', - 'write_datasync_action': 'write_datasync_action', - 'map_all': 'map_all', - 'block_size': 'block_size', + 'read_write_clients': 'read_write_clients', + 'readdirplus': 'readdirplus', + 'readdirplus_prefetch': 'readdirplus_prefetch', + 'return_32bit_file_ids': 'return_32bit_file_ids', + 'root_clients': 'root_clients', + 'security_flavors': 'security_flavors', 'setattr_asynchronous': 'setattr_asynchronous', - 'map_lookup_uid': 'map_lookup_uid', + 'snapshot': 'snapshot', + 'symlinks': 'symlinks', + 'time_delta': 'time_delta', + 'write_datasync_action': 'write_datasync_action', + 'write_datasync_reply': 'write_datasync_reply', 'write_filesync_action': 'write_filesync_action', + 'write_filesync_reply': 'write_filesync_reply', + 'write_transfer_max_size': 'write_transfer_max_size', + 'write_transfer_multiple': 'write_transfer_multiple', + 'write_transfer_size': 'write_transfer_size', + 'write_unstable_action': 'write_unstable_action', + 'write_unstable_reply': 'write_unstable_reply', + 'zone': 'zone', 'conflicting_paths': 'conflicting_paths', - 'case_insensitive': 'case_insensitive', - 'read_only_clients': 'read_only_clients', - 'read_transfer_max_size': 'read_transfer_max_size', - 'security_flavors': 'security_flavors', - 'write_filesync_reply': 'write_filesync_reply' + 'id': 'id', + 'unresolved_clients': 'unresolved_clients' } - self._commit_asynchronous = None - self._read_write_clients = None + self._all_dirs = None + self._block_size = None + self._can_set_time = None + self._case_insensitive = None self._case_preserving = None - self._read_only = None - self._zone = None - self._readdirplus = None - self._map_non_root = None - self._id = None - self._time_delta = None - self._name_max_size = None - self._readdirplus_prefetch = None self._chown_restricted = None + self._clients = None + self._commit_asynchronous = None + self._description = None + self._directory_transfer_size = None self._encoding = None self._link_max = None - self._return_32bit_file_ids = None + self._map_all = None + self._map_failure = None self._map_full = None - self._paths = None - self._write_unstable_action = None - self._can_set_time = None - self._write_transfer_size = None - self._write_unstable_reply = None - self._snapshot = None - self._write_transfer_max_size = None - self._directory_transfer_size = None - self._clients = None + self._map_lookup_uid = None + self._map_non_root = None self._map_retry = None - self._description = None - self._all_dirs = None - self._read_transfer_multiple = None self._map_root = None - self._symlinks = None - self._no_truncate = None self._max_file_size = None - self._root_clients = None - self._write_transfer_multiple = None - self._write_datasync_reply = None - self._read_transfer_size = None - self._map_failure = None - self._unresolved_clients = None - self._write_datasync_action = None - self._map_all = None - self._block_size = None - self._setattr_asynchronous = None - self._map_lookup_uid = None - self._write_filesync_action = None - self._conflicting_paths = None - self._case_insensitive = None + self._name_max_size = None + self._no_truncate = None + self._paths = None + self._read_only = None self._read_only_clients = None self._read_transfer_max_size = None + self._read_transfer_multiple = None + self._read_transfer_size = None + self._read_write_clients = None + self._readdirplus = None + self._readdirplus_prefetch = None + self._return_32bit_file_ids = None + self._root_clients = None self._security_flavors = None + self._setattr_asynchronous = None + self._snapshot = None + self._symlinks = None + self._time_delta = None + self._write_datasync_action = None + self._write_datasync_reply = None + self._write_filesync_action = None self._write_filesync_reply = None + self._write_transfer_max_size = None + self._write_transfer_multiple = None + self._write_transfer_size = None + self._write_unstable_action = None + self._write_unstable_reply = None + self._zone = None + self._conflicting_paths = None + self._id = None + self._unresolved_clients = None @property - def commit_asynchronous(self): + def all_dirs(self): """ - Gets the commit_asynchronous of this NfsExportExtended. - True if NFS commit requests execute asynchronously. + Gets the all_dirs of this NfsExportExtended. + True if all directories under the specified paths are mountable. - :return: The commit_asynchronous of this NfsExportExtended. + :return: The all_dirs of this NfsExportExtended. :rtype: bool """ - return self._commit_asynchronous + return self._all_dirs - @commit_asynchronous.setter - def commit_asynchronous(self, commit_asynchronous): + @all_dirs.setter + def all_dirs(self, all_dirs): """ - Sets the commit_asynchronous of this NfsExportExtended. - True if NFS commit requests execute asynchronously. + Sets the all_dirs of this NfsExportExtended. + True if all directories under the specified paths are mountable. - :param commit_asynchronous: The commit_asynchronous of this NfsExportExtended. + :param all_dirs: The all_dirs of this NfsExportExtended. :type: bool """ - self._commit_asynchronous = commit_asynchronous + + self._all_dirs = all_dirs @property - def read_write_clients(self): + def block_size(self): """ - Gets the read_write_clients of this NfsExportExtended. - Specifies the clients with both read and write access to the export, even when the export is set to read-only. + Gets the block_size of this NfsExportExtended. + Specifies the block size returned by the NFS statfs procedure. - :return: The read_write_clients of this NfsExportExtended. - :rtype: list[str] + :return: The block_size of this NfsExportExtended. + :rtype: int """ - return self._read_write_clients + return self._block_size - @read_write_clients.setter - def read_write_clients(self, read_write_clients): + @block_size.setter + def block_size(self, block_size): """ - Sets the read_write_clients of this NfsExportExtended. - Specifies the clients with both read and write access to the export, even when the export is set to read-only. + Sets the block_size of this NfsExportExtended. + Specifies the block size returned by the NFS statfs procedure. - :param read_write_clients: The read_write_clients of this NfsExportExtended. - :type: list[str] + :param block_size: The block_size of this NfsExportExtended. + :type: int """ - self._read_write_clients = read_write_clients + + self._block_size = block_size @property - def case_preserving(self): + def can_set_time(self): """ - Gets the case_preserving of this NfsExportExtended. - True if the case is preserved for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Gets the can_set_time of this NfsExportExtended. + True if the client can set file times through the NFS set attribute request. This parameter does not affect server behavior, but is included to accommoate legacy client requirements. - :return: The case_preserving of this NfsExportExtended. + :return: The can_set_time of this NfsExportExtended. :rtype: bool """ - return self._case_preserving + return self._can_set_time - @case_preserving.setter - def case_preserving(self, case_preserving): + @can_set_time.setter + def can_set_time(self, can_set_time): """ - Sets the case_preserving of this NfsExportExtended. - True if the case is preserved for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Sets the can_set_time of this NfsExportExtended. + True if the client can set file times through the NFS set attribute request. This parameter does not affect server behavior, but is included to accommoate legacy client requirements. - :param case_preserving: The case_preserving of this NfsExportExtended. + :param can_set_time: The can_set_time of this NfsExportExtended. :type: bool """ - self._case_preserving = case_preserving + + self._can_set_time = can_set_time @property - def read_only(self): + def case_insensitive(self): """ - Gets the read_only of this NfsExportExtended. - True if the export is set to read-only. + Gets the case_insensitive of this NfsExportExtended. + True if the case is ignored for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :return: The read_only of this NfsExportExtended. + :return: The case_insensitive of this NfsExportExtended. :rtype: bool """ - return self._read_only + return self._case_insensitive - @read_only.setter - def read_only(self, read_only): + @case_insensitive.setter + def case_insensitive(self, case_insensitive): """ - Sets the read_only of this NfsExportExtended. - True if the export is set to read-only. + Sets the case_insensitive of this NfsExportExtended. + True if the case is ignored for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :param read_only: The read_only of this NfsExportExtended. + :param case_insensitive: The case_insensitive of this NfsExportExtended. :type: bool """ - self._read_only = read_only - - @property - def zone(self): - """ - Gets the zone of this NfsExportExtended. - Specifies the zone in which the export is valid. - - :return: The zone of this NfsExportExtended. - :rtype: str - """ - return self._zone - - @zone.setter - def zone(self, zone): - """ - Sets the zone of this NfsExportExtended. - Specifies the zone in which the export is valid. - - :param zone: The zone of this NfsExportExtended. - :type: str - """ - self._zone = zone + + self._case_insensitive = case_insensitive @property - def readdirplus(self): + def case_preserving(self): """ - Gets the readdirplus of this NfsExportExtended. - True if 'readdirplus' requests are enabled. Enabling this property might improve network performance and is only available for NFSv3. + Gets the case_preserving of this NfsExportExtended. + True if the case is preserved for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :return: The readdirplus of this NfsExportExtended. + :return: The case_preserving of this NfsExportExtended. :rtype: bool """ - return self._readdirplus + return self._case_preserving - @readdirplus.setter - def readdirplus(self, readdirplus): + @case_preserving.setter + def case_preserving(self, case_preserving): """ - Sets the readdirplus of this NfsExportExtended. - True if 'readdirplus' requests are enabled. Enabling this property might improve network performance and is only available for NFSv3. + Sets the case_preserving of this NfsExportExtended. + True if the case is preserved for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :param readdirplus: The readdirplus of this NfsExportExtended. + :param case_preserving: The case_preserving of this NfsExportExtended. :type: bool """ - self._readdirplus = readdirplus - - @property - def map_non_root(self): - """ - Gets the map_non_root of this NfsExportExtended. - User and group mapping. - - :return: The map_non_root of this NfsExportExtended. - :rtype: NfsExportMapAll - """ - return self._map_non_root - - @map_non_root.setter - def map_non_root(self, map_non_root): - """ - Sets the map_non_root of this NfsExportExtended. - User and group mapping. - - :param map_non_root: The map_non_root of this NfsExportExtended. - :type: NfsExportMapAll - """ - self._map_non_root = map_non_root + + self._case_preserving = case_preserving @property - def id(self): + def chown_restricted(self): """ - Gets the id of this NfsExportExtended. - Specifies the system-assigned ID for the export. This ID is returned when an export is created through the POST method. + Gets the chown_restricted of this NfsExportExtended. + True if the superuser can change file ownership. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :return: The id of this NfsExportExtended. - :rtype: int + :return: The chown_restricted of this NfsExportExtended. + :rtype: bool """ - return self._id + return self._chown_restricted - @id.setter - def id(self, id): + @chown_restricted.setter + def chown_restricted(self, chown_restricted): """ - Sets the id of this NfsExportExtended. - Specifies the system-assigned ID for the export. This ID is returned when an export is created through the POST method. + Sets the chown_restricted of this NfsExportExtended. + True if the superuser can change file ownership. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :param id: The id of this NfsExportExtended. - :type: int + :param chown_restricted: The chown_restricted of this NfsExportExtended. + :type: bool """ - self._id = id + + self._chown_restricted = chown_restricted @property - def time_delta(self): + def clients(self): """ - Gets the time_delta of this NfsExportExtended. - Specifies the resolution of all time values that are returned to the clients + Gets the clients of this NfsExportExtended. + Specifies the clients with root access to the export. - :return: The time_delta of this NfsExportExtended. - :rtype: float + :return: The clients of this NfsExportExtended. + :rtype: list[str] """ - return self._time_delta + return self._clients - @time_delta.setter - def time_delta(self, time_delta): + @clients.setter + def clients(self, clients): """ - Sets the time_delta of this NfsExportExtended. - Specifies the resolution of all time values that are returned to the clients + Sets the clients of this NfsExportExtended. + Specifies the clients with root access to the export. - :param time_delta: The time_delta of this NfsExportExtended. - :type: float + :param clients: The clients of this NfsExportExtended. + :type: list[str] """ - self._time_delta = time_delta + + self._clients = clients @property - def name_max_size(self): + def commit_asynchronous(self): """ - Gets the name_max_size of this NfsExportExtended. - Specifies the reported maximum length of a file name. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Gets the commit_asynchronous of this NfsExportExtended. + True if NFS commit requests execute asynchronously. - :return: The name_max_size of this NfsExportExtended. - :rtype: int + :return: The commit_asynchronous of this NfsExportExtended. + :rtype: bool """ - return self._name_max_size + return self._commit_asynchronous - @name_max_size.setter - def name_max_size(self, name_max_size): + @commit_asynchronous.setter + def commit_asynchronous(self, commit_asynchronous): """ - Sets the name_max_size of this NfsExportExtended. - Specifies the reported maximum length of a file name. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Sets the commit_asynchronous of this NfsExportExtended. + True if NFS commit requests execute asynchronously. - :param name_max_size: The name_max_size of this NfsExportExtended. - :type: int + :param commit_asynchronous: The commit_asynchronous of this NfsExportExtended. + :type: bool """ - self._name_max_size = name_max_size + + self._commit_asynchronous = commit_asynchronous @property - def readdirplus_prefetch(self): + def description(self): """ - Gets the readdirplus_prefetch of this NfsExportExtended. - Sets the number of directory entries that are prefetched when a 'readdirplus' request is processed. (Deprecated.) + Gets the description of this NfsExportExtended. + Specifies the user-defined string that is used to identify the export. - :return: The readdirplus_prefetch of this NfsExportExtended. - :rtype: int + :return: The description of this NfsExportExtended. + :rtype: str """ - return self._readdirplus_prefetch + return self._description - @readdirplus_prefetch.setter - def readdirplus_prefetch(self, readdirplus_prefetch): + @description.setter + def description(self, description): """ - Sets the readdirplus_prefetch of this NfsExportExtended. - Sets the number of directory entries that are prefetched when a 'readdirplus' request is processed. (Deprecated.) + Sets the description of this NfsExportExtended. + Specifies the user-defined string that is used to identify the export. - :param readdirplus_prefetch: The readdirplus_prefetch of this NfsExportExtended. - :type: int + :param description: The description of this NfsExportExtended. + :type: str """ - self._readdirplus_prefetch = readdirplus_prefetch + + self._description = description @property - def chown_restricted(self): + def directory_transfer_size(self): """ - Gets the chown_restricted of this NfsExportExtended. - True if the superuser can change file ownership. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Gets the directory_transfer_size of this NfsExportExtended. + Specifies the preferred size for directory read operations. This value is used to advise the client of optimal settings for the server, but is not enforced. - :return: The chown_restricted of this NfsExportExtended. - :rtype: bool + :return: The directory_transfer_size of this NfsExportExtended. + :rtype: int """ - return self._chown_restricted + return self._directory_transfer_size - @chown_restricted.setter - def chown_restricted(self, chown_restricted): + @directory_transfer_size.setter + def directory_transfer_size(self, directory_transfer_size): """ - Sets the chown_restricted of this NfsExportExtended. - True if the superuser can change file ownership. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Sets the directory_transfer_size of this NfsExportExtended. + Specifies the preferred size for directory read operations. This value is used to advise the client of optimal settings for the server, but is not enforced. - :param chown_restricted: The chown_restricted of this NfsExportExtended. - :type: bool + :param directory_transfer_size: The directory_transfer_size of this NfsExportExtended. + :type: int """ - self._chown_restricted = chown_restricted + + self._directory_transfer_size = directory_transfer_size @property def encoding(self): @@ -480,6 +447,7 @@ def encoding(self, encoding): :param encoding: The encoding of this NfsExportExtended. :type: str """ + self._encoding = encoding @property @@ -502,29 +470,54 @@ def link_max(self, link_max): :param link_max: The link_max of this NfsExportExtended. :type: int """ + self._link_max = link_max @property - def return_32bit_file_ids(self): + def map_all(self): """ - Gets the return_32bit_file_ids of this NfsExportExtended. - Limits the size of file identifiers returned by NFSv3+ to 32-bit values. + Gets the map_all of this NfsExportExtended. + User and group mapping. - :return: The return_32bit_file_ids of this NfsExportExtended. - :rtype: bool + :return: The map_all of this NfsExportExtended. + :rtype: NfsExportMapAll """ - return self._return_32bit_file_ids + return self._map_all - @return_32bit_file_ids.setter - def return_32bit_file_ids(self, return_32bit_file_ids): + @map_all.setter + def map_all(self, map_all): """ - Sets the return_32bit_file_ids of this NfsExportExtended. - Limits the size of file identifiers returned by NFSv3+ to 32-bit values. + Sets the map_all of this NfsExportExtended. + User and group mapping. - :param return_32bit_file_ids: The return_32bit_file_ids of this NfsExportExtended. - :type: bool + :param map_all: The map_all of this NfsExportExtended. + :type: NfsExportMapAll """ - self._return_32bit_file_ids = return_32bit_file_ids + + self._map_all = map_all + + @property + def map_failure(self): + """ + Gets the map_failure of this NfsExportExtended. + User and group mapping. + + :return: The map_failure of this NfsExportExtended. + :rtype: NfsExportMapAll + """ + return self._map_failure + + @map_failure.setter + def map_failure(self, map_failure): + """ + Sets the map_failure of this NfsExportExtended. + User and group mapping. + + :param map_failure: The map_failure of this NfsExportExtended. + :type: NfsExportMapAll + """ + + self._map_failure = map_failure @property def map_full(self): @@ -546,283 +539,261 @@ def map_full(self, map_full): :param map_full: The map_full of this NfsExportExtended. :type: bool """ + self._map_full = map_full @property - def paths(self): + def map_lookup_uid(self): """ - Gets the paths of this NfsExportExtended. - Specifies the paths under /ifs that are exported. + Gets the map_lookup_uid of this NfsExportExtended. + True if incoming user IDs (UIDs) are mapped to users in the OneFS user database. When set to false, incoming UIDs are applied directly to file operations. - :return: The paths of this NfsExportExtended. - :rtype: list[str] + :return: The map_lookup_uid of this NfsExportExtended. + :rtype: bool """ - return self._paths + return self._map_lookup_uid - @paths.setter - def paths(self, paths): + @map_lookup_uid.setter + def map_lookup_uid(self, map_lookup_uid): """ - Sets the paths of this NfsExportExtended. - Specifies the paths under /ifs that are exported. + Sets the map_lookup_uid of this NfsExportExtended. + True if incoming user IDs (UIDs) are mapped to users in the OneFS user database. When set to false, incoming UIDs are applied directly to file operations. - :param paths: The paths of this NfsExportExtended. - :type: list[str] + :param map_lookup_uid: The map_lookup_uid of this NfsExportExtended. + :type: bool """ - self._paths = paths + + self._map_lookup_uid = map_lookup_uid @property - def write_unstable_action(self): + def map_non_root(self): """ - Gets the write_unstable_action of this NfsExportExtended. - Specifies the synchronization type. + Gets the map_non_root of this NfsExportExtended. + User and group mapping. - :return: The write_unstable_action of this NfsExportExtended. - :rtype: str + :return: The map_non_root of this NfsExportExtended. + :rtype: NfsExportMapAll """ - return self._write_unstable_action + return self._map_non_root - @write_unstable_action.setter - def write_unstable_action(self, write_unstable_action): + @map_non_root.setter + def map_non_root(self, map_non_root): """ - Sets the write_unstable_action of this NfsExportExtended. - Specifies the synchronization type. + Sets the map_non_root of this NfsExportExtended. + User and group mapping. - :param write_unstable_action: The write_unstable_action of this NfsExportExtended. - :type: str + :param map_non_root: The map_non_root of this NfsExportExtended. + :type: NfsExportMapAll """ - allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] - if write_unstable_action not in allowed_values: - raise ValueError( - "Invalid value for `write_unstable_action`, must be one of {0}" - .format(allowed_values) - ) - self._write_unstable_action = write_unstable_action + + self._map_non_root = map_non_root @property - def can_set_time(self): + def map_retry(self): """ - Gets the can_set_time of this NfsExportExtended. - True if the client can set file times through the NFS set attribute request. This parameter does not affect server behavior, but is included to accommoate legacy client requirements. + Gets the map_retry of this NfsExportExtended. + Determines whether searches for users specified in 'map_all', 'map_root' or 'map_nonroot' are retried if the search fails. - :return: The can_set_time of this NfsExportExtended. + :return: The map_retry of this NfsExportExtended. :rtype: bool """ - return self._can_set_time + return self._map_retry - @can_set_time.setter - def can_set_time(self, can_set_time): + @map_retry.setter + def map_retry(self, map_retry): """ - Sets the can_set_time of this NfsExportExtended. - True if the client can set file times through the NFS set attribute request. This parameter does not affect server behavior, but is included to accommoate legacy client requirements. + Sets the map_retry of this NfsExportExtended. + Determines whether searches for users specified in 'map_all', 'map_root' or 'map_nonroot' are retried if the search fails. - :param can_set_time: The can_set_time of this NfsExportExtended. + :param map_retry: The map_retry of this NfsExportExtended. :type: bool """ - self._can_set_time = can_set_time - - @property - def write_transfer_size(self): - """ - Gets the write_transfer_size of this NfsExportExtended. - Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - - :return: The write_transfer_size of this NfsExportExtended. - :rtype: int - """ - return self._write_transfer_size - - @write_transfer_size.setter - def write_transfer_size(self, write_transfer_size): - """ - Sets the write_transfer_size of this NfsExportExtended. - Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - - :param write_transfer_size: The write_transfer_size of this NfsExportExtended. - :type: int - """ - self._write_transfer_size = write_transfer_size + + self._map_retry = map_retry @property - def write_unstable_reply(self): + def map_root(self): """ - Gets the write_unstable_reply of this NfsExportExtended. - Specifies the synchronization type. + Gets the map_root of this NfsExportExtended. + User and group mapping. - :return: The write_unstable_reply of this NfsExportExtended. - :rtype: str + :return: The map_root of this NfsExportExtended. + :rtype: NfsExportMapAll """ - return self._write_unstable_reply + return self._map_root - @write_unstable_reply.setter - def write_unstable_reply(self, write_unstable_reply): + @map_root.setter + def map_root(self, map_root): """ - Sets the write_unstable_reply of this NfsExportExtended. - Specifies the synchronization type. + Sets the map_root of this NfsExportExtended. + User and group mapping. - :param write_unstable_reply: The write_unstable_reply of this NfsExportExtended. - :type: str + :param map_root: The map_root of this NfsExportExtended. + :type: NfsExportMapAll """ - allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] - if write_unstable_reply not in allowed_values: - raise ValueError( - "Invalid value for `write_unstable_reply`, must be one of {0}" - .format(allowed_values) - ) - self._write_unstable_reply = write_unstable_reply + + self._map_root = map_root @property - def snapshot(self): + def max_file_size(self): """ - Gets the snapshot of this NfsExportExtended. - Specifies the snapshot for all mounts. + Gets the max_file_size of this NfsExportExtended. + Specifies the maximum file size for any file accessed from the export. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :return: The snapshot of this NfsExportExtended. - :rtype: str + :return: The max_file_size of this NfsExportExtended. + :rtype: int """ - return self._snapshot + return self._max_file_size - @snapshot.setter - def snapshot(self, snapshot): + @max_file_size.setter + def max_file_size(self, max_file_size): """ - Sets the snapshot of this NfsExportExtended. - Specifies the snapshot for all mounts. + Sets the max_file_size of this NfsExportExtended. + Specifies the maximum file size for any file accessed from the export. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :param snapshot: The snapshot of this NfsExportExtended. - :type: str + :param max_file_size: The max_file_size of this NfsExportExtended. + :type: int """ - self._snapshot = snapshot + + self._max_file_size = max_file_size @property - def write_transfer_max_size(self): + def name_max_size(self): """ - Gets the write_transfer_max_size of this NfsExportExtended. - Specifies the maximum buffer size that clients should use on NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. + Gets the name_max_size of this NfsExportExtended. + Specifies the reported maximum length of a file name. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :return: The write_transfer_max_size of this NfsExportExtended. + :return: The name_max_size of this NfsExportExtended. :rtype: int """ - return self._write_transfer_max_size + return self._name_max_size - @write_transfer_max_size.setter - def write_transfer_max_size(self, write_transfer_max_size): + @name_max_size.setter + def name_max_size(self, name_max_size): """ - Sets the write_transfer_max_size of this NfsExportExtended. - Specifies the maximum buffer size that clients should use on NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. + Sets the name_max_size of this NfsExportExtended. + Specifies the reported maximum length of a file name. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :param write_transfer_max_size: The write_transfer_max_size of this NfsExportExtended. + :param name_max_size: The name_max_size of this NfsExportExtended. :type: int """ - self._write_transfer_max_size = write_transfer_max_size + + self._name_max_size = name_max_size @property - def directory_transfer_size(self): + def no_truncate(self): """ - Gets the directory_transfer_size of this NfsExportExtended. - Specifies the preferred size for directory read operations. This value is used to advise the client of optimal settings for the server, but is not enforced. + Gets the no_truncate of this NfsExportExtended. + True if long file names result in an error. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :return: The directory_transfer_size of this NfsExportExtended. - :rtype: int + :return: The no_truncate of this NfsExportExtended. + :rtype: bool """ - return self._directory_transfer_size + return self._no_truncate - @directory_transfer_size.setter - def directory_transfer_size(self, directory_transfer_size): + @no_truncate.setter + def no_truncate(self, no_truncate): """ - Sets the directory_transfer_size of this NfsExportExtended. - Specifies the preferred size for directory read operations. This value is used to advise the client of optimal settings for the server, but is not enforced. + Sets the no_truncate of this NfsExportExtended. + True if long file names result in an error. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. - :param directory_transfer_size: The directory_transfer_size of this NfsExportExtended. - :type: int + :param no_truncate: The no_truncate of this NfsExportExtended. + :type: bool """ - self._directory_transfer_size = directory_transfer_size + + self._no_truncate = no_truncate @property - def clients(self): + def paths(self): """ - Gets the clients of this NfsExportExtended. - Specifies the clients with root access to the export. + Gets the paths of this NfsExportExtended. + Specifies the paths under /ifs that are exported. - :return: The clients of this NfsExportExtended. + :return: The paths of this NfsExportExtended. :rtype: list[str] """ - return self._clients + return self._paths - @clients.setter - def clients(self, clients): + @paths.setter + def paths(self, paths): """ - Sets the clients of this NfsExportExtended. - Specifies the clients with root access to the export. + Sets the paths of this NfsExportExtended. + Specifies the paths under /ifs that are exported. - :param clients: The clients of this NfsExportExtended. + :param paths: The paths of this NfsExportExtended. :type: list[str] """ - self._clients = clients + + self._paths = paths @property - def map_retry(self): + def read_only(self): """ - Gets the map_retry of this NfsExportExtended. - Determines whether searches for users specified in 'map_all', 'map_root' or 'map_nonroot' are retried if the search fails. + Gets the read_only of this NfsExportExtended. + True if the export is set to read-only. - :return: The map_retry of this NfsExportExtended. + :return: The read_only of this NfsExportExtended. :rtype: bool """ - return self._map_retry + return self._read_only - @map_retry.setter - def map_retry(self, map_retry): + @read_only.setter + def read_only(self, read_only): """ - Sets the map_retry of this NfsExportExtended. - Determines whether searches for users specified in 'map_all', 'map_root' or 'map_nonroot' are retried if the search fails. + Sets the read_only of this NfsExportExtended. + True if the export is set to read-only. - :param map_retry: The map_retry of this NfsExportExtended. + :param read_only: The read_only of this NfsExportExtended. :type: bool """ - self._map_retry = map_retry + + self._read_only = read_only @property - def description(self): + def read_only_clients(self): """ - Gets the description of this NfsExportExtended. - Specifies the user-defined string that is used to identify the export. + Gets the read_only_clients of this NfsExportExtended. + Specifies the clients with read-only access to the export. - :return: The description of this NfsExportExtended. - :rtype: str + :return: The read_only_clients of this NfsExportExtended. + :rtype: list[str] """ - return self._description + return self._read_only_clients - @description.setter - def description(self, description): + @read_only_clients.setter + def read_only_clients(self, read_only_clients): """ - Sets the description of this NfsExportExtended. - Specifies the user-defined string that is used to identify the export. + Sets the read_only_clients of this NfsExportExtended. + Specifies the clients with read-only access to the export. - :param description: The description of this NfsExportExtended. - :type: str + :param read_only_clients: The read_only_clients of this NfsExportExtended. + :type: list[str] """ - self._description = description + + self._read_only_clients = read_only_clients @property - def all_dirs(self): + def read_transfer_max_size(self): """ - Gets the all_dirs of this NfsExportExtended. - True if all directories under the specified paths are mountable. + Gets the read_transfer_max_size of this NfsExportExtended. + Specifies the maximum buffer size that clients should use on NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :return: The all_dirs of this NfsExportExtended. - :rtype: bool + :return: The read_transfer_max_size of this NfsExportExtended. + :rtype: int """ - return self._all_dirs + return self._read_transfer_max_size - @all_dirs.setter - def all_dirs(self, all_dirs): + @read_transfer_max_size.setter + def read_transfer_max_size(self, read_transfer_max_size): """ - Sets the all_dirs of this NfsExportExtended. - True if all directories under the specified paths are mountable. + Sets the read_transfer_max_size of this NfsExportExtended. + Specifies the maximum buffer size that clients should use on NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :param all_dirs: The all_dirs of this NfsExportExtended. - :type: bool + :param read_transfer_max_size: The read_transfer_max_size of this NfsExportExtended. + :type: int """ - self._all_dirs = all_dirs + + self._read_transfer_max_size = read_transfer_max_size @property def read_transfer_multiple(self): @@ -844,95 +815,123 @@ def read_transfer_multiple(self, read_transfer_multiple): :param read_transfer_multiple: The read_transfer_multiple of this NfsExportExtended. :type: int """ + self._read_transfer_multiple = read_transfer_multiple @property - def map_root(self): + def read_transfer_size(self): """ - Gets the map_root of this NfsExportExtended. - User and group mapping. + Gets the read_transfer_size of this NfsExportExtended. + Specifies the preferred size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :return: The map_root of this NfsExportExtended. - :rtype: NfsExportMapAll + :return: The read_transfer_size of this NfsExportExtended. + :rtype: int """ - return self._map_root + return self._read_transfer_size - @map_root.setter - def map_root(self, map_root): + @read_transfer_size.setter + def read_transfer_size(self, read_transfer_size): """ - Sets the map_root of this NfsExportExtended. - User and group mapping. + Sets the read_transfer_size of this NfsExportExtended. + Specifies the preferred size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :param map_root: The map_root of this NfsExportExtended. - :type: NfsExportMapAll + :param read_transfer_size: The read_transfer_size of this NfsExportExtended. + :type: int """ - self._map_root = map_root + + self._read_transfer_size = read_transfer_size @property - def symlinks(self): + def read_write_clients(self): """ - Gets the symlinks of this NfsExportExtended. - True if symlinks are supported. This value is used to advise the client of optimal settings for the server, but is not enforced. + Gets the read_write_clients of this NfsExportExtended. + Specifies the clients with both read and write access to the export, even when the export is set to read-only. - :return: The symlinks of this NfsExportExtended. + :return: The read_write_clients of this NfsExportExtended. + :rtype: list[str] + """ + return self._read_write_clients + + @read_write_clients.setter + def read_write_clients(self, read_write_clients): + """ + Sets the read_write_clients of this NfsExportExtended. + Specifies the clients with both read and write access to the export, even when the export is set to read-only. + + :param read_write_clients: The read_write_clients of this NfsExportExtended. + :type: list[str] + """ + + self._read_write_clients = read_write_clients + + @property + def readdirplus(self): + """ + Gets the readdirplus of this NfsExportExtended. + True if 'readdirplus' requests are enabled. Enabling this property might improve network performance and is only available for NFSv3. + + :return: The readdirplus of this NfsExportExtended. :rtype: bool """ - return self._symlinks + return self._readdirplus - @symlinks.setter - def symlinks(self, symlinks): + @readdirplus.setter + def readdirplus(self, readdirplus): """ - Sets the symlinks of this NfsExportExtended. - True if symlinks are supported. This value is used to advise the client of optimal settings for the server, but is not enforced. + Sets the readdirplus of this NfsExportExtended. + True if 'readdirplus' requests are enabled. Enabling this property might improve network performance and is only available for NFSv3. - :param symlinks: The symlinks of this NfsExportExtended. + :param readdirplus: The readdirplus of this NfsExportExtended. :type: bool """ - self._symlinks = symlinks + + self._readdirplus = readdirplus @property - def no_truncate(self): + def readdirplus_prefetch(self): """ - Gets the no_truncate of this NfsExportExtended. - True if long file names result in an error. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Gets the readdirplus_prefetch of this NfsExportExtended. + Sets the number of directory entries that are prefetched when a 'readdirplus' request is processed. (Deprecated.) - :return: The no_truncate of this NfsExportExtended. - :rtype: bool + :return: The readdirplus_prefetch of this NfsExportExtended. + :rtype: int """ - return self._no_truncate + return self._readdirplus_prefetch - @no_truncate.setter - def no_truncate(self, no_truncate): + @readdirplus_prefetch.setter + def readdirplus_prefetch(self, readdirplus_prefetch): """ - Sets the no_truncate of this NfsExportExtended. - True if long file names result in an error. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Sets the readdirplus_prefetch of this NfsExportExtended. + Sets the number of directory entries that are prefetched when a 'readdirplus' request is processed. (Deprecated.) - :param no_truncate: The no_truncate of this NfsExportExtended. - :type: bool + :param readdirplus_prefetch: The readdirplus_prefetch of this NfsExportExtended. + :type: int """ - self._no_truncate = no_truncate + + self._readdirplus_prefetch = readdirplus_prefetch @property - def max_file_size(self): + def return_32bit_file_ids(self): """ - Gets the max_file_size of this NfsExportExtended. - Specifies the maximum file size for any file accessed from the export. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Gets the return_32bit_file_ids of this NfsExportExtended. + Limits the size of file identifiers returned by NFSv3+ to 32-bit values. - :return: The max_file_size of this NfsExportExtended. - :rtype: int + :return: The return_32bit_file_ids of this NfsExportExtended. + :rtype: bool """ - return self._max_file_size + return self._return_32bit_file_ids - @max_file_size.setter - def max_file_size(self, max_file_size): + @return_32bit_file_ids.setter + def return_32bit_file_ids(self, return_32bit_file_ids): """ - Sets the max_file_size of this NfsExportExtended. - Specifies the maximum file size for any file accessed from the export. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Sets the return_32bit_file_ids of this NfsExportExtended. + Limits the size of file identifiers returned by NFSv3+ to 32-bit values. - :param max_file_size: The max_file_size of this NfsExportExtended. - :type: int + :param return_32bit_file_ids: The return_32bit_file_ids of this NfsExportExtended. + :type: bool """ - self._max_file_size = max_file_size + + self._return_32bit_file_ids = return_32bit_file_ids @property def root_clients(self): @@ -954,123 +953,123 @@ def root_clients(self, root_clients): :param root_clients: The root_clients of this NfsExportExtended. :type: list[str] """ + self._root_clients = root_clients @property - def write_transfer_multiple(self): + def security_flavors(self): """ - Gets the write_transfer_multiple of this NfsExportExtended. - Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. + Gets the security_flavors of this NfsExportExtended. + Specifies the authentication types that are supported for this export. - :return: The write_transfer_multiple of this NfsExportExtended. - :rtype: int + :return: The security_flavors of this NfsExportExtended. + :rtype: list[str] """ - return self._write_transfer_multiple + return self._security_flavors - @write_transfer_multiple.setter - def write_transfer_multiple(self, write_transfer_multiple): + @security_flavors.setter + def security_flavors(self, security_flavors): """ - Sets the write_transfer_multiple of this NfsExportExtended. - Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. + Sets the security_flavors of this NfsExportExtended. + Specifies the authentication types that are supported for this export. - :param write_transfer_multiple: The write_transfer_multiple of this NfsExportExtended. - :type: int + :param security_flavors: The security_flavors of this NfsExportExtended. + :type: list[str] """ - self._write_transfer_multiple = write_transfer_multiple + + self._security_flavors = security_flavors @property - def write_datasync_reply(self): + def setattr_asynchronous(self): """ - Gets the write_datasync_reply of this NfsExportExtended. - Specifies the synchronization type. + Gets the setattr_asynchronous of this NfsExportExtended. + True if set attribute operations execute asynchronously. - :return: The write_datasync_reply of this NfsExportExtended. - :rtype: str + :return: The setattr_asynchronous of this NfsExportExtended. + :rtype: bool """ - return self._write_datasync_reply + return self._setattr_asynchronous - @write_datasync_reply.setter - def write_datasync_reply(self, write_datasync_reply): + @setattr_asynchronous.setter + def setattr_asynchronous(self, setattr_asynchronous): """ - Sets the write_datasync_reply of this NfsExportExtended. - Specifies the synchronization type. + Sets the setattr_asynchronous of this NfsExportExtended. + True if set attribute operations execute asynchronously. - :param write_datasync_reply: The write_datasync_reply of this NfsExportExtended. - :type: str + :param setattr_asynchronous: The setattr_asynchronous of this NfsExportExtended. + :type: bool """ - allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] - if write_datasync_reply not in allowed_values: - raise ValueError( - "Invalid value for `write_datasync_reply`, must be one of {0}" - .format(allowed_values) - ) - self._write_datasync_reply = write_datasync_reply + + self._setattr_asynchronous = setattr_asynchronous @property - def read_transfer_size(self): + def snapshot(self): """ - Gets the read_transfer_size of this NfsExportExtended. - Specifies the preferred size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. + Gets the snapshot of this NfsExportExtended. + Specifies the snapshot for all mounts. - :return: The read_transfer_size of this NfsExportExtended. - :rtype: int + :return: The snapshot of this NfsExportExtended. + :rtype: str """ - return self._read_transfer_size + return self._snapshot - @read_transfer_size.setter - def read_transfer_size(self, read_transfer_size): + @snapshot.setter + def snapshot(self, snapshot): """ - Sets the read_transfer_size of this NfsExportExtended. - Specifies the preferred size for NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. + Sets the snapshot of this NfsExportExtended. + Specifies the snapshot for all mounts. - :param read_transfer_size: The read_transfer_size of this NfsExportExtended. - :type: int + :param snapshot: The snapshot of this NfsExportExtended. + :type: str """ - self._read_transfer_size = read_transfer_size + + self._snapshot = snapshot @property - def map_failure(self): + def symlinks(self): """ - Gets the map_failure of this NfsExportExtended. - User and group mapping. + Gets the symlinks of this NfsExportExtended. + True if symlinks are supported. This value is used to advise the client of optimal settings for the server, but is not enforced. - :return: The map_failure of this NfsExportExtended. - :rtype: NfsExportMapAll + :return: The symlinks of this NfsExportExtended. + :rtype: bool """ - return self._map_failure + return self._symlinks - @map_failure.setter - def map_failure(self, map_failure): + @symlinks.setter + def symlinks(self, symlinks): """ - Sets the map_failure of this NfsExportExtended. - User and group mapping. + Sets the symlinks of this NfsExportExtended. + True if symlinks are supported. This value is used to advise the client of optimal settings for the server, but is not enforced. - :param map_failure: The map_failure of this NfsExportExtended. - :type: NfsExportMapAll + :param symlinks: The symlinks of this NfsExportExtended. + :type: bool """ - self._map_failure = map_failure + + self._symlinks = symlinks @property - def unresolved_clients(self): + def time_delta(self): """ - Gets the unresolved_clients of this NfsExportExtended. - Reports clients that cannot be resolved. + Gets the time_delta of this NfsExportExtended. + Specifies the resolution of all time values that are returned to the clients - :return: The unresolved_clients of this NfsExportExtended. - :rtype: list[str] + :return: The time_delta of this NfsExportExtended. + :rtype: float """ - return self._unresolved_clients + return self._time_delta - @unresolved_clients.setter - def unresolved_clients(self, unresolved_clients): + @time_delta.setter + def time_delta(self, time_delta): """ - Sets the unresolved_clients of this NfsExportExtended. - Reports clients that cannot be resolved. + Sets the time_delta of this NfsExportExtended. + Specifies the resolution of all time values that are returned to the clients - :param unresolved_clients: The unresolved_clients of this NfsExportExtended. - :type: list[str] + :param time_delta: The time_delta of this NfsExportExtended. + :type: float """ - self._unresolved_clients = unresolved_clients + + self._time_delta = time_delta @property def write_datasync_action(self): @@ -1098,261 +1097,314 @@ def write_datasync_action(self, write_datasync_action): "Invalid value for `write_datasync_action`, must be one of {0}" .format(allowed_values) ) + self._write_datasync_action = write_datasync_action @property - def map_all(self): + def write_datasync_reply(self): """ - Gets the map_all of this NfsExportExtended. - User and group mapping. + Gets the write_datasync_reply of this NfsExportExtended. + Specifies the synchronization type. - :return: The map_all of this NfsExportExtended. - :rtype: NfsExportMapAll + :return: The write_datasync_reply of this NfsExportExtended. + :rtype: str """ - return self._map_all + return self._write_datasync_reply - @map_all.setter - def map_all(self, map_all): + @write_datasync_reply.setter + def write_datasync_reply(self, write_datasync_reply): """ - Sets the map_all of this NfsExportExtended. - User and group mapping. + Sets the write_datasync_reply of this NfsExportExtended. + Specifies the synchronization type. - :param map_all: The map_all of this NfsExportExtended. - :type: NfsExportMapAll + :param write_datasync_reply: The write_datasync_reply of this NfsExportExtended. + :type: str """ - self._map_all = map_all + allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] + if write_datasync_reply not in allowed_values: + raise ValueError( + "Invalid value for `write_datasync_reply`, must be one of {0}" + .format(allowed_values) + ) + + self._write_datasync_reply = write_datasync_reply + + @property + def write_filesync_action(self): + """ + Gets the write_filesync_action of this NfsExportExtended. + Specifies the synchronization type. + + :return: The write_filesync_action of this NfsExportExtended. + :rtype: str + """ + return self._write_filesync_action + + @write_filesync_action.setter + def write_filesync_action(self, write_filesync_action): + """ + Sets the write_filesync_action of this NfsExportExtended. + Specifies the synchronization type. + + :param write_filesync_action: The write_filesync_action of this NfsExportExtended. + :type: str + """ + allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] + if write_filesync_action not in allowed_values: + raise ValueError( + "Invalid value for `write_filesync_action`, must be one of {0}" + .format(allowed_values) + ) + + self._write_filesync_action = write_filesync_action + + @property + def write_filesync_reply(self): + """ + Gets the write_filesync_reply of this NfsExportExtended. + Specifies the synchronization type. + + :return: The write_filesync_reply of this NfsExportExtended. + :rtype: str + """ + return self._write_filesync_reply + + @write_filesync_reply.setter + def write_filesync_reply(self, write_filesync_reply): + """ + Sets the write_filesync_reply of this NfsExportExtended. + Specifies the synchronization type. + + :param write_filesync_reply: The write_filesync_reply of this NfsExportExtended. + :type: str + """ + allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] + if write_filesync_reply not in allowed_values: + raise ValueError( + "Invalid value for `write_filesync_reply`, must be one of {0}" + .format(allowed_values) + ) + + self._write_filesync_reply = write_filesync_reply @property - def block_size(self): + def write_transfer_max_size(self): """ - Gets the block_size of this NfsExportExtended. - Specifies the block size returned by the NFS statfs procedure. + Gets the write_transfer_max_size of this NfsExportExtended. + Specifies the maximum buffer size that clients should use on NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :return: The block_size of this NfsExportExtended. + :return: The write_transfer_max_size of this NfsExportExtended. :rtype: int """ - return self._block_size + return self._write_transfer_max_size - @block_size.setter - def block_size(self, block_size): + @write_transfer_max_size.setter + def write_transfer_max_size(self, write_transfer_max_size): """ - Sets the block_size of this NfsExportExtended. - Specifies the block size returned by the NFS statfs procedure. + Sets the write_transfer_max_size of this NfsExportExtended. + Specifies the maximum buffer size that clients should use on NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :param block_size: The block_size of this NfsExportExtended. + :param write_transfer_max_size: The write_transfer_max_size of this NfsExportExtended. :type: int """ - self._block_size = block_size + + self._write_transfer_max_size = write_transfer_max_size @property - def setattr_asynchronous(self): + def write_transfer_multiple(self): """ - Gets the setattr_asynchronous of this NfsExportExtended. - True if set attribute operations execute asynchronously. + Gets the write_transfer_multiple of this NfsExportExtended. + Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :return: The setattr_asynchronous of this NfsExportExtended. - :rtype: bool + :return: The write_transfer_multiple of this NfsExportExtended. + :rtype: int """ - return self._setattr_asynchronous + return self._write_transfer_multiple - @setattr_asynchronous.setter - def setattr_asynchronous(self, setattr_asynchronous): + @write_transfer_multiple.setter + def write_transfer_multiple(self, write_transfer_multiple): """ - Sets the setattr_asynchronous of this NfsExportExtended. - True if set attribute operations execute asynchronously. + Sets the write_transfer_multiple of this NfsExportExtended. + Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :param setattr_asynchronous: The setattr_asynchronous of this NfsExportExtended. - :type: bool + :param write_transfer_multiple: The write_transfer_multiple of this NfsExportExtended. + :type: int """ - self._setattr_asynchronous = setattr_asynchronous + + self._write_transfer_multiple = write_transfer_multiple @property - def map_lookup_uid(self): + def write_transfer_size(self): """ - Gets the map_lookup_uid of this NfsExportExtended. - True if incoming user IDs (UIDs) are mapped to users in the OneFS user database. When set to false, incoming UIDs are applied directly to file operations. + Gets the write_transfer_size of this NfsExportExtended. + Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :return: The map_lookup_uid of this NfsExportExtended. - :rtype: bool + :return: The write_transfer_size of this NfsExportExtended. + :rtype: int """ - return self._map_lookup_uid + return self._write_transfer_size - @map_lookup_uid.setter - def map_lookup_uid(self, map_lookup_uid): + @write_transfer_size.setter + def write_transfer_size(self, write_transfer_size): """ - Sets the map_lookup_uid of this NfsExportExtended. - True if incoming user IDs (UIDs) are mapped to users in the OneFS user database. When set to false, incoming UIDs are applied directly to file operations. + Sets the write_transfer_size of this NfsExportExtended. + Specifies the preferred multiple size for NFS write requests. This value is used to advise the client of optimal settings for the server, but is not enforced. - :param map_lookup_uid: The map_lookup_uid of this NfsExportExtended. - :type: bool + :param write_transfer_size: The write_transfer_size of this NfsExportExtended. + :type: int """ - self._map_lookup_uid = map_lookup_uid + + self._write_transfer_size = write_transfer_size @property - def write_filesync_action(self): + def write_unstable_action(self): """ - Gets the write_filesync_action of this NfsExportExtended. + Gets the write_unstable_action of this NfsExportExtended. Specifies the synchronization type. - :return: The write_filesync_action of this NfsExportExtended. + :return: The write_unstable_action of this NfsExportExtended. :rtype: str """ - return self._write_filesync_action + return self._write_unstable_action - @write_filesync_action.setter - def write_filesync_action(self, write_filesync_action): + @write_unstable_action.setter + def write_unstable_action(self, write_unstable_action): """ - Sets the write_filesync_action of this NfsExportExtended. + Sets the write_unstable_action of this NfsExportExtended. Specifies the synchronization type. - :param write_filesync_action: The write_filesync_action of this NfsExportExtended. + :param write_unstable_action: The write_unstable_action of this NfsExportExtended. :type: str """ allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] - if write_filesync_action not in allowed_values: + if write_unstable_action not in allowed_values: raise ValueError( - "Invalid value for `write_filesync_action`, must be one of {0}" + "Invalid value for `write_unstable_action`, must be one of {0}" .format(allowed_values) ) - self._write_filesync_action = write_filesync_action + + self._write_unstable_action = write_unstable_action @property - def conflicting_paths(self): + def write_unstable_reply(self): """ - Gets the conflicting_paths of this NfsExportExtended. - Reports the paths that conflict with another export. + Gets the write_unstable_reply of this NfsExportExtended. + Specifies the synchronization type. - :return: The conflicting_paths of this NfsExportExtended. - :rtype: list[str] + :return: The write_unstable_reply of this NfsExportExtended. + :rtype: str """ - return self._conflicting_paths + return self._write_unstable_reply - @conflicting_paths.setter - def conflicting_paths(self, conflicting_paths): + @write_unstable_reply.setter + def write_unstable_reply(self, write_unstable_reply): """ - Sets the conflicting_paths of this NfsExportExtended. - Reports the paths that conflict with another export. + Sets the write_unstable_reply of this NfsExportExtended. + Specifies the synchronization type. - :param conflicting_paths: The conflicting_paths of this NfsExportExtended. - :type: list[str] + :param write_unstable_reply: The write_unstable_reply of this NfsExportExtended. + :type: str """ - self._conflicting_paths = conflicting_paths + allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] + if write_unstable_reply not in allowed_values: + raise ValueError( + "Invalid value for `write_unstable_reply`, must be one of {0}" + .format(allowed_values) + ) + + self._write_unstable_reply = write_unstable_reply @property - def case_insensitive(self): + def zone(self): """ - Gets the case_insensitive of this NfsExportExtended. - True if the case is ignored for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Gets the zone of this NfsExportExtended. + Specifies the zone in which the export is valid. - :return: The case_insensitive of this NfsExportExtended. - :rtype: bool + :return: The zone of this NfsExportExtended. + :rtype: str """ - return self._case_insensitive + return self._zone - @case_insensitive.setter - def case_insensitive(self, case_insensitive): + @zone.setter + def zone(self, zone): """ - Sets the case_insensitive of this NfsExportExtended. - True if the case is ignored for file names. This parameter does not affect server behavior, but is included to accommodate legacy client requirements. + Sets the zone of this NfsExportExtended. + Specifies the zone in which the export is valid. - :param case_insensitive: The case_insensitive of this NfsExportExtended. - :type: bool + :param zone: The zone of this NfsExportExtended. + :type: str """ - self._case_insensitive = case_insensitive + + self._zone = zone @property - def read_only_clients(self): + def conflicting_paths(self): """ - Gets the read_only_clients of this NfsExportExtended. - Specifies the clients with read-only access to the export. + Gets the conflicting_paths of this NfsExportExtended. + Reports the paths that conflict with another export. - :return: The read_only_clients of this NfsExportExtended. + :return: The conflicting_paths of this NfsExportExtended. :rtype: list[str] """ - return self._read_only_clients + return self._conflicting_paths - @read_only_clients.setter - def read_only_clients(self, read_only_clients): + @conflicting_paths.setter + def conflicting_paths(self, conflicting_paths): """ - Sets the read_only_clients of this NfsExportExtended. - Specifies the clients with read-only access to the export. + Sets the conflicting_paths of this NfsExportExtended. + Reports the paths that conflict with another export. - :param read_only_clients: The read_only_clients of this NfsExportExtended. + :param conflicting_paths: The conflicting_paths of this NfsExportExtended. :type: list[str] """ - self._read_only_clients = read_only_clients + + self._conflicting_paths = conflicting_paths @property - def read_transfer_max_size(self): + def id(self): """ - Gets the read_transfer_max_size of this NfsExportExtended. - Specifies the maximum buffer size that clients should use on NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. + Gets the id of this NfsExportExtended. + Specifies the system-assigned ID for the export. This ID is returned when an export is created through the POST method. - :return: The read_transfer_max_size of this NfsExportExtended. + :return: The id of this NfsExportExtended. :rtype: int """ - return self._read_transfer_max_size + return self._id - @read_transfer_max_size.setter - def read_transfer_max_size(self, read_transfer_max_size): + @id.setter + def id(self, id): """ - Sets the read_transfer_max_size of this NfsExportExtended. - Specifies the maximum buffer size that clients should use on NFS read requests. This value is used to advise the client of optimal settings for the server, but is not enforced. + Sets the id of this NfsExportExtended. + Specifies the system-assigned ID for the export. This ID is returned when an export is created through the POST method. - :param read_transfer_max_size: The read_transfer_max_size of this NfsExportExtended. + :param id: The id of this NfsExportExtended. :type: int """ - self._read_transfer_max_size = read_transfer_max_size + + self._id = id @property - def security_flavors(self): + def unresolved_clients(self): """ - Gets the security_flavors of this NfsExportExtended. - Specifies the authentication types that are supported for this export. + Gets the unresolved_clients of this NfsExportExtended. + Reports clients that cannot be resolved. - :return: The security_flavors of this NfsExportExtended. + :return: The unresolved_clients of this NfsExportExtended. :rtype: list[str] """ - return self._security_flavors + return self._unresolved_clients - @security_flavors.setter - def security_flavors(self, security_flavors): + @unresolved_clients.setter + def unresolved_clients(self, unresolved_clients): """ - Sets the security_flavors of this NfsExportExtended. - Specifies the authentication types that are supported for this export. + Sets the unresolved_clients of this NfsExportExtended. + Reports clients that cannot be resolved. - :param security_flavors: The security_flavors of this NfsExportExtended. + :param unresolved_clients: The unresolved_clients of this NfsExportExtended. :type: list[str] """ - self._security_flavors = security_flavors - - @property - def write_filesync_reply(self): - """ - Gets the write_filesync_reply of this NfsExportExtended. - Specifies the synchronization type. - - :return: The write_filesync_reply of this NfsExportExtended. - :rtype: str - """ - return self._write_filesync_reply - - @write_filesync_reply.setter - def write_filesync_reply(self, write_filesync_reply): - """ - Sets the write_filesync_reply of this NfsExportExtended. - Specifies the synchronization type. - - :param write_filesync_reply: The write_filesync_reply of this NfsExportExtended. - :type: str - """ - allowed_values = ["DATASYNC", "FILESYNC", "UNSTABLE"] - if write_filesync_reply not in allowed_values: - raise ValueError( - "Invalid value for `write_filesync_reply`, must be one of {0}" - .format(allowed_values) - ) - self._write_filesync_reply = write_filesync_reply + + self._unresolved_clients = unresolved_clients def to_dict(self): """ @@ -1369,6 +1421,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1386,14 +1444,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_export_map_all.py b/isi_sdk/models/nfs_export_map_all.py index deac7afc2..0b67841f6 100644 --- a/isi_sdk/models/nfs_export_map_all.py +++ b/isi_sdk/models/nfs_export_map_all.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsExportMapAll(object): @@ -38,9 +39,9 @@ def __init__(self): """ self.swagger_types = { 'enabled': 'bool', - 'primary_group': 'GroupsGroupMember', + 'primary_group': 'GroupMember', 'secondary_groups': 'list[NfsExportMapAllSecondaryGroups]', - 'user': 'GroupsGroupMember' + 'user': 'GroupMember' } self.attribute_map = { @@ -75,6 +76,7 @@ def enabled(self, enabled): :param enabled: The enabled of this NfsExportMapAll. :type: bool """ + self._enabled = enabled @property @@ -84,7 +86,7 @@ def primary_group(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The primary_group of this NfsExportMapAll. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._primary_group @@ -95,8 +97,9 @@ def primary_group(self, primary_group): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param primary_group: The primary_group of this NfsExportMapAll. - :type: GroupsGroupMember + :type: GroupMember """ + self._primary_group = primary_group @property @@ -119,6 +122,7 @@ def secondary_groups(self, secondary_groups): :param secondary_groups: The secondary_groups of this NfsExportMapAll. :type: list[NfsExportMapAllSecondaryGroups] """ + self._secondary_groups = secondary_groups @property @@ -128,7 +132,7 @@ def user(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The user of this NfsExportMapAll. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._user @@ -139,8 +143,9 @@ def user(self, user): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param user: The user of this NfsExportMapAll. - :type: GroupsGroupMember + :type: GroupMember """ + self._user = user def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_export_map_all_secondary_groups.py b/isi_sdk/models/nfs_export_map_all_secondary_groups.py index 67ead6174..cc40222bd 100644 --- a/isi_sdk/models/nfs_export_map_all_secondary_groups.py +++ b/isi_sdk/models/nfs_export_map_all_secondary_groups.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsExportMapAllSecondaryGroups(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', 'id': 'str', + 'name': 'str', 'type': 'str' } self.attribute_map = { - 'name': 'name', 'id': 'id', + 'name': 'name', 'type': 'type' } - self._name = None self._id = None + self._name = None self._type = None - @property - def name(self): - """ - Gets the name of this NfsExportMapAllSecondaryGroups. - Specifies the persona name, which must be combined with a type. - - :return: The name of this NfsExportMapAllSecondaryGroups. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this NfsExportMapAllSecondaryGroups. - Specifies the persona name, which must be combined with a type. - - :param name: The name of this NfsExportMapAllSecondaryGroups. - :type: str - """ - self._name = name - @property def id(self): """ @@ -94,8 +73,32 @@ def id(self, id): :param id: The id of this NfsExportMapAllSecondaryGroups. :type: str """ + self._id = id + @property + def name(self): + """ + Gets the name of this NfsExportMapAllSecondaryGroups. + Specifies the persona name, which must be combined with a type. + + :return: The name of this NfsExportMapAllSecondaryGroups. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NfsExportMapAllSecondaryGroups. + Specifies the persona name, which must be combined with a type. + + :param name: The name of this NfsExportMapAllSecondaryGroups. + :type: str + """ + + self._name = name + @property def type(self): """ @@ -122,6 +125,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_exports.py b/isi_sdk/models/nfs_exports.py index e1bc306f5..346805339 100644 --- a/isi_sdk/models/nfs_exports.py +++ b/isi_sdk/models/nfs_exports.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsExports(object): @@ -66,6 +67,7 @@ def exports(self, exports): :param exports: The exports of this NfsExports. :type: list[NfsExportExtended] """ + self._exports = exports def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_exports_extended.py b/isi_sdk/models/nfs_exports_extended.py index 7742782f9..4534adcda 100644 --- a/isi_sdk/models/nfs_exports_extended.py +++ b/isi_sdk/models/nfs_exports_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsExportsExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'exports': 'list[NfsExportExtended]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'exports': 'exports', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._exports = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this NfsExportsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this NfsExportsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this NfsExportsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this NfsExportsExtended. - :type: str - """ - self._resume = resume - @property def exports(self): """ @@ -94,8 +73,32 @@ def exports(self, exports): :param exports: The exports of this NfsExportsExtended. :type: list[NfsExportExtended] """ + self._exports = exports + @property + def resume(self): + """ + Gets the resume of this NfsExportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this NfsExportsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this NfsExportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this NfsExportsExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this NfsExportsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_exports_summary.py b/isi_sdk/models/nfs_exports_summary.py index f122b17f7..c82e9bd03 100644 --- a/isi_sdk/models/nfs_exports_summary.py +++ b/isi_sdk/models/nfs_exports_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsExportsSummary(object): @@ -66,6 +67,7 @@ def summary(self, summary): :param summary: The summary of this NfsExportsSummary. :type: NfsExportsSummarySummary """ + self._summary = summary def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_exports_summary_summary.py b/isi_sdk/models/nfs_exports_summary_summary.py index 20f4558da..2c67cc140 100644 --- a/isi_sdk/models/nfs_exports_summary_summary.py +++ b/isi_sdk/models/nfs_exports_summary_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsExportsSummarySummary(object): @@ -66,6 +67,7 @@ def count(self, count): :param count: The count of this NfsExportsSummarySummary. :type: int """ + self._count = count def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_log_level.py b/isi_sdk/models/nfs_log_level.py index 9cda0391e..8fd398fd5 100644 --- a/isi_sdk/models/nfs_log_level.py +++ b/isi_sdk/models/nfs_log_level.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsLogLevel(object): @@ -72,6 +73,7 @@ def level(self, level): "Invalid value for `level`, must be one of {0}" .format(allowed_values) ) + self._level = level def to_dict(self): @@ -89,6 +91,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -106,14 +114,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_netgroup.py b/isi_sdk/models/nfs_netgroup.py index fd96d8947..cb44b7436 100644 --- a/isi_sdk/models/nfs_netgroup.py +++ b/isi_sdk/models/nfs_netgroup.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsNetgroup(object): @@ -60,6 +61,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -77,14 +84,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_nlm_locks.py b/isi_sdk/models/nfs_nlm_locks.py index 151f6959a..961cf5e1b 100644 --- a/isi_sdk/models/nfs_nlm_locks.py +++ b/isi_sdk/models/nfs_nlm_locks.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsNlmLocks(object): @@ -72,6 +73,7 @@ def locks(self, locks): :param locks: The locks of this NfsNlmLocks. :type: list[NfsNlmLocksLock] """ + self._locks = locks @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this NfsNlmLocks. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this NfsNlmLocks. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_nlm_locks_lock.py b/isi_sdk/models/nfs_nlm_locks_lock.py index 954f25b7e..094196b50 100644 --- a/isi_sdk/models/nfs_nlm_locks_lock.py +++ b/isi_sdk/models/nfs_nlm_locks_lock.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsNlmLocksLock(object): @@ -87,6 +88,7 @@ def client(self, client): :param client: The client of this NfsNlmLocksLock. :type: str """ + self._client = client @property @@ -109,6 +111,7 @@ def client_id(self, client_id): :param client_id: The client_id of this NfsNlmLocksLock. :type: str """ + self._client_id = client_id @property @@ -131,6 +134,7 @@ def created(self, created): :param created: The created of this NfsNlmLocksLock. :type: int """ + self._created = created @property @@ -153,6 +157,7 @@ def id(self, id): :param id: The id of this NfsNlmLocksLock. :type: str """ + self._id = id @property @@ -175,6 +180,7 @@ def lin(self, lin): :param lin: The lin of this NfsNlmLocksLock. :type: str """ + self._lin = lin @property @@ -197,6 +203,7 @@ def lock_type(self, lock_type): :param lock_type: The lock_type of this NfsNlmLocksLock. :type: str """ + self._lock_type = lock_type @property @@ -219,6 +226,7 @@ def path(self, path): :param path: The path of this NfsNlmLocksLock. :type: str """ + self._path = path @property @@ -241,6 +249,7 @@ def range(self, range): :param range: The range of this NfsNlmLocksLock. :type: list[int] """ + self._range = range def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_nlm_sessions.py b/isi_sdk/models/nfs_nlm_sessions.py index beb2fc7ec..3520b9677 100644 --- a/isi_sdk/models/nfs_nlm_sessions.py +++ b/isi_sdk/models/nfs_nlm_sessions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsNlmSessions(object): @@ -66,6 +67,7 @@ def sessions(self, sessions): :param sessions: The sessions of this NfsNlmSessions. :type: list[NfsNlmSessionsSession] """ + self._sessions = sessions def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_nlm_sessions_extended.py b/isi_sdk/models/nfs_nlm_sessions_extended.py index 9e3b57c32..4e6730628 100644 --- a/isi_sdk/models/nfs_nlm_sessions_extended.py +++ b/isi_sdk/models/nfs_nlm_sessions_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsNlmSessionsExtended(object): @@ -37,42 +38,40 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'sessions': 'list[NfsNlmSessionsSession]', - 'total': 'int', - 'clients': 'list[NfsNlmSessionsSession]' + 'clients': 'list[NfsNlmSessionsSession]', + 'total': 'int' } self.attribute_map = { - 'sessions': 'sessions', - 'total': 'total', - 'clients': 'clients' + 'clients': 'clients', + 'total': 'total' } - self._sessions = None - self._total = None self._clients = None + self._total = None @property - def sessions(self): + def clients(self): """ - Gets the sessions of this NfsNlmSessionsExtended. + Gets the clients of this NfsNlmSessionsExtended. - :return: The sessions of this NfsNlmSessionsExtended. + :return: The clients of this NfsNlmSessionsExtended. :rtype: list[NfsNlmSessionsSession] """ - return self._sessions + return self._clients - @sessions.setter - def sessions(self, sessions): + @clients.setter + def clients(self, clients): """ - Sets the sessions of this NfsNlmSessionsExtended. + Sets the clients of this NfsNlmSessionsExtended. - :param sessions: The sessions of this NfsNlmSessionsExtended. + :param clients: The clients of this NfsNlmSessionsExtended. :type: list[NfsNlmSessionsSession] """ - self._sessions = sessions + + self._clients = clients @property def total(self): @@ -94,30 +93,9 @@ def total(self, total): :param total: The total of this NfsNlmSessionsExtended. :type: int """ + self._total = total - @property - def clients(self): - """ - Gets the clients of this NfsNlmSessionsExtended. - - - :return: The clients of this NfsNlmSessionsExtended. - :rtype: list[NfsNlmSessionsSession] - """ - return self._clients - - @clients.setter - def clients(self, clients): - """ - Sets the clients of this NfsNlmSessionsExtended. - - - :param clients: The clients of this NfsNlmSessionsExtended. - :type: list[NfsNlmSessionsSession] - """ - self._clients = clients - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_nlm_sessions_session.py b/isi_sdk/models/nfs_nlm_sessions_session.py index a9e595305..66a48a488 100644 --- a/isi_sdk/models/nfs_nlm_sessions_session.py +++ b/isi_sdk/models/nfs_nlm_sessions_session.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsNlmSessionsSession(object): @@ -90,6 +91,7 @@ def delegates(self, delegates): :param delegates: The delegates of this NfsNlmSessionsSession. :type: list[int] """ + self._delegates = delegates @property @@ -118,6 +120,7 @@ def host_type(self, host_type): "Invalid value for `host_type`, must be one of {0}" .format(allowed_values) ) + self._host_type = host_type @property @@ -140,6 +143,7 @@ def hostname(self, hostname): :param hostname: The hostname of this NfsNlmSessionsSession. :type: str """ + self._hostname = hostname @property @@ -162,6 +166,7 @@ def is_active(self, is_active): :param is_active: The is_active of this NfsNlmSessionsSession. :type: bool """ + self._is_active = is_active @property @@ -184,6 +189,7 @@ def last_modified(self, last_modified): :param last_modified: The last_modified of this NfsNlmSessionsSession. :type: int """ + self._last_modified = last_modified @property @@ -206,6 +212,7 @@ def node_ip(self, node_ip): :param node_ip: The node_ip of this NfsNlmSessionsSession. :type: str """ + self._node_ip = node_ip @property @@ -228,6 +235,7 @@ def notify_attempts_remaining(self, notify_attempts_remaining): :param notify_attempts_remaining: The notify_attempts_remaining of this NfsNlmSessionsSession. :type: int """ + self._notify_attempts_remaining = notify_attempts_remaining @property @@ -250,6 +258,7 @@ def notify_error(self, notify_error): :param notify_error: The notify_error of this NfsNlmSessionsSession. :type: str """ + self._notify_error = notify_error @property @@ -272,6 +281,7 @@ def notify_last_attempt(self, notify_last_attempt): :param notify_last_attempt: The notify_last_attempt of this NfsNlmSessionsSession. :type: int """ + self._notify_last_attempt = notify_last_attempt def to_dict(self): @@ -289,6 +299,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -306,14 +322,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_nlm_waiters.py b/isi_sdk/models/nfs_nlm_waiters.py index baba19c6e..48a4a953c 100644 --- a/isi_sdk/models/nfs_nlm_waiters.py +++ b/isi_sdk/models/nfs_nlm_waiters.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsNlmWaiters(object): @@ -72,6 +73,7 @@ def resume(self, resume): :param resume: The resume of this NfsNlmWaiters. :type: str """ + self._resume = resume @property @@ -94,6 +96,7 @@ def total(self, total): :param total: The total of this NfsNlmWaiters. :type: int """ + self._total = total @property @@ -116,6 +119,7 @@ def waiters(self, waiters): :param waiters: The waiters of this NfsNlmWaiters. :type: list[NfsNlmLocksLock] """ + self._waiters = waiters def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_settings_export.py b/isi_sdk/models/nfs_settings_export.py index e67d193d1..263139421 100644 --- a/isi_sdk/models/nfs_settings_export.py +++ b/isi_sdk/models/nfs_settings_export.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsSettingsExport(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this NfsSettingsExport. :type: NfsSettingsExportSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_settings_export_settings.py b/isi_sdk/models/nfs_settings_export_settings.py index 952ebf003..e785ef7b5 100644 --- a/isi_sdk/models/nfs_settings_export_settings.py +++ b/isi_sdk/models/nfs_settings_export_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsSettingsExportSettings(object): @@ -189,6 +190,7 @@ def all_dirs(self, all_dirs): :param all_dirs: The all_dirs of this NfsSettingsExportSettings. :type: bool """ + self._all_dirs = all_dirs @property @@ -211,6 +213,7 @@ def block_size(self, block_size): :param block_size: The block_size of this NfsSettingsExportSettings. :type: int """ + self._block_size = block_size @property @@ -233,6 +236,7 @@ def can_set_time(self, can_set_time): :param can_set_time: The can_set_time of this NfsSettingsExportSettings. :type: bool """ + self._can_set_time = can_set_time @property @@ -255,6 +259,7 @@ def case_insensitive(self, case_insensitive): :param case_insensitive: The case_insensitive of this NfsSettingsExportSettings. :type: bool """ + self._case_insensitive = case_insensitive @property @@ -277,6 +282,7 @@ def case_preserving(self, case_preserving): :param case_preserving: The case_preserving of this NfsSettingsExportSettings. :type: bool """ + self._case_preserving = case_preserving @property @@ -299,6 +305,7 @@ def chown_restricted(self, chown_restricted): :param chown_restricted: The chown_restricted of this NfsSettingsExportSettings. :type: bool """ + self._chown_restricted = chown_restricted @property @@ -321,6 +328,7 @@ def commit_asynchronous(self, commit_asynchronous): :param commit_asynchronous: The commit_asynchronous of this NfsSettingsExportSettings. :type: bool """ + self._commit_asynchronous = commit_asynchronous @property @@ -343,6 +351,7 @@ def directory_transfer_size(self, directory_transfer_size): :param directory_transfer_size: The directory_transfer_size of this NfsSettingsExportSettings. :type: int """ + self._directory_transfer_size = directory_transfer_size @property @@ -365,6 +374,7 @@ def encoding(self, encoding): :param encoding: The encoding of this NfsSettingsExportSettings. :type: str """ + self._encoding = encoding @property @@ -387,6 +397,7 @@ def link_max(self, link_max): :param link_max: The link_max of this NfsSettingsExportSettings. :type: int """ + self._link_max = link_max @property @@ -409,6 +420,7 @@ def map_all(self, map_all): :param map_all: The map_all of this NfsSettingsExportSettings. :type: NfsExportMapAll """ + self._map_all = map_all @property @@ -431,6 +443,7 @@ def map_failure(self, map_failure): :param map_failure: The map_failure of this NfsSettingsExportSettings. :type: NfsExportMapAll """ + self._map_failure = map_failure @property @@ -453,6 +466,7 @@ def map_full(self, map_full): :param map_full: The map_full of this NfsSettingsExportSettings. :type: bool """ + self._map_full = map_full @property @@ -475,6 +489,7 @@ def map_lookup_uid(self, map_lookup_uid): :param map_lookup_uid: The map_lookup_uid of this NfsSettingsExportSettings. :type: bool """ + self._map_lookup_uid = map_lookup_uid @property @@ -497,6 +512,7 @@ def map_non_root(self, map_non_root): :param map_non_root: The map_non_root of this NfsSettingsExportSettings. :type: NfsExportMapAll """ + self._map_non_root = map_non_root @property @@ -519,6 +535,7 @@ def map_retry(self, map_retry): :param map_retry: The map_retry of this NfsSettingsExportSettings. :type: bool """ + self._map_retry = map_retry @property @@ -541,6 +558,7 @@ def map_root(self, map_root): :param map_root: The map_root of this NfsSettingsExportSettings. :type: NfsExportMapAll """ + self._map_root = map_root @property @@ -563,6 +581,7 @@ def max_file_size(self, max_file_size): :param max_file_size: The max_file_size of this NfsSettingsExportSettings. :type: int """ + self._max_file_size = max_file_size @property @@ -585,6 +604,7 @@ def name_max_size(self, name_max_size): :param name_max_size: The name_max_size of this NfsSettingsExportSettings. :type: int """ + self._name_max_size = name_max_size @property @@ -607,6 +627,7 @@ def no_truncate(self, no_truncate): :param no_truncate: The no_truncate of this NfsSettingsExportSettings. :type: bool """ + self._no_truncate = no_truncate @property @@ -629,6 +650,7 @@ def read_only(self, read_only): :param read_only: The read_only of this NfsSettingsExportSettings. :type: bool """ + self._read_only = read_only @property @@ -651,6 +673,7 @@ def read_transfer_max_size(self, read_transfer_max_size): :param read_transfer_max_size: The read_transfer_max_size of this NfsSettingsExportSettings. :type: int """ + self._read_transfer_max_size = read_transfer_max_size @property @@ -673,6 +696,7 @@ def read_transfer_multiple(self, read_transfer_multiple): :param read_transfer_multiple: The read_transfer_multiple of this NfsSettingsExportSettings. :type: int """ + self._read_transfer_multiple = read_transfer_multiple @property @@ -695,6 +719,7 @@ def read_transfer_size(self, read_transfer_size): :param read_transfer_size: The read_transfer_size of this NfsSettingsExportSettings. :type: int """ + self._read_transfer_size = read_transfer_size @property @@ -717,6 +742,7 @@ def readdirplus(self, readdirplus): :param readdirplus: The readdirplus of this NfsSettingsExportSettings. :type: bool """ + self._readdirplus = readdirplus @property @@ -739,6 +765,7 @@ def readdirplus_prefetch(self, readdirplus_prefetch): :param readdirplus_prefetch: The readdirplus_prefetch of this NfsSettingsExportSettings. :type: int """ + self._readdirplus_prefetch = readdirplus_prefetch @property @@ -761,6 +788,7 @@ def return_32bit_file_ids(self, return_32bit_file_ids): :param return_32bit_file_ids: The return_32bit_file_ids of this NfsSettingsExportSettings. :type: bool """ + self._return_32bit_file_ids = return_32bit_file_ids @property @@ -783,6 +811,7 @@ def security_flavors(self, security_flavors): :param security_flavors: The security_flavors of this NfsSettingsExportSettings. :type: list[str] """ + self._security_flavors = security_flavors @property @@ -805,6 +834,7 @@ def setattr_asynchronous(self, setattr_asynchronous): :param setattr_asynchronous: The setattr_asynchronous of this NfsSettingsExportSettings. :type: bool """ + self._setattr_asynchronous = setattr_asynchronous @property @@ -827,6 +857,7 @@ def snapshot(self, snapshot): :param snapshot: The snapshot of this NfsSettingsExportSettings. :type: str """ + self._snapshot = snapshot @property @@ -849,6 +880,7 @@ def symlinks(self, symlinks): :param symlinks: The symlinks of this NfsSettingsExportSettings. :type: bool """ + self._symlinks = symlinks @property @@ -871,6 +903,7 @@ def time_delta(self, time_delta): :param time_delta: The time_delta of this NfsSettingsExportSettings. :type: float """ + self._time_delta = time_delta @property @@ -899,6 +932,7 @@ def write_datasync_action(self, write_datasync_action): "Invalid value for `write_datasync_action`, must be one of {0}" .format(allowed_values) ) + self._write_datasync_action = write_datasync_action @property @@ -927,6 +961,7 @@ def write_datasync_reply(self, write_datasync_reply): "Invalid value for `write_datasync_reply`, must be one of {0}" .format(allowed_values) ) + self._write_datasync_reply = write_datasync_reply @property @@ -955,6 +990,7 @@ def write_filesync_action(self, write_filesync_action): "Invalid value for `write_filesync_action`, must be one of {0}" .format(allowed_values) ) + self._write_filesync_action = write_filesync_action @property @@ -983,6 +1019,7 @@ def write_filesync_reply(self, write_filesync_reply): "Invalid value for `write_filesync_reply`, must be one of {0}" .format(allowed_values) ) + self._write_filesync_reply = write_filesync_reply @property @@ -1005,6 +1042,7 @@ def write_transfer_max_size(self, write_transfer_max_size): :param write_transfer_max_size: The write_transfer_max_size of this NfsSettingsExportSettings. :type: int """ + self._write_transfer_max_size = write_transfer_max_size @property @@ -1027,6 +1065,7 @@ def write_transfer_multiple(self, write_transfer_multiple): :param write_transfer_multiple: The write_transfer_multiple of this NfsSettingsExportSettings. :type: int """ + self._write_transfer_multiple = write_transfer_multiple @property @@ -1049,6 +1088,7 @@ def write_transfer_size(self, write_transfer_size): :param write_transfer_size: The write_transfer_size of this NfsSettingsExportSettings. :type: int """ + self._write_transfer_size = write_transfer_size @property @@ -1077,6 +1117,7 @@ def write_unstable_action(self, write_unstable_action): "Invalid value for `write_unstable_action`, must be one of {0}" .format(allowed_values) ) + self._write_unstable_action = write_unstable_action @property @@ -1105,6 +1146,7 @@ def write_unstable_reply(self, write_unstable_reply): "Invalid value for `write_unstable_reply`, must be one of {0}" .format(allowed_values) ) + self._write_unstable_reply = write_unstable_reply @property @@ -1127,6 +1169,7 @@ def zone(self, zone): :param zone: The zone of this NfsSettingsExportSettings. :type: str """ + self._zone = zone def to_dict(self): @@ -1144,6 +1187,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1161,14 +1210,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_settings_global.py b/isi_sdk/models/nfs_settings_global.py index 143a97149..66ab5b8e6 100644 --- a/isi_sdk/models/nfs_settings_global.py +++ b/isi_sdk/models/nfs_settings_global.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsSettingsGlobal(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this NfsSettingsGlobal. :type: NfsSettingsGlobalSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_settings_global_settings.py b/isi_sdk/models/nfs_settings_global_settings.py index a52ae3546..115c517c2 100644 --- a/isi_sdk/models/nfs_settings_global_settings.py +++ b/isi_sdk/models/nfs_settings_global_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsSettingsGlobalSettings(object): @@ -78,6 +79,7 @@ def nfsv3_enabled(self, nfsv3_enabled): :param nfsv3_enabled: The nfsv3_enabled of this NfsSettingsGlobalSettings. :type: bool """ + self._nfsv3_enabled = nfsv3_enabled @property @@ -100,6 +102,7 @@ def nfsv4_enabled(self, nfsv4_enabled): :param nfsv4_enabled: The nfsv4_enabled of this NfsSettingsGlobalSettings. :type: bool """ + self._nfsv4_enabled = nfsv4_enabled @property @@ -122,6 +125,7 @@ def rpc_maxthreads(self, rpc_maxthreads): :param rpc_maxthreads: The rpc_maxthreads of this NfsSettingsGlobalSettings. :type: int """ + self._rpc_maxthreads = rpc_maxthreads @property @@ -144,6 +148,7 @@ def rpc_minthreads(self, rpc_minthreads): :param rpc_minthreads: The rpc_minthreads of this NfsSettingsGlobalSettings. :type: int """ + self._rpc_minthreads = rpc_minthreads @property @@ -166,6 +171,7 @@ def service(self, service): :param service: The service of this NfsSettingsGlobalSettings. :type: bool """ + self._service = service def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_settings_zone.py b/isi_sdk/models/nfs_settings_zone.py index 2c14a6d0b..320a2b6fe 100644 --- a/isi_sdk/models/nfs_settings_zone.py +++ b/isi_sdk/models/nfs_settings_zone.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsSettingsZone(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this NfsSettingsZone. :type: NfsSettingsZoneSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/nfs_settings_zone_settings.py b/isi_sdk/models/nfs_settings_zone_settings.py index b9e27b4fd..d5d800996 100644 --- a/isi_sdk/models/nfs_settings_zone_settings.py +++ b/isi_sdk/models/nfs_settings_zone_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NfsSettingsZoneSettings(object): @@ -84,6 +85,7 @@ def nfsv4_allow_numeric_ids(self, nfsv4_allow_numeric_ids): :param nfsv4_allow_numeric_ids: The nfsv4_allow_numeric_ids of this NfsSettingsZoneSettings. :type: bool """ + self._nfsv4_allow_numeric_ids = nfsv4_allow_numeric_ids @property @@ -106,6 +108,7 @@ def nfsv4_domain(self, nfsv4_domain): :param nfsv4_domain: The nfsv4_domain of this NfsSettingsZoneSettings. :type: str """ + self._nfsv4_domain = nfsv4_domain @property @@ -128,6 +131,7 @@ def nfsv4_no_domain(self, nfsv4_no_domain): :param nfsv4_no_domain: The nfsv4_no_domain of this NfsSettingsZoneSettings. :type: bool """ + self._nfsv4_no_domain = nfsv4_no_domain @property @@ -150,6 +154,7 @@ def nfsv4_no_domain_uids(self, nfsv4_no_domain_uids): :param nfsv4_no_domain_uids: The nfsv4_no_domain_uids of this NfsSettingsZoneSettings. :type: bool """ + self._nfsv4_no_domain_uids = nfsv4_no_domain_uids @property @@ -172,6 +177,7 @@ def nfsv4_no_names(self, nfsv4_no_names): :param nfsv4_no_names: The nfsv4_no_names of this NfsSettingsZoneSettings. :type: bool """ + self._nfsv4_no_names = nfsv4_no_names @property @@ -194,6 +200,7 @@ def nfsv4_replace_domain(self, nfsv4_replace_domain): :param nfsv4_replace_domain: The nfsv4_replace_domain of this NfsSettingsZoneSettings. :type: bool """ + self._nfsv4_replace_domain = nfsv4_replace_domain @property @@ -216,6 +223,7 @@ def zone(self, zone): :param zone: The zone of this NfsSettingsZoneSettings. :type: str """ + self._zone = zone def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/node_drives.py b/isi_sdk/models/node_drives.py new file mode 100644 index 000000000..05e8d4381 --- /dev/null +++ b/isi_sdk/models/node_drives.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeDrives(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeDrives - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeDrivesNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeDrives. + + + :return: The nodes of this NodeDrives. + :rtype: list[NodeDrivesNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeDrives. + + + :param nodes: The nodes of this NodeDrives. + :type: list[NodeDrivesNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeDrives. + Total number of items available. + + :return: The total of this NodeDrives. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeDrives. + Total number of items available. + + :param total: The total of this NodeDrives. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_drives_node.py b/isi_sdk/models/node_drives_node.py new file mode 100644 index 000000000..7c6d68492 --- /dev/null +++ b/isi_sdk/models/node_drives_node.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeDrivesNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeDrivesNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'drives': 'list[NodeDrivesNodeDrive]', + 'id': 'int', + 'lnn': 'int' + } + + self.attribute_map = { + 'drives': 'drives', + 'id': 'id', + 'lnn': 'lnn' + } + + self._drives = None + self._id = None + self._lnn = None + + @property + def drives(self): + """ + Gets the drives of this NodeDrivesNode. + List of the drives in this node. + + :return: The drives of this NodeDrivesNode. + :rtype: list[NodeDrivesNodeDrive] + """ + return self._drives + + @drives.setter + def drives(self, drives): + """ + Sets the drives of this NodeDrivesNode. + List of the drives in this node. + + :param drives: The drives of this NodeDrivesNode. + :type: list[NodeDrivesNodeDrive] + """ + + self._drives = drives + + @property + def id(self): + """ + Gets the id of this NodeDrivesNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeDrivesNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeDrivesNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeDrivesNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this NodeDrivesNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeDrivesNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeDrivesNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeDrivesNode. + :type: int + """ + + self._lnn = lnn + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_drives_node_drive.py b/isi_sdk/models/node_drives_node_drive.py new file mode 100644 index 000000000..f309777c8 --- /dev/null +++ b/isi_sdk/models/node_drives_node_drive.py @@ -0,0 +1,642 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeDrivesNodeDrive(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeDrivesNodeDrive - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'baynum': 'int', + 'blocks': 'int', + 'chassis': 'int', + 'devname': 'str', + 'firmware': 'NodeDrivesNodeDriveFirmware', + 'handle': 'int', + 'interface_type': 'str', + 'lnum': 'int', + 'locnstr': 'str', + 'logical_block_length': 'int', + 'media_type': 'str', + 'model': 'str', + 'physical_block_length': 'int', + 'present': 'bool', + 'purpose': 'str', + 'purpose_description': 'str', + 'serial': 'str', + 'ui_state': 'str', + 'wwn': 'str', + 'x_loc': 'int', + 'y_loc': 'int' + } + + self.attribute_map = { + 'baynum': 'baynum', + 'blocks': 'blocks', + 'chassis': 'chassis', + 'devname': 'devname', + 'firmware': 'firmware', + 'handle': 'handle', + 'interface_type': 'interface_type', + 'lnum': 'lnum', + 'locnstr': 'locnstr', + 'logical_block_length': 'logical_block_length', + 'media_type': 'media_type', + 'model': 'model', + 'physical_block_length': 'physical_block_length', + 'present': 'present', + 'purpose': 'purpose', + 'purpose_description': 'purpose_description', + 'serial': 'serial', + 'ui_state': 'ui_state', + 'wwn': 'wwn', + 'x_loc': 'x_loc', + 'y_loc': 'y_loc' + } + + self._baynum = None + self._blocks = None + self._chassis = None + self._devname = None + self._firmware = None + self._handle = None + self._interface_type = None + self._lnum = None + self._locnstr = None + self._logical_block_length = None + self._media_type = None + self._model = None + self._physical_block_length = None + self._present = None + self._purpose = None + self._purpose_description = None + self._serial = None + self._ui_state = None + self._wwn = None + self._x_loc = None + self._y_loc = None + + @property + def baynum(self): + """ + Gets the baynum of this NodeDrivesNodeDrive. + Numerical representation of this drive's bay. + + :return: The baynum of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._baynum + + @baynum.setter + def baynum(self, baynum): + """ + Sets the baynum of this NodeDrivesNodeDrive. + Numerical representation of this drive's bay. + + :param baynum: The baynum of this NodeDrivesNodeDrive. + :type: int + """ + + self._baynum = baynum + + @property + def blocks(self): + """ + Gets the blocks of this NodeDrivesNodeDrive. + Number of blocks on this drive. + + :return: The blocks of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._blocks + + @blocks.setter + def blocks(self, blocks): + """ + Sets the blocks of this NodeDrivesNodeDrive. + Number of blocks on this drive. + + :param blocks: The blocks of this NodeDrivesNodeDrive. + :type: int + """ + + self._blocks = blocks + + @property + def chassis(self): + """ + Gets the chassis of this NodeDrivesNodeDrive. + The chassis number which contains this drive. + + :return: The chassis of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._chassis + + @chassis.setter + def chassis(self, chassis): + """ + Sets the chassis of this NodeDrivesNodeDrive. + The chassis number which contains this drive. + + :param chassis: The chassis of this NodeDrivesNodeDrive. + :type: int + """ + + self._chassis = chassis + + @property + def devname(self): + """ + Gets the devname of this NodeDrivesNodeDrive. + This drive's device name. + + :return: The devname of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._devname + + @devname.setter + def devname(self, devname): + """ + Sets the devname of this NodeDrivesNodeDrive. + This drive's device name. + + :param devname: The devname of this NodeDrivesNodeDrive. + :type: str + """ + + self._devname = devname + + @property + def firmware(self): + """ + Gets the firmware of this NodeDrivesNodeDrive. + Drive firmware information. + + :return: The firmware of this NodeDrivesNodeDrive. + :rtype: NodeDrivesNodeDriveFirmware + """ + return self._firmware + + @firmware.setter + def firmware(self, firmware): + """ + Sets the firmware of this NodeDrivesNodeDrive. + Drive firmware information. + + :param firmware: The firmware of this NodeDrivesNodeDrive. + :type: NodeDrivesNodeDriveFirmware + """ + + self._firmware = firmware + + @property + def handle(self): + """ + Gets the handle of this NodeDrivesNodeDrive. + Drive_d's handle representation for this drive + + :return: The handle of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._handle + + @handle.setter + def handle(self, handle): + """ + Sets the handle of this NodeDrivesNodeDrive. + Drive_d's handle representation for this drive + + :param handle: The handle of this NodeDrivesNodeDrive. + :type: int + """ + + self._handle = handle + + @property + def interface_type(self): + """ + Gets the interface_type of this NodeDrivesNodeDrive. + String representtation of this drive's interface type. + + :return: The interface_type of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._interface_type + + @interface_type.setter + def interface_type(self, interface_type): + """ + Sets the interface_type of this NodeDrivesNodeDrive. + String representtation of this drive's interface type. + + :param interface_type: The interface_type of this NodeDrivesNodeDrive. + :type: str + """ + + self._interface_type = interface_type + + @property + def lnum(self): + """ + Gets the lnum of this NodeDrivesNodeDrive. + This drive's logical drive number in IFS. + + :return: The lnum of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._lnum + + @lnum.setter + def lnum(self, lnum): + """ + Sets the lnum of this NodeDrivesNodeDrive. + This drive's logical drive number in IFS. + + :param lnum: The lnum of this NodeDrivesNodeDrive. + :type: int + """ + + self._lnum = lnum + + @property + def locnstr(self): + """ + Gets the locnstr of this NodeDrivesNodeDrive. + String representation of this drive's physical location. + + :return: The locnstr of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._locnstr + + @locnstr.setter + def locnstr(self, locnstr): + """ + Sets the locnstr of this NodeDrivesNodeDrive. + String representation of this drive's physical location. + + :param locnstr: The locnstr of this NodeDrivesNodeDrive. + :type: str + """ + + self._locnstr = locnstr + + @property + def logical_block_length(self): + """ + Gets the logical_block_length of this NodeDrivesNodeDrive. + Size of a logical block on this drive. + + :return: The logical_block_length of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._logical_block_length + + @logical_block_length.setter + def logical_block_length(self, logical_block_length): + """ + Sets the logical_block_length of this NodeDrivesNodeDrive. + Size of a logical block on this drive. + + :param logical_block_length: The logical_block_length of this NodeDrivesNodeDrive. + :type: int + """ + + self._logical_block_length = logical_block_length + + @property + def media_type(self): + """ + Gets the media_type of this NodeDrivesNodeDrive. + String representation of this drive's media type. + + :return: The media_type of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._media_type + + @media_type.setter + def media_type(self, media_type): + """ + Sets the media_type of this NodeDrivesNodeDrive. + String representation of this drive's media type. + + :param media_type: The media_type of this NodeDrivesNodeDrive. + :type: str + """ + + self._media_type = media_type + + @property + def model(self): + """ + Gets the model of this NodeDrivesNodeDrive. + This drive's manufacturer and model. + + :return: The model of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this NodeDrivesNodeDrive. + This drive's manufacturer and model. + + :param model: The model of this NodeDrivesNodeDrive. + :type: str + """ + + self._model = model + + @property + def physical_block_length(self): + """ + Gets the physical_block_length of this NodeDrivesNodeDrive. + Size of a physical block on this drive. + + :return: The physical_block_length of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._physical_block_length + + @physical_block_length.setter + def physical_block_length(self, physical_block_length): + """ + Sets the physical_block_length of this NodeDrivesNodeDrive. + Size of a physical block on this drive. + + :param physical_block_length: The physical_block_length of this NodeDrivesNodeDrive. + :type: int + """ + + self._physical_block_length = physical_block_length + + @property + def present(self): + """ + Gets the present of this NodeDrivesNodeDrive. + Indicates whether this drive is physically present in the node. + + :return: The present of this NodeDrivesNodeDrive. + :rtype: bool + """ + return self._present + + @present.setter + def present(self, present): + """ + Sets the present of this NodeDrivesNodeDrive. + Indicates whether this drive is physically present in the node. + + :param present: The present of this NodeDrivesNodeDrive. + :type: bool + """ + + self._present = present + + @property + def purpose(self): + """ + Gets the purpose of this NodeDrivesNodeDrive. + This drive's purpose in the DRV state machine. + + :return: The purpose of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._purpose + + @purpose.setter + def purpose(self, purpose): + """ + Sets the purpose of this NodeDrivesNodeDrive. + This drive's purpose in the DRV state machine. + + :param purpose: The purpose of this NodeDrivesNodeDrive. + :type: str + """ + + self._purpose = purpose + + @property + def purpose_description(self): + """ + Gets the purpose_description of this NodeDrivesNodeDrive. + Description of this drive's purpose. + + :return: The purpose_description of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._purpose_description + + @purpose_description.setter + def purpose_description(self, purpose_description): + """ + Sets the purpose_description of this NodeDrivesNodeDrive. + Description of this drive's purpose. + + :param purpose_description: The purpose_description of this NodeDrivesNodeDrive. + :type: str + """ + + self._purpose_description = purpose_description + + @property + def serial(self): + """ + Gets the serial of this NodeDrivesNodeDrive. + Serial number for this drive. + + :return: The serial of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this NodeDrivesNodeDrive. + Serial number for this drive. + + :param serial: The serial of this NodeDrivesNodeDrive. + :type: str + """ + + self._serial = serial + + @property + def ui_state(self): + """ + Gets the ui_state of this NodeDrivesNodeDrive. + This drive's state as presented to the UI. + + :return: The ui_state of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._ui_state + + @ui_state.setter + def ui_state(self, ui_state): + """ + Sets the ui_state of this NodeDrivesNodeDrive. + This drive's state as presented to the UI. + + :param ui_state: The ui_state of this NodeDrivesNodeDrive. + :type: str + """ + + self._ui_state = ui_state + + @property + def wwn(self): + """ + Gets the wwn of this NodeDrivesNodeDrive. + The drive's 'worldwide name' from its NAA identifiers. + + :return: The wwn of this NodeDrivesNodeDrive. + :rtype: str + """ + return self._wwn + + @wwn.setter + def wwn(self, wwn): + """ + Sets the wwn of this NodeDrivesNodeDrive. + The drive's 'worldwide name' from its NAA identifiers. + + :param wwn: The wwn of this NodeDrivesNodeDrive. + :type: str + """ + + self._wwn = wwn + + @property + def x_loc(self): + """ + Gets the x_loc of this NodeDrivesNodeDrive. + This drive's x-axis grid location. + + :return: The x_loc of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._x_loc + + @x_loc.setter + def x_loc(self, x_loc): + """ + Sets the x_loc of this NodeDrivesNodeDrive. + This drive's x-axis grid location. + + :param x_loc: The x_loc of this NodeDrivesNodeDrive. + :type: int + """ + + self._x_loc = x_loc + + @property + def y_loc(self): + """ + Gets the y_loc of this NodeDrivesNodeDrive. + This drive's y-axis grid location. + + :return: The y_loc of this NodeDrivesNodeDrive. + :rtype: int + """ + return self._y_loc + + @y_loc.setter + def y_loc(self, y_loc): + """ + Sets the y_loc of this NodeDrivesNodeDrive. + This drive's y-axis grid location. + + :param y_loc: The y_loc of this NodeDrivesNodeDrive. + :type: int + """ + + self._y_loc = y_loc + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_drives_node_drive_firmware.py b/isi_sdk/models/node_drives_node_drive_firmware.py new file mode 100644 index 000000000..5d9b474f3 --- /dev/null +++ b/isi_sdk/models/node_drives_node_drive_firmware.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeDrivesNodeDriveFirmware(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeDrivesNodeDriveFirmware - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'current_firmware': 'str', + 'desired_firmware': 'str' + } + + self.attribute_map = { + 'current_firmware': 'current_firmware', + 'desired_firmware': 'desired_firmware' + } + + self._current_firmware = None + self._desired_firmware = None + + @property + def current_firmware(self): + """ + Gets the current_firmware of this NodeDrivesNodeDriveFirmware. + This drive's current firmware revision + + :return: The current_firmware of this NodeDrivesNodeDriveFirmware. + :rtype: str + """ + return self._current_firmware + + @current_firmware.setter + def current_firmware(self, current_firmware): + """ + Sets the current_firmware of this NodeDrivesNodeDriveFirmware. + This drive's current firmware revision + + :param current_firmware: The current_firmware of this NodeDrivesNodeDriveFirmware. + :type: str + """ + + self._current_firmware = current_firmware + + @property + def desired_firmware(self): + """ + Gets the desired_firmware of this NodeDrivesNodeDriveFirmware. + This drive's desired firmware revision. + + :return: The desired_firmware of this NodeDrivesNodeDriveFirmware. + :rtype: str + """ + return self._desired_firmware + + @desired_firmware.setter + def desired_firmware(self, desired_firmware): + """ + Sets the desired_firmware of this NodeDrivesNodeDriveFirmware. + This drive's desired firmware revision. + + :param desired_firmware: The desired_firmware of this NodeDrivesNodeDriveFirmware. + :type: str + """ + + self._desired_firmware = desired_firmware + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_drives_purposelist.py b/isi_sdk/models/node_drives_purposelist.py new file mode 100644 index 000000000..095e59633 --- /dev/null +++ b/isi_sdk/models/node_drives_purposelist.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeDrivesPurposelist(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeDrivesPurposelist - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeDrivesPurposelistNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeDrivesPurposelist. + + + :return: The nodes of this NodeDrivesPurposelist. + :rtype: list[NodeDrivesPurposelistNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeDrivesPurposelist. + + + :param nodes: The nodes of this NodeDrivesPurposelist. + :type: list[NodeDrivesPurposelistNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeDrivesPurposelist. + Total number of items available. + + :return: The total of this NodeDrivesPurposelist. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeDrivesPurposelist. + Total number of items available. + + :param total: The total of this NodeDrivesPurposelist. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_drives_purposelist_node.py b/isi_sdk/models/node_drives_purposelist_node.py new file mode 100644 index 000000000..53f570fbe --- /dev/null +++ b/isi_sdk/models/node_drives_purposelist_node.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeDrivesPurposelistNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeDrivesPurposelistNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'id': 'int', + 'lnn': 'int', + 'purposes': 'list[NodeDrivesPurposelistNodePurpose]' + } + + self.attribute_map = { + 'id': 'id', + 'lnn': 'lnn', + 'purposes': 'purposes' + } + + self._id = None + self._lnn = None + self._purposes = None + + @property + def id(self): + """ + Gets the id of this NodeDrivesPurposelistNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeDrivesPurposelistNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeDrivesPurposelistNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeDrivesPurposelistNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this NodeDrivesPurposelistNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeDrivesPurposelistNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeDrivesPurposelistNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeDrivesPurposelistNode. + :type: int + """ + + self._lnn = lnn + + @property + def purposes(self): + """ + Gets the purposes of this NodeDrivesPurposelistNode. + List of the drive purposes available on this node. + + :return: The purposes of this NodeDrivesPurposelistNode. + :rtype: list[NodeDrivesPurposelistNodePurpose] + """ + return self._purposes + + @purposes.setter + def purposes(self, purposes): + """ + Sets the purposes of this NodeDrivesPurposelistNode. + List of the drive purposes available on this node. + + :param purposes: The purposes of this NodeDrivesPurposelistNode. + :type: list[NodeDrivesPurposelistNodePurpose] + """ + + self._purposes = purposes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_drives_purposelist_node_purpose.py b/isi_sdk/models/node_drives_purposelist_node_purpose.py new file mode 100644 index 000000000..c9338479c --- /dev/null +++ b/isi_sdk/models/node_drives_purposelist_node_purpose.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeDrivesPurposelistNodePurpose(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeDrivesPurposelistNodePurpose - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'purpose': 'str', + 'purpose_description': 'str' + } + + self.attribute_map = { + 'purpose': 'purpose', + 'purpose_description': 'purpose_description' + } + + self._purpose = None + self._purpose_description = None + + @property + def purpose(self): + """ + Gets the purpose of this NodeDrivesPurposelistNodePurpose. + String representation of this purpose for API use. + + :return: The purpose of this NodeDrivesPurposelistNodePurpose. + :rtype: str + """ + return self._purpose + + @purpose.setter + def purpose(self, purpose): + """ + Sets the purpose of this NodeDrivesPurposelistNodePurpose. + String representation of this purpose for API use. + + :param purpose: The purpose of this NodeDrivesPurposelistNodePurpose. + :type: str + """ + + self._purpose = purpose + + @property + def purpose_description(self): + """ + Gets the purpose_description of this NodeDrivesPurposelistNodePurpose. + A description of this purpose. + + :return: The purpose_description of this NodeDrivesPurposelistNodePurpose. + :rtype: str + """ + return self._purpose_description + + @purpose_description.setter + def purpose_description(self, purpose_description): + """ + Sets the purpose_description of this NodeDrivesPurposelistNodePurpose. + A description of this purpose. + + :param purpose_description: The purpose_description of this NodeDrivesPurposelistNodePurpose. + :type: str + """ + + self._purpose_description = purpose_description + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_hardware.py b/isi_sdk/models/node_hardware.py new file mode 100644 index 000000000..ae07ba0f0 --- /dev/null +++ b/isi_sdk/models/node_hardware.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeHardware(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeHardware - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeHardwareNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeHardware. + + + :return: The nodes of this NodeHardware. + :rtype: list[NodeHardwareNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeHardware. + + + :param nodes: The nodes of this NodeHardware. + :type: list[NodeHardwareNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeHardware. + Total number of items available. + + :return: The total of this NodeHardware. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeHardware. + Total number of items available. + + :param total: The total of this NodeHardware. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_hardware_node.py b/isi_sdk/models/node_hardware_node.py new file mode 100644 index 000000000..c7f6ad83b --- /dev/null +++ b/isi_sdk/models/node_hardware_node.py @@ -0,0 +1,798 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeHardwareNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeHardwareNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'chassis': 'str', + 'chassis_code': 'str', + 'chassis_count': 'str', + '_class': 'str', + 'configuration_id': 'str', + 'cpu': 'str', + 'disk_controller': 'str', + 'disk_expander': 'str', + 'family_code': 'str', + 'flash_drive': 'str', + 'generation_code': 'str', + 'hwgen': 'str', + 'id': 'int', + 'imb_version': 'str', + 'infiniband': 'str', + 'lcd_version': 'str', + 'lnn': 'int', + 'motherboard': 'str', + 'net_interfaces': 'str', + 'nvram': 'str', + 'powersupplies': 'list[str]', + 'processor': 'str', + 'product': 'str', + 'ram': 'int', + 'serial_number': 'str', + 'series': 'str', + 'storage_class': 'str' + } + + self.attribute_map = { + 'chassis': 'chassis', + 'chassis_code': 'chassis_code', + 'chassis_count': 'chassis_count', + '_class': 'class', + 'configuration_id': 'configuration_id', + 'cpu': 'cpu', + 'disk_controller': 'disk_controller', + 'disk_expander': 'disk_expander', + 'family_code': 'family_code', + 'flash_drive': 'flash_drive', + 'generation_code': 'generation_code', + 'hwgen': 'hwgen', + 'id': 'id', + 'imb_version': 'imb_version', + 'infiniband': 'infiniband', + 'lcd_version': 'lcd_version', + 'lnn': 'lnn', + 'motherboard': 'motherboard', + 'net_interfaces': 'net_interfaces', + 'nvram': 'nvram', + 'powersupplies': 'powersupplies', + 'processor': 'processor', + 'product': 'product', + 'ram': 'ram', + 'serial_number': 'serial_number', + 'series': 'series', + 'storage_class': 'storage_class' + } + + self._chassis = None + self._chassis_code = None + self._chassis_count = None + self.__class = None + self._configuration_id = None + self._cpu = None + self._disk_controller = None + self._disk_expander = None + self._family_code = None + self._flash_drive = None + self._generation_code = None + self._hwgen = None + self._id = None + self._imb_version = None + self._infiniband = None + self._lcd_version = None + self._lnn = None + self._motherboard = None + self._net_interfaces = None + self._nvram = None + self._powersupplies = None + self._processor = None + self._product = None + self._ram = None + self._serial_number = None + self._series = None + self._storage_class = None + + @property + def chassis(self): + """ + Gets the chassis of this NodeHardwareNode. + Name of this node's chassis. + + :return: The chassis of this NodeHardwareNode. + :rtype: str + """ + return self._chassis + + @chassis.setter + def chassis(self, chassis): + """ + Sets the chassis of this NodeHardwareNode. + Name of this node's chassis. + + :param chassis: The chassis of this NodeHardwareNode. + :type: str + """ + + self._chassis = chassis + + @property + def chassis_code(self): + """ + Gets the chassis_code of this NodeHardwareNode. + Chassis code of this node (1U, 2U, etc.). + + :return: The chassis_code of this NodeHardwareNode. + :rtype: str + """ + return self._chassis_code + + @chassis_code.setter + def chassis_code(self, chassis_code): + """ + Sets the chassis_code of this NodeHardwareNode. + Chassis code of this node (1U, 2U, etc.). + + :param chassis_code: The chassis_code of this NodeHardwareNode. + :type: str + """ + + self._chassis_code = chassis_code + + @property + def chassis_count(self): + """ + Gets the chassis_count of this NodeHardwareNode. + Number of chassis making up this node. + + :return: The chassis_count of this NodeHardwareNode. + :rtype: str + """ + return self._chassis_count + + @chassis_count.setter + def chassis_count(self, chassis_count): + """ + Sets the chassis_count of this NodeHardwareNode. + Number of chassis making up this node. + + :param chassis_count: The chassis_count of this NodeHardwareNode. + :type: str + """ + + self._chassis_count = chassis_count + + @property + def _class(self): + """ + Gets the _class of this NodeHardwareNode. + Class of this node (storage, accelerator, etc.). + + :return: The _class of this NodeHardwareNode. + :rtype: str + """ + return self.__class + + @_class.setter + def _class(self, _class): + """ + Sets the _class of this NodeHardwareNode. + Class of this node (storage, accelerator, etc.). + + :param _class: The _class of this NodeHardwareNode. + :type: str + """ + + self.__class = _class + + @property + def configuration_id(self): + """ + Gets the configuration_id of this NodeHardwareNode. + Node configuration ID. + + :return: The configuration_id of this NodeHardwareNode. + :rtype: str + """ + return self._configuration_id + + @configuration_id.setter + def configuration_id(self, configuration_id): + """ + Sets the configuration_id of this NodeHardwareNode. + Node configuration ID. + + :param configuration_id: The configuration_id of this NodeHardwareNode. + :type: str + """ + + self._configuration_id = configuration_id + + @property + def cpu(self): + """ + Gets the cpu of this NodeHardwareNode. + Manufacturer and model of this node's CPU. + + :return: The cpu of this NodeHardwareNode. + :rtype: str + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + Sets the cpu of this NodeHardwareNode. + Manufacturer and model of this node's CPU. + + :param cpu: The cpu of this NodeHardwareNode. + :type: str + """ + + self._cpu = cpu + + @property + def disk_controller(self): + """ + Gets the disk_controller of this NodeHardwareNode. + Manufacturer and model of this node's disk controller. + + :return: The disk_controller of this NodeHardwareNode. + :rtype: str + """ + return self._disk_controller + + @disk_controller.setter + def disk_controller(self, disk_controller): + """ + Sets the disk_controller of this NodeHardwareNode. + Manufacturer and model of this node's disk controller. + + :param disk_controller: The disk_controller of this NodeHardwareNode. + :type: str + """ + + self._disk_controller = disk_controller + + @property + def disk_expander(self): + """ + Gets the disk_expander of this NodeHardwareNode. + Manufacturer and model of this node's disk expander. + + :return: The disk_expander of this NodeHardwareNode. + :rtype: str + """ + return self._disk_expander + + @disk_expander.setter + def disk_expander(self, disk_expander): + """ + Sets the disk_expander of this NodeHardwareNode. + Manufacturer and model of this node's disk expander. + + :param disk_expander: The disk_expander of this NodeHardwareNode. + :type: str + """ + + self._disk_expander = disk_expander + + @property + def family_code(self): + """ + Gets the family_code of this NodeHardwareNode. + Family code of this node (X, S, NL, etc.). + + :return: The family_code of this NodeHardwareNode. + :rtype: str + """ + return self._family_code + + @family_code.setter + def family_code(self, family_code): + """ + Sets the family_code of this NodeHardwareNode. + Family code of this node (X, S, NL, etc.). + + :param family_code: The family_code of this NodeHardwareNode. + :type: str + """ + + self._family_code = family_code + + @property + def flash_drive(self): + """ + Gets the flash_drive of this NodeHardwareNode. + Manufacturer, model, and device id of this node's flash drive. + + :return: The flash_drive of this NodeHardwareNode. + :rtype: str + """ + return self._flash_drive + + @flash_drive.setter + def flash_drive(self, flash_drive): + """ + Sets the flash_drive of this NodeHardwareNode. + Manufacturer, model, and device id of this node's flash drive. + + :param flash_drive: The flash_drive of this NodeHardwareNode. + :type: str + """ + + self._flash_drive = flash_drive + + @property + def generation_code(self): + """ + Gets the generation_code of this NodeHardwareNode. + Generation code of this node. + + :return: The generation_code of this NodeHardwareNode. + :rtype: str + """ + return self._generation_code + + @generation_code.setter + def generation_code(self, generation_code): + """ + Sets the generation_code of this NodeHardwareNode. + Generation code of this node. + + :param generation_code: The generation_code of this NodeHardwareNode. + :type: str + """ + + self._generation_code = generation_code + + @property + def hwgen(self): + """ + Gets the hwgen of this NodeHardwareNode. + Isilon hardware generation name. + + :return: The hwgen of this NodeHardwareNode. + :rtype: str + """ + return self._hwgen + + @hwgen.setter + def hwgen(self, hwgen): + """ + Sets the hwgen of this NodeHardwareNode. + Isilon hardware generation name. + + :param hwgen: The hwgen of this NodeHardwareNode. + :type: str + """ + + self._hwgen = hwgen + + @property + def id(self): + """ + Gets the id of this NodeHardwareNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeHardwareNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeHardwareNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeHardwareNode. + :type: int + """ + + self._id = id + + @property + def imb_version(self): + """ + Gets the imb_version of this NodeHardwareNode. + Version of this node's Isilon Management Board. + + :return: The imb_version of this NodeHardwareNode. + :rtype: str + """ + return self._imb_version + + @imb_version.setter + def imb_version(self, imb_version): + """ + Sets the imb_version of this NodeHardwareNode. + Version of this node's Isilon Management Board. + + :param imb_version: The imb_version of this NodeHardwareNode. + :type: str + """ + + self._imb_version = imb_version + + @property + def infiniband(self): + """ + Gets the infiniband of this NodeHardwareNode. + Infiniband card type. + + :return: The infiniband of this NodeHardwareNode. + :rtype: str + """ + return self._infiniband + + @infiniband.setter + def infiniband(self, infiniband): + """ + Sets the infiniband of this NodeHardwareNode. + Infiniband card type. + + :param infiniband: The infiniband of this NodeHardwareNode. + :type: str + """ + + self._infiniband = infiniband + + @property + def lcd_version(self): + """ + Gets the lcd_version of this NodeHardwareNode. + Version of the LCD panel. + + :return: The lcd_version of this NodeHardwareNode. + :rtype: str + """ + return self._lcd_version + + @lcd_version.setter + def lcd_version(self, lcd_version): + """ + Sets the lcd_version of this NodeHardwareNode. + Version of the LCD panel. + + :param lcd_version: The lcd_version of this NodeHardwareNode. + :type: str + """ + + self._lcd_version = lcd_version + + @property + def lnn(self): + """ + Gets the lnn of this NodeHardwareNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeHardwareNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeHardwareNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeHardwareNode. + :type: int + """ + + self._lnn = lnn + + @property + def motherboard(self): + """ + Gets the motherboard of this NodeHardwareNode. + Manufacturer and model of this node's motherboard. + + :return: The motherboard of this NodeHardwareNode. + :rtype: str + """ + return self._motherboard + + @motherboard.setter + def motherboard(self, motherboard): + """ + Sets the motherboard of this NodeHardwareNode. + Manufacturer and model of this node's motherboard. + + :param motherboard: The motherboard of this NodeHardwareNode. + :type: str + """ + + self._motherboard = motherboard + + @property + def net_interfaces(self): + """ + Gets the net_interfaces of this NodeHardwareNode. + Description of all this node's network interfaces. + + :return: The net_interfaces of this NodeHardwareNode. + :rtype: str + """ + return self._net_interfaces + + @net_interfaces.setter + def net_interfaces(self, net_interfaces): + """ + Sets the net_interfaces of this NodeHardwareNode. + Description of all this node's network interfaces. + + :param net_interfaces: The net_interfaces of this NodeHardwareNode. + :type: str + """ + + self._net_interfaces = net_interfaces + + @property + def nvram(self): + """ + Gets the nvram of this NodeHardwareNode. + Manufacturer and model of this node's NVRAM board. + + :return: The nvram of this NodeHardwareNode. + :rtype: str + """ + return self._nvram + + @nvram.setter + def nvram(self, nvram): + """ + Sets the nvram of this NodeHardwareNode. + Manufacturer and model of this node's NVRAM board. + + :param nvram: The nvram of this NodeHardwareNode. + :type: str + """ + + self._nvram = nvram + + @property + def powersupplies(self): + """ + Gets the powersupplies of this NodeHardwareNode. + Description strings for each power supply on this node. + + :return: The powersupplies of this NodeHardwareNode. + :rtype: list[str] + """ + return self._powersupplies + + @powersupplies.setter + def powersupplies(self, powersupplies): + """ + Sets the powersupplies of this NodeHardwareNode. + Description strings for each power supply on this node. + + :param powersupplies: The powersupplies of this NodeHardwareNode. + :type: list[str] + """ + + self._powersupplies = powersupplies + + @property + def processor(self): + """ + Gets the processor of this NodeHardwareNode. + Number of processors and cores on this node. + + :return: The processor of this NodeHardwareNode. + :rtype: str + """ + return self._processor + + @processor.setter + def processor(self, processor): + """ + Sets the processor of this NodeHardwareNode. + Number of processors and cores on this node. + + :param processor: The processor of this NodeHardwareNode. + :type: str + """ + + self._processor = processor + + @property + def product(self): + """ + Gets the product of this NodeHardwareNode. + Isilon product name. + + :return: The product of this NodeHardwareNode. + :rtype: str + """ + return self._product + + @product.setter + def product(self, product): + """ + Sets the product of this NodeHardwareNode. + Isilon product name. + + :param product: The product of this NodeHardwareNode. + :type: str + """ + + self._product = product + + @property + def ram(self): + """ + Gets the ram of this NodeHardwareNode. + Size of RAM in bytes. + + :return: The ram of this NodeHardwareNode. + :rtype: int + """ + return self._ram + + @ram.setter + def ram(self, ram): + """ + Sets the ram of this NodeHardwareNode. + Size of RAM in bytes. + + :param ram: The ram of this NodeHardwareNode. + :type: int + """ + + self._ram = ram + + @property + def serial_number(self): + """ + Gets the serial_number of this NodeHardwareNode. + Serial number of this node. + + :return: The serial_number of this NodeHardwareNode. + :rtype: str + """ + return self._serial_number + + @serial_number.setter + def serial_number(self, serial_number): + """ + Sets the serial_number of this NodeHardwareNode. + Serial number of this node. + + :param serial_number: The serial_number of this NodeHardwareNode. + :type: str + """ + + self._serial_number = serial_number + + @property + def series(self): + """ + Gets the series of this NodeHardwareNode. + Series of this node (X, I, NL, etc.). + + :return: The series of this NodeHardwareNode. + :rtype: str + """ + return self._series + + @series.setter + def series(self, series): + """ + Sets the series of this NodeHardwareNode. + Series of this node (X, I, NL, etc.). + + :param series: The series of this NodeHardwareNode. + :type: str + """ + + self._series = series + + @property + def storage_class(self): + """ + Gets the storage_class of this NodeHardwareNode. + Storage class of this node (storage or diskless). + + :return: The storage_class of this NodeHardwareNode. + :rtype: str + """ + return self._storage_class + + @storage_class.setter + def storage_class(self, storage_class): + """ + Sets the storage_class of this NodeHardwareNode. + Storage class of this node (storage or diskless). + + :param storage_class: The storage_class of this NodeHardwareNode. + :type: str + """ + + self._storage_class = storage_class + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_partitions.py b/isi_sdk/models/node_partitions.py new file mode 100644 index 000000000..d2cedec5c --- /dev/null +++ b/isi_sdk/models/node_partitions.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodePartitions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodePartitions - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodePartitionsNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodePartitions. + + + :return: The nodes of this NodePartitions. + :rtype: list[NodePartitionsNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodePartitions. + + + :param nodes: The nodes of this NodePartitions. + :type: list[NodePartitionsNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodePartitions. + Total number of items available. + + :return: The total of this NodePartitions. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodePartitions. + Total number of items available. + + :param total: The total of this NodePartitions. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_partitions_node.py b/isi_sdk/models/node_partitions_node.py new file mode 100644 index 000000000..3b7647491 --- /dev/null +++ b/isi_sdk/models/node_partitions_node.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodePartitionsNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodePartitionsNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'count': 'int', + 'id': 'int', + 'lnn': 'int', + 'partitions': 'list[NodePartitionsNodePartition]' + } + + self.attribute_map = { + 'count': 'count', + 'id': 'id', + 'lnn': 'lnn', + 'partitions': 'partitions' + } + + self._count = None + self._id = None + self._lnn = None + self._partitions = None + + @property + def count(self): + """ + Gets the count of this NodePartitionsNode. + Count of how many partitions are included. + + :return: The count of this NodePartitionsNode. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this NodePartitionsNode. + Count of how many partitions are included. + + :param count: The count of this NodePartitionsNode. + :type: int + """ + + self._count = count + + @property + def id(self): + """ + Gets the id of this NodePartitionsNode. + Node ID (Device Number) of this node. + + :return: The id of this NodePartitionsNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodePartitionsNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodePartitionsNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this NodePartitionsNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodePartitionsNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodePartitionsNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodePartitionsNode. + :type: int + """ + + self._lnn = lnn + + @property + def partitions(self): + """ + Gets the partitions of this NodePartitionsNode. + Partition information. + + :return: The partitions of this NodePartitionsNode. + :rtype: list[NodePartitionsNodePartition] + """ + return self._partitions + + @partitions.setter + def partitions(self, partitions): + """ + Sets the partitions of this NodePartitionsNode. + Partition information. + + :param partitions: The partitions of this NodePartitionsNode. + :type: list[NodePartitionsNodePartition] + """ + + self._partitions = partitions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_partitions_node_partition.py b/isi_sdk/models/node_partitions_node_partition.py new file mode 100644 index 000000000..24c36961d --- /dev/null +++ b/isi_sdk/models/node_partitions_node_partition.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodePartitionsNodePartition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodePartitionsNodePartition - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'block_size': 'int', + 'capacity': 'int', + 'component_devices': 'str', + 'mount_point': 'str', + 'percent_used': 'str', + 'statfs': 'NodePartitionsNodePartitionStatfs', + 'used': 'int' + } + + self.attribute_map = { + 'block_size': 'block_size', + 'capacity': 'capacity', + 'component_devices': 'component_devices', + 'mount_point': 'mount_point', + 'percent_used': 'percent_used', + 'statfs': 'statfs', + 'used': 'used' + } + + self._block_size = None + self._capacity = None + self._component_devices = None + self._mount_point = None + self._percent_used = None + self._statfs = None + self._used = None + + @property + def block_size(self): + """ + Gets the block_size of this NodePartitionsNodePartition. + The block size used for the reported partition information. + + :return: The block_size of this NodePartitionsNodePartition. + :rtype: int + """ + return self._block_size + + @block_size.setter + def block_size(self, block_size): + """ + Sets the block_size of this NodePartitionsNodePartition. + The block size used for the reported partition information. + + :param block_size: The block_size of this NodePartitionsNodePartition. + :type: int + """ + + self._block_size = block_size + + @property + def capacity(self): + """ + Gets the capacity of this NodePartitionsNodePartition. + Total blocks on this file system partition. + + :return: The capacity of this NodePartitionsNodePartition. + :rtype: int + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this NodePartitionsNodePartition. + Total blocks on this file system partition. + + :param capacity: The capacity of this NodePartitionsNodePartition. + :type: int + """ + + self._capacity = capacity + + @property + def component_devices(self): + """ + Gets the component_devices of this NodePartitionsNodePartition. + Comma separated list of devices used for this file system partition. + + :return: The component_devices of this NodePartitionsNodePartition. + :rtype: str + """ + return self._component_devices + + @component_devices.setter + def component_devices(self, component_devices): + """ + Sets the component_devices of this NodePartitionsNodePartition. + Comma separated list of devices used for this file system partition. + + :param component_devices: The component_devices of this NodePartitionsNodePartition. + :type: str + """ + + self._component_devices = component_devices + + @property + def mount_point(self): + """ + Gets the mount_point of this NodePartitionsNodePartition. + Directory on which this partition is mounted. + + :return: The mount_point of this NodePartitionsNodePartition. + :rtype: str + """ + return self._mount_point + + @mount_point.setter + def mount_point(self, mount_point): + """ + Sets the mount_point of this NodePartitionsNodePartition. + Directory on which this partition is mounted. + + :param mount_point: The mount_point of this NodePartitionsNodePartition. + :type: str + """ + + self._mount_point = mount_point + + @property + def percent_used(self): + """ + Gets the percent_used of this NodePartitionsNodePartition. + Used blocks on this file system partition, expressed as a percentage. + + :return: The percent_used of this NodePartitionsNodePartition. + :rtype: str + """ + return self._percent_used + + @percent_used.setter + def percent_used(self, percent_used): + """ + Sets the percent_used of this NodePartitionsNodePartition. + Used blocks on this file system partition, expressed as a percentage. + + :param percent_used: The percent_used of this NodePartitionsNodePartition. + :type: str + """ + + self._percent_used = percent_used + + @property + def statfs(self): + """ + Gets the statfs of this NodePartitionsNodePartition. + System partition details as provided by statfs(2). + + :return: The statfs of this NodePartitionsNodePartition. + :rtype: NodePartitionsNodePartitionStatfs + """ + return self._statfs + + @statfs.setter + def statfs(self, statfs): + """ + Sets the statfs of this NodePartitionsNodePartition. + System partition details as provided by statfs(2). + + :param statfs: The statfs of this NodePartitionsNodePartition. + :type: NodePartitionsNodePartitionStatfs + """ + + self._statfs = statfs + + @property + def used(self): + """ + Gets the used of this NodePartitionsNodePartition. + Used blocks on this file system partition. + + :return: The used of this NodePartitionsNodePartition. + :rtype: int + """ + return self._used + + @used.setter + def used(self, used): + """ + Sets the used of this NodePartitionsNodePartition. + Used blocks on this file system partition. + + :param used: The used of this NodePartitionsNodePartition. + :type: int + """ + + self._used = used + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_partitions_node_partition_statfs.py b/isi_sdk/models/node_partitions_node_partition_statfs.py new file mode 100644 index 000000000..cc1b46fc0 --- /dev/null +++ b/isi_sdk/models/node_partitions_node_partition_statfs.py @@ -0,0 +1,486 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodePartitionsNodePartitionStatfs(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodePartitionsNodePartitionStatfs - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'f_bavail': 'int', + 'f_bfree': 'int', + 'f_blocks': 'int', + 'f_bsize': 'int', + 'f_ffree': 'int', + 'f_files': 'int', + 'f_flags': 'int', + 'f_fstypename': 'str', + 'f_iosize': 'int', + 'f_mntfromname': 'str', + 'f_mntonname': 'str', + 'f_namemax': 'int', + 'f_owner': 'int', + 'f_type': 'int', + 'f_version': 'int' + } + + self.attribute_map = { + 'f_bavail': 'f_bavail', + 'f_bfree': 'f_bfree', + 'f_blocks': 'f_blocks', + 'f_bsize': 'f_bsize', + 'f_ffree': 'f_ffree', + 'f_files': 'f_files', + 'f_flags': 'f_flags', + 'f_fstypename': 'f_fstypename', + 'f_iosize': 'f_iosize', + 'f_mntfromname': 'f_mntfromname', + 'f_mntonname': 'f_mntonname', + 'f_namemax': 'f_namemax', + 'f_owner': 'f_owner', + 'f_type': 'f_type', + 'f_version': 'f_version' + } + + self._f_bavail = None + self._f_bfree = None + self._f_blocks = None + self._f_bsize = None + self._f_ffree = None + self._f_files = None + self._f_flags = None + self._f_fstypename = None + self._f_iosize = None + self._f_mntfromname = None + self._f_mntonname = None + self._f_namemax = None + self._f_owner = None + self._f_type = None + self._f_version = None + + @property + def f_bavail(self): + """ + Gets the f_bavail of this NodePartitionsNodePartitionStatfs. + Free blocks available to non-superuser on this partition. + + :return: The f_bavail of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_bavail + + @f_bavail.setter + def f_bavail(self, f_bavail): + """ + Sets the f_bavail of this NodePartitionsNodePartitionStatfs. + Free blocks available to non-superuser on this partition. + + :param f_bavail: The f_bavail of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_bavail = f_bavail + + @property + def f_bfree(self): + """ + Gets the f_bfree of this NodePartitionsNodePartitionStatfs. + Free blocks on this partition. + + :return: The f_bfree of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_bfree + + @f_bfree.setter + def f_bfree(self, f_bfree): + """ + Sets the f_bfree of this NodePartitionsNodePartitionStatfs. + Free blocks on this partition. + + :param f_bfree: The f_bfree of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_bfree = f_bfree + + @property + def f_blocks(self): + """ + Gets the f_blocks of this NodePartitionsNodePartitionStatfs. + Total data blocks on this partition. + + :return: The f_blocks of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_blocks + + @f_blocks.setter + def f_blocks(self, f_blocks): + """ + Sets the f_blocks of this NodePartitionsNodePartitionStatfs. + Total data blocks on this partition. + + :param f_blocks: The f_blocks of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_blocks = f_blocks + + @property + def f_bsize(self): + """ + Gets the f_bsize of this NodePartitionsNodePartitionStatfs. + Filesystem fragment size; block size in OneFS. + + :return: The f_bsize of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_bsize + + @f_bsize.setter + def f_bsize(self, f_bsize): + """ + Sets the f_bsize of this NodePartitionsNodePartitionStatfs. + Filesystem fragment size; block size in OneFS. + + :param f_bsize: The f_bsize of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_bsize = f_bsize + + @property + def f_ffree(self): + """ + Gets the f_ffree of this NodePartitionsNodePartitionStatfs. + Free file nodes avail to non-superuser. + + :return: The f_ffree of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_ffree + + @f_ffree.setter + def f_ffree(self, f_ffree): + """ + Sets the f_ffree of this NodePartitionsNodePartitionStatfs. + Free file nodes avail to non-superuser. + + :param f_ffree: The f_ffree of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_ffree = f_ffree + + @property + def f_files(self): + """ + Gets the f_files of this NodePartitionsNodePartitionStatfs. + Total file nodes in filesystem. + + :return: The f_files of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_files + + @f_files.setter + def f_files(self, f_files): + """ + Sets the f_files of this NodePartitionsNodePartitionStatfs. + Total file nodes in filesystem. + + :param f_files: The f_files of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_files = f_files + + @property + def f_flags(self): + """ + Gets the f_flags of this NodePartitionsNodePartitionStatfs. + Mount exported flags. + + :return: The f_flags of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_flags + + @f_flags.setter + def f_flags(self, f_flags): + """ + Sets the f_flags of this NodePartitionsNodePartitionStatfs. + Mount exported flags. + + :param f_flags: The f_flags of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_flags = f_flags + + @property + def f_fstypename(self): + """ + Gets the f_fstypename of this NodePartitionsNodePartitionStatfs. + File system type name. + + :return: The f_fstypename of this NodePartitionsNodePartitionStatfs. + :rtype: str + """ + return self._f_fstypename + + @f_fstypename.setter + def f_fstypename(self, f_fstypename): + """ + Sets the f_fstypename of this NodePartitionsNodePartitionStatfs. + File system type name. + + :param f_fstypename: The f_fstypename of this NodePartitionsNodePartitionStatfs. + :type: str + """ + + self._f_fstypename = f_fstypename + + @property + def f_iosize(self): + """ + Gets the f_iosize of this NodePartitionsNodePartitionStatfs. + Optimal transfer block size. + + :return: The f_iosize of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_iosize + + @f_iosize.setter + def f_iosize(self, f_iosize): + """ + Sets the f_iosize of this NodePartitionsNodePartitionStatfs. + Optimal transfer block size. + + :param f_iosize: The f_iosize of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_iosize = f_iosize + + @property + def f_mntfromname(self): + """ + Gets the f_mntfromname of this NodePartitionsNodePartitionStatfs. + Names of devices this partition is mounted from. + + :return: The f_mntfromname of this NodePartitionsNodePartitionStatfs. + :rtype: str + """ + return self._f_mntfromname + + @f_mntfromname.setter + def f_mntfromname(self, f_mntfromname): + """ + Sets the f_mntfromname of this NodePartitionsNodePartitionStatfs. + Names of devices this partition is mounted from. + + :param f_mntfromname: The f_mntfromname of this NodePartitionsNodePartitionStatfs. + :type: str + """ + + self._f_mntfromname = f_mntfromname + + @property + def f_mntonname(self): + """ + Gets the f_mntonname of this NodePartitionsNodePartitionStatfs. + Directory this partition is mounted to. + + :return: The f_mntonname of this NodePartitionsNodePartitionStatfs. + :rtype: str + """ + return self._f_mntonname + + @f_mntonname.setter + def f_mntonname(self, f_mntonname): + """ + Sets the f_mntonname of this NodePartitionsNodePartitionStatfs. + Directory this partition is mounted to. + + :param f_mntonname: The f_mntonname of this NodePartitionsNodePartitionStatfs. + :type: str + """ + + self._f_mntonname = f_mntonname + + @property + def f_namemax(self): + """ + Gets the f_namemax of this NodePartitionsNodePartitionStatfs. + Maximum filename length. + + :return: The f_namemax of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_namemax + + @f_namemax.setter + def f_namemax(self, f_namemax): + """ + Sets the f_namemax of this NodePartitionsNodePartitionStatfs. + Maximum filename length. + + :param f_namemax: The f_namemax of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_namemax = f_namemax + + @property + def f_owner(self): + """ + Gets the f_owner of this NodePartitionsNodePartitionStatfs. + UID of user that mounted the filesystem. + + :return: The f_owner of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_owner + + @f_owner.setter + def f_owner(self, f_owner): + """ + Sets the f_owner of this NodePartitionsNodePartitionStatfs. + UID of user that mounted the filesystem. + + :param f_owner: The f_owner of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_owner = f_owner + + @property + def f_type(self): + """ + Gets the f_type of this NodePartitionsNodePartitionStatfs. + Type of filesystem. + + :return: The f_type of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_type + + @f_type.setter + def f_type(self, f_type): + """ + Sets the f_type of this NodePartitionsNodePartitionStatfs. + Type of filesystem. + + :param f_type: The f_type of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_type = f_type + + @property + def f_version(self): + """ + Gets the f_version of this NodePartitionsNodePartitionStatfs. + statfs() structure version number. + + :return: The f_version of this NodePartitionsNodePartitionStatfs. + :rtype: int + """ + return self._f_version + + @f_version.setter + def f_version(self, f_version): + """ + Sets the f_version of this NodePartitionsNodePartitionStatfs. + statfs() structure version number. + + :param f_version: The f_version of this NodePartitionsNodePartitionStatfs. + :type: int + """ + + self._f_version = f_version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_sensors.py b/isi_sdk/models/node_sensors.py new file mode 100644 index 000000000..ad35470ac --- /dev/null +++ b/isi_sdk/models/node_sensors.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeSensors(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeSensors - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeSensorsNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeSensors. + + + :return: The nodes of this NodeSensors. + :rtype: list[NodeSensorsNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeSensors. + + + :param nodes: The nodes of this NodeSensors. + :type: list[NodeSensorsNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeSensors. + Total number of items available. + + :return: The total of this NodeSensors. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeSensors. + Total number of items available. + + :param total: The total of this NodeSensors. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_sensors_node.py b/isi_sdk/models/node_sensors_node.py new file mode 100644 index 000000000..5660f0a81 --- /dev/null +++ b/isi_sdk/models/node_sensors_node.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeSensorsNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeSensorsNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'id': 'int', + 'lnn': 'int', + 'sensors': 'list[NodeSensorsNodeSensor]' + } + + self.attribute_map = { + 'id': 'id', + 'lnn': 'lnn', + 'sensors': 'sensors' + } + + self._id = None + self._lnn = None + self._sensors = None + + @property + def id(self): + """ + Gets the id of this NodeSensorsNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeSensorsNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeSensorsNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeSensorsNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this NodeSensorsNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeSensorsNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeSensorsNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeSensorsNode. + :type: int + """ + + self._lnn = lnn + + @property + def sensors(self): + """ + Gets the sensors of this NodeSensorsNode. + This node's sensor information. + + :return: The sensors of this NodeSensorsNode. + :rtype: list[NodeSensorsNodeSensor] + """ + return self._sensors + + @sensors.setter + def sensors(self, sensors): + """ + Sets the sensors of this NodeSensorsNode. + This node's sensor information. + + :param sensors: The sensors of this NodeSensorsNode. + :type: list[NodeSensorsNodeSensor] + """ + + self._sensors = sensors + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_sensors_node_sensor.py b/isi_sdk/models/node_sensors_node_sensor.py new file mode 100644 index 000000000..26817ae15 --- /dev/null +++ b/isi_sdk/models/node_sensors_node_sensor.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeSensorsNodeSensor(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeSensorsNodeSensor - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'count': 'int', + 'name': 'str', + 'values': 'list[NodeSensorsNodeSensorValue]' + } + + self.attribute_map = { + 'count': 'count', + 'name': 'name', + 'values': 'values' + } + + self._count = None + self._name = None + self._values = None + + @property + def count(self): + """ + Gets the count of this NodeSensorsNodeSensor. + The count of values in this sensor group. + + :return: The count of this NodeSensorsNodeSensor. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this NodeSensorsNodeSensor. + The count of values in this sensor group. + + :param count: The count of this NodeSensorsNodeSensor. + :type: int + """ + + self._count = count + + @property + def name(self): + """ + Gets the name of this NodeSensorsNodeSensor. + The name of this sensor group. + + :return: The name of this NodeSensorsNodeSensor. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NodeSensorsNodeSensor. + The name of this sensor group. + + :param name: The name of this NodeSensorsNodeSensor. + :type: str + """ + + self._name = name + + @property + def values(self): + """ + Gets the values of this NodeSensorsNodeSensor. + The list of specific sensor value info in this sensor group. + + :return: The values of this NodeSensorsNodeSensor. + :rtype: list[NodeSensorsNodeSensorValue] + """ + return self._values + + @values.setter + def values(self, values): + """ + Sets the values of this NodeSensorsNodeSensor. + The list of specific sensor value info in this sensor group. + + :param values: The values of this NodeSensorsNodeSensor. + :type: list[NodeSensorsNodeSensorValue] + """ + + self._values = values + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_sensors_node_sensor_value.py b/isi_sdk/models/node_sensors_node_sensor_value.py new file mode 100644 index 000000000..5e44d0248 --- /dev/null +++ b/isi_sdk/models/node_sensors_node_sensor_value.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeSensorsNodeSensorValue(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeSensorsNodeSensorValue - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'desc': 'str', + 'name': 'str', + 'units': 'str', + 'value': 'str' + } + + self.attribute_map = { + 'desc': 'desc', + 'name': 'name', + 'units': 'units', + 'value': 'value' + } + + self._desc = None + self._name = None + self._units = None + self._value = None + + @property + def desc(self): + """ + Gets the desc of this NodeSensorsNodeSensorValue. + The descriptive name of this sensor. + + :return: The desc of this NodeSensorsNodeSensorValue. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """ + Sets the desc of this NodeSensorsNodeSensorValue. + The descriptive name of this sensor. + + :param desc: The desc of this NodeSensorsNodeSensorValue. + :type: str + """ + + self._desc = desc + + @property + def name(self): + """ + Gets the name of this NodeSensorsNodeSensorValue. + The identifier name of this sensor. + + :return: The name of this NodeSensorsNodeSensorValue. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NodeSensorsNodeSensorValue. + The identifier name of this sensor. + + :param name: The name of this NodeSensorsNodeSensorValue. + :type: str + """ + + self._name = name + + @property + def units(self): + """ + Gets the units of this NodeSensorsNodeSensorValue. + The units of this sensor. + + :return: The units of this NodeSensorsNodeSensorValue. + :rtype: str + """ + return self._units + + @units.setter + def units(self, units): + """ + Sets the units of this NodeSensorsNodeSensorValue. + The units of this sensor. + + :param units: The units of this NodeSensorsNodeSensorValue. + :type: str + """ + + self._units = units + + @property + def value(self): + """ + Gets the value of this NodeSensorsNodeSensorValue. + The value of this sensor. + + :return: The value of this NodeSensorsNodeSensorValue. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this NodeSensorsNodeSensorValue. + The value of this sensor. + + :param value: The value of this NodeSensorsNodeSensorValue. + :type: str + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state.py b/isi_sdk/models/node_state.py new file mode 100644 index 000000000..aa2272773 --- /dev/null +++ b/isi_sdk/models/node_state.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeState(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeState - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeStateNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeState. + + + :return: The nodes of this NodeState. + :rtype: list[NodeStateNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeState. + + + :param nodes: The nodes of this NodeState. + :type: list[NodeStateNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeState. + Total number of items available. + + :return: The total of this NodeState. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeState. + Total number of items available. + + :param total: The total of this NodeState. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_node.py b/isi_sdk/models/node_state_node.py new file mode 100644 index 000000000..1d8f31b17 --- /dev/null +++ b/isi_sdk/models/node_state_node.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'id': 'int', + 'lnn': 'int', + 'readonly': 'NodeStateReadonlyExtended', + 'servicelight': 'NodeStateServicelightExtended', + 'smartfail': 'NodeStateSmartfailExtended' + } + + self.attribute_map = { + 'id': 'id', + 'lnn': 'lnn', + 'readonly': 'readonly', + 'servicelight': 'servicelight', + 'smartfail': 'smartfail' + } + + self._id = None + self._lnn = None + self._readonly = None + self._servicelight = None + self._smartfail = None + + @property + def id(self): + """ + Gets the id of this NodeStateNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeStateNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeStateNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeStateNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this NodeStateNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeStateNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeStateNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeStateNode. + :type: int + """ + + self._lnn = lnn + + @property + def readonly(self): + """ + Gets the readonly of this NodeStateNode. + Node readonly state. + + :return: The readonly of this NodeStateNode. + :rtype: NodeStateReadonlyExtended + """ + return self._readonly + + @readonly.setter + def readonly(self, readonly): + """ + Sets the readonly of this NodeStateNode. + Node readonly state. + + :param readonly: The readonly of this NodeStateNode. + :type: NodeStateReadonlyExtended + """ + + self._readonly = readonly + + @property + def servicelight(self): + """ + Gets the servicelight of this NodeStateNode. + Node service light state. + + :return: The servicelight of this NodeStateNode. + :rtype: NodeStateServicelightExtended + """ + return self._servicelight + + @servicelight.setter + def servicelight(self, servicelight): + """ + Sets the servicelight of this NodeStateNode. + Node service light state. + + :param servicelight: The servicelight of this NodeStateNode. + :type: NodeStateServicelightExtended + """ + + self._servicelight = servicelight + + @property + def smartfail(self): + """ + Gets the smartfail of this NodeStateNode. + Node smartfail state. + + :return: The smartfail of this NodeStateNode. + :rtype: NodeStateSmartfailExtended + """ + return self._smartfail + + @smartfail.setter + def smartfail(self, smartfail): + """ + Sets the smartfail of this NodeStateNode. + Node smartfail state. + + :param smartfail: The smartfail of this NodeStateNode. + :type: NodeStateSmartfailExtended + """ + + self._smartfail = smartfail + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_readonly.py b/isi_sdk/models/node_state_readonly.py new file mode 100644 index 000000000..39fbeee8f --- /dev/null +++ b/isi_sdk/models/node_state_readonly.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateReadonly(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateReadonly - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeStateReadonlyNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeStateReadonly. + + + :return: The nodes of this NodeStateReadonly. + :rtype: list[NodeStateReadonlyNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeStateReadonly. + + + :param nodes: The nodes of this NodeStateReadonly. + :type: list[NodeStateReadonlyNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeStateReadonly. + Total number of items available. + + :return: The total of this NodeStateReadonly. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeStateReadonly. + Total number of items available. + + :param total: The total of this NodeStateReadonly. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_readonly_extended.py b/isi_sdk/models/node_state_readonly_extended.py new file mode 100644 index 000000000..429830b78 --- /dev/null +++ b/isi_sdk/models/node_state_readonly_extended.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateReadonlyExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateReadonlyExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allowed': 'bool', + 'enabled': 'bool', + 'mode': 'bool', + 'status': 'str', + 'valid': 'bool', + 'value': 'int' + } + + self.attribute_map = { + 'allowed': 'allowed', + 'enabled': 'enabled', + 'mode': 'mode', + 'status': 'status', + 'valid': 'valid', + 'value': 'value' + } + + self._allowed = None + self._enabled = None + self._mode = None + self._status = None + self._valid = None + self._value = None + + @property + def allowed(self): + """ + Gets the allowed of this NodeStateReadonlyExtended. + The current read-only mode allowed status for the node. + + :return: The allowed of this NodeStateReadonlyExtended. + :rtype: bool + """ + return self._allowed + + @allowed.setter + def allowed(self, allowed): + """ + Sets the allowed of this NodeStateReadonlyExtended. + The current read-only mode allowed status for the node. + + :param allowed: The allowed of this NodeStateReadonlyExtended. + :type: bool + """ + + self._allowed = allowed + + @property + def enabled(self): + """ + Gets the enabled of this NodeStateReadonlyExtended. + The current read-only user mode status for the node. NOTE: If read-only mode is currently disallowed for this node, it will remain read/write until read-only mode is allowed again. This value only sets or clears any user-specified requests for read-only mode. If the node has been placed into read-only mode by the system, it will remain in read-only mode until the system conditions which triggered read-only mode have cleared. + + :return: The enabled of this NodeStateReadonlyExtended. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this NodeStateReadonlyExtended. + The current read-only user mode status for the node. NOTE: If read-only mode is currently disallowed for this node, it will remain read/write until read-only mode is allowed again. This value only sets or clears any user-specified requests for read-only mode. If the node has been placed into read-only mode by the system, it will remain in read-only mode until the system conditions which triggered read-only mode have cleared. + + :param enabled: The enabled of this NodeStateReadonlyExtended. + :type: bool + """ + + self._enabled = enabled + + @property + def mode(self): + """ + Gets the mode of this NodeStateReadonlyExtended. + The current read-only mode status for the node. + + :return: The mode of this NodeStateReadonlyExtended. + :rtype: bool + """ + return self._mode + + @mode.setter + def mode(self, mode): + """ + Sets the mode of this NodeStateReadonlyExtended. + The current read-only mode status for the node. + + :param mode: The mode of this NodeStateReadonlyExtended. + :type: bool + """ + + self._mode = mode + + @property + def status(self): + """ + Gets the status of this NodeStateReadonlyExtended. + The current read-only mode status description for the node. + + :return: The status of this NodeStateReadonlyExtended. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this NodeStateReadonlyExtended. + The current read-only mode status description for the node. + + :param status: The status of this NodeStateReadonlyExtended. + :type: str + """ + + self._status = status + + @property + def valid(self): + """ + Gets the valid of this NodeStateReadonlyExtended. + The read-only state values are valid (False = Error). + + :return: The valid of this NodeStateReadonlyExtended. + :rtype: bool + """ + return self._valid + + @valid.setter + def valid(self, valid): + """ + Sets the valid of this NodeStateReadonlyExtended. + The read-only state values are valid (False = Error). + + :param valid: The valid of this NodeStateReadonlyExtended. + :type: bool + """ + + self._valid = valid + + @property + def value(self): + """ + Gets the value of this NodeStateReadonlyExtended. + The current read-only value (enumerated bitfield) for the node. + + :return: The value of this NodeStateReadonlyExtended. + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this NodeStateReadonlyExtended. + The current read-only value (enumerated bitfield) for the node. + + :param value: The value of this NodeStateReadonlyExtended. + :type: int + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_readonly_node.py b/isi_sdk/models/node_state_readonly_node.py new file mode 100644 index 000000000..0c131fe94 --- /dev/null +++ b/isi_sdk/models/node_state_readonly_node.py @@ -0,0 +1,304 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateReadonlyNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateReadonlyNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allowed': 'bool', + 'enabled': 'bool', + 'id': 'int', + 'lnn': 'int', + 'mode': 'bool', + 'status': 'str', + 'valid': 'bool', + 'value': 'int' + } + + self.attribute_map = { + 'allowed': 'allowed', + 'enabled': 'enabled', + 'id': 'id', + 'lnn': 'lnn', + 'mode': 'mode', + 'status': 'status', + 'valid': 'valid', + 'value': 'value' + } + + self._allowed = None + self._enabled = None + self._id = None + self._lnn = None + self._mode = None + self._status = None + self._valid = None + self._value = None + + @property + def allowed(self): + """ + Gets the allowed of this NodeStateReadonlyNode. + The current read-only mode allowed status for the node. + + :return: The allowed of this NodeStateReadonlyNode. + :rtype: bool + """ + return self._allowed + + @allowed.setter + def allowed(self, allowed): + """ + Sets the allowed of this NodeStateReadonlyNode. + The current read-only mode allowed status for the node. + + :param allowed: The allowed of this NodeStateReadonlyNode. + :type: bool + """ + + self._allowed = allowed + + @property + def enabled(self): + """ + Gets the enabled of this NodeStateReadonlyNode. + The current read-only user mode status for the node. NOTE: If read-only mode is currently disallowed for this node, it will remain read/write until read-only mode is allowed again. This value only sets or clears any user-specified requests for read-only mode. If the node has been placed into read-only mode by the system, it will remain in read-only mode until the system conditions which triggered read-only mode have cleared. + + :return: The enabled of this NodeStateReadonlyNode. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this NodeStateReadonlyNode. + The current read-only user mode status for the node. NOTE: If read-only mode is currently disallowed for this node, it will remain read/write until read-only mode is allowed again. This value only sets or clears any user-specified requests for read-only mode. If the node has been placed into read-only mode by the system, it will remain in read-only mode until the system conditions which triggered read-only mode have cleared. + + :param enabled: The enabled of this NodeStateReadonlyNode. + :type: bool + """ + + self._enabled = enabled + + @property + def id(self): + """ + Gets the id of this NodeStateReadonlyNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeStateReadonlyNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeStateReadonlyNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeStateReadonlyNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this NodeStateReadonlyNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeStateReadonlyNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeStateReadonlyNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeStateReadonlyNode. + :type: int + """ + + self._lnn = lnn + + @property + def mode(self): + """ + Gets the mode of this NodeStateReadonlyNode. + The current read-only mode status for the node. + + :return: The mode of this NodeStateReadonlyNode. + :rtype: bool + """ + return self._mode + + @mode.setter + def mode(self, mode): + """ + Sets the mode of this NodeStateReadonlyNode. + The current read-only mode status for the node. + + :param mode: The mode of this NodeStateReadonlyNode. + :type: bool + """ + + self._mode = mode + + @property + def status(self): + """ + Gets the status of this NodeStateReadonlyNode. + The current read-only mode status description for the node. + + :return: The status of this NodeStateReadonlyNode. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this NodeStateReadonlyNode. + The current read-only mode status description for the node. + + :param status: The status of this NodeStateReadonlyNode. + :type: str + """ + + self._status = status + + @property + def valid(self): + """ + Gets the valid of this NodeStateReadonlyNode. + The read-only state values are valid (False = Error). + + :return: The valid of this NodeStateReadonlyNode. + :rtype: bool + """ + return self._valid + + @valid.setter + def valid(self, valid): + """ + Sets the valid of this NodeStateReadonlyNode. + The read-only state values are valid (False = Error). + + :param valid: The valid of this NodeStateReadonlyNode. + :type: bool + """ + + self._valid = valid + + @property + def value(self): + """ + Gets the value of this NodeStateReadonlyNode. + The current read-only value (enumerated bitfield) for the node. + + :return: The value of this NodeStateReadonlyNode. + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this NodeStateReadonlyNode. + The current read-only value (enumerated bitfield) for the node. + + :param value: The value of this NodeStateReadonlyNode. + :type: int + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_servicelight.py b/isi_sdk/models/node_state_servicelight.py new file mode 100644 index 000000000..c56ffd32e --- /dev/null +++ b/isi_sdk/models/node_state_servicelight.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateServicelight(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateServicelight - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeStateServicelightNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeStateServicelight. + + + :return: The nodes of this NodeStateServicelight. + :rtype: list[NodeStateServicelightNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeStateServicelight. + + + :param nodes: The nodes of this NodeStateServicelight. + :type: list[NodeStateServicelightNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeStateServicelight. + Total number of items available. + + :return: The total of this NodeStateServicelight. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeStateServicelight. + Total number of items available. + + :param total: The total of this NodeStateServicelight. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_servicelight_extended.py b/isi_sdk/models/node_state_servicelight_extended.py new file mode 100644 index 000000000..3870ce9ca --- /dev/null +++ b/isi_sdk/models/node_state_servicelight_extended.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateServicelightExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateServicelightExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'enabled': 'bool', + 'present': 'bool', + 'supported': 'bool', + 'valid': 'bool' + } + + self.attribute_map = { + 'enabled': 'enabled', + 'present': 'present', + 'supported': 'supported', + 'valid': 'valid' + } + + self._enabled = None + self._present = None + self._supported = None + self._valid = None + + @property + def enabled(self): + """ + Gets the enabled of this NodeStateServicelightExtended. + The node service light state (True = on). + + :return: The enabled of this NodeStateServicelightExtended. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this NodeStateServicelightExtended. + The node service light state (True = on). + + :param enabled: The enabled of this NodeStateServicelightExtended. + :type: bool + """ + + self._enabled = enabled + + @property + def present(self): + """ + Gets the present of this NodeStateServicelightExtended. + This node has a service light. + + :return: The present of this NodeStateServicelightExtended. + :rtype: bool + """ + return self._present + + @present.setter + def present(self, present): + """ + Sets the present of this NodeStateServicelightExtended. + This node has a service light. + + :param present: The present of this NodeStateServicelightExtended. + :type: bool + """ + + self._present = present + + @property + def supported(self): + """ + Gets the supported of this NodeStateServicelightExtended. + This node supports a service light. + + :return: The supported of this NodeStateServicelightExtended. + :rtype: bool + """ + return self._supported + + @supported.setter + def supported(self, supported): + """ + Sets the supported of this NodeStateServicelightExtended. + This node supports a service light. + + :param supported: The supported of this NodeStateServicelightExtended. + :type: bool + """ + + self._supported = supported + + @property + def valid(self): + """ + Gets the valid of this NodeStateServicelightExtended. + The node service light state is valid (False = Error). + + :return: The valid of this NodeStateServicelightExtended. + :rtype: bool + """ + return self._valid + + @valid.setter + def valid(self, valid): + """ + Sets the valid of this NodeStateServicelightExtended. + The node service light state is valid (False = Error). + + :param valid: The valid of this NodeStateServicelightExtended. + :type: bool + """ + + self._valid = valid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_servicelight_node.py b/isi_sdk/models/node_state_servicelight_node.py new file mode 100644 index 000000000..b84359e33 --- /dev/null +++ b/isi_sdk/models/node_state_servicelight_node.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateServicelightNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateServicelightNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'enabled': 'bool', + 'id': 'int', + 'lnn': 'int', + 'present': 'bool', + 'supported': 'bool', + 'valid': 'bool' + } + + self.attribute_map = { + 'enabled': 'enabled', + 'id': 'id', + 'lnn': 'lnn', + 'present': 'present', + 'supported': 'supported', + 'valid': 'valid' + } + + self._enabled = None + self._id = None + self._lnn = None + self._present = None + self._supported = None + self._valid = None + + @property + def enabled(self): + """ + Gets the enabled of this NodeStateServicelightNode. + The node service light state (True = on). + + :return: The enabled of this NodeStateServicelightNode. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this NodeStateServicelightNode. + The node service light state (True = on). + + :param enabled: The enabled of this NodeStateServicelightNode. + :type: bool + """ + + self._enabled = enabled + + @property + def id(self): + """ + Gets the id of this NodeStateServicelightNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeStateServicelightNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeStateServicelightNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeStateServicelightNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this NodeStateServicelightNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeStateServicelightNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeStateServicelightNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeStateServicelightNode. + :type: int + """ + + self._lnn = lnn + + @property + def present(self): + """ + Gets the present of this NodeStateServicelightNode. + This node has a service light. + + :return: The present of this NodeStateServicelightNode. + :rtype: bool + """ + return self._present + + @present.setter + def present(self, present): + """ + Sets the present of this NodeStateServicelightNode. + This node has a service light. + + :param present: The present of this NodeStateServicelightNode. + :type: bool + """ + + self._present = present + + @property + def supported(self): + """ + Gets the supported of this NodeStateServicelightNode. + This node supports a service light. + + :return: The supported of this NodeStateServicelightNode. + :rtype: bool + """ + return self._supported + + @supported.setter + def supported(self, supported): + """ + Sets the supported of this NodeStateServicelightNode. + This node supports a service light. + + :param supported: The supported of this NodeStateServicelightNode. + :type: bool + """ + + self._supported = supported + + @property + def valid(self): + """ + Gets the valid of this NodeStateServicelightNode. + The node service light state is valid (False = Error). + + :return: The valid of this NodeStateServicelightNode. + :rtype: bool + """ + return self._valid + + @valid.setter + def valid(self, valid): + """ + Sets the valid of this NodeStateServicelightNode. + The node service light state is valid (False = Error). + + :param valid: The valid of this NodeStateServicelightNode. + :type: bool + """ + + self._valid = valid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_smartfail.py b/isi_sdk/models/node_state_smartfail.py new file mode 100644 index 000000000..52e93aa43 --- /dev/null +++ b/isi_sdk/models/node_state_smartfail.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateSmartfail(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateSmartfail - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeStateSmartfailNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeStateSmartfail. + + + :return: The nodes of this NodeStateSmartfail. + :rtype: list[NodeStateSmartfailNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeStateSmartfail. + + + :param nodes: The nodes of this NodeStateSmartfail. + :type: list[NodeStateSmartfailNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeStateSmartfail. + Total number of items available. + + :return: The total of this NodeStateSmartfail. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeStateSmartfail. + Total number of items available. + + :param total: The total of this NodeStateSmartfail. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_smartfail_extended.py b/isi_sdk/models/node_state_smartfail_extended.py new file mode 100644 index 000000000..87ea8ba09 --- /dev/null +++ b/isi_sdk/models/node_state_smartfail_extended.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateSmartfailExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateSmartfailExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'dead': 'bool', + 'down': 'bool', + 'in_cluster': 'bool', + 'readonly': 'bool', + 'shutdown_readonly': 'bool', + 'smartfailed': 'bool' + } + + self.attribute_map = { + 'dead': 'dead', + 'down': 'down', + 'in_cluster': 'in_cluster', + 'readonly': 'readonly', + 'shutdown_readonly': 'shutdown_readonly', + 'smartfailed': 'smartfailed' + } + + self._dead = None + self._down = None + self._in_cluster = None + self._readonly = None + self._shutdown_readonly = None + self._smartfailed = None + + @property + def dead(self): + """ + Gets the dead of this NodeStateSmartfailExtended. + This node is dead (dead_devs). + + :return: The dead of this NodeStateSmartfailExtended. + :rtype: bool + """ + return self._dead + + @dead.setter + def dead(self, dead): + """ + Sets the dead of this NodeStateSmartfailExtended. + This node is dead (dead_devs). + + :param dead: The dead of this NodeStateSmartfailExtended. + :type: bool + """ + + self._dead = dead + + @property + def down(self): + """ + Gets the down of this NodeStateSmartfailExtended. + This node is down (down_devs). + + :return: The down of this NodeStateSmartfailExtended. + :rtype: bool + """ + return self._down + + @down.setter + def down(self, down): + """ + Sets the down of this NodeStateSmartfailExtended. + This node is down (down_devs). + + :param down: The down of this NodeStateSmartfailExtended. + :type: bool + """ + + self._down = down + + @property + def in_cluster(self): + """ + Gets the in_cluster of this NodeStateSmartfailExtended. + This node is in the cluster (all_devs). + + :return: The in_cluster of this NodeStateSmartfailExtended. + :rtype: bool + """ + return self._in_cluster + + @in_cluster.setter + def in_cluster(self, in_cluster): + """ + Sets the in_cluster of this NodeStateSmartfailExtended. + This node is in the cluster (all_devs). + + :param in_cluster: The in_cluster of this NodeStateSmartfailExtended. + :type: bool + """ + + self._in_cluster = in_cluster + + @property + def readonly(self): + """ + Gets the readonly of this NodeStateSmartfailExtended. + This node is readonly (ro_devs). + + :return: The readonly of this NodeStateSmartfailExtended. + :rtype: bool + """ + return self._readonly + + @readonly.setter + def readonly(self, readonly): + """ + Sets the readonly of this NodeStateSmartfailExtended. + This node is readonly (ro_devs). + + :param readonly: The readonly of this NodeStateSmartfailExtended. + :type: bool + """ + + self._readonly = readonly + + @property + def shutdown_readonly(self): + """ + Gets the shutdown_readonly of this NodeStateSmartfailExtended. + This node is shutdown readonly (down_devs). + + :return: The shutdown_readonly of this NodeStateSmartfailExtended. + :rtype: bool + """ + return self._shutdown_readonly + + @shutdown_readonly.setter + def shutdown_readonly(self, shutdown_readonly): + """ + Sets the shutdown_readonly of this NodeStateSmartfailExtended. + This node is shutdown readonly (down_devs). + + :param shutdown_readonly: The shutdown_readonly of this NodeStateSmartfailExtended. + :type: bool + """ + + self._shutdown_readonly = shutdown_readonly + + @property + def smartfailed(self): + """ + Gets the smartfailed of this NodeStateSmartfailExtended. + This node is smartfailed (soft_devs). + + :return: The smartfailed of this NodeStateSmartfailExtended. + :rtype: bool + """ + return self._smartfailed + + @smartfailed.setter + def smartfailed(self, smartfailed): + """ + Sets the smartfailed of this NodeStateSmartfailExtended. + This node is smartfailed (soft_devs). + + :param smartfailed: The smartfailed of this NodeStateSmartfailExtended. + :type: bool + """ + + self._smartfailed = smartfailed + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_state_smartfail_node.py b/isi_sdk/models/node_state_smartfail_node.py new file mode 100644 index 000000000..1fefd393d --- /dev/null +++ b/isi_sdk/models/node_state_smartfail_node.py @@ -0,0 +1,304 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStateSmartfailNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStateSmartfailNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'dead': 'bool', + 'down': 'bool', + 'id': 'int', + 'in_cluster': 'bool', + 'lnn': 'int', + 'readonly': 'bool', + 'shutdown_readonly': 'bool', + 'smartfailed': 'bool' + } + + self.attribute_map = { + 'dead': 'dead', + 'down': 'down', + 'id': 'id', + 'in_cluster': 'in_cluster', + 'lnn': 'lnn', + 'readonly': 'readonly', + 'shutdown_readonly': 'shutdown_readonly', + 'smartfailed': 'smartfailed' + } + + self._dead = None + self._down = None + self._id = None + self._in_cluster = None + self._lnn = None + self._readonly = None + self._shutdown_readonly = None + self._smartfailed = None + + @property + def dead(self): + """ + Gets the dead of this NodeStateSmartfailNode. + This node is dead (dead_devs). + + :return: The dead of this NodeStateSmartfailNode. + :rtype: bool + """ + return self._dead + + @dead.setter + def dead(self, dead): + """ + Sets the dead of this NodeStateSmartfailNode. + This node is dead (dead_devs). + + :param dead: The dead of this NodeStateSmartfailNode. + :type: bool + """ + + self._dead = dead + + @property + def down(self): + """ + Gets the down of this NodeStateSmartfailNode. + This node is down (down_devs). + + :return: The down of this NodeStateSmartfailNode. + :rtype: bool + """ + return self._down + + @down.setter + def down(self, down): + """ + Sets the down of this NodeStateSmartfailNode. + This node is down (down_devs). + + :param down: The down of this NodeStateSmartfailNode. + :type: bool + """ + + self._down = down + + @property + def id(self): + """ + Gets the id of this NodeStateSmartfailNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeStateSmartfailNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeStateSmartfailNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeStateSmartfailNode. + :type: int + """ + + self._id = id + + @property + def in_cluster(self): + """ + Gets the in_cluster of this NodeStateSmartfailNode. + This node is in the cluster (all_devs). + + :return: The in_cluster of this NodeStateSmartfailNode. + :rtype: bool + """ + return self._in_cluster + + @in_cluster.setter + def in_cluster(self, in_cluster): + """ + Sets the in_cluster of this NodeStateSmartfailNode. + This node is in the cluster (all_devs). + + :param in_cluster: The in_cluster of this NodeStateSmartfailNode. + :type: bool + """ + + self._in_cluster = in_cluster + + @property + def lnn(self): + """ + Gets the lnn of this NodeStateSmartfailNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeStateSmartfailNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeStateSmartfailNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeStateSmartfailNode. + :type: int + """ + + self._lnn = lnn + + @property + def readonly(self): + """ + Gets the readonly of this NodeStateSmartfailNode. + This node is readonly (ro_devs). + + :return: The readonly of this NodeStateSmartfailNode. + :rtype: bool + """ + return self._readonly + + @readonly.setter + def readonly(self, readonly): + """ + Sets the readonly of this NodeStateSmartfailNode. + This node is readonly (ro_devs). + + :param readonly: The readonly of this NodeStateSmartfailNode. + :type: bool + """ + + self._readonly = readonly + + @property + def shutdown_readonly(self): + """ + Gets the shutdown_readonly of this NodeStateSmartfailNode. + This node is shutdown readonly (down_devs). + + :return: The shutdown_readonly of this NodeStateSmartfailNode. + :rtype: bool + """ + return self._shutdown_readonly + + @shutdown_readonly.setter + def shutdown_readonly(self, shutdown_readonly): + """ + Sets the shutdown_readonly of this NodeStateSmartfailNode. + This node is shutdown readonly (down_devs). + + :param shutdown_readonly: The shutdown_readonly of this NodeStateSmartfailNode. + :type: bool + """ + + self._shutdown_readonly = shutdown_readonly + + @property + def smartfailed(self): + """ + Gets the smartfailed of this NodeStateSmartfailNode. + This node is smartfailed (soft_devs). + + :return: The smartfailed of this NodeStateSmartfailNode. + :rtype: bool + """ + return self._smartfailed + + @smartfailed.setter + def smartfailed(self, smartfailed): + """ + Sets the smartfailed of this NodeStateSmartfailNode. + This node is smartfailed (soft_devs). + + :param smartfailed: The smartfailed of this NodeStateSmartfailNode. + :type: bool + """ + + self._smartfailed = smartfailed + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status.py b/isi_sdk/models/node_status.py new file mode 100644 index 000000000..f93068732 --- /dev/null +++ b/isi_sdk/models/node_status.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeStatusNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeStatus. + + + :return: The nodes of this NodeStatus. + :rtype: list[NodeStatusNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeStatus. + + + :param nodes: The nodes of this NodeStatus. + :type: list[NodeStatusNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeStatus. + Total number of items available. + + :return: The total of this NodeStatus. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeStatus. + Total number of items available. + + :param total: The total of this NodeStatus. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_batterystatus.py b/isi_sdk/models/node_status_batterystatus.py new file mode 100644 index 000000000..374174163 --- /dev/null +++ b/isi_sdk/models/node_status_batterystatus.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusBatterystatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusBatterystatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nodes': 'list[NodeStatusBatterystatusNode]', + 'total': 'int' + } + + self.attribute_map = { + 'nodes': 'nodes', + 'total': 'total' + } + + self._nodes = None + self._total = None + + @property + def nodes(self): + """ + Gets the nodes of this NodeStatusBatterystatus. + + + :return: The nodes of this NodeStatusBatterystatus. + :rtype: list[NodeStatusBatterystatusNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this NodeStatusBatterystatus. + + + :param nodes: The nodes of this NodeStatusBatterystatus. + :type: list[NodeStatusBatterystatusNode] + """ + + self._nodes = nodes + + @property + def total(self): + """ + Gets the total of this NodeStatusBatterystatus. + Total number of items available. + + :return: The total of this NodeStatusBatterystatus. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this NodeStatusBatterystatus. + Total number of items available. + + :param total: The total of this NodeStatusBatterystatus. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_batterystatus_node.py b/isi_sdk/models/node_status_batterystatus_node.py new file mode 100644 index 000000000..128a6ec6a --- /dev/null +++ b/isi_sdk/models/node_status_batterystatus_node.py @@ -0,0 +1,408 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusBatterystatusNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusBatterystatusNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'id': 'int', + 'last_test_time1': 'str', + 'last_test_time2': 'str', + 'lnn': 'int', + 'next_test_time1': 'str', + 'next_test_time2': 'str', + 'present': 'bool', + 'result1': 'str', + 'result2': 'str', + 'status1': 'str', + 'status2': 'str', + 'supported': 'bool' + } + + self.attribute_map = { + 'id': 'id', + 'last_test_time1': 'last_test_time1', + 'last_test_time2': 'last_test_time2', + 'lnn': 'lnn', + 'next_test_time1': 'next_test_time1', + 'next_test_time2': 'next_test_time2', + 'present': 'present', + 'result1': 'result1', + 'result2': 'result2', + 'status1': 'status1', + 'status2': 'status2', + 'supported': 'supported' + } + + self._id = None + self._last_test_time1 = None + self._last_test_time2 = None + self._lnn = None + self._next_test_time1 = None + self._next_test_time2 = None + self._present = None + self._result1 = None + self._result2 = None + self._status1 = None + self._status2 = None + self._supported = None + + @property + def id(self): + """ + Gets the id of this NodeStatusBatterystatusNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeStatusBatterystatusNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeStatusBatterystatusNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeStatusBatterystatusNode. + :type: int + """ + + self._id = id + + @property + def last_test_time1(self): + """ + Gets the last_test_time1 of this NodeStatusBatterystatusNode. + The last battery test time for battery 1. + + :return: The last_test_time1 of this NodeStatusBatterystatusNode. + :rtype: str + """ + return self._last_test_time1 + + @last_test_time1.setter + def last_test_time1(self, last_test_time1): + """ + Sets the last_test_time1 of this NodeStatusBatterystatusNode. + The last battery test time for battery 1. + + :param last_test_time1: The last_test_time1 of this NodeStatusBatterystatusNode. + :type: str + """ + + self._last_test_time1 = last_test_time1 + + @property + def last_test_time2(self): + """ + Gets the last_test_time2 of this NodeStatusBatterystatusNode. + The last battery test time for battery 2. + + :return: The last_test_time2 of this NodeStatusBatterystatusNode. + :rtype: str + """ + return self._last_test_time2 + + @last_test_time2.setter + def last_test_time2(self, last_test_time2): + """ + Sets the last_test_time2 of this NodeStatusBatterystatusNode. + The last battery test time for battery 2. + + :param last_test_time2: The last_test_time2 of this NodeStatusBatterystatusNode. + :type: str + """ + + self._last_test_time2 = last_test_time2 + + @property + def lnn(self): + """ + Gets the lnn of this NodeStatusBatterystatusNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeStatusBatterystatusNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeStatusBatterystatusNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeStatusBatterystatusNode. + :type: int + """ + + self._lnn = lnn + + @property + def next_test_time1(self): + """ + Gets the next_test_time1 of this NodeStatusBatterystatusNode. + The next checkup for battery 1. + + :return: The next_test_time1 of this NodeStatusBatterystatusNode. + :rtype: str + """ + return self._next_test_time1 + + @next_test_time1.setter + def next_test_time1(self, next_test_time1): + """ + Sets the next_test_time1 of this NodeStatusBatterystatusNode. + The next checkup for battery 1. + + :param next_test_time1: The next_test_time1 of this NodeStatusBatterystatusNode. + :type: str + """ + + self._next_test_time1 = next_test_time1 + + @property + def next_test_time2(self): + """ + Gets the next_test_time2 of this NodeStatusBatterystatusNode. + The next checkup for battery 2. + + :return: The next_test_time2 of this NodeStatusBatterystatusNode. + :rtype: str + """ + return self._next_test_time2 + + @next_test_time2.setter + def next_test_time2(self, next_test_time2): + """ + Sets the next_test_time2 of this NodeStatusBatterystatusNode. + The next checkup for battery 2. + + :param next_test_time2: The next_test_time2 of this NodeStatusBatterystatusNode. + :type: str + """ + + self._next_test_time2 = next_test_time2 + + @property + def present(self): + """ + Gets the present of this NodeStatusBatterystatusNode. + Node has battery status. + + :return: The present of this NodeStatusBatterystatusNode. + :rtype: bool + """ + return self._present + + @present.setter + def present(self, present): + """ + Sets the present of this NodeStatusBatterystatusNode. + Node has battery status. + + :param present: The present of this NodeStatusBatterystatusNode. + :type: bool + """ + + self._present = present + + @property + def result1(self): + """ + Gets the result1 of this NodeStatusBatterystatusNode. + The result of the last battery test for battery 1. + + :return: The result1 of this NodeStatusBatterystatusNode. + :rtype: str + """ + return self._result1 + + @result1.setter + def result1(self, result1): + """ + Sets the result1 of this NodeStatusBatterystatusNode. + The result of the last battery test for battery 1. + + :param result1: The result1 of this NodeStatusBatterystatusNode. + :type: str + """ + + self._result1 = result1 + + @property + def result2(self): + """ + Gets the result2 of this NodeStatusBatterystatusNode. + The result of the last battery test for battery 2. + + :return: The result2 of this NodeStatusBatterystatusNode. + :rtype: str + """ + return self._result2 + + @result2.setter + def result2(self, result2): + """ + Sets the result2 of this NodeStatusBatterystatusNode. + The result of the last battery test for battery 2. + + :param result2: The result2 of this NodeStatusBatterystatusNode. + :type: str + """ + + self._result2 = result2 + + @property + def status1(self): + """ + Gets the status1 of this NodeStatusBatterystatusNode. + The status of battery 1. + + :return: The status1 of this NodeStatusBatterystatusNode. + :rtype: str + """ + return self._status1 + + @status1.setter + def status1(self, status1): + """ + Sets the status1 of this NodeStatusBatterystatusNode. + The status of battery 1. + + :param status1: The status1 of this NodeStatusBatterystatusNode. + :type: str + """ + + self._status1 = status1 + + @property + def status2(self): + """ + Gets the status2 of this NodeStatusBatterystatusNode. + The status of battery 2. + + :return: The status2 of this NodeStatusBatterystatusNode. + :rtype: str + """ + return self._status2 + + @status2.setter + def status2(self, status2): + """ + Sets the status2 of this NodeStatusBatterystatusNode. + The status of battery 2. + + :param status2: The status2 of this NodeStatusBatterystatusNode. + :type: str + """ + + self._status2 = status2 + + @property + def supported(self): + """ + Gets the supported of this NodeStatusBatterystatusNode. + Node supports battery status. + + :return: The supported of this NodeStatusBatterystatusNode. + :rtype: bool + """ + return self._supported + + @supported.setter + def supported(self, supported): + """ + Sets the supported of this NodeStatusBatterystatusNode. + Node supports battery status. + + :param supported: The supported of this NodeStatusBatterystatusNode. + :type: bool + """ + + self._supported = supported + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_node.py b/isi_sdk/models/node_status_node.py new file mode 100644 index 000000000..7e71e6345 --- /dev/null +++ b/isi_sdk/models/node_status_node.py @@ -0,0 +1,356 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'batterystatus': 'NodeStatusNodeBatterystatus', + 'capacity': 'list[NodeStatusNodeCapacityItem]', + 'cpu': 'NodeStatusNodeCpu', + 'id': 'int', + 'lnn': 'int', + 'nvram': 'NodeStatusNodeNvram', + 'powersupplies': 'NodeStatusNodePowersupplies', + 'release': 'str', + 'uptime': 'int', + 'version': 'str' + } + + self.attribute_map = { + 'batterystatus': 'batterystatus', + 'capacity': 'capacity', + 'cpu': 'cpu', + 'id': 'id', + 'lnn': 'lnn', + 'nvram': 'nvram', + 'powersupplies': 'powersupplies', + 'release': 'release', + 'uptime': 'uptime', + 'version': 'version' + } + + self._batterystatus = None + self._capacity = None + self._cpu = None + self._id = None + self._lnn = None + self._nvram = None + self._powersupplies = None + self._release = None + self._uptime = None + self._version = None + + @property + def batterystatus(self): + """ + Gets the batterystatus of this NodeStatusNode. + Battery status information. + + :return: The batterystatus of this NodeStatusNode. + :rtype: NodeStatusNodeBatterystatus + """ + return self._batterystatus + + @batterystatus.setter + def batterystatus(self, batterystatus): + """ + Sets the batterystatus of this NodeStatusNode. + Battery status information. + + :param batterystatus: The batterystatus of this NodeStatusNode. + :type: NodeStatusNodeBatterystatus + """ + + self._batterystatus = batterystatus + + @property + def capacity(self): + """ + Gets the capacity of this NodeStatusNode. + Storage capacity of this node. + + :return: The capacity of this NodeStatusNode. + :rtype: list[NodeStatusNodeCapacityItem] + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this NodeStatusNode. + Storage capacity of this node. + + :param capacity: The capacity of this NodeStatusNode. + :type: list[NodeStatusNodeCapacityItem] + """ + + self._capacity = capacity + + @property + def cpu(self): + """ + Gets the cpu of this NodeStatusNode. + CPU status information for this node. + + :return: The cpu of this NodeStatusNode. + :rtype: NodeStatusNodeCpu + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + Sets the cpu of this NodeStatusNode. + CPU status information for this node. + + :param cpu: The cpu of this NodeStatusNode. + :type: NodeStatusNodeCpu + """ + + self._cpu = cpu + + @property + def id(self): + """ + Gets the id of this NodeStatusNode. + Node ID (Device Number) of this node. + + :return: The id of this NodeStatusNode. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeStatusNode. + Node ID (Device Number) of this node. + + :param id: The id of this NodeStatusNode. + :type: int + """ + + self._id = id + + @property + def lnn(self): + """ + Gets the lnn of this NodeStatusNode. + Logical Node Number (LNN) of this node. + + :return: The lnn of this NodeStatusNode. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this NodeStatusNode. + Logical Node Number (LNN) of this node. + + :param lnn: The lnn of this NodeStatusNode. + :type: int + """ + + self._lnn = lnn + + @property + def nvram(self): + """ + Gets the nvram of this NodeStatusNode. + Node NVRAM information. + + :return: The nvram of this NodeStatusNode. + :rtype: NodeStatusNodeNvram + """ + return self._nvram + + @nvram.setter + def nvram(self, nvram): + """ + Sets the nvram of this NodeStatusNode. + Node NVRAM information. + + :param nvram: The nvram of this NodeStatusNode. + :type: NodeStatusNodeNvram + """ + + self._nvram = nvram + + @property + def powersupplies(self): + """ + Gets the powersupplies of this NodeStatusNode. + Information about this node's power supplies. + + :return: The powersupplies of this NodeStatusNode. + :rtype: NodeStatusNodePowersupplies + """ + return self._powersupplies + + @powersupplies.setter + def powersupplies(self, powersupplies): + """ + Sets the powersupplies of this NodeStatusNode. + Information about this node's power supplies. + + :param powersupplies: The powersupplies of this NodeStatusNode. + :type: NodeStatusNodePowersupplies + """ + + self._powersupplies = powersupplies + + @property + def release(self): + """ + Gets the release of this NodeStatusNode. + OneFS release. + + :return: The release of this NodeStatusNode. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """ + Sets the release of this NodeStatusNode. + OneFS release. + + :param release: The release of this NodeStatusNode. + :type: str + """ + + self._release = release + + @property + def uptime(self): + """ + Gets the uptime of this NodeStatusNode. + Seconds this node has been online. + + :return: The uptime of this NodeStatusNode. + :rtype: int + """ + return self._uptime + + @uptime.setter + def uptime(self, uptime): + """ + Sets the uptime of this NodeStatusNode. + Seconds this node has been online. + + :param uptime: The uptime of this NodeStatusNode. + :type: int + """ + + self._uptime = uptime + + @property + def version(self): + """ + Gets the version of this NodeStatusNode. + OneFS version. + + :return: The version of this NodeStatusNode. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this NodeStatusNode. + OneFS version. + + :param version: The version of this NodeStatusNode. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_node_batterystatus.py b/isi_sdk/models/node_status_node_batterystatus.py new file mode 100644 index 000000000..e34754869 --- /dev/null +++ b/isi_sdk/models/node_status_node_batterystatus.py @@ -0,0 +1,356 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusNodeBatterystatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusNodeBatterystatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'last_test_time1': 'str', + 'last_test_time2': 'str', + 'next_test_time1': 'str', + 'next_test_time2': 'str', + 'present': 'bool', + 'result1': 'str', + 'result2': 'str', + 'status1': 'str', + 'status2': 'str', + 'supported': 'bool' + } + + self.attribute_map = { + 'last_test_time1': 'last_test_time1', + 'last_test_time2': 'last_test_time2', + 'next_test_time1': 'next_test_time1', + 'next_test_time2': 'next_test_time2', + 'present': 'present', + 'result1': 'result1', + 'result2': 'result2', + 'status1': 'status1', + 'status2': 'status2', + 'supported': 'supported' + } + + self._last_test_time1 = None + self._last_test_time2 = None + self._next_test_time1 = None + self._next_test_time2 = None + self._present = None + self._result1 = None + self._result2 = None + self._status1 = None + self._status2 = None + self._supported = None + + @property + def last_test_time1(self): + """ + Gets the last_test_time1 of this NodeStatusNodeBatterystatus. + The last battery test time for battery 1. + + :return: The last_test_time1 of this NodeStatusNodeBatterystatus. + :rtype: str + """ + return self._last_test_time1 + + @last_test_time1.setter + def last_test_time1(self, last_test_time1): + """ + Sets the last_test_time1 of this NodeStatusNodeBatterystatus. + The last battery test time for battery 1. + + :param last_test_time1: The last_test_time1 of this NodeStatusNodeBatterystatus. + :type: str + """ + + self._last_test_time1 = last_test_time1 + + @property + def last_test_time2(self): + """ + Gets the last_test_time2 of this NodeStatusNodeBatterystatus. + The last battery test time for battery 2. + + :return: The last_test_time2 of this NodeStatusNodeBatterystatus. + :rtype: str + """ + return self._last_test_time2 + + @last_test_time2.setter + def last_test_time2(self, last_test_time2): + """ + Sets the last_test_time2 of this NodeStatusNodeBatterystatus. + The last battery test time for battery 2. + + :param last_test_time2: The last_test_time2 of this NodeStatusNodeBatterystatus. + :type: str + """ + + self._last_test_time2 = last_test_time2 + + @property + def next_test_time1(self): + """ + Gets the next_test_time1 of this NodeStatusNodeBatterystatus. + The next checkup for battery 1. + + :return: The next_test_time1 of this NodeStatusNodeBatterystatus. + :rtype: str + """ + return self._next_test_time1 + + @next_test_time1.setter + def next_test_time1(self, next_test_time1): + """ + Sets the next_test_time1 of this NodeStatusNodeBatterystatus. + The next checkup for battery 1. + + :param next_test_time1: The next_test_time1 of this NodeStatusNodeBatterystatus. + :type: str + """ + + self._next_test_time1 = next_test_time1 + + @property + def next_test_time2(self): + """ + Gets the next_test_time2 of this NodeStatusNodeBatterystatus. + The next checkup for battery 2. + + :return: The next_test_time2 of this NodeStatusNodeBatterystatus. + :rtype: str + """ + return self._next_test_time2 + + @next_test_time2.setter + def next_test_time2(self, next_test_time2): + """ + Sets the next_test_time2 of this NodeStatusNodeBatterystatus. + The next checkup for battery 2. + + :param next_test_time2: The next_test_time2 of this NodeStatusNodeBatterystatus. + :type: str + """ + + self._next_test_time2 = next_test_time2 + + @property + def present(self): + """ + Gets the present of this NodeStatusNodeBatterystatus. + Node has battery status. + + :return: The present of this NodeStatusNodeBatterystatus. + :rtype: bool + """ + return self._present + + @present.setter + def present(self, present): + """ + Sets the present of this NodeStatusNodeBatterystatus. + Node has battery status. + + :param present: The present of this NodeStatusNodeBatterystatus. + :type: bool + """ + + self._present = present + + @property + def result1(self): + """ + Gets the result1 of this NodeStatusNodeBatterystatus. + The result of the last battery test for battery 1. + + :return: The result1 of this NodeStatusNodeBatterystatus. + :rtype: str + """ + return self._result1 + + @result1.setter + def result1(self, result1): + """ + Sets the result1 of this NodeStatusNodeBatterystatus. + The result of the last battery test for battery 1. + + :param result1: The result1 of this NodeStatusNodeBatterystatus. + :type: str + """ + + self._result1 = result1 + + @property + def result2(self): + """ + Gets the result2 of this NodeStatusNodeBatterystatus. + The result of the last battery test for battery 2. + + :return: The result2 of this NodeStatusNodeBatterystatus. + :rtype: str + """ + return self._result2 + + @result2.setter + def result2(self, result2): + """ + Sets the result2 of this NodeStatusNodeBatterystatus. + The result of the last battery test for battery 2. + + :param result2: The result2 of this NodeStatusNodeBatterystatus. + :type: str + """ + + self._result2 = result2 + + @property + def status1(self): + """ + Gets the status1 of this NodeStatusNodeBatterystatus. + The status of battery 1. + + :return: The status1 of this NodeStatusNodeBatterystatus. + :rtype: str + """ + return self._status1 + + @status1.setter + def status1(self, status1): + """ + Sets the status1 of this NodeStatusNodeBatterystatus. + The status of battery 1. + + :param status1: The status1 of this NodeStatusNodeBatterystatus. + :type: str + """ + + self._status1 = status1 + + @property + def status2(self): + """ + Gets the status2 of this NodeStatusNodeBatterystatus. + The status of battery 2. + + :return: The status2 of this NodeStatusNodeBatterystatus. + :rtype: str + """ + return self._status2 + + @status2.setter + def status2(self, status2): + """ + Sets the status2 of this NodeStatusNodeBatterystatus. + The status of battery 2. + + :param status2: The status2 of this NodeStatusNodeBatterystatus. + :type: str + """ + + self._status2 = status2 + + @property + def supported(self): + """ + Gets the supported of this NodeStatusNodeBatterystatus. + Node supports battery status. + + :return: The supported of this NodeStatusNodeBatterystatus. + :rtype: bool + """ + return self._supported + + @supported.setter + def supported(self, supported): + """ + Sets the supported of this NodeStatusNodeBatterystatus. + Node supports battery status. + + :param supported: The supported of this NodeStatusNodeBatterystatus. + :type: bool + """ + + self._supported = supported + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_node_capacity_item.py b/isi_sdk/models/node_status_node_capacity_item.py new file mode 100644 index 000000000..6b2e8ecf6 --- /dev/null +++ b/isi_sdk/models/node_status_node_capacity_item.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusNodeCapacityItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusNodeCapacityItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'bytes': 'int', + 'count': 'int', + 'type': 'str' + } + + self.attribute_map = { + 'bytes': 'bytes', + 'count': 'count', + 'type': 'type' + } + + self._bytes = None + self._count = None + self._type = None + + @property + def bytes(self): + """ + Gets the bytes of this NodeStatusNodeCapacityItem. + Total device storage bytes. + + :return: The bytes of this NodeStatusNodeCapacityItem. + :rtype: int + """ + return self._bytes + + @bytes.setter + def bytes(self, bytes): + """ + Sets the bytes of this NodeStatusNodeCapacityItem. + Total device storage bytes. + + :param bytes: The bytes of this NodeStatusNodeCapacityItem. + :type: int + """ + + self._bytes = bytes + + @property + def count(self): + """ + Gets the count of this NodeStatusNodeCapacityItem. + Total device count. + + :return: The count of this NodeStatusNodeCapacityItem. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this NodeStatusNodeCapacityItem. + Total device count. + + :param count: The count of this NodeStatusNodeCapacityItem. + :type: int + """ + + self._count = count + + @property + def type(self): + """ + Gets the type of this NodeStatusNodeCapacityItem. + Device type. + + :return: The type of this NodeStatusNodeCapacityItem. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this NodeStatusNodeCapacityItem. + Device type. + + :param type: The type of this NodeStatusNodeCapacityItem. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_node_cpu.py b/isi_sdk/models/node_status_node_cpu.py new file mode 100644 index 000000000..a99963057 --- /dev/null +++ b/isi_sdk/models/node_status_node_cpu.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusNodeCpu(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusNodeCpu - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'model': 'str', + 'overtemp': 'str', + 'proc': 'str', + 'speed_limit': 'str' + } + + self.attribute_map = { + 'model': 'model', + 'overtemp': 'overtemp', + 'proc': 'proc', + 'speed_limit': 'speed_limit' + } + + self._model = None + self._overtemp = None + self._proc = None + self._speed_limit = None + + @property + def model(self): + """ + Gets the model of this NodeStatusNodeCpu. + Manufacturer model description of this CPU. + + :return: The model of this NodeStatusNodeCpu. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this NodeStatusNodeCpu. + Manufacturer model description of this CPU. + + :param model: The model of this NodeStatusNodeCpu. + :type: str + """ + + self._model = model + + @property + def overtemp(self): + """ + Gets the overtemp of this NodeStatusNodeCpu. + CPU overtemp state. + + :return: The overtemp of this NodeStatusNodeCpu. + :rtype: str + """ + return self._overtemp + + @overtemp.setter + def overtemp(self, overtemp): + """ + Sets the overtemp of this NodeStatusNodeCpu. + CPU overtemp state. + + :param overtemp: The overtemp of this NodeStatusNodeCpu. + :type: str + """ + + self._overtemp = overtemp + + @property + def proc(self): + """ + Gets the proc of this NodeStatusNodeCpu. + Type of processor and core of this CPU. + + :return: The proc of this NodeStatusNodeCpu. + :rtype: str + """ + return self._proc + + @proc.setter + def proc(self, proc): + """ + Sets the proc of this NodeStatusNodeCpu. + Type of processor and core of this CPU. + + :param proc: The proc of this NodeStatusNodeCpu. + :type: str + """ + + self._proc = proc + + @property + def speed_limit(self): + """ + Gets the speed_limit of this NodeStatusNodeCpu. + CPU throttling (expressed as a percentage). + + :return: The speed_limit of this NodeStatusNodeCpu. + :rtype: str + """ + return self._speed_limit + + @speed_limit.setter + def speed_limit(self, speed_limit): + """ + Sets the speed_limit of this NodeStatusNodeCpu. + CPU throttling (expressed as a percentage). + + :param speed_limit: The speed_limit of this NodeStatusNodeCpu. + :type: str + """ + + self._speed_limit = speed_limit + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_node_nvram.py b/isi_sdk/models/node_status_node_nvram.py new file mode 100644 index 000000000..f6504c3c4 --- /dev/null +++ b/isi_sdk/models/node_status_node_nvram.py @@ -0,0 +1,460 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusNodeNvram(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusNodeNvram - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'batteries': 'list[NodeStatusNodeNvramBattery]', + 'battery_count': 'int', + 'charge_status': 'str', + 'charge_status_number': 'int', + 'device': 'str', + 'present': 'bool', + 'present_flash': 'bool', + 'present_size': 'int', + 'present_type': 'str', + 'ship_mode': 'int', + 'supported': 'bool', + 'supported_flash': 'bool', + 'supported_size': 'int', + 'supported_type': 'str' + } + + self.attribute_map = { + 'batteries': 'batteries', + 'battery_count': 'battery_count', + 'charge_status': 'charge_status', + 'charge_status_number': 'charge_status_number', + 'device': 'device', + 'present': 'present', + 'present_flash': 'present_flash', + 'present_size': 'present_size', + 'present_type': 'present_type', + 'ship_mode': 'ship_mode', + 'supported': 'supported', + 'supported_flash': 'supported_flash', + 'supported_size': 'supported_size', + 'supported_type': 'supported_type' + } + + self._batteries = None + self._battery_count = None + self._charge_status = None + self._charge_status_number = None + self._device = None + self._present = None + self._present_flash = None + self._present_size = None + self._present_type = None + self._ship_mode = None + self._supported = None + self._supported_flash = None + self._supported_size = None + self._supported_type = None + + @property + def batteries(self): + """ + Gets the batteries of this NodeStatusNodeNvram. + This node's NVRAM battery status information. + + :return: The batteries of this NodeStatusNodeNvram. + :rtype: list[NodeStatusNodeNvramBattery] + """ + return self._batteries + + @batteries.setter + def batteries(self, batteries): + """ + Sets the batteries of this NodeStatusNodeNvram. + This node's NVRAM battery status information. + + :param batteries: The batteries of this NodeStatusNodeNvram. + :type: list[NodeStatusNodeNvramBattery] + """ + + self._batteries = batteries + + @property + def battery_count(self): + """ + Gets the battery_count of this NodeStatusNodeNvram. + This node's NVRAM battery count. + + :return: The battery_count of this NodeStatusNodeNvram. + :rtype: int + """ + return self._battery_count + + @battery_count.setter + def battery_count(self, battery_count): + """ + Sets the battery_count of this NodeStatusNodeNvram. + This node's NVRAM battery count. + + :param battery_count: The battery_count of this NodeStatusNodeNvram. + :type: int + """ + + self._battery_count = battery_count + + @property + def charge_status(self): + """ + Gets the charge_status of this NodeStatusNodeNvram. + This node's NVRAM battery charge status, as a color. + + :return: The charge_status of this NodeStatusNodeNvram. + :rtype: str + """ + return self._charge_status + + @charge_status.setter + def charge_status(self, charge_status): + """ + Sets the charge_status of this NodeStatusNodeNvram. + This node's NVRAM battery charge status, as a color. + + :param charge_status: The charge_status of this NodeStatusNodeNvram. + :type: str + """ + + self._charge_status = charge_status + + @property + def charge_status_number(self): + """ + Gets the charge_status_number of this NodeStatusNodeNvram. + This node's NVRAM battery charge status, as a number. + + :return: The charge_status_number of this NodeStatusNodeNvram. + :rtype: int + """ + return self._charge_status_number + + @charge_status_number.setter + def charge_status_number(self, charge_status_number): + """ + Sets the charge_status_number of this NodeStatusNodeNvram. + This node's NVRAM battery charge status, as a number. + + :param charge_status_number: The charge_status_number of this NodeStatusNodeNvram. + :type: int + """ + + self._charge_status_number = charge_status_number + + @property + def device(self): + """ + Gets the device of this NodeStatusNodeNvram. + This node's NVRAM device name with path. + + :return: The device of this NodeStatusNodeNvram. + :rtype: str + """ + return self._device + + @device.setter + def device(self, device): + """ + Sets the device of this NodeStatusNodeNvram. + This node's NVRAM device name with path. + + :param device: The device of this NodeStatusNodeNvram. + :type: str + """ + + self._device = device + + @property + def present(self): + """ + Gets the present of this NodeStatusNodeNvram. + This node has NVRAM. + + :return: The present of this NodeStatusNodeNvram. + :rtype: bool + """ + return self._present + + @present.setter + def present(self, present): + """ + Sets the present of this NodeStatusNodeNvram. + This node has NVRAM. + + :param present: The present of this NodeStatusNodeNvram. + :type: bool + """ + + self._present = present + + @property + def present_flash(self): + """ + Gets the present_flash of this NodeStatusNodeNvram. + This node has NVRAM with flash storage. + + :return: The present_flash of this NodeStatusNodeNvram. + :rtype: bool + """ + return self._present_flash + + @present_flash.setter + def present_flash(self, present_flash): + """ + Sets the present_flash of this NodeStatusNodeNvram. + This node has NVRAM with flash storage. + + :param present_flash: The present_flash of this NodeStatusNodeNvram. + :type: bool + """ + + self._present_flash = present_flash + + @property + def present_size(self): + """ + Gets the present_size of this NodeStatusNodeNvram. + The size of the NVRAM, in bytes. + + :return: The present_size of this NodeStatusNodeNvram. + :rtype: int + """ + return self._present_size + + @present_size.setter + def present_size(self, present_size): + """ + Sets the present_size of this NodeStatusNodeNvram. + The size of the NVRAM, in bytes. + + :param present_size: The present_size of this NodeStatusNodeNvram. + :type: int + """ + + self._present_size = present_size + + @property + def present_type(self): + """ + Gets the present_type of this NodeStatusNodeNvram. + This node's NVRAM type. + + :return: The present_type of this NodeStatusNodeNvram. + :rtype: str + """ + return self._present_type + + @present_type.setter + def present_type(self, present_type): + """ + Sets the present_type of this NodeStatusNodeNvram. + This node's NVRAM type. + + :param present_type: The present_type of this NodeStatusNodeNvram. + :type: str + """ + + self._present_type = present_type + + @property + def ship_mode(self): + """ + Gets the ship_mode of this NodeStatusNodeNvram. + This node's current ship mode state for NVRAM batteries. + + :return: The ship_mode of this NodeStatusNodeNvram. + :rtype: int + """ + return self._ship_mode + + @ship_mode.setter + def ship_mode(self, ship_mode): + """ + Sets the ship_mode of this NodeStatusNodeNvram. + This node's current ship mode state for NVRAM batteries. + + :param ship_mode: The ship_mode of this NodeStatusNodeNvram. + :type: int + """ + + self._ship_mode = ship_mode + + @property + def supported(self): + """ + Gets the supported of this NodeStatusNodeNvram. + This node supports NVRAM. + + :return: The supported of this NodeStatusNodeNvram. + :rtype: bool + """ + return self._supported + + @supported.setter + def supported(self, supported): + """ + Sets the supported of this NodeStatusNodeNvram. + This node supports NVRAM. + + :param supported: The supported of this NodeStatusNodeNvram. + :type: bool + """ + + self._supported = supported + + @property + def supported_flash(self): + """ + Gets the supported_flash of this NodeStatusNodeNvram. + This node supports NVRAM with flash storage. + + :return: The supported_flash of this NodeStatusNodeNvram. + :rtype: bool + """ + return self._supported_flash + + @supported_flash.setter + def supported_flash(self, supported_flash): + """ + Sets the supported_flash of this NodeStatusNodeNvram. + This node supports NVRAM with flash storage. + + :param supported_flash: The supported_flash of this NodeStatusNodeNvram. + :type: bool + """ + + self._supported_flash = supported_flash + + @property + def supported_size(self): + """ + Gets the supported_size of this NodeStatusNodeNvram. + The maximum size of the NVRAM, in bytes. + + :return: The supported_size of this NodeStatusNodeNvram. + :rtype: int + """ + return self._supported_size + + @supported_size.setter + def supported_size(self, supported_size): + """ + Sets the supported_size of this NodeStatusNodeNvram. + The maximum size of the NVRAM, in bytes. + + :param supported_size: The supported_size of this NodeStatusNodeNvram. + :type: int + """ + + self._supported_size = supported_size + + @property + def supported_type(self): + """ + Gets the supported_type of this NodeStatusNodeNvram. + This node's supported NVRAM type. + + :return: The supported_type of this NodeStatusNodeNvram. + :rtype: str + """ + return self._supported_type + + @supported_type.setter + def supported_type(self, supported_type): + """ + Sets the supported_type of this NodeStatusNodeNvram. + This node's supported NVRAM type. + + :param supported_type: The supported_type of this NodeStatusNodeNvram. + :type: str + """ + + self._supported_type = supported_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_node_nvram_battery.py b/isi_sdk/models/node_status_node_nvram_battery.py new file mode 100644 index 000000000..7a98c4eee --- /dev/null +++ b/isi_sdk/models/node_status_node_nvram_battery.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusNodeNvramBattery(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusNodeNvramBattery - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'color': 'str', + 'id': 'int', + 'status': 'str', + 'voltage': 'str' + } + + self.attribute_map = { + 'color': 'color', + 'id': 'id', + 'status': 'status', + 'voltage': 'voltage' + } + + self._color = None + self._id = None + self._status = None + self._voltage = None + + @property + def color(self): + """ + Gets the color of this NodeStatusNodeNvramBattery. + The current status color of the NVRAM battery. + + :return: The color of this NodeStatusNodeNvramBattery. + :rtype: str + """ + return self._color + + @color.setter + def color(self, color): + """ + Sets the color of this NodeStatusNodeNvramBattery. + The current status color of the NVRAM battery. + + :param color: The color of this NodeStatusNodeNvramBattery. + :type: str + """ + + self._color = color + + @property + def id(self): + """ + Gets the id of this NodeStatusNodeNvramBattery. + Identifying index for the NVRAM battery. + + :return: The id of this NodeStatusNodeNvramBattery. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeStatusNodeNvramBattery. + Identifying index for the NVRAM battery. + + :param id: The id of this NodeStatusNodeNvramBattery. + :type: int + """ + + self._id = id + + @property + def status(self): + """ + Gets the status of this NodeStatusNodeNvramBattery. + The current status message of the NVRAM battery. + + :return: The status of this NodeStatusNodeNvramBattery. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this NodeStatusNodeNvramBattery. + The current status message of the NVRAM battery. + + :param status: The status of this NodeStatusNodeNvramBattery. + :type: str + """ + + self._status = status + + @property + def voltage(self): + """ + Gets the voltage of this NodeStatusNodeNvramBattery. + The current voltage of the NVRAM battery. + + :return: The voltage of this NodeStatusNodeNvramBattery. + :rtype: str + """ + return self._voltage + + @voltage.setter + def voltage(self, voltage): + """ + Sets the voltage of this NodeStatusNodeNvramBattery. + The current voltage of the NVRAM battery. + + :param voltage: The voltage of this NodeStatusNodeNvramBattery. + :type: str + """ + + self._voltage = voltage + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_node_powersupplies.py b/isi_sdk/models/node_status_node_powersupplies.py new file mode 100644 index 000000000..20b82a1b0 --- /dev/null +++ b/isi_sdk/models/node_status_node_powersupplies.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusNodePowersupplies(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusNodePowersupplies - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'count': 'int', + 'failures': 'int', + 'has_cff': 'bool', + 'status': 'str', + 'supplies': 'list[NodeStatusNodePowersuppliesSupply]', + 'supports_cff': 'bool' + } + + self.attribute_map = { + 'count': 'count', + 'failures': 'failures', + 'has_cff': 'has_cff', + 'status': 'status', + 'supplies': 'supplies', + 'supports_cff': 'supports_cff' + } + + self._count = None + self._failures = None + self._has_cff = None + self._status = None + self._supplies = None + self._supports_cff = None + + @property + def count(self): + """ + Gets the count of this NodeStatusNodePowersupplies. + Count of how many power supplies are supported. + + :return: The count of this NodeStatusNodePowersupplies. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this NodeStatusNodePowersupplies. + Count of how many power supplies are supported. + + :param count: The count of this NodeStatusNodePowersupplies. + :type: int + """ + + self._count = count + + @property + def failures(self): + """ + Gets the failures of this NodeStatusNodePowersupplies. + Count of how many power supplies have failed. + + :return: The failures of this NodeStatusNodePowersupplies. + :rtype: int + """ + return self._failures + + @failures.setter + def failures(self, failures): + """ + Sets the failures of this NodeStatusNodePowersupplies. + Count of how many power supplies have failed. + + :param failures: The failures of this NodeStatusNodePowersupplies. + :type: int + """ + + self._failures = failures + + @property + def has_cff(self): + """ + Gets the has_cff of this NodeStatusNodePowersupplies. + Does this node have a CFF power supply. + + :return: The has_cff of this NodeStatusNodePowersupplies. + :rtype: bool + """ + return self._has_cff + + @has_cff.setter + def has_cff(self, has_cff): + """ + Sets the has_cff of this NodeStatusNodePowersupplies. + Does this node have a CFF power supply. + + :param has_cff: The has_cff of this NodeStatusNodePowersupplies. + :type: bool + """ + + self._has_cff = has_cff + + @property + def status(self): + """ + Gets the status of this NodeStatusNodePowersupplies. + A descriptive status string for this node's power supplies. + + :return: The status of this NodeStatusNodePowersupplies. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this NodeStatusNodePowersupplies. + A descriptive status string for this node's power supplies. + + :param status: The status of this NodeStatusNodePowersupplies. + :type: str + """ + + self._status = status + + @property + def supplies(self): + """ + Gets the supplies of this NodeStatusNodePowersupplies. + List of this node's power supplies. + + :return: The supplies of this NodeStatusNodePowersupplies. + :rtype: list[NodeStatusNodePowersuppliesSupply] + """ + return self._supplies + + @supplies.setter + def supplies(self, supplies): + """ + Sets the supplies of this NodeStatusNodePowersupplies. + List of this node's power supplies. + + :param supplies: The supplies of this NodeStatusNodePowersupplies. + :type: list[NodeStatusNodePowersuppliesSupply] + """ + + self._supplies = supplies + + @property + def supports_cff(self): + """ + Gets the supports_cff of this NodeStatusNodePowersupplies. + Does this node support CFF power supplies. + + :return: The supports_cff of this NodeStatusNodePowersupplies. + :rtype: bool + """ + return self._supports_cff + + @supports_cff.setter + def supports_cff(self, supports_cff): + """ + Sets the supports_cff of this NodeStatusNodePowersupplies. + Does this node support CFF power supplies. + + :param supports_cff: The supports_cff of this NodeStatusNodePowersupplies. + :type: bool + """ + + self._supports_cff = supports_cff + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/node_status_node_powersupplies_supply.py b/isi_sdk/models/node_status_node_powersupplies_supply.py new file mode 100644 index 000000000..442d32807 --- /dev/null +++ b/isi_sdk/models/node_status_node_powersupplies_supply.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodeStatusNodePowersuppliesSupply(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodeStatusNodePowersuppliesSupply - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'chassis': 'int', + 'firmware': 'str', + 'good': 'str', + 'id': 'int', + 'name': 'str', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'chassis': 'chassis', + 'firmware': 'firmware', + 'good': 'good', + 'id': 'id', + 'name': 'name', + 'status': 'status', + 'type': 'type' + } + + self._chassis = None + self._firmware = None + self._good = None + self._id = None + self._name = None + self._status = None + self._type = None + + @property + def chassis(self): + """ + Gets the chassis of this NodeStatusNodePowersuppliesSupply. + Which node chassis is this power supply in. + + :return: The chassis of this NodeStatusNodePowersuppliesSupply. + :rtype: int + """ + return self._chassis + + @chassis.setter + def chassis(self, chassis): + """ + Sets the chassis of this NodeStatusNodePowersuppliesSupply. + Which node chassis is this power supply in. + + :param chassis: The chassis of this NodeStatusNodePowersuppliesSupply. + :type: int + """ + + self._chassis = chassis + + @property + def firmware(self): + """ + Gets the firmware of this NodeStatusNodePowersuppliesSupply. + The current firmware revision of this power supply. + + :return: The firmware of this NodeStatusNodePowersuppliesSupply. + :rtype: str + """ + return self._firmware + + @firmware.setter + def firmware(self, firmware): + """ + Sets the firmware of this NodeStatusNodePowersuppliesSupply. + The current firmware revision of this power supply. + + :param firmware: The firmware of this NodeStatusNodePowersuppliesSupply. + :type: str + """ + + self._firmware = firmware + + @property + def good(self): + """ + Gets the good of this NodeStatusNodePowersuppliesSupply. + Is this power supply in a failure state. + + :return: The good of this NodeStatusNodePowersuppliesSupply. + :rtype: str + """ + return self._good + + @good.setter + def good(self, good): + """ + Sets the good of this NodeStatusNodePowersuppliesSupply. + Is this power supply in a failure state. + + :param good: The good of this NodeStatusNodePowersuppliesSupply. + :type: str + """ + + self._good = good + + @property + def id(self): + """ + Gets the id of this NodeStatusNodePowersuppliesSupply. + Identifying index for this power supply. + + :return: The id of this NodeStatusNodePowersuppliesSupply. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NodeStatusNodePowersuppliesSupply. + Identifying index for this power supply. + + :param id: The id of this NodeStatusNodePowersuppliesSupply. + :type: int + """ + + self._id = id + + @property + def name(self): + """ + Gets the name of this NodeStatusNodePowersuppliesSupply. + Complete identifying string for this power supply. + + :return: The name of this NodeStatusNodePowersuppliesSupply. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NodeStatusNodePowersuppliesSupply. + Complete identifying string for this power supply. + + :param name: The name of this NodeStatusNodePowersuppliesSupply. + :type: str + """ + + self._name = name + + @property + def status(self): + """ + Gets the status of this NodeStatusNodePowersuppliesSupply. + A descriptive status string for this power supply. + + :return: The status of this NodeStatusNodePowersuppliesSupply. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this NodeStatusNodePowersuppliesSupply. + A descriptive status string for this power supply. + + :param status: The status of this NodeStatusNodePowersuppliesSupply. + :type: str + """ + + self._status = status + + @property + def type(self): + """ + Gets the type of this NodeStatusNodePowersuppliesSupply. + The type of this power supply. + + :return: The type of this NodeStatusNodePowersuppliesSupply. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this NodeStatusNodePowersuppliesSupply. + The type of this power supply. + + :param type: The type of this NodeStatusNodePowersuppliesSupply. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/nodes_node_firmware_status.py b/isi_sdk/models/nodes_node_firmware_status.py new file mode 100644 index 000000000..43d079ae9 --- /dev/null +++ b/isi_sdk/models/nodes_node_firmware_status.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class NodesNodeFirmwareStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + NodesNodeFirmwareStatus - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'devices': 'list[ClusterFirmwareStatusNodeDevice]', + 'node_unavailable': 'bool', + 'package': 'list[ClusterFirmwareStatusNodePackageItem]' + } + + self.attribute_map = { + 'devices': 'devices', + 'node_unavailable': 'node_unavailable', + 'package': 'package' + } + + self._devices = None + self._node_unavailable = None + self._package = None + + @property + def devices(self): + """ + Gets the devices of this NodesNodeFirmwareStatus. + List of the firmware status for hardware components on the node. + + :return: The devices of this NodesNodeFirmwareStatus. + :rtype: list[ClusterFirmwareStatusNodeDevice] + """ + return self._devices + + @devices.setter + def devices(self, devices): + """ + Sets the devices of this NodesNodeFirmwareStatus. + List of the firmware status for hardware components on the node. + + :param devices: The devices of this NodesNodeFirmwareStatus. + :type: list[ClusterFirmwareStatusNodeDevice] + """ + + self._devices = devices + + @property + def node_unavailable(self): + """ + Gets the node_unavailable of this NodesNodeFirmwareStatus. + Node is unavailable. + + :return: The node_unavailable of this NodesNodeFirmwareStatus. + :rtype: bool + """ + return self._node_unavailable + + @node_unavailable.setter + def node_unavailable(self, node_unavailable): + """ + Sets the node_unavailable of this NodesNodeFirmwareStatus. + Node is unavailable. + + :param node_unavailable: The node_unavailable of this NodesNodeFirmwareStatus. + :type: bool + """ + + self._node_unavailable = node_unavailable + + @property + def package(self): + """ + Gets the package of this NodesNodeFirmwareStatus. + List of the firmware binary information for the installed firmware package. + + :return: The package of this NodesNodeFirmwareStatus. + :rtype: list[ClusterFirmwareStatusNodePackageItem] + """ + return self._package + + @package.setter + def package(self, package): + """ + Sets the package of this NodesNodeFirmwareStatus. + List of the firmware binary information for the installed firmware package. + + :param package: The package of this NodesNodeFirmwareStatus. + :type: list[ClusterFirmwareStatusNodePackageItem] + """ + + self._package = package + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/ntp_server.py b/isi_sdk/models/ntp_server.py index 6b23fa968..f7fec8ff4 100644 --- a/isi_sdk/models/ntp_server.py +++ b/isi_sdk/models/ntp_server.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NtpServer(object): @@ -66,6 +67,7 @@ def key(self, key): :param key: The key of this NtpServer. :type: str """ + self._key = key def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ntp_server_create_params.py b/isi_sdk/models/ntp_server_create_params.py index d056e9e37..dae222f01 100644 --- a/isi_sdk/models/ntp_server_create_params.py +++ b/isi_sdk/models/ntp_server_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NtpServerCreateParams(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', - 'key': 'str' + 'key': 'str', + 'name': 'str' } self.attribute_map = { - 'name': 'name', - 'key': 'key' + 'key': 'key', + 'name': 'name' } - self._name = None self._key = None - - @property - def name(self): - """ - Gets the name of this NtpServerCreateParams. - NTP server name. - - :return: The name of this NtpServerCreateParams. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this NtpServerCreateParams. - NTP server name. - - :param name: The name of this NtpServerCreateParams. - :type: str - """ - self._name = name + self._name = None @property def key(self): @@ -91,8 +70,32 @@ def key(self, key): :param key: The key of this NtpServerCreateParams. :type: str """ + self._key = key + @property + def name(self): + """ + Gets the name of this NtpServerCreateParams. + NTP server name. + + :return: The name of this NtpServerCreateParams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NtpServerCreateParams. + NTP server name. + + :param name: The name of this NtpServerCreateParams. + :type: str + """ + + self._name = name + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ntp_server_extended.py b/isi_sdk/models/ntp_server_extended.py index 0c49bd486..4a94f6c2e 100644 --- a/isi_sdk/models/ntp_server_extended.py +++ b/isi_sdk/models/ntp_server_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NtpServerExtended(object): @@ -37,42 +38,20 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', 'key': 'str', - 'id': 'str' + 'id': 'str', + 'name': 'str' } self.attribute_map = { - 'name': 'name', 'key': 'key', - 'id': 'id' + 'id': 'id', + 'name': 'name' } - self._name = None self._key = None self._id = None - - @property - def name(self): - """ - Gets the name of this NtpServerExtended. - NTP server name. - - :return: The name of this NtpServerExtended. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this NtpServerExtended. - NTP server name. - - :param name: The name of this NtpServerExtended. - :type: str - """ - self._name = name + self._name = None @property def key(self): @@ -94,6 +73,7 @@ def key(self, key): :param key: The key of this NtpServerExtended. :type: str """ + self._key = key @property @@ -116,8 +96,32 @@ def id(self, id): :param id: The id of this NtpServerExtended. :type: str """ + self._id = id + @property + def name(self): + """ + Gets the name of this NtpServerExtended. + NTP server name. + + :return: The name of this NtpServerExtended. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NtpServerExtended. + NTP server name. + + :param name: The name of this NtpServerExtended. + :type: str + """ + + self._name = name + def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ntp_servers.py b/isi_sdk/models/ntp_servers.py index b69604f21..fbc83673a 100644 --- a/isi_sdk/models/ntp_servers.py +++ b/isi_sdk/models/ntp_servers.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NtpServers(object): @@ -66,6 +67,7 @@ def servers(self, servers): :param servers: The servers of this NtpServers. :type: list[NtpServerExtended] """ + self._servers = servers def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ntp_servers_extended.py b/isi_sdk/models/ntp_servers_extended.py index 792d36a40..da9205e94 100644 --- a/isi_sdk/models/ntp_servers_extended.py +++ b/isi_sdk/models/ntp_servers_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NtpServersExtended(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', - 'servers': 'list[NtpServerExtended]' + 'servers': 'list[NtpServerExtended]', + 'resume': 'str' } self.attribute_map = { - 'resume': 'resume', - 'servers': 'servers' + 'servers': 'servers', + 'resume': 'resume' } - self._resume = None self._servers = None - - @property - def resume(self): - """ - Gets the resume of this NtpServersExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this NtpServersExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this NtpServersExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this NtpServersExtended. - :type: str - """ - self._resume = resume + self._resume = None @property def servers(self): @@ -91,8 +70,32 @@ def servers(self, servers): :param servers: The servers of this NtpServersExtended. :type: list[NtpServerExtended] """ + self._servers = servers + @property + def resume(self): + """ + Gets the resume of this NtpServersExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this NtpServersExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this NtpServersExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this NtpServersExtended. + :type: str + """ + + self._resume = resume + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ntp_settings.py b/isi_sdk/models/ntp_settings.py index d45b5f3b3..0e9c7b46a 100644 --- a/isi_sdk/models/ntp_settings.py +++ b/isi_sdk/models/ntp_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NtpSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this NtpSettings. :type: NtpSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/ntp_settings_settings.py b/isi_sdk/models/ntp_settings_settings.py index 1d02ff096..f5ee6bab1 100644 --- a/isi_sdk/models/ntp_settings_settings.py +++ b/isi_sdk/models/ntp_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class NtpSettingsSettings(object): @@ -72,6 +73,12 @@ def chimers(self, chimers): :param chimers: The chimers of this NtpSettingsSettings. :type: int """ + + if not chimers: + raise ValueError("Invalid value for `chimers`, must not be `None`") + if chimers < 1.0: + raise ValueError("Invalid value for `chimers`, must be a value greater than or equal to `1.0`") + self._chimers = chimers @property @@ -94,6 +101,7 @@ def excluded(self, excluded): :param excluded: The excluded of this NtpSettingsSettings. :type: list[str] """ + self._excluded = excluded @property @@ -116,6 +124,7 @@ def key_file(self, key_file): :param key_file: The key_file of this NtpSettingsSettings. :type: str """ + self._key_file = key_file def to_dict(self): @@ -133,6 +142,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +165,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/pools_pool_interfaces.py b/isi_sdk/models/pools_pool_interfaces.py new file mode 100644 index 000000000..02d5e3578 --- /dev/null +++ b/isi_sdk/models/pools_pool_interfaces.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class PoolsPoolInterfaces(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + PoolsPoolInterfaces - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'interface': 'list[PoolsPoolInterfacesInterfaceItem]', + 'resume': 'str', + 'total': 'int' + } + + self.attribute_map = { + 'interface': 'interface', + 'resume': 'resume', + 'total': 'total' + } + + self._interface = None + self._resume = None + self._total = None + + @property + def interface(self): + """ + Gets the interface of this PoolsPoolInterfaces. + + + :return: The interface of this PoolsPoolInterfaces. + :rtype: list[PoolsPoolInterfacesInterfaceItem] + """ + return self._interface + + @interface.setter + def interface(self, interface): + """ + Sets the interface of this PoolsPoolInterfaces. + + + :param interface: The interface of this PoolsPoolInterfaces. + :type: list[PoolsPoolInterfacesInterfaceItem] + """ + + self._interface = interface + + @property + def resume(self): + """ + Gets the resume of this PoolsPoolInterfaces. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this PoolsPoolInterfaces. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this PoolsPoolInterfaces. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this PoolsPoolInterfaces. + :type: str + """ + + self._resume = resume + + @property + def total(self): + """ + Gets the total of this PoolsPoolInterfaces. + Total number of items available. + + :return: The total of this PoolsPoolInterfaces. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this PoolsPoolInterfaces. + Total number of items available. + + :param total: The total of this PoolsPoolInterfaces. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/pools_pool_interfaces_interface_item.py b/isi_sdk/models/pools_pool_interfaces_interface_item.py new file mode 100644 index 000000000..7f072ed6a --- /dev/null +++ b/isi_sdk/models/pools_pool_interfaces_interface_item.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class PoolsPoolInterfacesInterfaceItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + PoolsPoolInterfacesInterfaceItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'id': 'str', + 'ip_addrs': 'list[str]', + 'lnn': 'int', + 'name': 'str', + 'nic_name': 'str', + 'owners': 'list[PoolsPoolInterfacesInterfaceItemOwner]', + 'status': 'str', + 'type': 'str' + } + + self.attribute_map = { + 'id': 'id', + 'ip_addrs': 'ip_addrs', + 'lnn': 'lnn', + 'name': 'name', + 'nic_name': 'nic_name', + 'owners': 'owners', + 'status': 'status', + 'type': 'type' + } + + self._id = None + self._ip_addrs = None + self._lnn = None + self._name = None + self._nic_name = None + self._owners = None + self._status = None + self._type = None + + @property + def id(self): + """ + Gets the id of this PoolsPoolInterfacesInterfaceItem. + Unique interface ID. + + :return: The id of this PoolsPoolInterfacesInterfaceItem. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PoolsPoolInterfacesInterfaceItem. + Unique interface ID. + + :param id: The id of this PoolsPoolInterfacesInterfaceItem. + :type: str + """ + + self._id = id + + @property + def ip_addrs(self): + """ + Gets the ip_addrs of this PoolsPoolInterfacesInterfaceItem. + List of IP addresses + + :return: The ip_addrs of this PoolsPoolInterfacesInterfaceItem. + :rtype: list[str] + """ + return self._ip_addrs + + @ip_addrs.setter + def ip_addrs(self, ip_addrs): + """ + Sets the ip_addrs of this PoolsPoolInterfacesInterfaceItem. + List of IP addresses + + :param ip_addrs: The ip_addrs of this PoolsPoolInterfacesInterfaceItem. + :type: list[str] + """ + + self._ip_addrs = ip_addrs + + @property + def lnn(self): + """ + Gets the lnn of this PoolsPoolInterfacesInterfaceItem. + Logical Node Number + + :return: The lnn of this PoolsPoolInterfacesInterfaceItem. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this PoolsPoolInterfacesInterfaceItem. + Logical Node Number + + :param lnn: The lnn of this PoolsPoolInterfacesInterfaceItem. + :type: int + """ + + if not lnn: + raise ValueError("Invalid value for `lnn`, must not be `None`") + if lnn < 1.0: + raise ValueError("Invalid value for `lnn`, must be a value greater than or equal to `1.0`") + + self._lnn = lnn + + @property + def name(self): + """ + Gets the name of this PoolsPoolInterfacesInterfaceItem. + The name of the interface. + + :return: The name of this PoolsPoolInterfacesInterfaceItem. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this PoolsPoolInterfacesInterfaceItem. + The name of the interface. + + :param name: The name of this PoolsPoolInterfacesInterfaceItem. + :type: str + """ + + self._name = name + + @property + def nic_name(self): + """ + Gets the nic_name of this PoolsPoolInterfacesInterfaceItem. + NIC name + + :return: The nic_name of this PoolsPoolInterfacesInterfaceItem. + :rtype: str + """ + return self._nic_name + + @nic_name.setter + def nic_name(self, nic_name): + """ + Sets the nic_name of this PoolsPoolInterfacesInterfaceItem. + NIC name + + :param nic_name: The nic_name of this PoolsPoolInterfacesInterfaceItem. + :type: str + """ + + self._nic_name = nic_name + + @property + def owners(self): + """ + Gets the owners of this PoolsPoolInterfacesInterfaceItem. + List of owners (membership) + + :return: The owners of this PoolsPoolInterfacesInterfaceItem. + :rtype: list[PoolsPoolInterfacesInterfaceItemOwner] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this PoolsPoolInterfacesInterfaceItem. + List of owners (membership) + + :param owners: The owners of this PoolsPoolInterfacesInterfaceItem. + :type: list[PoolsPoolInterfacesInterfaceItemOwner] + """ + + self._owners = owners + + @property + def status(self): + """ + Gets the status of this PoolsPoolInterfacesInterfaceItem. + Status of the interface + + :return: The status of this PoolsPoolInterfacesInterfaceItem. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PoolsPoolInterfacesInterfaceItem. + Status of the interface + + :param status: The status of this PoolsPoolInterfacesInterfaceItem. + :type: str + """ + allowed_values = ["up", "no_carrier", "active", "inactive"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status`, must be one of {0}" + .format(allowed_values) + ) + + self._status = status + + @property + def type(self): + """ + Gets the type of this PoolsPoolInterfacesInterfaceItem. + Interface type. The '*gige' types stand for 'gigabit ethernet'. 'gige' itself is occasionally also referred to in other places as 'ext' for 'external'. 'ib' and 'ib_qdr' are internal Infiniband interface types. 'vlan' and 'vmxnet3' are virtual interface types that appear on virtual nodes. 'loopback' is an interface for failover addresses and should only appear if failover is configured. + + :return: The type of this PoolsPoolInterfacesInterfaceItem. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this PoolsPoolInterfacesInterfaceItem. + Interface type. The '*gige' types stand for 'gigabit ethernet'. 'gige' itself is occasionally also referred to in other places as 'ext' for 'external'. 'ib' and 'ib_qdr' are internal Infiniband interface types. 'vlan' and 'vmxnet3' are virtual interface types that appear on virtual nodes. 'loopback' is an interface for failover addresses and should only appear if failover is configured. + + :param type: The type of this PoolsPoolInterfacesInterfaceItem. + :type: str + """ + allowed_values = ["any", "gige", "fastgige", "10gige", "40gige", "ib", "ib_qdr", "aggregated", "vlan", "vmxnet3", "loopback"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/pools_pool_interfaces_interface_item_owner.py b/isi_sdk/models/pools_pool_interfaces_interface_item_owner.py new file mode 100644 index 000000000..a4aab22dc --- /dev/null +++ b/isi_sdk/models/pools_pool_interfaces_interface_item_owner.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class PoolsPoolInterfacesInterfaceItemOwner(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + PoolsPoolInterfacesInterfaceItemOwner - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'groupnet': 'str', + 'pool': 'str', + 'subnet': 'str' + } + + self.attribute_map = { + 'groupnet': 'groupnet', + 'pool': 'pool', + 'subnet': 'subnet' + } + + self._groupnet = None + self._pool = None + self._subnet = None + + @property + def groupnet(self): + """ + Gets the groupnet of this PoolsPoolInterfacesInterfaceItemOwner. + + + :return: The groupnet of this PoolsPoolInterfacesInterfaceItemOwner. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this PoolsPoolInterfacesInterfaceItemOwner. + + + :param groupnet: The groupnet of this PoolsPoolInterfacesInterfaceItemOwner. + :type: str + """ + + self._groupnet = groupnet + + @property + def pool(self): + """ + Gets the pool of this PoolsPoolInterfacesInterfaceItemOwner. + + + :return: The pool of this PoolsPoolInterfacesInterfaceItemOwner. + :rtype: str + """ + return self._pool + + @pool.setter + def pool(self, pool): + """ + Sets the pool of this PoolsPoolInterfacesInterfaceItemOwner. + + + :param pool: The pool of this PoolsPoolInterfacesInterfaceItemOwner. + :type: str + """ + + self._pool = pool + + @property + def subnet(self): + """ + Gets the subnet of this PoolsPoolInterfacesInterfaceItemOwner. + + + :return: The subnet of this PoolsPoolInterfacesInterfaceItemOwner. + :rtype: str + """ + return self._subnet + + @subnet.setter + def subnet(self, subnet): + """ + Sets the subnet of this PoolsPoolInterfacesInterfaceItemOwner. + + + :param subnet: The subnet of this PoolsPoolInterfacesInterfaceItemOwner. + :type: str + """ + + self._subnet = subnet + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/pools_pool_rule.py b/isi_sdk/models/pools_pool_rule.py new file mode 100644 index 000000000..165af4582 --- /dev/null +++ b/isi_sdk/models/pools_pool_rule.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class PoolsPoolRule(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + PoolsPoolRule - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'iface': 'str', + 'name': 'str', + 'node_type': 'str' + } + + self.attribute_map = { + 'description': 'description', + 'iface': 'iface', + 'name': 'name', + 'node_type': 'node_type' + } + + self._description = None + self._iface = None + self._name = None + self._node_type = None + + @property + def description(self): + """ + Gets the description of this PoolsPoolRule. + Description for the provisioning rule. + + :return: The description of this PoolsPoolRule. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this PoolsPoolRule. + Description for the provisioning rule. + + :param description: The description of this PoolsPoolRule. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def iface(self): + """ + Gets the iface of this PoolsPoolRule. + Interface name the provisioning rule applies to. + + :return: The iface of this PoolsPoolRule. + :rtype: str + """ + return self._iface + + @iface.setter + def iface(self, iface): + """ + Sets the iface of this PoolsPoolRule. + Interface name the provisioning rule applies to. + + :param iface: The iface of this PoolsPoolRule. + :type: str + """ + + self._iface = iface + + @property + def name(self): + """ + Gets the name of this PoolsPoolRule. + Name of the provisioning rule. + + :return: The name of this PoolsPoolRule. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this PoolsPoolRule. + Name of the provisioning rule. + + :param name: The name of this PoolsPoolRule. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + + self._name = name + + @property + def node_type(self): + """ + Gets the node_type of this PoolsPoolRule. + Node type the provisioning rule applies to. + + :return: The node_type of this PoolsPoolRule. + :rtype: str + """ + return self._node_type + + @node_type.setter + def node_type(self, node_type): + """ + Sets the node_type of this PoolsPoolRule. + Node type the provisioning rule applies to. + + :param node_type: The node_type of this PoolsPoolRule. + :type: str + """ + allowed_values = ["any", "storage", "accelerator", "storage-i", "accelerator-i", "backup-accelerator"] + if node_type not in allowed_values: + raise ValueError( + "Invalid value for `node_type`, must be one of {0}" + .format(allowed_values) + ) + + self._node_type = node_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/pools_pool_rules.py b/isi_sdk/models/pools_pool_rules.py new file mode 100644 index 000000000..93a43a8ef --- /dev/null +++ b/isi_sdk/models/pools_pool_rules.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class PoolsPoolRules(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + PoolsPoolRules - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'rules': 'list[PoolsPoolRulesRule]' + } + + self.attribute_map = { + 'rules': 'rules' + } + + self._rules = None + + @property + def rules(self): + """ + Gets the rules of this PoolsPoolRules. + + + :return: The rules of this PoolsPoolRules. + :rtype: list[PoolsPoolRulesRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this PoolsPoolRules. + + + :param rules: The rules of this PoolsPoolRules. + :type: list[PoolsPoolRulesRule] + """ + + self._rules = rules + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/pools_pool_rules_extended.py b/isi_sdk/models/pools_pool_rules_extended.py new file mode 100644 index 000000000..86cd339eb --- /dev/null +++ b/isi_sdk/models/pools_pool_rules_extended.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class PoolsPoolRulesExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + PoolsPoolRulesExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'rules': 'list[PoolsPoolRulesRule]', + 'resume': 'str', + 'total': 'int' + } + + self.attribute_map = { + 'rules': 'rules', + 'resume': 'resume', + 'total': 'total' + } + + self._rules = None + self._resume = None + self._total = None + + @property + def rules(self): + """ + Gets the rules of this PoolsPoolRulesExtended. + + + :return: The rules of this PoolsPoolRulesExtended. + :rtype: list[PoolsPoolRulesRule] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this PoolsPoolRulesExtended. + + + :param rules: The rules of this PoolsPoolRulesExtended. + :type: list[PoolsPoolRulesRule] + """ + + self._rules = rules + + @property + def resume(self): + """ + Gets the resume of this PoolsPoolRulesExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this PoolsPoolRulesExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this PoolsPoolRulesExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this PoolsPoolRulesExtended. + :type: str + """ + + self._resume = resume + + @property + def total(self): + """ + Gets the total of this PoolsPoolRulesExtended. + Total number of items available. + + :return: The total of this PoolsPoolRulesExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this PoolsPoolRulesExtended. + Total number of items available. + + :param total: The total of this PoolsPoolRulesExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/pools_pool_rules_rule.py b/isi_sdk/models/pools_pool_rules_rule.py new file mode 100644 index 000000000..cb272d4c5 --- /dev/null +++ b/isi_sdk/models/pools_pool_rules_rule.py @@ -0,0 +1,320 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class PoolsPoolRulesRule(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + PoolsPoolRulesRule - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'description': 'str', + 'groupnet': 'str', + 'id': 'str', + 'iface': 'str', + 'name': 'str', + 'node_type': 'str', + 'pool': 'str', + 'subnet': 'str' + } + + self.attribute_map = { + 'description': 'description', + 'groupnet': 'groupnet', + 'id': 'id', + 'iface': 'iface', + 'name': 'name', + 'node_type': 'node_type', + 'pool': 'pool', + 'subnet': 'subnet' + } + + self._description = None + self._groupnet = None + self._id = None + self._iface = None + self._name = None + self._node_type = None + self._pool = None + self._subnet = None + + @property + def description(self): + """ + Gets the description of this PoolsPoolRulesRule. + Description for the provisioning rule. + + :return: The description of this PoolsPoolRulesRule. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this PoolsPoolRulesRule. + Description for the provisioning rule. + + :param description: The description of this PoolsPoolRulesRule. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def groupnet(self): + """ + Gets the groupnet of this PoolsPoolRulesRule. + Name of the groupnet this rule belongs to + + :return: The groupnet of this PoolsPoolRulesRule. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this PoolsPoolRulesRule. + Name of the groupnet this rule belongs to + + :param groupnet: The groupnet of this PoolsPoolRulesRule. + :type: str + """ + + self._groupnet = groupnet + + @property + def id(self): + """ + Gets the id of this PoolsPoolRulesRule. + Unique rule ID. + + :return: The id of this PoolsPoolRulesRule. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this PoolsPoolRulesRule. + Unique rule ID. + + :param id: The id of this PoolsPoolRulesRule. + :type: str + """ + + self._id = id + + @property + def iface(self): + """ + Gets the iface of this PoolsPoolRulesRule. + Interface name the provisioning rule applies to. + + :return: The iface of this PoolsPoolRulesRule. + :rtype: str + """ + return self._iface + + @iface.setter + def iface(self, iface): + """ + Sets the iface of this PoolsPoolRulesRule. + Interface name the provisioning rule applies to. + + :param iface: The iface of this PoolsPoolRulesRule. + :type: str + """ + + self._iface = iface + + @property + def name(self): + """ + Gets the name of this PoolsPoolRulesRule. + Name of the provisioning rule. + + :return: The name of this PoolsPoolRulesRule. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this PoolsPoolRulesRule. + Name of the provisioning rule. + + :param name: The name of this PoolsPoolRulesRule. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + + self._name = name + + @property + def node_type(self): + """ + Gets the node_type of this PoolsPoolRulesRule. + Node type the provisioning rule applies to. + + :return: The node_type of this PoolsPoolRulesRule. + :rtype: str + """ + return self._node_type + + @node_type.setter + def node_type(self, node_type): + """ + Sets the node_type of this PoolsPoolRulesRule. + Node type the provisioning rule applies to. + + :param node_type: The node_type of this PoolsPoolRulesRule. + :type: str + """ + allowed_values = ["any", "storage", "accelerator", "storage-i", "accelerator-i", "backup-accelerator"] + if node_type not in allowed_values: + raise ValueError( + "Invalid value for `node_type`, must be one of {0}" + .format(allowed_values) + ) + + self._node_type = node_type + + @property + def pool(self): + """ + Gets the pool of this PoolsPoolRulesRule. + Name of the pool this rule belongs to. + + :return: The pool of this PoolsPoolRulesRule. + :rtype: str + """ + return self._pool + + @pool.setter + def pool(self, pool): + """ + Sets the pool of this PoolsPoolRulesRule. + Name of the pool this rule belongs to. + + :param pool: The pool of this PoolsPoolRulesRule. + :type: str + """ + + self._pool = pool + + @property + def subnet(self): + """ + Gets the subnet of this PoolsPoolRulesRule. + Name of the subnet this rule belongs to. + + :return: The subnet of this PoolsPoolRulesRule. + :rtype: str + """ + return self._subnet + + @subnet.setter + def subnet(self, subnet): + """ + Sets the subnet of this PoolsPoolRulesRule. + Name of the subnet this rule belongs to. + + :param subnet: The subnet of this PoolsPoolRulesRule. + :type: str + """ + + self._subnet = subnet + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/pools_pool_sc_resume_node.py b/isi_sdk/models/pools_pool_sc_resume_node.py new file mode 100644 index 000000000..4c8a22a2e --- /dev/null +++ b/isi_sdk/models/pools_pool_sc_resume_node.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class PoolsPoolScResumeNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + PoolsPoolScResumeNode - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'lnn': 'list[int]' + } + + self.attribute_map = { + 'lnn': 'lnn' + } + + self._lnn = None + + @property + def lnn(self): + """ + Gets the lnn of this PoolsPoolScResumeNode. + Logical node numbers of the nodes suspended/resumed. + + :return: The lnn of this PoolsPoolScResumeNode. + :rtype: list[int] + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this PoolsPoolScResumeNode. + Logical node numbers of the nodes suspended/resumed. + + :param lnn: The lnn of this PoolsPoolScResumeNode. + :type: list[int] + """ + + self._lnn = lnn + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_ads.py b/isi_sdk/models/providers_ads.py index 50f573306..939ffde3b 100644 --- a/isi_sdk/models/providers_ads.py +++ b/isi_sdk/models/providers_ads.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersAds(object): @@ -37,7 +38,7 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'ads': 'list[ProvidersAdExtended]' + 'ads': 'list[ProvidersAdsAdsItem]' } self.attribute_map = { @@ -53,7 +54,7 @@ def ads(self): :return: The ads of this ProvidersAds. - :rtype: list[ProvidersAdExtended] + :rtype: list[ProvidersAdsAdsItem] """ return self._ads @@ -64,8 +65,9 @@ def ads(self, ads): :param ads: The ads of this ProvidersAds. - :type: list[ProvidersAdExtended] + :type: list[ProvidersAdsAdsItem] """ + self._ads = ads def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_ads_ads_item.py b/isi_sdk/models/providers_ads_ads_item.py new file mode 100644 index 000000000..622fa17e8 --- /dev/null +++ b/isi_sdk/models/providers_ads_ads_item.py @@ -0,0 +1,1305 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersAdsAdsItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersAdsAdsItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allocate_gids': 'bool', + 'allocate_uids': 'bool', + 'assume_default_domain': 'bool', + 'authentication': 'bool', + 'check_online_interval': 'int', + 'controller_time': 'int', + 'create_home_directory': 'bool', + 'domain_offline_alerts': 'bool', + 'findable_groups': 'list[str]', + 'findable_users': 'list[str]', + 'forest': 'str', + 'groupnet': 'str', + 'home_directory_template': 'str', + 'hostname': 'str', + 'id': 'str', + 'ignore_all_trusts': 'bool', + 'ignored_trusted_domains': 'list[str]', + 'include_trusted_domains': 'list[str]', + 'instance': 'str', + 'ldap_sign_and_seal': 'bool', + 'login_shell': 'str', + 'lookup_domains': 'list[str]', + 'lookup_groups': 'bool', + 'lookup_normalize_groups': 'bool', + 'lookup_normalize_users': 'bool', + 'lookup_users': 'bool', + 'machine_account': 'str', + 'machine_name': 'str', + 'machine_password_changes': 'bool', + 'machine_password_lifespan': 'int', + 'name': 'str', + 'netbios_domain': 'str', + 'node_dc_affinity': 'str', + 'node_dc_affinity_timeout': 'int', + 'nss_enumeration': 'bool', + 'primary_domain': 'str', + 'recommended_spns': 'list[str]', + 'restrict_findable': 'bool', + 'sfu_support': 'str', + 'site': 'str', + 'spns': 'list[str]', + 'status': 'str', + 'store_sfu_mappings': 'bool', + 'system': 'bool', + 'unfindable_groups': 'list[str]', + 'unfindable_users': 'list[str]' + } + + self.attribute_map = { + 'allocate_gids': 'allocate_gids', + 'allocate_uids': 'allocate_uids', + 'assume_default_domain': 'assume_default_domain', + 'authentication': 'authentication', + 'check_online_interval': 'check_online_interval', + 'controller_time': 'controller_time', + 'create_home_directory': 'create_home_directory', + 'domain_offline_alerts': 'domain_offline_alerts', + 'findable_groups': 'findable_groups', + 'findable_users': 'findable_users', + 'forest': 'forest', + 'groupnet': 'groupnet', + 'home_directory_template': 'home_directory_template', + 'hostname': 'hostname', + 'id': 'id', + 'ignore_all_trusts': 'ignore_all_trusts', + 'ignored_trusted_domains': 'ignored_trusted_domains', + 'include_trusted_domains': 'include_trusted_domains', + 'instance': 'instance', + 'ldap_sign_and_seal': 'ldap_sign_and_seal', + 'login_shell': 'login_shell', + 'lookup_domains': 'lookup_domains', + 'lookup_groups': 'lookup_groups', + 'lookup_normalize_groups': 'lookup_normalize_groups', + 'lookup_normalize_users': 'lookup_normalize_users', + 'lookup_users': 'lookup_users', + 'machine_account': 'machine_account', + 'machine_name': 'machine_name', + 'machine_password_changes': 'machine_password_changes', + 'machine_password_lifespan': 'machine_password_lifespan', + 'name': 'name', + 'netbios_domain': 'netbios_domain', + 'node_dc_affinity': 'node_dc_affinity', + 'node_dc_affinity_timeout': 'node_dc_affinity_timeout', + 'nss_enumeration': 'nss_enumeration', + 'primary_domain': 'primary_domain', + 'recommended_spns': 'recommended_spns', + 'restrict_findable': 'restrict_findable', + 'sfu_support': 'sfu_support', + 'site': 'site', + 'spns': 'spns', + 'status': 'status', + 'store_sfu_mappings': 'store_sfu_mappings', + 'system': 'system', + 'unfindable_groups': 'unfindable_groups', + 'unfindable_users': 'unfindable_users' + } + + self._allocate_gids = None + self._allocate_uids = None + self._assume_default_domain = None + self._authentication = None + self._check_online_interval = None + self._controller_time = None + self._create_home_directory = None + self._domain_offline_alerts = None + self._findable_groups = None + self._findable_users = None + self._forest = None + self._groupnet = None + self._home_directory_template = None + self._hostname = None + self._id = None + self._ignore_all_trusts = None + self._ignored_trusted_domains = None + self._include_trusted_domains = None + self._instance = None + self._ldap_sign_and_seal = None + self._login_shell = None + self._lookup_domains = None + self._lookup_groups = None + self._lookup_normalize_groups = None + self._lookup_normalize_users = None + self._lookup_users = None + self._machine_account = None + self._machine_name = None + self._machine_password_changes = None + self._machine_password_lifespan = None + self._name = None + self._netbios_domain = None + self._node_dc_affinity = None + self._node_dc_affinity_timeout = None + self._nss_enumeration = None + self._primary_domain = None + self._recommended_spns = None + self._restrict_findable = None + self._sfu_support = None + self._site = None + self._spns = None + self._status = None + self._store_sfu_mappings = None + self._system = None + self._unfindable_groups = None + self._unfindable_users = None + + @property + def allocate_gids(self): + """ + Gets the allocate_gids of this ProvidersAdsAdsItem. + Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. + + :return: The allocate_gids of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._allocate_gids + + @allocate_gids.setter + def allocate_gids(self, allocate_gids): + """ + Sets the allocate_gids of this ProvidersAdsAdsItem. + Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. + + :param allocate_gids: The allocate_gids of this ProvidersAdsAdsItem. + :type: bool + """ + + self._allocate_gids = allocate_gids + + @property + def allocate_uids(self): + """ + Gets the allocate_uids of this ProvidersAdsAdsItem. + Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. + + :return: The allocate_uids of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._allocate_uids + + @allocate_uids.setter + def allocate_uids(self, allocate_uids): + """ + Sets the allocate_uids of this ProvidersAdsAdsItem. + Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. + + :param allocate_uids: The allocate_uids of this ProvidersAdsAdsItem. + :type: bool + """ + + self._allocate_uids = allocate_uids + + @property + def assume_default_domain(self): + """ + Gets the assume_default_domain of this ProvidersAdsAdsItem. + Enables lookup of unqualified user names in the primary domain. + + :return: The assume_default_domain of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._assume_default_domain + + @assume_default_domain.setter + def assume_default_domain(self, assume_default_domain): + """ + Sets the assume_default_domain of this ProvidersAdsAdsItem. + Enables lookup of unqualified user names in the primary domain. + + :param assume_default_domain: The assume_default_domain of this ProvidersAdsAdsItem. + :type: bool + """ + + self._assume_default_domain = assume_default_domain + + @property + def authentication(self): + """ + Gets the authentication of this ProvidersAdsAdsItem. + Enables authentication and identity management through the authentication provider. + + :return: The authentication of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """ + Sets the authentication of this ProvidersAdsAdsItem. + Enables authentication and identity management through the authentication provider. + + :param authentication: The authentication of this ProvidersAdsAdsItem. + :type: bool + """ + + self._authentication = authentication + + @property + def check_online_interval(self): + """ + Gets the check_online_interval of this ProvidersAdsAdsItem. + Specifies the time in seconds between provider online checks. + + :return: The check_online_interval of this ProvidersAdsAdsItem. + :rtype: int + """ + return self._check_online_interval + + @check_online_interval.setter + def check_online_interval(self, check_online_interval): + """ + Sets the check_online_interval of this ProvidersAdsAdsItem. + Specifies the time in seconds between provider online checks. + + :param check_online_interval: The check_online_interval of this ProvidersAdsAdsItem. + :type: int + """ + + self._check_online_interval = check_online_interval + + @property + def controller_time(self): + """ + Gets the controller_time of this ProvidersAdsAdsItem. + Specifies the current time for the domain controllers. + + :return: The controller_time of this ProvidersAdsAdsItem. + :rtype: int + """ + return self._controller_time + + @controller_time.setter + def controller_time(self, controller_time): + """ + Sets the controller_time of this ProvidersAdsAdsItem. + Specifies the current time for the domain controllers. + + :param controller_time: The controller_time of this ProvidersAdsAdsItem. + :type: int + """ + + self._controller_time = controller_time + + @property + def create_home_directory(self): + """ + Gets the create_home_directory of this ProvidersAdsAdsItem. + Automatically creates a home directory on the first login. + + :return: The create_home_directory of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._create_home_directory + + @create_home_directory.setter + def create_home_directory(self, create_home_directory): + """ + Sets the create_home_directory of this ProvidersAdsAdsItem. + Automatically creates a home directory on the first login. + + :param create_home_directory: The create_home_directory of this ProvidersAdsAdsItem. + :type: bool + """ + + self._create_home_directory = create_home_directory + + @property + def domain_offline_alerts(self): + """ + Gets the domain_offline_alerts of this ProvidersAdsAdsItem. + Sends an alert if the domain goes offline. + + :return: The domain_offline_alerts of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._domain_offline_alerts + + @domain_offline_alerts.setter + def domain_offline_alerts(self, domain_offline_alerts): + """ + Sets the domain_offline_alerts of this ProvidersAdsAdsItem. + Sends an alert if the domain goes offline. + + :param domain_offline_alerts: The domain_offline_alerts of this ProvidersAdsAdsItem. + :type: bool + """ + + self._domain_offline_alerts = domain_offline_alerts + + @property + def findable_groups(self): + """ + Gets the findable_groups of this ProvidersAdsAdsItem. + Sets list of groups that can be resolved. + + :return: The findable_groups of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._findable_groups + + @findable_groups.setter + def findable_groups(self, findable_groups): + """ + Sets the findable_groups of this ProvidersAdsAdsItem. + Sets list of groups that can be resolved. + + :param findable_groups: The findable_groups of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._findable_groups = findable_groups + + @property + def findable_users(self): + """ + Gets the findable_users of this ProvidersAdsAdsItem. + Sets list of users that can be resolved. + + :return: The findable_users of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._findable_users + + @findable_users.setter + def findable_users(self, findable_users): + """ + Sets the findable_users of this ProvidersAdsAdsItem. + Sets list of users that can be resolved. + + :param findable_users: The findable_users of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._findable_users = findable_users + + @property + def forest(self): + """ + Gets the forest of this ProvidersAdsAdsItem. + Specifies the Active Directory forest. + + :return: The forest of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._forest + + @forest.setter + def forest(self, forest): + """ + Sets the forest of this ProvidersAdsAdsItem. + Specifies the Active Directory forest. + + :param forest: The forest of this ProvidersAdsAdsItem. + :type: str + """ + + self._forest = forest + + @property + def groupnet(self): + """ + Gets the groupnet of this ProvidersAdsAdsItem. + Groupnet identifier. + + :return: The groupnet of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this ProvidersAdsAdsItem. + Groupnet identifier. + + :param groupnet: The groupnet of this ProvidersAdsAdsItem. + :type: str + """ + + self._groupnet = groupnet + + @property + def home_directory_template(self): + """ + Gets the home_directory_template of this ProvidersAdsAdsItem. + Specifies the path to the home directory template. + + :return: The home_directory_template of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._home_directory_template + + @home_directory_template.setter + def home_directory_template(self, home_directory_template): + """ + Sets the home_directory_template of this ProvidersAdsAdsItem. + Specifies the path to the home directory template. + + :param home_directory_template: The home_directory_template of this ProvidersAdsAdsItem. + :type: str + """ + + self._home_directory_template = home_directory_template + + @property + def hostname(self): + """ + Gets the hostname of this ProvidersAdsAdsItem. + Specifies the fully qualified hostname stored in the machine account. + + :return: The hostname of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this ProvidersAdsAdsItem. + Specifies the fully qualified hostname stored in the machine account. + + :param hostname: The hostname of this ProvidersAdsAdsItem. + :type: str + """ + + self._hostname = hostname + + @property + def id(self): + """ + Gets the id of this ProvidersAdsAdsItem. + Specifies the ID of the Active Directory provider instance. + + :return: The id of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ProvidersAdsAdsItem. + Specifies the ID of the Active Directory provider instance. + + :param id: The id of this ProvidersAdsAdsItem. + :type: str + """ + + self._id = id + + @property + def ignore_all_trusts(self): + """ + Gets the ignore_all_trusts of this ProvidersAdsAdsItem. + If set to true, ignores all trusted domains. + + :return: The ignore_all_trusts of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._ignore_all_trusts + + @ignore_all_trusts.setter + def ignore_all_trusts(self, ignore_all_trusts): + """ + Sets the ignore_all_trusts of this ProvidersAdsAdsItem. + If set to true, ignores all trusted domains. + + :param ignore_all_trusts: The ignore_all_trusts of this ProvidersAdsAdsItem. + :type: bool + """ + + self._ignore_all_trusts = ignore_all_trusts + + @property + def ignored_trusted_domains(self): + """ + Gets the ignored_trusted_domains of this ProvidersAdsAdsItem. + Includes trusted domains when 'ignore_all_trusts' is set to false. + + :return: The ignored_trusted_domains of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._ignored_trusted_domains + + @ignored_trusted_domains.setter + def ignored_trusted_domains(self, ignored_trusted_domains): + """ + Sets the ignored_trusted_domains of this ProvidersAdsAdsItem. + Includes trusted domains when 'ignore_all_trusts' is set to false. + + :param ignored_trusted_domains: The ignored_trusted_domains of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._ignored_trusted_domains = ignored_trusted_domains + + @property + def include_trusted_domains(self): + """ + Gets the include_trusted_domains of this ProvidersAdsAdsItem. + Includes trusted domains when 'ignore_all_trusts' is set to true. + + :return: The include_trusted_domains of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._include_trusted_domains + + @include_trusted_domains.setter + def include_trusted_domains(self, include_trusted_domains): + """ + Sets the include_trusted_domains of this ProvidersAdsAdsItem. + Includes trusted domains when 'ignore_all_trusts' is set to true. + + :param include_trusted_domains: The include_trusted_domains of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._include_trusted_domains = include_trusted_domains + + @property + def instance(self): + """ + Gets the instance of this ProvidersAdsAdsItem. + Specifies Active Directory provider instnace. + + :return: The instance of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """ + Sets the instance of this ProvidersAdsAdsItem. + Specifies Active Directory provider instnace. + + :param instance: The instance of this ProvidersAdsAdsItem. + :type: str + """ + + self._instance = instance + + @property + def ldap_sign_and_seal(self): + """ + Gets the ldap_sign_and_seal of this ProvidersAdsAdsItem. + Enables encryption and signing on LDAP requests. + + :return: The ldap_sign_and_seal of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._ldap_sign_and_seal + + @ldap_sign_and_seal.setter + def ldap_sign_and_seal(self, ldap_sign_and_seal): + """ + Sets the ldap_sign_and_seal of this ProvidersAdsAdsItem. + Enables encryption and signing on LDAP requests. + + :param ldap_sign_and_seal: The ldap_sign_and_seal of this ProvidersAdsAdsItem. + :type: bool + """ + + self._ldap_sign_and_seal = ldap_sign_and_seal + + @property + def login_shell(self): + """ + Gets the login_shell of this ProvidersAdsAdsItem. + Specifies the login shell path. + + :return: The login_shell of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._login_shell + + @login_shell.setter + def login_shell(self, login_shell): + """ + Sets the login_shell of this ProvidersAdsAdsItem. + Specifies the login shell path. + + :param login_shell: The login_shell of this ProvidersAdsAdsItem. + :type: str + """ + + self._login_shell = login_shell + + @property + def lookup_domains(self): + """ + Gets the lookup_domains of this ProvidersAdsAdsItem. + Limits user and group lookups to the specified domains. + + :return: The lookup_domains of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._lookup_domains + + @lookup_domains.setter + def lookup_domains(self, lookup_domains): + """ + Sets the lookup_domains of this ProvidersAdsAdsItem. + Limits user and group lookups to the specified domains. + + :param lookup_domains: The lookup_domains of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._lookup_domains = lookup_domains + + @property + def lookup_groups(self): + """ + Gets the lookup_groups of this ProvidersAdsAdsItem. + Looks up AD groups in other providers before allocating a group ID. + + :return: The lookup_groups of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._lookup_groups + + @lookup_groups.setter + def lookup_groups(self, lookup_groups): + """ + Sets the lookup_groups of this ProvidersAdsAdsItem. + Looks up AD groups in other providers before allocating a group ID. + + :param lookup_groups: The lookup_groups of this ProvidersAdsAdsItem. + :type: bool + """ + + self._lookup_groups = lookup_groups + + @property + def lookup_normalize_groups(self): + """ + Gets the lookup_normalize_groups of this ProvidersAdsAdsItem. + Normalizes AD group names to lowercase before look up. + + :return: The lookup_normalize_groups of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._lookup_normalize_groups + + @lookup_normalize_groups.setter + def lookup_normalize_groups(self, lookup_normalize_groups): + """ + Sets the lookup_normalize_groups of this ProvidersAdsAdsItem. + Normalizes AD group names to lowercase before look up. + + :param lookup_normalize_groups: The lookup_normalize_groups of this ProvidersAdsAdsItem. + :type: bool + """ + + self._lookup_normalize_groups = lookup_normalize_groups + + @property + def lookup_normalize_users(self): + """ + Gets the lookup_normalize_users of this ProvidersAdsAdsItem. + Normalize AD user names to lowercase before look up. + + :return: The lookup_normalize_users of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._lookup_normalize_users + + @lookup_normalize_users.setter + def lookup_normalize_users(self, lookup_normalize_users): + """ + Sets the lookup_normalize_users of this ProvidersAdsAdsItem. + Normalize AD user names to lowercase before look up. + + :param lookup_normalize_users: The lookup_normalize_users of this ProvidersAdsAdsItem. + :type: bool + """ + + self._lookup_normalize_users = lookup_normalize_users + + @property + def lookup_users(self): + """ + Gets the lookup_users of this ProvidersAdsAdsItem. + Looks up AD users in other providers before allocating a user ID. + + :return: The lookup_users of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._lookup_users + + @lookup_users.setter + def lookup_users(self, lookup_users): + """ + Sets the lookup_users of this ProvidersAdsAdsItem. + Looks up AD users in other providers before allocating a user ID. + + :param lookup_users: The lookup_users of this ProvidersAdsAdsItem. + :type: bool + """ + + self._lookup_users = lookup_users + + @property + def machine_account(self): + """ + Gets the machine_account of this ProvidersAdsAdsItem. + Specifies the SAM account name of the machine account. + + :return: The machine_account of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._machine_account + + @machine_account.setter + def machine_account(self, machine_account): + """ + Sets the machine_account of this ProvidersAdsAdsItem. + Specifies the SAM account name of the machine account. + + :param machine_account: The machine_account of this ProvidersAdsAdsItem. + :type: str + """ + + self._machine_account = machine_account + + @property + def machine_name(self): + """ + Gets the machine_name of this ProvidersAdsAdsItem. + Specifies name to join AD as. + + :return: The machine_name of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._machine_name + + @machine_name.setter + def machine_name(self, machine_name): + """ + Sets the machine_name of this ProvidersAdsAdsItem. + Specifies name to join AD as. + + :param machine_name: The machine_name of this ProvidersAdsAdsItem. + :type: str + """ + + self._machine_name = machine_name + + @property + def machine_password_changes(self): + """ + Gets the machine_password_changes of this ProvidersAdsAdsItem. + Enables periodic changes of the machine password for security. + + :return: The machine_password_changes of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._machine_password_changes + + @machine_password_changes.setter + def machine_password_changes(self, machine_password_changes): + """ + Sets the machine_password_changes of this ProvidersAdsAdsItem. + Enables periodic changes of the machine password for security. + + :param machine_password_changes: The machine_password_changes of this ProvidersAdsAdsItem. + :type: bool + """ + + self._machine_password_changes = machine_password_changes + + @property + def machine_password_lifespan(self): + """ + Gets the machine_password_lifespan of this ProvidersAdsAdsItem. + Sets maximum age of a password in seconds. + + :return: The machine_password_lifespan of this ProvidersAdsAdsItem. + :rtype: int + """ + return self._machine_password_lifespan + + @machine_password_lifespan.setter + def machine_password_lifespan(self, machine_password_lifespan): + """ + Sets the machine_password_lifespan of this ProvidersAdsAdsItem. + Sets maximum age of a password in seconds. + + :param machine_password_lifespan: The machine_password_lifespan of this ProvidersAdsAdsItem. + :type: int + """ + + if not machine_password_lifespan: + raise ValueError("Invalid value for `machine_password_lifespan`, must not be `None`") + if machine_password_lifespan > 3.1536E7: + raise ValueError("Invalid value for `machine_password_lifespan`, must be a value less than or equal to `3.1536E7`") + if machine_password_lifespan < 3600.0: + raise ValueError("Invalid value for `machine_password_lifespan`, must be a value greater than or equal to `3600.0`") + + self._machine_password_lifespan = machine_password_lifespan + + @property + def name(self): + """ + Gets the name of this ProvidersAdsAdsItem. + Specifies the Active Directory provider name. + + :return: The name of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ProvidersAdsAdsItem. + Specifies the Active Directory provider name. + + :param name: The name of this ProvidersAdsAdsItem. + :type: str + """ + + self._name = name + + @property + def netbios_domain(self): + """ + Gets the netbios_domain of this ProvidersAdsAdsItem. + Specifies the NetBIOS domain name associated with the machine account. + + :return: The netbios_domain of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._netbios_domain + + @netbios_domain.setter + def netbios_domain(self, netbios_domain): + """ + Sets the netbios_domain of this ProvidersAdsAdsItem. + Specifies the NetBIOS domain name associated with the machine account. + + :param netbios_domain: The netbios_domain of this ProvidersAdsAdsItem. + :type: str + """ + + self._netbios_domain = netbios_domain + + @property + def node_dc_affinity(self): + """ + Gets the node_dc_affinity of this ProvidersAdsAdsItem. + Specifies the domain controller for which the node has affinity. + + :return: The node_dc_affinity of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._node_dc_affinity + + @node_dc_affinity.setter + def node_dc_affinity(self, node_dc_affinity): + """ + Sets the node_dc_affinity of this ProvidersAdsAdsItem. + Specifies the domain controller for which the node has affinity. + + :param node_dc_affinity: The node_dc_affinity of this ProvidersAdsAdsItem. + :type: str + """ + + self._node_dc_affinity = node_dc_affinity + + @property + def node_dc_affinity_timeout(self): + """ + Gets the node_dc_affinity_timeout of this ProvidersAdsAdsItem. + Specifies the timeout for the domain controller for which the local node has affinity. + + :return: The node_dc_affinity_timeout of this ProvidersAdsAdsItem. + :rtype: int + """ + return self._node_dc_affinity_timeout + + @node_dc_affinity_timeout.setter + def node_dc_affinity_timeout(self, node_dc_affinity_timeout): + """ + Sets the node_dc_affinity_timeout of this ProvidersAdsAdsItem. + Specifies the timeout for the domain controller for which the local node has affinity. + + :param node_dc_affinity_timeout: The node_dc_affinity_timeout of this ProvidersAdsAdsItem. + :type: int + """ + + self._node_dc_affinity_timeout = node_dc_affinity_timeout + + @property + def nss_enumeration(self): + """ + Gets the nss_enumeration of this ProvidersAdsAdsItem. + Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. + + :return: The nss_enumeration of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._nss_enumeration + + @nss_enumeration.setter + def nss_enumeration(self, nss_enumeration): + """ + Sets the nss_enumeration of this ProvidersAdsAdsItem. + Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. + + :param nss_enumeration: The nss_enumeration of this ProvidersAdsAdsItem. + :type: bool + """ + + self._nss_enumeration = nss_enumeration + + @property + def primary_domain(self): + """ + Gets the primary_domain of this ProvidersAdsAdsItem. + Specifies the AD domain to which the provider is joined. + + :return: The primary_domain of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._primary_domain + + @primary_domain.setter + def primary_domain(self, primary_domain): + """ + Sets the primary_domain of this ProvidersAdsAdsItem. + Specifies the AD domain to which the provider is joined. + + :param primary_domain: The primary_domain of this ProvidersAdsAdsItem. + :type: str + """ + + self._primary_domain = primary_domain + + @property + def recommended_spns(self): + """ + Gets the recommended_spns of this ProvidersAdsAdsItem. + Configuration recommended SPNs. + + :return: The recommended_spns of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._recommended_spns + + @recommended_spns.setter + def recommended_spns(self, recommended_spns): + """ + Sets the recommended_spns of this ProvidersAdsAdsItem. + Configuration recommended SPNs. + + :param recommended_spns: The recommended_spns of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._recommended_spns = recommended_spns + + @property + def restrict_findable(self): + """ + Gets the restrict_findable of this ProvidersAdsAdsItem. + Check the provider for filtered lists of findable and unfindable users and groups. + + :return: The restrict_findable of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._restrict_findable + + @restrict_findable.setter + def restrict_findable(self, restrict_findable): + """ + Sets the restrict_findable of this ProvidersAdsAdsItem. + Check the provider for filtered lists of findable and unfindable users and groups. + + :param restrict_findable: The restrict_findable of this ProvidersAdsAdsItem. + :type: bool + """ + + self._restrict_findable = restrict_findable + + @property + def sfu_support(self): + """ + Gets the sfu_support of this ProvidersAdsAdsItem. + Specifies whether to support RFC 2307 attributes on ADS domain controllers. + + :return: The sfu_support of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._sfu_support + + @sfu_support.setter + def sfu_support(self, sfu_support): + """ + Sets the sfu_support of this ProvidersAdsAdsItem. + Specifies whether to support RFC 2307 attributes on ADS domain controllers. + + :param sfu_support: The sfu_support of this ProvidersAdsAdsItem. + :type: str + """ + allowed_values = ["none", "rfc2307"] + if sfu_support not in allowed_values: + raise ValueError( + "Invalid value for `sfu_support`, must be one of {0}" + .format(allowed_values) + ) + + self._sfu_support = sfu_support + + @property + def site(self): + """ + Gets the site of this ProvidersAdsAdsItem. + Specifies the site for the Active Directory. + + :return: The site of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._site + + @site.setter + def site(self, site): + """ + Sets the site of this ProvidersAdsAdsItem. + Specifies the site for the Active Directory. + + :param site: The site of this ProvidersAdsAdsItem. + :type: str + """ + + self._site = site + + @property + def spns(self): + """ + Gets the spns of this ProvidersAdsAdsItem. + Currently configured SPNs. + + :return: The spns of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._spns + + @spns.setter + def spns(self, spns): + """ + Sets the spns of this ProvidersAdsAdsItem. + Currently configured SPNs. + + :param spns: The spns of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._spns = spns + + @property + def status(self): + """ + Gets the status of this ProvidersAdsAdsItem. + Specifies the status of the provider. + + :return: The status of this ProvidersAdsAdsItem. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ProvidersAdsAdsItem. + Specifies the status of the provider. + + :param status: The status of this ProvidersAdsAdsItem. + :type: str + """ + + self._status = status + + @property + def store_sfu_mappings(self): + """ + Gets the store_sfu_mappings of this ProvidersAdsAdsItem. + Stores SFU mappings permanently in the ID mapper. + + :return: The store_sfu_mappings of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._store_sfu_mappings + + @store_sfu_mappings.setter + def store_sfu_mappings(self, store_sfu_mappings): + """ + Sets the store_sfu_mappings of this ProvidersAdsAdsItem. + Stores SFU mappings permanently in the ID mapper. + + :param store_sfu_mappings: The store_sfu_mappings of this ProvidersAdsAdsItem. + :type: bool + """ + + self._store_sfu_mappings = store_sfu_mappings + + @property + def system(self): + """ + Gets the system of this ProvidersAdsAdsItem. + If set to true, indicates that this provider instance was created by OneFS and cannot be removed. + + :return: The system of this ProvidersAdsAdsItem. + :rtype: bool + """ + return self._system + + @system.setter + def system(self, system): + """ + Sets the system of this ProvidersAdsAdsItem. + If set to true, indicates that this provider instance was created by OneFS and cannot be removed. + + :param system: The system of this ProvidersAdsAdsItem. + :type: bool + """ + + self._system = system + + @property + def unfindable_groups(self): + """ + Gets the unfindable_groups of this ProvidersAdsAdsItem. + Specifies groups that cannot be resolved by the provider. + + :return: The unfindable_groups of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._unfindable_groups + + @unfindable_groups.setter + def unfindable_groups(self, unfindable_groups): + """ + Sets the unfindable_groups of this ProvidersAdsAdsItem. + Specifies groups that cannot be resolved by the provider. + + :param unfindable_groups: The unfindable_groups of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._unfindable_groups = unfindable_groups + + @property + def unfindable_users(self): + """ + Gets the unfindable_users of this ProvidersAdsAdsItem. + Specifies users that cannot be resolved by the provider. + + :return: The unfindable_users of this ProvidersAdsAdsItem. + :rtype: list[str] + """ + return self._unfindable_users + + @unfindable_users.setter + def unfindable_users(self, unfindable_users): + """ + Sets the unfindable_users of this ProvidersAdsAdsItem. + Specifies users that cannot be resolved by the provider. + + :param unfindable_users: The unfindable_users of this ProvidersAdsAdsItem. + :type: list[str] + """ + + self._unfindable_users = unfindable_users + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_ads_ads_item_extended.py b/isi_sdk/models/providers_ads_ads_item_extended.py new file mode 100644 index 000000000..db9f78b89 --- /dev/null +++ b/isi_sdk/models/providers_ads_ads_item_extended.py @@ -0,0 +1,1253 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersAdsAdsItemExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersAdsAdsItemExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allocate_gids': 'bool', + 'allocate_uids': 'bool', + 'assume_default_domain': 'bool', + 'authentication': 'bool', + 'check_online_interval': 'int', + 'controller_time': 'int', + 'create_home_directory': 'bool', + 'domain_offline_alerts': 'bool', + 'findable_groups': 'list[str]', + 'findable_users': 'list[str]', + 'forest': 'str', + 'groupnet': 'str', + 'home_directory_template': 'str', + 'hostname': 'str', + 'id': 'str', + 'ignore_all_trusts': 'bool', + 'ignored_trusted_domains': 'list[str]', + 'include_trusted_domains': 'list[str]', + 'instance': 'str', + 'ldap_sign_and_seal': 'bool', + 'login_shell': 'str', + 'lookup_domains': 'list[str]', + 'lookup_groups': 'bool', + 'lookup_normalize_groups': 'bool', + 'lookup_normalize_users': 'bool', + 'lookup_users': 'bool', + 'machine_account': 'str', + 'machine_name': 'str', + 'machine_password_changes': 'bool', + 'machine_password_lifespan': 'int', + 'name': 'str', + 'netbios_domain': 'str', + 'node_dc_affinity': 'str', + 'node_dc_affinity_timeout': 'int', + 'nss_enumeration': 'bool', + 'primary_domain': 'str', + 'restrict_findable': 'bool', + 'sfu_support': 'str', + 'site': 'str', + 'status': 'str', + 'store_sfu_mappings': 'bool', + 'system': 'bool', + 'unfindable_groups': 'list[str]', + 'unfindable_users': 'list[str]' + } + + self.attribute_map = { + 'allocate_gids': 'allocate_gids', + 'allocate_uids': 'allocate_uids', + 'assume_default_domain': 'assume_default_domain', + 'authentication': 'authentication', + 'check_online_interval': 'check_online_interval', + 'controller_time': 'controller_time', + 'create_home_directory': 'create_home_directory', + 'domain_offline_alerts': 'domain_offline_alerts', + 'findable_groups': 'findable_groups', + 'findable_users': 'findable_users', + 'forest': 'forest', + 'groupnet': 'groupnet', + 'home_directory_template': 'home_directory_template', + 'hostname': 'hostname', + 'id': 'id', + 'ignore_all_trusts': 'ignore_all_trusts', + 'ignored_trusted_domains': 'ignored_trusted_domains', + 'include_trusted_domains': 'include_trusted_domains', + 'instance': 'instance', + 'ldap_sign_and_seal': 'ldap_sign_and_seal', + 'login_shell': 'login_shell', + 'lookup_domains': 'lookup_domains', + 'lookup_groups': 'lookup_groups', + 'lookup_normalize_groups': 'lookup_normalize_groups', + 'lookup_normalize_users': 'lookup_normalize_users', + 'lookup_users': 'lookup_users', + 'machine_account': 'machine_account', + 'machine_name': 'machine_name', + 'machine_password_changes': 'machine_password_changes', + 'machine_password_lifespan': 'machine_password_lifespan', + 'name': 'name', + 'netbios_domain': 'netbios_domain', + 'node_dc_affinity': 'node_dc_affinity', + 'node_dc_affinity_timeout': 'node_dc_affinity_timeout', + 'nss_enumeration': 'nss_enumeration', + 'primary_domain': 'primary_domain', + 'restrict_findable': 'restrict_findable', + 'sfu_support': 'sfu_support', + 'site': 'site', + 'status': 'status', + 'store_sfu_mappings': 'store_sfu_mappings', + 'system': 'system', + 'unfindable_groups': 'unfindable_groups', + 'unfindable_users': 'unfindable_users' + } + + self._allocate_gids = None + self._allocate_uids = None + self._assume_default_domain = None + self._authentication = None + self._check_online_interval = None + self._controller_time = None + self._create_home_directory = None + self._domain_offline_alerts = None + self._findable_groups = None + self._findable_users = None + self._forest = None + self._groupnet = None + self._home_directory_template = None + self._hostname = None + self._id = None + self._ignore_all_trusts = None + self._ignored_trusted_domains = None + self._include_trusted_domains = None + self._instance = None + self._ldap_sign_and_seal = None + self._login_shell = None + self._lookup_domains = None + self._lookup_groups = None + self._lookup_normalize_groups = None + self._lookup_normalize_users = None + self._lookup_users = None + self._machine_account = None + self._machine_name = None + self._machine_password_changes = None + self._machine_password_lifespan = None + self._name = None + self._netbios_domain = None + self._node_dc_affinity = None + self._node_dc_affinity_timeout = None + self._nss_enumeration = None + self._primary_domain = None + self._restrict_findable = None + self._sfu_support = None + self._site = None + self._status = None + self._store_sfu_mappings = None + self._system = None + self._unfindable_groups = None + self._unfindable_users = None + + @property + def allocate_gids(self): + """ + Gets the allocate_gids of this ProvidersAdsAdsItemExtended. + Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. + + :return: The allocate_gids of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._allocate_gids + + @allocate_gids.setter + def allocate_gids(self, allocate_gids): + """ + Sets the allocate_gids of this ProvidersAdsAdsItemExtended. + Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. + + :param allocate_gids: The allocate_gids of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._allocate_gids = allocate_gids + + @property + def allocate_uids(self): + """ + Gets the allocate_uids of this ProvidersAdsAdsItemExtended. + Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. + + :return: The allocate_uids of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._allocate_uids + + @allocate_uids.setter + def allocate_uids(self, allocate_uids): + """ + Sets the allocate_uids of this ProvidersAdsAdsItemExtended. + Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. + + :param allocate_uids: The allocate_uids of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._allocate_uids = allocate_uids + + @property + def assume_default_domain(self): + """ + Gets the assume_default_domain of this ProvidersAdsAdsItemExtended. + Enables lookup of unqualified user names in the primary domain. + + :return: The assume_default_domain of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._assume_default_domain + + @assume_default_domain.setter + def assume_default_domain(self, assume_default_domain): + """ + Sets the assume_default_domain of this ProvidersAdsAdsItemExtended. + Enables lookup of unqualified user names in the primary domain. + + :param assume_default_domain: The assume_default_domain of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._assume_default_domain = assume_default_domain + + @property + def authentication(self): + """ + Gets the authentication of this ProvidersAdsAdsItemExtended. + Enables authentication and identity management through the authentication provider. + + :return: The authentication of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """ + Sets the authentication of this ProvidersAdsAdsItemExtended. + Enables authentication and identity management through the authentication provider. + + :param authentication: The authentication of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._authentication = authentication + + @property + def check_online_interval(self): + """ + Gets the check_online_interval of this ProvidersAdsAdsItemExtended. + Specifies the time in seconds between provider online checks. + + :return: The check_online_interval of this ProvidersAdsAdsItemExtended. + :rtype: int + """ + return self._check_online_interval + + @check_online_interval.setter + def check_online_interval(self, check_online_interval): + """ + Sets the check_online_interval of this ProvidersAdsAdsItemExtended. + Specifies the time in seconds between provider online checks. + + :param check_online_interval: The check_online_interval of this ProvidersAdsAdsItemExtended. + :type: int + """ + + self._check_online_interval = check_online_interval + + @property + def controller_time(self): + """ + Gets the controller_time of this ProvidersAdsAdsItemExtended. + Specifies the current time for the domain controllers. + + :return: The controller_time of this ProvidersAdsAdsItemExtended. + :rtype: int + """ + return self._controller_time + + @controller_time.setter + def controller_time(self, controller_time): + """ + Sets the controller_time of this ProvidersAdsAdsItemExtended. + Specifies the current time for the domain controllers. + + :param controller_time: The controller_time of this ProvidersAdsAdsItemExtended. + :type: int + """ + + self._controller_time = controller_time + + @property + def create_home_directory(self): + """ + Gets the create_home_directory of this ProvidersAdsAdsItemExtended. + Automatically creates a home directory on the first login. + + :return: The create_home_directory of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._create_home_directory + + @create_home_directory.setter + def create_home_directory(self, create_home_directory): + """ + Sets the create_home_directory of this ProvidersAdsAdsItemExtended. + Automatically creates a home directory on the first login. + + :param create_home_directory: The create_home_directory of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._create_home_directory = create_home_directory + + @property + def domain_offline_alerts(self): + """ + Gets the domain_offline_alerts of this ProvidersAdsAdsItemExtended. + Sends an alert if the domain goes offline. + + :return: The domain_offline_alerts of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._domain_offline_alerts + + @domain_offline_alerts.setter + def domain_offline_alerts(self, domain_offline_alerts): + """ + Sets the domain_offline_alerts of this ProvidersAdsAdsItemExtended. + Sends an alert if the domain goes offline. + + :param domain_offline_alerts: The domain_offline_alerts of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._domain_offline_alerts = domain_offline_alerts + + @property + def findable_groups(self): + """ + Gets the findable_groups of this ProvidersAdsAdsItemExtended. + Sets list of groups that can be resolved. + + :return: The findable_groups of this ProvidersAdsAdsItemExtended. + :rtype: list[str] + """ + return self._findable_groups + + @findable_groups.setter + def findable_groups(self, findable_groups): + """ + Sets the findable_groups of this ProvidersAdsAdsItemExtended. + Sets list of groups that can be resolved. + + :param findable_groups: The findable_groups of this ProvidersAdsAdsItemExtended. + :type: list[str] + """ + + self._findable_groups = findable_groups + + @property + def findable_users(self): + """ + Gets the findable_users of this ProvidersAdsAdsItemExtended. + Sets list of users that can be resolved. + + :return: The findable_users of this ProvidersAdsAdsItemExtended. + :rtype: list[str] + """ + return self._findable_users + + @findable_users.setter + def findable_users(self, findable_users): + """ + Sets the findable_users of this ProvidersAdsAdsItemExtended. + Sets list of users that can be resolved. + + :param findable_users: The findable_users of this ProvidersAdsAdsItemExtended. + :type: list[str] + """ + + self._findable_users = findable_users + + @property + def forest(self): + """ + Gets the forest of this ProvidersAdsAdsItemExtended. + Specifies the Active Directory forest. + + :return: The forest of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._forest + + @forest.setter + def forest(self, forest): + """ + Sets the forest of this ProvidersAdsAdsItemExtended. + Specifies the Active Directory forest. + + :param forest: The forest of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._forest = forest + + @property + def groupnet(self): + """ + Gets the groupnet of this ProvidersAdsAdsItemExtended. + Groupnet identifier. + + :return: The groupnet of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this ProvidersAdsAdsItemExtended. + Groupnet identifier. + + :param groupnet: The groupnet of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._groupnet = groupnet + + @property + def home_directory_template(self): + """ + Gets the home_directory_template of this ProvidersAdsAdsItemExtended. + Specifies the path to the home directory template. + + :return: The home_directory_template of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._home_directory_template + + @home_directory_template.setter + def home_directory_template(self, home_directory_template): + """ + Sets the home_directory_template of this ProvidersAdsAdsItemExtended. + Specifies the path to the home directory template. + + :param home_directory_template: The home_directory_template of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._home_directory_template = home_directory_template + + @property + def hostname(self): + """ + Gets the hostname of this ProvidersAdsAdsItemExtended. + Specifies the fully qualified hostname stored in the machine account. + + :return: The hostname of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this ProvidersAdsAdsItemExtended. + Specifies the fully qualified hostname stored in the machine account. + + :param hostname: The hostname of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._hostname = hostname + + @property + def id(self): + """ + Gets the id of this ProvidersAdsAdsItemExtended. + Specifies the ID of the Active Directory provider instance. + + :return: The id of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ProvidersAdsAdsItemExtended. + Specifies the ID of the Active Directory provider instance. + + :param id: The id of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._id = id + + @property + def ignore_all_trusts(self): + """ + Gets the ignore_all_trusts of this ProvidersAdsAdsItemExtended. + If set to true, ignores all trusted domains. + + :return: The ignore_all_trusts of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._ignore_all_trusts + + @ignore_all_trusts.setter + def ignore_all_trusts(self, ignore_all_trusts): + """ + Sets the ignore_all_trusts of this ProvidersAdsAdsItemExtended. + If set to true, ignores all trusted domains. + + :param ignore_all_trusts: The ignore_all_trusts of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._ignore_all_trusts = ignore_all_trusts + + @property + def ignored_trusted_domains(self): + """ + Gets the ignored_trusted_domains of this ProvidersAdsAdsItemExtended. + Includes trusted domains when 'ignore_all_trusts' is set to false. + + :return: The ignored_trusted_domains of this ProvidersAdsAdsItemExtended. + :rtype: list[str] + """ + return self._ignored_trusted_domains + + @ignored_trusted_domains.setter + def ignored_trusted_domains(self, ignored_trusted_domains): + """ + Sets the ignored_trusted_domains of this ProvidersAdsAdsItemExtended. + Includes trusted domains when 'ignore_all_trusts' is set to false. + + :param ignored_trusted_domains: The ignored_trusted_domains of this ProvidersAdsAdsItemExtended. + :type: list[str] + """ + + self._ignored_trusted_domains = ignored_trusted_domains + + @property + def include_trusted_domains(self): + """ + Gets the include_trusted_domains of this ProvidersAdsAdsItemExtended. + Includes trusted domains when 'ignore_all_trusts' is set to true. + + :return: The include_trusted_domains of this ProvidersAdsAdsItemExtended. + :rtype: list[str] + """ + return self._include_trusted_domains + + @include_trusted_domains.setter + def include_trusted_domains(self, include_trusted_domains): + """ + Sets the include_trusted_domains of this ProvidersAdsAdsItemExtended. + Includes trusted domains when 'ignore_all_trusts' is set to true. + + :param include_trusted_domains: The include_trusted_domains of this ProvidersAdsAdsItemExtended. + :type: list[str] + """ + + self._include_trusted_domains = include_trusted_domains + + @property + def instance(self): + """ + Gets the instance of this ProvidersAdsAdsItemExtended. + Specifies Active Directory provider instnace. + + :return: The instance of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """ + Sets the instance of this ProvidersAdsAdsItemExtended. + Specifies Active Directory provider instnace. + + :param instance: The instance of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._instance = instance + + @property + def ldap_sign_and_seal(self): + """ + Gets the ldap_sign_and_seal of this ProvidersAdsAdsItemExtended. + Enables encryption and signing on LDAP requests. + + :return: The ldap_sign_and_seal of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._ldap_sign_and_seal + + @ldap_sign_and_seal.setter + def ldap_sign_and_seal(self, ldap_sign_and_seal): + """ + Sets the ldap_sign_and_seal of this ProvidersAdsAdsItemExtended. + Enables encryption and signing on LDAP requests. + + :param ldap_sign_and_seal: The ldap_sign_and_seal of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._ldap_sign_and_seal = ldap_sign_and_seal + + @property + def login_shell(self): + """ + Gets the login_shell of this ProvidersAdsAdsItemExtended. + Specifies the login shell path. + + :return: The login_shell of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._login_shell + + @login_shell.setter + def login_shell(self, login_shell): + """ + Sets the login_shell of this ProvidersAdsAdsItemExtended. + Specifies the login shell path. + + :param login_shell: The login_shell of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._login_shell = login_shell + + @property + def lookup_domains(self): + """ + Gets the lookup_domains of this ProvidersAdsAdsItemExtended. + Limits user and group lookups to the specified domains. + + :return: The lookup_domains of this ProvidersAdsAdsItemExtended. + :rtype: list[str] + """ + return self._lookup_domains + + @lookup_domains.setter + def lookup_domains(self, lookup_domains): + """ + Sets the lookup_domains of this ProvidersAdsAdsItemExtended. + Limits user and group lookups to the specified domains. + + :param lookup_domains: The lookup_domains of this ProvidersAdsAdsItemExtended. + :type: list[str] + """ + + self._lookup_domains = lookup_domains + + @property + def lookup_groups(self): + """ + Gets the lookup_groups of this ProvidersAdsAdsItemExtended. + Looks up AD groups in other providers before allocating a group ID. + + :return: The lookup_groups of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._lookup_groups + + @lookup_groups.setter + def lookup_groups(self, lookup_groups): + """ + Sets the lookup_groups of this ProvidersAdsAdsItemExtended. + Looks up AD groups in other providers before allocating a group ID. + + :param lookup_groups: The lookup_groups of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._lookup_groups = lookup_groups + + @property + def lookup_normalize_groups(self): + """ + Gets the lookup_normalize_groups of this ProvidersAdsAdsItemExtended. + Normalizes AD group names to lowercase before look up. + + :return: The lookup_normalize_groups of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._lookup_normalize_groups + + @lookup_normalize_groups.setter + def lookup_normalize_groups(self, lookup_normalize_groups): + """ + Sets the lookup_normalize_groups of this ProvidersAdsAdsItemExtended. + Normalizes AD group names to lowercase before look up. + + :param lookup_normalize_groups: The lookup_normalize_groups of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._lookup_normalize_groups = lookup_normalize_groups + + @property + def lookup_normalize_users(self): + """ + Gets the lookup_normalize_users of this ProvidersAdsAdsItemExtended. + Normalize AD user names to lowercase before look up. + + :return: The lookup_normalize_users of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._lookup_normalize_users + + @lookup_normalize_users.setter + def lookup_normalize_users(self, lookup_normalize_users): + """ + Sets the lookup_normalize_users of this ProvidersAdsAdsItemExtended. + Normalize AD user names to lowercase before look up. + + :param lookup_normalize_users: The lookup_normalize_users of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._lookup_normalize_users = lookup_normalize_users + + @property + def lookup_users(self): + """ + Gets the lookup_users of this ProvidersAdsAdsItemExtended. + Looks up AD users in other providers before allocating a user ID. + + :return: The lookup_users of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._lookup_users + + @lookup_users.setter + def lookup_users(self, lookup_users): + """ + Sets the lookup_users of this ProvidersAdsAdsItemExtended. + Looks up AD users in other providers before allocating a user ID. + + :param lookup_users: The lookup_users of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._lookup_users = lookup_users + + @property + def machine_account(self): + """ + Gets the machine_account of this ProvidersAdsAdsItemExtended. + Specifies the SAM account name of the machine account. + + :return: The machine_account of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._machine_account + + @machine_account.setter + def machine_account(self, machine_account): + """ + Sets the machine_account of this ProvidersAdsAdsItemExtended. + Specifies the SAM account name of the machine account. + + :param machine_account: The machine_account of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._machine_account = machine_account + + @property + def machine_name(self): + """ + Gets the machine_name of this ProvidersAdsAdsItemExtended. + Specifies name to join AD as. + + :return: The machine_name of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._machine_name + + @machine_name.setter + def machine_name(self, machine_name): + """ + Sets the machine_name of this ProvidersAdsAdsItemExtended. + Specifies name to join AD as. + + :param machine_name: The machine_name of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._machine_name = machine_name + + @property + def machine_password_changes(self): + """ + Gets the machine_password_changes of this ProvidersAdsAdsItemExtended. + Enables periodic changes of the machine password for security. + + :return: The machine_password_changes of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._machine_password_changes + + @machine_password_changes.setter + def machine_password_changes(self, machine_password_changes): + """ + Sets the machine_password_changes of this ProvidersAdsAdsItemExtended. + Enables periodic changes of the machine password for security. + + :param machine_password_changes: The machine_password_changes of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._machine_password_changes = machine_password_changes + + @property + def machine_password_lifespan(self): + """ + Gets the machine_password_lifespan of this ProvidersAdsAdsItemExtended. + Sets maximum age of a password in seconds. + + :return: The machine_password_lifespan of this ProvidersAdsAdsItemExtended. + :rtype: int + """ + return self._machine_password_lifespan + + @machine_password_lifespan.setter + def machine_password_lifespan(self, machine_password_lifespan): + """ + Sets the machine_password_lifespan of this ProvidersAdsAdsItemExtended. + Sets maximum age of a password in seconds. + + :param machine_password_lifespan: The machine_password_lifespan of this ProvidersAdsAdsItemExtended. + :type: int + """ + + if not machine_password_lifespan: + raise ValueError("Invalid value for `machine_password_lifespan`, must not be `None`") + if machine_password_lifespan > 3.1536E7: + raise ValueError("Invalid value for `machine_password_lifespan`, must be a value less than or equal to `3.1536E7`") + if machine_password_lifespan < 3600.0: + raise ValueError("Invalid value for `machine_password_lifespan`, must be a value greater than or equal to `3600.0`") + + self._machine_password_lifespan = machine_password_lifespan + + @property + def name(self): + """ + Gets the name of this ProvidersAdsAdsItemExtended. + Specifies the Active Directory provider name. + + :return: The name of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ProvidersAdsAdsItemExtended. + Specifies the Active Directory provider name. + + :param name: The name of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._name = name + + @property + def netbios_domain(self): + """ + Gets the netbios_domain of this ProvidersAdsAdsItemExtended. + Specifies the NetBIOS domain name associated with the machine account. + + :return: The netbios_domain of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._netbios_domain + + @netbios_domain.setter + def netbios_domain(self, netbios_domain): + """ + Sets the netbios_domain of this ProvidersAdsAdsItemExtended. + Specifies the NetBIOS domain name associated with the machine account. + + :param netbios_domain: The netbios_domain of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._netbios_domain = netbios_domain + + @property + def node_dc_affinity(self): + """ + Gets the node_dc_affinity of this ProvidersAdsAdsItemExtended. + Specifies the domain controller for which the node has affinity. + + :return: The node_dc_affinity of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._node_dc_affinity + + @node_dc_affinity.setter + def node_dc_affinity(self, node_dc_affinity): + """ + Sets the node_dc_affinity of this ProvidersAdsAdsItemExtended. + Specifies the domain controller for which the node has affinity. + + :param node_dc_affinity: The node_dc_affinity of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._node_dc_affinity = node_dc_affinity + + @property + def node_dc_affinity_timeout(self): + """ + Gets the node_dc_affinity_timeout of this ProvidersAdsAdsItemExtended. + Specifies the timeout for the domain controller for which the local node has affinity. + + :return: The node_dc_affinity_timeout of this ProvidersAdsAdsItemExtended. + :rtype: int + """ + return self._node_dc_affinity_timeout + + @node_dc_affinity_timeout.setter + def node_dc_affinity_timeout(self, node_dc_affinity_timeout): + """ + Sets the node_dc_affinity_timeout of this ProvidersAdsAdsItemExtended. + Specifies the timeout for the domain controller for which the local node has affinity. + + :param node_dc_affinity_timeout: The node_dc_affinity_timeout of this ProvidersAdsAdsItemExtended. + :type: int + """ + + self._node_dc_affinity_timeout = node_dc_affinity_timeout + + @property + def nss_enumeration(self): + """ + Gets the nss_enumeration of this ProvidersAdsAdsItemExtended. + Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. + + :return: The nss_enumeration of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._nss_enumeration + + @nss_enumeration.setter + def nss_enumeration(self, nss_enumeration): + """ + Sets the nss_enumeration of this ProvidersAdsAdsItemExtended. + Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. + + :param nss_enumeration: The nss_enumeration of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._nss_enumeration = nss_enumeration + + @property + def primary_domain(self): + """ + Gets the primary_domain of this ProvidersAdsAdsItemExtended. + Specifies the AD domain to which the provider is joined. + + :return: The primary_domain of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._primary_domain + + @primary_domain.setter + def primary_domain(self, primary_domain): + """ + Sets the primary_domain of this ProvidersAdsAdsItemExtended. + Specifies the AD domain to which the provider is joined. + + :param primary_domain: The primary_domain of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._primary_domain = primary_domain + + @property + def restrict_findable(self): + """ + Gets the restrict_findable of this ProvidersAdsAdsItemExtended. + Check the provider for filtered lists of findable and unfindable users and groups. + + :return: The restrict_findable of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._restrict_findable + + @restrict_findable.setter + def restrict_findable(self, restrict_findable): + """ + Sets the restrict_findable of this ProvidersAdsAdsItemExtended. + Check the provider for filtered lists of findable and unfindable users and groups. + + :param restrict_findable: The restrict_findable of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._restrict_findable = restrict_findable + + @property + def sfu_support(self): + """ + Gets the sfu_support of this ProvidersAdsAdsItemExtended. + Specifies whether to support RFC 2307 attributes on ADS domain controllers. + + :return: The sfu_support of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._sfu_support + + @sfu_support.setter + def sfu_support(self, sfu_support): + """ + Sets the sfu_support of this ProvidersAdsAdsItemExtended. + Specifies whether to support RFC 2307 attributes on ADS domain controllers. + + :param sfu_support: The sfu_support of this ProvidersAdsAdsItemExtended. + :type: str + """ + allowed_values = ["none", "rfc2307"] + if sfu_support not in allowed_values: + raise ValueError( + "Invalid value for `sfu_support`, must be one of {0}" + .format(allowed_values) + ) + + self._sfu_support = sfu_support + + @property + def site(self): + """ + Gets the site of this ProvidersAdsAdsItemExtended. + Specifies the site for the Active Directory. + + :return: The site of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._site + + @site.setter + def site(self, site): + """ + Sets the site of this ProvidersAdsAdsItemExtended. + Specifies the site for the Active Directory. + + :param site: The site of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._site = site + + @property + def status(self): + """ + Gets the status of this ProvidersAdsAdsItemExtended. + Specifies the status of the provider. + + :return: The status of this ProvidersAdsAdsItemExtended. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ProvidersAdsAdsItemExtended. + Specifies the status of the provider. + + :param status: The status of this ProvidersAdsAdsItemExtended. + :type: str + """ + + self._status = status + + @property + def store_sfu_mappings(self): + """ + Gets the store_sfu_mappings of this ProvidersAdsAdsItemExtended. + Stores SFU mappings permanently in the ID mapper. + + :return: The store_sfu_mappings of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._store_sfu_mappings + + @store_sfu_mappings.setter + def store_sfu_mappings(self, store_sfu_mappings): + """ + Sets the store_sfu_mappings of this ProvidersAdsAdsItemExtended. + Stores SFU mappings permanently in the ID mapper. + + :param store_sfu_mappings: The store_sfu_mappings of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._store_sfu_mappings = store_sfu_mappings + + @property + def system(self): + """ + Gets the system of this ProvidersAdsAdsItemExtended. + If set to true, indicates that this provider instance was created by OneFS and cannot be removed. + + :return: The system of this ProvidersAdsAdsItemExtended. + :rtype: bool + """ + return self._system + + @system.setter + def system(self, system): + """ + Sets the system of this ProvidersAdsAdsItemExtended. + If set to true, indicates that this provider instance was created by OneFS and cannot be removed. + + :param system: The system of this ProvidersAdsAdsItemExtended. + :type: bool + """ + + self._system = system + + @property + def unfindable_groups(self): + """ + Gets the unfindable_groups of this ProvidersAdsAdsItemExtended. + Specifies groups that cannot be resolved by the provider. + + :return: The unfindable_groups of this ProvidersAdsAdsItemExtended. + :rtype: list[str] + """ + return self._unfindable_groups + + @unfindable_groups.setter + def unfindable_groups(self, unfindable_groups): + """ + Sets the unfindable_groups of this ProvidersAdsAdsItemExtended. + Specifies groups that cannot be resolved by the provider. + + :param unfindable_groups: The unfindable_groups of this ProvidersAdsAdsItemExtended. + :type: list[str] + """ + + self._unfindable_groups = unfindable_groups + + @property + def unfindable_users(self): + """ + Gets the unfindable_users of this ProvidersAdsAdsItemExtended. + Specifies users that cannot be resolved by the provider. + + :return: The unfindable_users of this ProvidersAdsAdsItemExtended. + :rtype: list[str] + """ + return self._unfindable_users + + @unfindable_users.setter + def unfindable_users(self, unfindable_users): + """ + Sets the unfindable_users of this ProvidersAdsAdsItemExtended. + Specifies users that cannot be resolved by the provider. + + :param unfindable_users: The unfindable_users of this ProvidersAdsAdsItemExtended. + :type: list[str] + """ + + self._unfindable_users = unfindable_users + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_ads_extended.py b/isi_sdk/models/providers_ads_extended.py new file mode 100644 index 000000000..dae454cae --- /dev/null +++ b/isi_sdk/models/providers_ads_extended.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersAdsExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersAdsExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ads': 'list[ProvidersAdsAdsItem]' + } + + self.attribute_map = { + 'ads': 'ads' + } + + self._ads = None + + @property + def ads(self): + """ + Gets the ads of this ProvidersAdsExtended. + + + :return: The ads of this ProvidersAdsExtended. + :rtype: list[ProvidersAdsAdsItem] + """ + return self._ads + + @ads.setter + def ads(self, ads): + """ + Sets the ads of this ProvidersAdsExtended. + + + :param ads: The ads of this ProvidersAdsExtended. + :type: list[ProvidersAdsAdsItem] + """ + + self._ads = ads + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_ads_id_params.py b/isi_sdk/models/providers_ads_id_params.py new file mode 100644 index 000000000..4b67abf8a --- /dev/null +++ b/isi_sdk/models/providers_ads_id_params.py @@ -0,0 +1,1097 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersAdsIdParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersAdsIdParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'allocate_gids': 'bool', + 'allocate_uids': 'bool', + 'assume_default_domain': 'bool', + 'authentication': 'bool', + 'check_online_interval': 'int', + 'controller_time': 'int', + 'create_home_directory': 'bool', + 'domain_controller': 'str', + 'domain_offline_alerts': 'bool', + 'findable_groups': 'list[str]', + 'findable_users': 'list[str]', + 'home_directory_template': 'str', + 'ignore_all_trusts': 'bool', + 'ignored_trusted_domains': 'list[str]', + 'include_trusted_domains': 'list[str]', + 'instance': 'str', + 'ldap_sign_and_seal': 'bool', + 'login_shell': 'str', + 'lookup_domains': 'list[str]', + 'lookup_groups': 'bool', + 'lookup_normalize_groups': 'bool', + 'lookup_normalize_users': 'bool', + 'lookup_users': 'bool', + 'machine_name': 'str', + 'machine_password_changes': 'bool', + 'machine_password_lifespan': 'int', + 'node_dc_affinity': 'str', + 'node_dc_affinity_timeout': 'int', + 'nss_enumeration': 'bool', + 'password': 'str', + 'reset_schannel': 'bool', + 'restrict_findable': 'bool', + 'sfu_support': 'str', + 'spns': 'list[str]', + 'store_sfu_mappings': 'bool', + 'unfindable_groups': 'list[str]', + 'unfindable_users': 'list[str]', + 'user': 'str' + } + + self.attribute_map = { + 'allocate_gids': 'allocate_gids', + 'allocate_uids': 'allocate_uids', + 'assume_default_domain': 'assume_default_domain', + 'authentication': 'authentication', + 'check_online_interval': 'check_online_interval', + 'controller_time': 'controller_time', + 'create_home_directory': 'create_home_directory', + 'domain_controller': 'domain_controller', + 'domain_offline_alerts': 'domain_offline_alerts', + 'findable_groups': 'findable_groups', + 'findable_users': 'findable_users', + 'home_directory_template': 'home_directory_template', + 'ignore_all_trusts': 'ignore_all_trusts', + 'ignored_trusted_domains': 'ignored_trusted_domains', + 'include_trusted_domains': 'include_trusted_domains', + 'instance': 'instance', + 'ldap_sign_and_seal': 'ldap_sign_and_seal', + 'login_shell': 'login_shell', + 'lookup_domains': 'lookup_domains', + 'lookup_groups': 'lookup_groups', + 'lookup_normalize_groups': 'lookup_normalize_groups', + 'lookup_normalize_users': 'lookup_normalize_users', + 'lookup_users': 'lookup_users', + 'machine_name': 'machine_name', + 'machine_password_changes': 'machine_password_changes', + 'machine_password_lifespan': 'machine_password_lifespan', + 'node_dc_affinity': 'node_dc_affinity', + 'node_dc_affinity_timeout': 'node_dc_affinity_timeout', + 'nss_enumeration': 'nss_enumeration', + 'password': 'password', + 'reset_schannel': 'reset_schannel', + 'restrict_findable': 'restrict_findable', + 'sfu_support': 'sfu_support', + 'spns': 'spns', + 'store_sfu_mappings': 'store_sfu_mappings', + 'unfindable_groups': 'unfindable_groups', + 'unfindable_users': 'unfindable_users', + 'user': 'user' + } + + self._allocate_gids = None + self._allocate_uids = None + self._assume_default_domain = None + self._authentication = None + self._check_online_interval = None + self._controller_time = None + self._create_home_directory = None + self._domain_controller = None + self._domain_offline_alerts = None + self._findable_groups = None + self._findable_users = None + self._home_directory_template = None + self._ignore_all_trusts = None + self._ignored_trusted_domains = None + self._include_trusted_domains = None + self._instance = None + self._ldap_sign_and_seal = None + self._login_shell = None + self._lookup_domains = None + self._lookup_groups = None + self._lookup_normalize_groups = None + self._lookup_normalize_users = None + self._lookup_users = None + self._machine_name = None + self._machine_password_changes = None + self._machine_password_lifespan = None + self._node_dc_affinity = None + self._node_dc_affinity_timeout = None + self._nss_enumeration = None + self._password = None + self._reset_schannel = None + self._restrict_findable = None + self._sfu_support = None + self._spns = None + self._store_sfu_mappings = None + self._unfindable_groups = None + self._unfindable_users = None + self._user = None + + @property + def allocate_gids(self): + """ + Gets the allocate_gids of this ProvidersAdsIdParams. + Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. + + :return: The allocate_gids of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._allocate_gids + + @allocate_gids.setter + def allocate_gids(self, allocate_gids): + """ + Sets the allocate_gids of this ProvidersAdsIdParams. + Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. + + :param allocate_gids: The allocate_gids of this ProvidersAdsIdParams. + :type: bool + """ + + self._allocate_gids = allocate_gids + + @property + def allocate_uids(self): + """ + Gets the allocate_uids of this ProvidersAdsIdParams. + Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. + + :return: The allocate_uids of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._allocate_uids + + @allocate_uids.setter + def allocate_uids(self, allocate_uids): + """ + Sets the allocate_uids of this ProvidersAdsIdParams. + Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. + + :param allocate_uids: The allocate_uids of this ProvidersAdsIdParams. + :type: bool + """ + + self._allocate_uids = allocate_uids + + @property + def assume_default_domain(self): + """ + Gets the assume_default_domain of this ProvidersAdsIdParams. + Enables lookup of unqualified user names in the primary domain. + + :return: The assume_default_domain of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._assume_default_domain + + @assume_default_domain.setter + def assume_default_domain(self, assume_default_domain): + """ + Sets the assume_default_domain of this ProvidersAdsIdParams. + Enables lookup of unqualified user names in the primary domain. + + :param assume_default_domain: The assume_default_domain of this ProvidersAdsIdParams. + :type: bool + """ + + self._assume_default_domain = assume_default_domain + + @property + def authentication(self): + """ + Gets the authentication of this ProvidersAdsIdParams. + Enables authentication and identity management through the authentication provider. + + :return: The authentication of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """ + Sets the authentication of this ProvidersAdsIdParams. + Enables authentication and identity management through the authentication provider. + + :param authentication: The authentication of this ProvidersAdsIdParams. + :type: bool + """ + + self._authentication = authentication + + @property + def check_online_interval(self): + """ + Gets the check_online_interval of this ProvidersAdsIdParams. + Specifies the time in seconds between provider online checks. + + :return: The check_online_interval of this ProvidersAdsIdParams. + :rtype: int + """ + return self._check_online_interval + + @check_online_interval.setter + def check_online_interval(self, check_online_interval): + """ + Sets the check_online_interval of this ProvidersAdsIdParams. + Specifies the time in seconds between provider online checks. + + :param check_online_interval: The check_online_interval of this ProvidersAdsIdParams. + :type: int + """ + + self._check_online_interval = check_online_interval + + @property + def controller_time(self): + """ + Gets the controller_time of this ProvidersAdsIdParams. + Specifies the current time for the domain controllers. + + :return: The controller_time of this ProvidersAdsIdParams. + :rtype: int + """ + return self._controller_time + + @controller_time.setter + def controller_time(self, controller_time): + """ + Sets the controller_time of this ProvidersAdsIdParams. + Specifies the current time for the domain controllers. + + :param controller_time: The controller_time of this ProvidersAdsIdParams. + :type: int + """ + + self._controller_time = controller_time + + @property + def create_home_directory(self): + """ + Gets the create_home_directory of this ProvidersAdsIdParams. + Automatically creates a home directory on the first login. + + :return: The create_home_directory of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._create_home_directory + + @create_home_directory.setter + def create_home_directory(self, create_home_directory): + """ + Sets the create_home_directory of this ProvidersAdsIdParams. + Automatically creates a home directory on the first login. + + :param create_home_directory: The create_home_directory of this ProvidersAdsIdParams. + :type: bool + """ + + self._create_home_directory = create_home_directory + + @property + def domain_controller(self): + """ + Gets the domain_controller of this ProvidersAdsIdParams. + Specifies the domain controller to which the authentication service should send requests + + :return: The domain_controller of this ProvidersAdsIdParams. + :rtype: str + """ + return self._domain_controller + + @domain_controller.setter + def domain_controller(self, domain_controller): + """ + Sets the domain_controller of this ProvidersAdsIdParams. + Specifies the domain controller to which the authentication service should send requests + + :param domain_controller: The domain_controller of this ProvidersAdsIdParams. + :type: str + """ + + self._domain_controller = domain_controller + + @property + def domain_offline_alerts(self): + """ + Gets the domain_offline_alerts of this ProvidersAdsIdParams. + Sends an alert if the domain goes offline. + + :return: The domain_offline_alerts of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._domain_offline_alerts + + @domain_offline_alerts.setter + def domain_offline_alerts(self, domain_offline_alerts): + """ + Sets the domain_offline_alerts of this ProvidersAdsIdParams. + Sends an alert if the domain goes offline. + + :param domain_offline_alerts: The domain_offline_alerts of this ProvidersAdsIdParams. + :type: bool + """ + + self._domain_offline_alerts = domain_offline_alerts + + @property + def findable_groups(self): + """ + Gets the findable_groups of this ProvidersAdsIdParams. + Sets list of groups that can be resolved. + + :return: The findable_groups of this ProvidersAdsIdParams. + :rtype: list[str] + """ + return self._findable_groups + + @findable_groups.setter + def findable_groups(self, findable_groups): + """ + Sets the findable_groups of this ProvidersAdsIdParams. + Sets list of groups that can be resolved. + + :param findable_groups: The findable_groups of this ProvidersAdsIdParams. + :type: list[str] + """ + + self._findable_groups = findable_groups + + @property + def findable_users(self): + """ + Gets the findable_users of this ProvidersAdsIdParams. + Sets list of users that can be resolved. + + :return: The findable_users of this ProvidersAdsIdParams. + :rtype: list[str] + """ + return self._findable_users + + @findable_users.setter + def findable_users(self, findable_users): + """ + Sets the findable_users of this ProvidersAdsIdParams. + Sets list of users that can be resolved. + + :param findable_users: The findable_users of this ProvidersAdsIdParams. + :type: list[str] + """ + + self._findable_users = findable_users + + @property + def home_directory_template(self): + """ + Gets the home_directory_template of this ProvidersAdsIdParams. + Specifies the path to the home directory template. + + :return: The home_directory_template of this ProvidersAdsIdParams. + :rtype: str + """ + return self._home_directory_template + + @home_directory_template.setter + def home_directory_template(self, home_directory_template): + """ + Sets the home_directory_template of this ProvidersAdsIdParams. + Specifies the path to the home directory template. + + :param home_directory_template: The home_directory_template of this ProvidersAdsIdParams. + :type: str + """ + + self._home_directory_template = home_directory_template + + @property + def ignore_all_trusts(self): + """ + Gets the ignore_all_trusts of this ProvidersAdsIdParams. + If set to true, ignores all trusted domains. + + :return: The ignore_all_trusts of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._ignore_all_trusts + + @ignore_all_trusts.setter + def ignore_all_trusts(self, ignore_all_trusts): + """ + Sets the ignore_all_trusts of this ProvidersAdsIdParams. + If set to true, ignores all trusted domains. + + :param ignore_all_trusts: The ignore_all_trusts of this ProvidersAdsIdParams. + :type: bool + """ + + self._ignore_all_trusts = ignore_all_trusts + + @property + def ignored_trusted_domains(self): + """ + Gets the ignored_trusted_domains of this ProvidersAdsIdParams. + Includes trusted domains when 'ignore_all_trusts' is set to false. + + :return: The ignored_trusted_domains of this ProvidersAdsIdParams. + :rtype: list[str] + """ + return self._ignored_trusted_domains + + @ignored_trusted_domains.setter + def ignored_trusted_domains(self, ignored_trusted_domains): + """ + Sets the ignored_trusted_domains of this ProvidersAdsIdParams. + Includes trusted domains when 'ignore_all_trusts' is set to false. + + :param ignored_trusted_domains: The ignored_trusted_domains of this ProvidersAdsIdParams. + :type: list[str] + """ + + self._ignored_trusted_domains = ignored_trusted_domains + + @property + def include_trusted_domains(self): + """ + Gets the include_trusted_domains of this ProvidersAdsIdParams. + Includes trusted domains when 'ignore_all_trusts' is set to true. + + :return: The include_trusted_domains of this ProvidersAdsIdParams. + :rtype: list[str] + """ + return self._include_trusted_domains + + @include_trusted_domains.setter + def include_trusted_domains(self, include_trusted_domains): + """ + Sets the include_trusted_domains of this ProvidersAdsIdParams. + Includes trusted domains when 'ignore_all_trusts' is set to true. + + :param include_trusted_domains: The include_trusted_domains of this ProvidersAdsIdParams. + :type: list[str] + """ + + self._include_trusted_domains = include_trusted_domains + + @property + def instance(self): + """ + Gets the instance of this ProvidersAdsIdParams. + Specifies Active Directory provider instnace. + + :return: The instance of this ProvidersAdsIdParams. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """ + Sets the instance of this ProvidersAdsIdParams. + Specifies Active Directory provider instnace. + + :param instance: The instance of this ProvidersAdsIdParams. + :type: str + """ + + self._instance = instance + + @property + def ldap_sign_and_seal(self): + """ + Gets the ldap_sign_and_seal of this ProvidersAdsIdParams. + Enables encryption and signing on LDAP requests. + + :return: The ldap_sign_and_seal of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._ldap_sign_and_seal + + @ldap_sign_and_seal.setter + def ldap_sign_and_seal(self, ldap_sign_and_seal): + """ + Sets the ldap_sign_and_seal of this ProvidersAdsIdParams. + Enables encryption and signing on LDAP requests. + + :param ldap_sign_and_seal: The ldap_sign_and_seal of this ProvidersAdsIdParams. + :type: bool + """ + + self._ldap_sign_and_seal = ldap_sign_and_seal + + @property + def login_shell(self): + """ + Gets the login_shell of this ProvidersAdsIdParams. + Specifies the login shell path. + + :return: The login_shell of this ProvidersAdsIdParams. + :rtype: str + """ + return self._login_shell + + @login_shell.setter + def login_shell(self, login_shell): + """ + Sets the login_shell of this ProvidersAdsIdParams. + Specifies the login shell path. + + :param login_shell: The login_shell of this ProvidersAdsIdParams. + :type: str + """ + + self._login_shell = login_shell + + @property + def lookup_domains(self): + """ + Gets the lookup_domains of this ProvidersAdsIdParams. + Limits user and group lookups to the specified domains. + + :return: The lookup_domains of this ProvidersAdsIdParams. + :rtype: list[str] + """ + return self._lookup_domains + + @lookup_domains.setter + def lookup_domains(self, lookup_domains): + """ + Sets the lookup_domains of this ProvidersAdsIdParams. + Limits user and group lookups to the specified domains. + + :param lookup_domains: The lookup_domains of this ProvidersAdsIdParams. + :type: list[str] + """ + + self._lookup_domains = lookup_domains + + @property + def lookup_groups(self): + """ + Gets the lookup_groups of this ProvidersAdsIdParams. + Looks up AD groups in other providers before allocating a group ID. + + :return: The lookup_groups of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._lookup_groups + + @lookup_groups.setter + def lookup_groups(self, lookup_groups): + """ + Sets the lookup_groups of this ProvidersAdsIdParams. + Looks up AD groups in other providers before allocating a group ID. + + :param lookup_groups: The lookup_groups of this ProvidersAdsIdParams. + :type: bool + """ + + self._lookup_groups = lookup_groups + + @property + def lookup_normalize_groups(self): + """ + Gets the lookup_normalize_groups of this ProvidersAdsIdParams. + Normalizes AD group names to lowercase before look up. + + :return: The lookup_normalize_groups of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._lookup_normalize_groups + + @lookup_normalize_groups.setter + def lookup_normalize_groups(self, lookup_normalize_groups): + """ + Sets the lookup_normalize_groups of this ProvidersAdsIdParams. + Normalizes AD group names to lowercase before look up. + + :param lookup_normalize_groups: The lookup_normalize_groups of this ProvidersAdsIdParams. + :type: bool + """ + + self._lookup_normalize_groups = lookup_normalize_groups + + @property + def lookup_normalize_users(self): + """ + Gets the lookup_normalize_users of this ProvidersAdsIdParams. + Normalize AD user names to lowercase before look up. + + :return: The lookup_normalize_users of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._lookup_normalize_users + + @lookup_normalize_users.setter + def lookup_normalize_users(self, lookup_normalize_users): + """ + Sets the lookup_normalize_users of this ProvidersAdsIdParams. + Normalize AD user names to lowercase before look up. + + :param lookup_normalize_users: The lookup_normalize_users of this ProvidersAdsIdParams. + :type: bool + """ + + self._lookup_normalize_users = lookup_normalize_users + + @property + def lookup_users(self): + """ + Gets the lookup_users of this ProvidersAdsIdParams. + Looks up AD users in other providers before allocating a user ID. + + :return: The lookup_users of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._lookup_users + + @lookup_users.setter + def lookup_users(self, lookup_users): + """ + Sets the lookup_users of this ProvidersAdsIdParams. + Looks up AD users in other providers before allocating a user ID. + + :param lookup_users: The lookup_users of this ProvidersAdsIdParams. + :type: bool + """ + + self._lookup_users = lookup_users + + @property + def machine_name(self): + """ + Gets the machine_name of this ProvidersAdsIdParams. + Specifies name to join AD as. + + :return: The machine_name of this ProvidersAdsIdParams. + :rtype: str + """ + return self._machine_name + + @machine_name.setter + def machine_name(self, machine_name): + """ + Sets the machine_name of this ProvidersAdsIdParams. + Specifies name to join AD as. + + :param machine_name: The machine_name of this ProvidersAdsIdParams. + :type: str + """ + + self._machine_name = machine_name + + @property + def machine_password_changes(self): + """ + Gets the machine_password_changes of this ProvidersAdsIdParams. + Enables periodic changes of the machine password for security. + + :return: The machine_password_changes of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._machine_password_changes + + @machine_password_changes.setter + def machine_password_changes(self, machine_password_changes): + """ + Sets the machine_password_changes of this ProvidersAdsIdParams. + Enables periodic changes of the machine password for security. + + :param machine_password_changes: The machine_password_changes of this ProvidersAdsIdParams. + :type: bool + """ + + self._machine_password_changes = machine_password_changes + + @property + def machine_password_lifespan(self): + """ + Gets the machine_password_lifespan of this ProvidersAdsIdParams. + Sets maximum age of a password in seconds. + + :return: The machine_password_lifespan of this ProvidersAdsIdParams. + :rtype: int + """ + return self._machine_password_lifespan + + @machine_password_lifespan.setter + def machine_password_lifespan(self, machine_password_lifespan): + """ + Sets the machine_password_lifespan of this ProvidersAdsIdParams. + Sets maximum age of a password in seconds. + + :param machine_password_lifespan: The machine_password_lifespan of this ProvidersAdsIdParams. + :type: int + """ + + if not machine_password_lifespan: + raise ValueError("Invalid value for `machine_password_lifespan`, must not be `None`") + if machine_password_lifespan > 3.1536E7: + raise ValueError("Invalid value for `machine_password_lifespan`, must be a value less than or equal to `3.1536E7`") + if machine_password_lifespan < 3600.0: + raise ValueError("Invalid value for `machine_password_lifespan`, must be a value greater than or equal to `3600.0`") + + self._machine_password_lifespan = machine_password_lifespan + + @property + def node_dc_affinity(self): + """ + Gets the node_dc_affinity of this ProvidersAdsIdParams. + Specifies the domain controller for which the node has affinity. + + :return: The node_dc_affinity of this ProvidersAdsIdParams. + :rtype: str + """ + return self._node_dc_affinity + + @node_dc_affinity.setter + def node_dc_affinity(self, node_dc_affinity): + """ + Sets the node_dc_affinity of this ProvidersAdsIdParams. + Specifies the domain controller for which the node has affinity. + + :param node_dc_affinity: The node_dc_affinity of this ProvidersAdsIdParams. + :type: str + """ + + self._node_dc_affinity = node_dc_affinity + + @property + def node_dc_affinity_timeout(self): + """ + Gets the node_dc_affinity_timeout of this ProvidersAdsIdParams. + Specifies the timeout for the domain controller for which the local node has affinity. + + :return: The node_dc_affinity_timeout of this ProvidersAdsIdParams. + :rtype: int + """ + return self._node_dc_affinity_timeout + + @node_dc_affinity_timeout.setter + def node_dc_affinity_timeout(self, node_dc_affinity_timeout): + """ + Sets the node_dc_affinity_timeout of this ProvidersAdsIdParams. + Specifies the timeout for the domain controller for which the local node has affinity. + + :param node_dc_affinity_timeout: The node_dc_affinity_timeout of this ProvidersAdsIdParams. + :type: int + """ + + self._node_dc_affinity_timeout = node_dc_affinity_timeout + + @property + def nss_enumeration(self): + """ + Gets the nss_enumeration of this ProvidersAdsIdParams. + Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. + + :return: The nss_enumeration of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._nss_enumeration + + @nss_enumeration.setter + def nss_enumeration(self, nss_enumeration): + """ + Sets the nss_enumeration of this ProvidersAdsIdParams. + Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. + + :param nss_enumeration: The nss_enumeration of this ProvidersAdsIdParams. + :type: bool + """ + + self._nss_enumeration = nss_enumeration + + @property + def password(self): + """ + Gets the password of this ProvidersAdsIdParams. + Specifies the password used during domain join. + + :return: The password of this ProvidersAdsIdParams. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this ProvidersAdsIdParams. + Specifies the password used during domain join. + + :param password: The password of this ProvidersAdsIdParams. + :type: str + """ + + self._password = password + + @property + def reset_schannel(self): + """ + Gets the reset_schannel of this ProvidersAdsIdParams. + Resets the secure channel to the primary domain. + + :return: The reset_schannel of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._reset_schannel + + @reset_schannel.setter + def reset_schannel(self, reset_schannel): + """ + Sets the reset_schannel of this ProvidersAdsIdParams. + Resets the secure channel to the primary domain. + + :param reset_schannel: The reset_schannel of this ProvidersAdsIdParams. + :type: bool + """ + + self._reset_schannel = reset_schannel + + @property + def restrict_findable(self): + """ + Gets the restrict_findable of this ProvidersAdsIdParams. + Check the provider for filtered lists of findable and unfindable users and groups. + + :return: The restrict_findable of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._restrict_findable + + @restrict_findable.setter + def restrict_findable(self, restrict_findable): + """ + Sets the restrict_findable of this ProvidersAdsIdParams. + Check the provider for filtered lists of findable and unfindable users and groups. + + :param restrict_findable: The restrict_findable of this ProvidersAdsIdParams. + :type: bool + """ + + self._restrict_findable = restrict_findable + + @property + def sfu_support(self): + """ + Gets the sfu_support of this ProvidersAdsIdParams. + Specifies whether to support RFC 2307 attributes on ADS domain controllers. + + :return: The sfu_support of this ProvidersAdsIdParams. + :rtype: str + """ + return self._sfu_support + + @sfu_support.setter + def sfu_support(self, sfu_support): + """ + Sets the sfu_support of this ProvidersAdsIdParams. + Specifies whether to support RFC 2307 attributes on ADS domain controllers. + + :param sfu_support: The sfu_support of this ProvidersAdsIdParams. + :type: str + """ + allowed_values = ["none", "rfc2307"] + if sfu_support not in allowed_values: + raise ValueError( + "Invalid value for `sfu_support`, must be one of {0}" + .format(allowed_values) + ) + + self._sfu_support = sfu_support + + @property + def spns(self): + """ + Gets the spns of this ProvidersAdsIdParams. + Currently configured SPNs. + + :return: The spns of this ProvidersAdsIdParams. + :rtype: list[str] + """ + return self._spns + + @spns.setter + def spns(self, spns): + """ + Sets the spns of this ProvidersAdsIdParams. + Currently configured SPNs. + + :param spns: The spns of this ProvidersAdsIdParams. + :type: list[str] + """ + + self._spns = spns + + @property + def store_sfu_mappings(self): + """ + Gets the store_sfu_mappings of this ProvidersAdsIdParams. + Stores SFU mappings permanently in the ID mapper. + + :return: The store_sfu_mappings of this ProvidersAdsIdParams. + :rtype: bool + """ + return self._store_sfu_mappings + + @store_sfu_mappings.setter + def store_sfu_mappings(self, store_sfu_mappings): + """ + Sets the store_sfu_mappings of this ProvidersAdsIdParams. + Stores SFU mappings permanently in the ID mapper. + + :param store_sfu_mappings: The store_sfu_mappings of this ProvidersAdsIdParams. + :type: bool + """ + + self._store_sfu_mappings = store_sfu_mappings + + @property + def unfindable_groups(self): + """ + Gets the unfindable_groups of this ProvidersAdsIdParams. + Specifies groups that cannot be resolved by the provider. + + :return: The unfindable_groups of this ProvidersAdsIdParams. + :rtype: list[str] + """ + return self._unfindable_groups + + @unfindable_groups.setter + def unfindable_groups(self, unfindable_groups): + """ + Sets the unfindable_groups of this ProvidersAdsIdParams. + Specifies groups that cannot be resolved by the provider. + + :param unfindable_groups: The unfindable_groups of this ProvidersAdsIdParams. + :type: list[str] + """ + + self._unfindable_groups = unfindable_groups + + @property + def unfindable_users(self): + """ + Gets the unfindable_users of this ProvidersAdsIdParams. + Specifies users that cannot be resolved by the provider. + + :return: The unfindable_users of this ProvidersAdsIdParams. + :rtype: list[str] + """ + return self._unfindable_users + + @unfindable_users.setter + def unfindable_users(self, unfindable_users): + """ + Sets the unfindable_users of this ProvidersAdsIdParams. + Specifies users that cannot be resolved by the provider. + + :param unfindable_users: The unfindable_users of this ProvidersAdsIdParams. + :type: list[str] + """ + + self._unfindable_users = unfindable_users + + @property + def user(self): + """ + Gets the user of this ProvidersAdsIdParams. + Specifies the user name that has permission to join a machine to the given domain. + + :return: The user of this ProvidersAdsIdParams. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this ProvidersAdsIdParams. + Specifies the user name that has permission to join a machine to the given domain. + + :param user: The user of this ProvidersAdsIdParams. + :type: str + """ + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_ads_item.py b/isi_sdk/models/providers_ads_item.py new file mode 100644 index 000000000..2863b81ba --- /dev/null +++ b/isi_sdk/models/providers_ads_item.py @@ -0,0 +1,1201 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersAdsItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersAdsItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'account': 'str', + 'allocate_gids': 'bool', + 'allocate_uids': 'bool', + 'assume_default_domain': 'bool', + 'authentication': 'bool', + 'check_online_interval': 'int', + 'controller_time': 'int', + 'create_home_directory': 'bool', + 'dns_domain': 'str', + 'domain_offline_alerts': 'bool', + 'findable_groups': 'list[str]', + 'findable_users': 'list[str]', + 'groupnet': 'str', + 'home_directory_template': 'str', + 'ignore_all_trusts': 'bool', + 'ignored_trusted_domains': 'list[str]', + 'include_trusted_domains': 'list[str]', + 'instance': 'str', + 'kerberos_hdfs_spn': 'bool', + 'kerberos_nfs_spn': 'bool', + 'ldap_sign_and_seal': 'bool', + 'login_shell': 'str', + 'lookup_domains': 'list[str]', + 'lookup_groups': 'bool', + 'lookup_normalize_groups': 'bool', + 'lookup_normalize_users': 'bool', + 'lookup_users': 'bool', + 'machine_name': 'str', + 'machine_password_changes': 'bool', + 'machine_password_lifespan': 'int', + 'name': 'str', + 'node_dc_affinity': 'str', + 'node_dc_affinity_timeout': 'int', + 'nss_enumeration': 'bool', + 'organizational_unit': 'str', + 'password': 'str', + 'restrict_findable': 'bool', + 'sfu_support': 'str', + 'store_sfu_mappings': 'bool', + 'unfindable_groups': 'list[str]', + 'unfindable_users': 'list[str]', + 'user': 'str' + } + + self.attribute_map = { + 'account': 'account', + 'allocate_gids': 'allocate_gids', + 'allocate_uids': 'allocate_uids', + 'assume_default_domain': 'assume_default_domain', + 'authentication': 'authentication', + 'check_online_interval': 'check_online_interval', + 'controller_time': 'controller_time', + 'create_home_directory': 'create_home_directory', + 'dns_domain': 'dns_domain', + 'domain_offline_alerts': 'domain_offline_alerts', + 'findable_groups': 'findable_groups', + 'findable_users': 'findable_users', + 'groupnet': 'groupnet', + 'home_directory_template': 'home_directory_template', + 'ignore_all_trusts': 'ignore_all_trusts', + 'ignored_trusted_domains': 'ignored_trusted_domains', + 'include_trusted_domains': 'include_trusted_domains', + 'instance': 'instance', + 'kerberos_hdfs_spn': 'kerberos_hdfs_spn', + 'kerberos_nfs_spn': 'kerberos_nfs_spn', + 'ldap_sign_and_seal': 'ldap_sign_and_seal', + 'login_shell': 'login_shell', + 'lookup_domains': 'lookup_domains', + 'lookup_groups': 'lookup_groups', + 'lookup_normalize_groups': 'lookup_normalize_groups', + 'lookup_normalize_users': 'lookup_normalize_users', + 'lookup_users': 'lookup_users', + 'machine_name': 'machine_name', + 'machine_password_changes': 'machine_password_changes', + 'machine_password_lifespan': 'machine_password_lifespan', + 'name': 'name', + 'node_dc_affinity': 'node_dc_affinity', + 'node_dc_affinity_timeout': 'node_dc_affinity_timeout', + 'nss_enumeration': 'nss_enumeration', + 'organizational_unit': 'organizational_unit', + 'password': 'password', + 'restrict_findable': 'restrict_findable', + 'sfu_support': 'sfu_support', + 'store_sfu_mappings': 'store_sfu_mappings', + 'unfindable_groups': 'unfindable_groups', + 'unfindable_users': 'unfindable_users', + 'user': 'user' + } + + self._account = None + self._allocate_gids = None + self._allocate_uids = None + self._assume_default_domain = None + self._authentication = None + self._check_online_interval = None + self._controller_time = None + self._create_home_directory = None + self._dns_domain = None + self._domain_offline_alerts = None + self._findable_groups = None + self._findable_users = None + self._groupnet = None + self._home_directory_template = None + self._ignore_all_trusts = None + self._ignored_trusted_domains = None + self._include_trusted_domains = None + self._instance = None + self._kerberos_hdfs_spn = None + self._kerberos_nfs_spn = None + self._ldap_sign_and_seal = None + self._login_shell = None + self._lookup_domains = None + self._lookup_groups = None + self._lookup_normalize_groups = None + self._lookup_normalize_users = None + self._lookup_users = None + self._machine_name = None + self._machine_password_changes = None + self._machine_password_lifespan = None + self._name = None + self._node_dc_affinity = None + self._node_dc_affinity_timeout = None + self._nss_enumeration = None + self._organizational_unit = None + self._password = None + self._restrict_findable = None + self._sfu_support = None + self._store_sfu_mappings = None + self._unfindable_groups = None + self._unfindable_users = None + self._user = None + + @property + def account(self): + """ + Gets the account of this ProvidersAdsItem. + Specifies the machine account name when creating a SAM account with Active Directory. The default cluster name is called 'default'. + + :return: The account of this ProvidersAdsItem. + :rtype: str + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this ProvidersAdsItem. + Specifies the machine account name when creating a SAM account with Active Directory. The default cluster name is called 'default'. + + :param account: The account of this ProvidersAdsItem. + :type: str + """ + + self._account = account + + @property + def allocate_gids(self): + """ + Gets the allocate_gids of this ProvidersAdsItem. + Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. + + :return: The allocate_gids of this ProvidersAdsItem. + :rtype: bool + """ + return self._allocate_gids + + @allocate_gids.setter + def allocate_gids(self, allocate_gids): + """ + Sets the allocate_gids of this ProvidersAdsItem. + Allocates an ID for an unmapped Active Directory (ADS) group. ADS groups without GIDs can be proactively assigned a GID by the ID mapper. If the ID mapper option is disabled, GIDs are not proactively assigned, and when a primary group for a user does not include a GID, the system may allocate one. + + :param allocate_gids: The allocate_gids of this ProvidersAdsItem. + :type: bool + """ + + self._allocate_gids = allocate_gids + + @property + def allocate_uids(self): + """ + Gets the allocate_uids of this ProvidersAdsItem. + Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. + + :return: The allocate_uids of this ProvidersAdsItem. + :rtype: bool + """ + return self._allocate_uids + + @allocate_uids.setter + def allocate_uids(self, allocate_uids): + """ + Sets the allocate_uids of this ProvidersAdsItem. + Allocates a user ID for an unmapped Active Directory (ADS) user. ADS users without UIDs can be proactively assigned a UID by the ID mapper. IF the ID mapper option is disabled, UIDs are not proactively assigned, and when an identify for a user does not include a UID, the system may allocate one. + + :param allocate_uids: The allocate_uids of this ProvidersAdsItem. + :type: bool + """ + + self._allocate_uids = allocate_uids + + @property + def assume_default_domain(self): + """ + Gets the assume_default_domain of this ProvidersAdsItem. + Enables lookup of unqualified user names in the primary domain. + + :return: The assume_default_domain of this ProvidersAdsItem. + :rtype: bool + """ + return self._assume_default_domain + + @assume_default_domain.setter + def assume_default_domain(self, assume_default_domain): + """ + Sets the assume_default_domain of this ProvidersAdsItem. + Enables lookup of unqualified user names in the primary domain. + + :param assume_default_domain: The assume_default_domain of this ProvidersAdsItem. + :type: bool + """ + + self._assume_default_domain = assume_default_domain + + @property + def authentication(self): + """ + Gets the authentication of this ProvidersAdsItem. + Enables authentication and identity management through the authentication provider. + + :return: The authentication of this ProvidersAdsItem. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """ + Sets the authentication of this ProvidersAdsItem. + Enables authentication and identity management through the authentication provider. + + :param authentication: The authentication of this ProvidersAdsItem. + :type: bool + """ + + self._authentication = authentication + + @property + def check_online_interval(self): + """ + Gets the check_online_interval of this ProvidersAdsItem. + Specifies the time in seconds between provider online checks. + + :return: The check_online_interval of this ProvidersAdsItem. + :rtype: int + """ + return self._check_online_interval + + @check_online_interval.setter + def check_online_interval(self, check_online_interval): + """ + Sets the check_online_interval of this ProvidersAdsItem. + Specifies the time in seconds between provider online checks. + + :param check_online_interval: The check_online_interval of this ProvidersAdsItem. + :type: int + """ + + self._check_online_interval = check_online_interval + + @property + def controller_time(self): + """ + Gets the controller_time of this ProvidersAdsItem. + Specifies the current time for the domain controllers. + + :return: The controller_time of this ProvidersAdsItem. + :rtype: int + """ + return self._controller_time + + @controller_time.setter + def controller_time(self, controller_time): + """ + Sets the controller_time of this ProvidersAdsItem. + Specifies the current time for the domain controllers. + + :param controller_time: The controller_time of this ProvidersAdsItem. + :type: int + """ + + self._controller_time = controller_time + + @property + def create_home_directory(self): + """ + Gets the create_home_directory of this ProvidersAdsItem. + Automatically creates a home directory on the first login. + + :return: The create_home_directory of this ProvidersAdsItem. + :rtype: bool + """ + return self._create_home_directory + + @create_home_directory.setter + def create_home_directory(self, create_home_directory): + """ + Sets the create_home_directory of this ProvidersAdsItem. + Automatically creates a home directory on the first login. + + :param create_home_directory: The create_home_directory of this ProvidersAdsItem. + :type: bool + """ + + self._create_home_directory = create_home_directory + + @property + def dns_domain(self): + """ + Gets the dns_domain of this ProvidersAdsItem. + Specifies the DNS search domain. Set this parameter if the DNS search domain has a unique name or address. + + :return: The dns_domain of this ProvidersAdsItem. + :rtype: str + """ + return self._dns_domain + + @dns_domain.setter + def dns_domain(self, dns_domain): + """ + Sets the dns_domain of this ProvidersAdsItem. + Specifies the DNS search domain. Set this parameter if the DNS search domain has a unique name or address. + + :param dns_domain: The dns_domain of this ProvidersAdsItem. + :type: str + """ + + self._dns_domain = dns_domain + + @property + def domain_offline_alerts(self): + """ + Gets the domain_offline_alerts of this ProvidersAdsItem. + Sends an alert if the domain goes offline. + + :return: The domain_offline_alerts of this ProvidersAdsItem. + :rtype: bool + """ + return self._domain_offline_alerts + + @domain_offline_alerts.setter + def domain_offline_alerts(self, domain_offline_alerts): + """ + Sets the domain_offline_alerts of this ProvidersAdsItem. + Sends an alert if the domain goes offline. + + :param domain_offline_alerts: The domain_offline_alerts of this ProvidersAdsItem. + :type: bool + """ + + self._domain_offline_alerts = domain_offline_alerts + + @property + def findable_groups(self): + """ + Gets the findable_groups of this ProvidersAdsItem. + Sets list of groups that can be resolved. + + :return: The findable_groups of this ProvidersAdsItem. + :rtype: list[str] + """ + return self._findable_groups + + @findable_groups.setter + def findable_groups(self, findable_groups): + """ + Sets the findable_groups of this ProvidersAdsItem. + Sets list of groups that can be resolved. + + :param findable_groups: The findable_groups of this ProvidersAdsItem. + :type: list[str] + """ + + self._findable_groups = findable_groups + + @property + def findable_users(self): + """ + Gets the findable_users of this ProvidersAdsItem. + Sets list of users that can be resolved. + + :return: The findable_users of this ProvidersAdsItem. + :rtype: list[str] + """ + return self._findable_users + + @findable_users.setter + def findable_users(self, findable_users): + """ + Sets the findable_users of this ProvidersAdsItem. + Sets list of users that can be resolved. + + :param findable_users: The findable_users of this ProvidersAdsItem. + :type: list[str] + """ + + self._findable_users = findable_users + + @property + def groupnet(self): + """ + Gets the groupnet of this ProvidersAdsItem. + Groupnet identifier. + + :return: The groupnet of this ProvidersAdsItem. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this ProvidersAdsItem. + Groupnet identifier. + + :param groupnet: The groupnet of this ProvidersAdsItem. + :type: str + """ + + self._groupnet = groupnet + + @property + def home_directory_template(self): + """ + Gets the home_directory_template of this ProvidersAdsItem. + Specifies the path to the home directory template. + + :return: The home_directory_template of this ProvidersAdsItem. + :rtype: str + """ + return self._home_directory_template + + @home_directory_template.setter + def home_directory_template(self, home_directory_template): + """ + Sets the home_directory_template of this ProvidersAdsItem. + Specifies the path to the home directory template. + + :param home_directory_template: The home_directory_template of this ProvidersAdsItem. + :type: str + """ + + self._home_directory_template = home_directory_template + + @property + def ignore_all_trusts(self): + """ + Gets the ignore_all_trusts of this ProvidersAdsItem. + If set to true, ignores all trusted domains. + + :return: The ignore_all_trusts of this ProvidersAdsItem. + :rtype: bool + """ + return self._ignore_all_trusts + + @ignore_all_trusts.setter + def ignore_all_trusts(self, ignore_all_trusts): + """ + Sets the ignore_all_trusts of this ProvidersAdsItem. + If set to true, ignores all trusted domains. + + :param ignore_all_trusts: The ignore_all_trusts of this ProvidersAdsItem. + :type: bool + """ + + self._ignore_all_trusts = ignore_all_trusts + + @property + def ignored_trusted_domains(self): + """ + Gets the ignored_trusted_domains of this ProvidersAdsItem. + Includes trusted domains when 'ignore_all_trusts' is set to false. + + :return: The ignored_trusted_domains of this ProvidersAdsItem. + :rtype: list[str] + """ + return self._ignored_trusted_domains + + @ignored_trusted_domains.setter + def ignored_trusted_domains(self, ignored_trusted_domains): + """ + Sets the ignored_trusted_domains of this ProvidersAdsItem. + Includes trusted domains when 'ignore_all_trusts' is set to false. + + :param ignored_trusted_domains: The ignored_trusted_domains of this ProvidersAdsItem. + :type: list[str] + """ + + self._ignored_trusted_domains = ignored_trusted_domains + + @property + def include_trusted_domains(self): + """ + Gets the include_trusted_domains of this ProvidersAdsItem. + Includes trusted domains when 'ignore_all_trusts' is set to true. + + :return: The include_trusted_domains of this ProvidersAdsItem. + :rtype: list[str] + """ + return self._include_trusted_domains + + @include_trusted_domains.setter + def include_trusted_domains(self, include_trusted_domains): + """ + Sets the include_trusted_domains of this ProvidersAdsItem. + Includes trusted domains when 'ignore_all_trusts' is set to true. + + :param include_trusted_domains: The include_trusted_domains of this ProvidersAdsItem. + :type: list[str] + """ + + self._include_trusted_domains = include_trusted_domains + + @property + def instance(self): + """ + Gets the instance of this ProvidersAdsItem. + Specifies Active Directory provider instnace. + + :return: The instance of this ProvidersAdsItem. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """ + Sets the instance of this ProvidersAdsItem. + Specifies Active Directory provider instnace. + + :param instance: The instance of this ProvidersAdsItem. + :type: str + """ + + self._instance = instance + + @property + def kerberos_hdfs_spn(self): + """ + Gets the kerberos_hdfs_spn of this ProvidersAdsItem. + Determines if connecting through HDFS with Kerberos. + + :return: The kerberos_hdfs_spn of this ProvidersAdsItem. + :rtype: bool + """ + return self._kerberos_hdfs_spn + + @kerberos_hdfs_spn.setter + def kerberos_hdfs_spn(self, kerberos_hdfs_spn): + """ + Sets the kerberos_hdfs_spn of this ProvidersAdsItem. + Determines if connecting through HDFS with Kerberos. + + :param kerberos_hdfs_spn: The kerberos_hdfs_spn of this ProvidersAdsItem. + :type: bool + """ + + self._kerberos_hdfs_spn = kerberos_hdfs_spn + + @property + def kerberos_nfs_spn(self): + """ + Gets the kerberos_nfs_spn of this ProvidersAdsItem. + Determines if connecting through NFS with Kerberos. + + :return: The kerberos_nfs_spn of this ProvidersAdsItem. + :rtype: bool + """ + return self._kerberos_nfs_spn + + @kerberos_nfs_spn.setter + def kerberos_nfs_spn(self, kerberos_nfs_spn): + """ + Sets the kerberos_nfs_spn of this ProvidersAdsItem. + Determines if connecting through NFS with Kerberos. + + :param kerberos_nfs_spn: The kerberos_nfs_spn of this ProvidersAdsItem. + :type: bool + """ + + self._kerberos_nfs_spn = kerberos_nfs_spn + + @property + def ldap_sign_and_seal(self): + """ + Gets the ldap_sign_and_seal of this ProvidersAdsItem. + Enables encryption and signing on LDAP requests. + + :return: The ldap_sign_and_seal of this ProvidersAdsItem. + :rtype: bool + """ + return self._ldap_sign_and_seal + + @ldap_sign_and_seal.setter + def ldap_sign_and_seal(self, ldap_sign_and_seal): + """ + Sets the ldap_sign_and_seal of this ProvidersAdsItem. + Enables encryption and signing on LDAP requests. + + :param ldap_sign_and_seal: The ldap_sign_and_seal of this ProvidersAdsItem. + :type: bool + """ + + self._ldap_sign_and_seal = ldap_sign_and_seal + + @property + def login_shell(self): + """ + Gets the login_shell of this ProvidersAdsItem. + Specifies the login shell path. + + :return: The login_shell of this ProvidersAdsItem. + :rtype: str + """ + return self._login_shell + + @login_shell.setter + def login_shell(self, login_shell): + """ + Sets the login_shell of this ProvidersAdsItem. + Specifies the login shell path. + + :param login_shell: The login_shell of this ProvidersAdsItem. + :type: str + """ + + self._login_shell = login_shell + + @property + def lookup_domains(self): + """ + Gets the lookup_domains of this ProvidersAdsItem. + Limits user and group lookups to the specified domains. + + :return: The lookup_domains of this ProvidersAdsItem. + :rtype: list[str] + """ + return self._lookup_domains + + @lookup_domains.setter + def lookup_domains(self, lookup_domains): + """ + Sets the lookup_domains of this ProvidersAdsItem. + Limits user and group lookups to the specified domains. + + :param lookup_domains: The lookup_domains of this ProvidersAdsItem. + :type: list[str] + """ + + self._lookup_domains = lookup_domains + + @property + def lookup_groups(self): + """ + Gets the lookup_groups of this ProvidersAdsItem. + Looks up AD groups in other providers before allocating a group ID. + + :return: The lookup_groups of this ProvidersAdsItem. + :rtype: bool + """ + return self._lookup_groups + + @lookup_groups.setter + def lookup_groups(self, lookup_groups): + """ + Sets the lookup_groups of this ProvidersAdsItem. + Looks up AD groups in other providers before allocating a group ID. + + :param lookup_groups: The lookup_groups of this ProvidersAdsItem. + :type: bool + """ + + self._lookup_groups = lookup_groups + + @property + def lookup_normalize_groups(self): + """ + Gets the lookup_normalize_groups of this ProvidersAdsItem. + Normalizes AD group names to lowercase before look up. + + :return: The lookup_normalize_groups of this ProvidersAdsItem. + :rtype: bool + """ + return self._lookup_normalize_groups + + @lookup_normalize_groups.setter + def lookup_normalize_groups(self, lookup_normalize_groups): + """ + Sets the lookup_normalize_groups of this ProvidersAdsItem. + Normalizes AD group names to lowercase before look up. + + :param lookup_normalize_groups: The lookup_normalize_groups of this ProvidersAdsItem. + :type: bool + """ + + self._lookup_normalize_groups = lookup_normalize_groups + + @property + def lookup_normalize_users(self): + """ + Gets the lookup_normalize_users of this ProvidersAdsItem. + Normalize AD user names to lowercase before look up. + + :return: The lookup_normalize_users of this ProvidersAdsItem. + :rtype: bool + """ + return self._lookup_normalize_users + + @lookup_normalize_users.setter + def lookup_normalize_users(self, lookup_normalize_users): + """ + Sets the lookup_normalize_users of this ProvidersAdsItem. + Normalize AD user names to lowercase before look up. + + :param lookup_normalize_users: The lookup_normalize_users of this ProvidersAdsItem. + :type: bool + """ + + self._lookup_normalize_users = lookup_normalize_users + + @property + def lookup_users(self): + """ + Gets the lookup_users of this ProvidersAdsItem. + Looks up AD users in other providers before allocating a user ID. + + :return: The lookup_users of this ProvidersAdsItem. + :rtype: bool + """ + return self._lookup_users + + @lookup_users.setter + def lookup_users(self, lookup_users): + """ + Sets the lookup_users of this ProvidersAdsItem. + Looks up AD users in other providers before allocating a user ID. + + :param lookup_users: The lookup_users of this ProvidersAdsItem. + :type: bool + """ + + self._lookup_users = lookup_users + + @property + def machine_name(self): + """ + Gets the machine_name of this ProvidersAdsItem. + Specifies name to join AD as. + + :return: The machine_name of this ProvidersAdsItem. + :rtype: str + """ + return self._machine_name + + @machine_name.setter + def machine_name(self, machine_name): + """ + Sets the machine_name of this ProvidersAdsItem. + Specifies name to join AD as. + + :param machine_name: The machine_name of this ProvidersAdsItem. + :type: str + """ + + self._machine_name = machine_name + + @property + def machine_password_changes(self): + """ + Gets the machine_password_changes of this ProvidersAdsItem. + Enables periodic changes of the machine password for security. + + :return: The machine_password_changes of this ProvidersAdsItem. + :rtype: bool + """ + return self._machine_password_changes + + @machine_password_changes.setter + def machine_password_changes(self, machine_password_changes): + """ + Sets the machine_password_changes of this ProvidersAdsItem. + Enables periodic changes of the machine password for security. + + :param machine_password_changes: The machine_password_changes of this ProvidersAdsItem. + :type: bool + """ + + self._machine_password_changes = machine_password_changes + + @property + def machine_password_lifespan(self): + """ + Gets the machine_password_lifespan of this ProvidersAdsItem. + Sets maximum age of a password in seconds. + + :return: The machine_password_lifespan of this ProvidersAdsItem. + :rtype: int + """ + return self._machine_password_lifespan + + @machine_password_lifespan.setter + def machine_password_lifespan(self, machine_password_lifespan): + """ + Sets the machine_password_lifespan of this ProvidersAdsItem. + Sets maximum age of a password in seconds. + + :param machine_password_lifespan: The machine_password_lifespan of this ProvidersAdsItem. + :type: int + """ + + if not machine_password_lifespan: + raise ValueError("Invalid value for `machine_password_lifespan`, must not be `None`") + if machine_password_lifespan > 3.1536E7: + raise ValueError("Invalid value for `machine_password_lifespan`, must be a value less than or equal to `3.1536E7`") + if machine_password_lifespan < 3600.0: + raise ValueError("Invalid value for `machine_password_lifespan`, must be a value greater than or equal to `3600.0`") + + self._machine_password_lifespan = machine_password_lifespan + + @property + def name(self): + """ + Gets the name of this ProvidersAdsItem. + Specifies the Active Directory provider name. + + :return: The name of this ProvidersAdsItem. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ProvidersAdsItem. + Specifies the Active Directory provider name. + + :param name: The name of this ProvidersAdsItem. + :type: str + """ + + self._name = name + + @property + def node_dc_affinity(self): + """ + Gets the node_dc_affinity of this ProvidersAdsItem. + Specifies the domain controller for which the node has affinity. + + :return: The node_dc_affinity of this ProvidersAdsItem. + :rtype: str + """ + return self._node_dc_affinity + + @node_dc_affinity.setter + def node_dc_affinity(self, node_dc_affinity): + """ + Sets the node_dc_affinity of this ProvidersAdsItem. + Specifies the domain controller for which the node has affinity. + + :param node_dc_affinity: The node_dc_affinity of this ProvidersAdsItem. + :type: str + """ + + self._node_dc_affinity = node_dc_affinity + + @property + def node_dc_affinity_timeout(self): + """ + Gets the node_dc_affinity_timeout of this ProvidersAdsItem. + Specifies the timeout for the domain controller for which the local node has affinity. + + :return: The node_dc_affinity_timeout of this ProvidersAdsItem. + :rtype: int + """ + return self._node_dc_affinity_timeout + + @node_dc_affinity_timeout.setter + def node_dc_affinity_timeout(self, node_dc_affinity_timeout): + """ + Sets the node_dc_affinity_timeout of this ProvidersAdsItem. + Specifies the timeout for the domain controller for which the local node has affinity. + + :param node_dc_affinity_timeout: The node_dc_affinity_timeout of this ProvidersAdsItem. + :type: int + """ + + self._node_dc_affinity_timeout = node_dc_affinity_timeout + + @property + def nss_enumeration(self): + """ + Gets the nss_enumeration of this ProvidersAdsItem. + Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. + + :return: The nss_enumeration of this ProvidersAdsItem. + :rtype: bool + """ + return self._nss_enumeration + + @nss_enumeration.setter + def nss_enumeration(self, nss_enumeration): + """ + Sets the nss_enumeration of this ProvidersAdsItem. + Enables the Active Directory provider to respond to 'getpwent' and 'getgrent' requests. + + :param nss_enumeration: The nss_enumeration of this ProvidersAdsItem. + :type: bool + """ + + self._nss_enumeration = nss_enumeration + + @property + def organizational_unit(self): + """ + Gets the organizational_unit of this ProvidersAdsItem. + Specifies the organizational unit. + + :return: The organizational_unit of this ProvidersAdsItem. + :rtype: str + """ + return self._organizational_unit + + @organizational_unit.setter + def organizational_unit(self, organizational_unit): + """ + Sets the organizational_unit of this ProvidersAdsItem. + Specifies the organizational unit. + + :param organizational_unit: The organizational_unit of this ProvidersAdsItem. + :type: str + """ + + self._organizational_unit = organizational_unit + + @property + def password(self): + """ + Gets the password of this ProvidersAdsItem. + Specifies the password used during domain join. + + :return: The password of this ProvidersAdsItem. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this ProvidersAdsItem. + Specifies the password used during domain join. + + :param password: The password of this ProvidersAdsItem. + :type: str + """ + + self._password = password + + @property + def restrict_findable(self): + """ + Gets the restrict_findable of this ProvidersAdsItem. + Check the provider for filtered lists of findable and unfindable users and groups. + + :return: The restrict_findable of this ProvidersAdsItem. + :rtype: bool + """ + return self._restrict_findable + + @restrict_findable.setter + def restrict_findable(self, restrict_findable): + """ + Sets the restrict_findable of this ProvidersAdsItem. + Check the provider for filtered lists of findable and unfindable users and groups. + + :param restrict_findable: The restrict_findable of this ProvidersAdsItem. + :type: bool + """ + + self._restrict_findable = restrict_findable + + @property + def sfu_support(self): + """ + Gets the sfu_support of this ProvidersAdsItem. + Specifies whether to support RFC 2307 attributes on ADS domain controllers. + + :return: The sfu_support of this ProvidersAdsItem. + :rtype: str + """ + return self._sfu_support + + @sfu_support.setter + def sfu_support(self, sfu_support): + """ + Sets the sfu_support of this ProvidersAdsItem. + Specifies whether to support RFC 2307 attributes on ADS domain controllers. + + :param sfu_support: The sfu_support of this ProvidersAdsItem. + :type: str + """ + allowed_values = ["none", "rfc2307"] + if sfu_support not in allowed_values: + raise ValueError( + "Invalid value for `sfu_support`, must be one of {0}" + .format(allowed_values) + ) + + self._sfu_support = sfu_support + + @property + def store_sfu_mappings(self): + """ + Gets the store_sfu_mappings of this ProvidersAdsItem. + Stores SFU mappings permanently in the ID mapper. + + :return: The store_sfu_mappings of this ProvidersAdsItem. + :rtype: bool + """ + return self._store_sfu_mappings + + @store_sfu_mappings.setter + def store_sfu_mappings(self, store_sfu_mappings): + """ + Sets the store_sfu_mappings of this ProvidersAdsItem. + Stores SFU mappings permanently in the ID mapper. + + :param store_sfu_mappings: The store_sfu_mappings of this ProvidersAdsItem. + :type: bool + """ + + self._store_sfu_mappings = store_sfu_mappings + + @property + def unfindable_groups(self): + """ + Gets the unfindable_groups of this ProvidersAdsItem. + Specifies groups that cannot be resolved by the provider. + + :return: The unfindable_groups of this ProvidersAdsItem. + :rtype: list[str] + """ + return self._unfindable_groups + + @unfindable_groups.setter + def unfindable_groups(self, unfindable_groups): + """ + Sets the unfindable_groups of this ProvidersAdsItem. + Specifies groups that cannot be resolved by the provider. + + :param unfindable_groups: The unfindable_groups of this ProvidersAdsItem. + :type: list[str] + """ + + self._unfindable_groups = unfindable_groups + + @property + def unfindable_users(self): + """ + Gets the unfindable_users of this ProvidersAdsItem. + Specifies users that cannot be resolved by the provider. + + :return: The unfindable_users of this ProvidersAdsItem. + :rtype: list[str] + """ + return self._unfindable_users + + @unfindable_users.setter + def unfindable_users(self, unfindable_users): + """ + Sets the unfindable_users of this ProvidersAdsItem. + Specifies users that cannot be resolved by the provider. + + :param unfindable_users: The unfindable_users of this ProvidersAdsItem. + :type: list[str] + """ + + self._unfindable_users = unfindable_users + + @property + def user(self): + """ + Gets the user of this ProvidersAdsItem. + Specifies the user name that has permission to join a machine to the given domain. + + :return: The user of this ProvidersAdsItem. + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """ + Sets the user of this ProvidersAdsItem. + Specifies the user name that has permission to join a machine to the given domain. + + :param user: The user of this ProvidersAdsItem. + :type: str + """ + + self._user = user + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_file.py b/isi_sdk/models/providers_file.py index 1f824e8af..01b53045c 100644 --- a/isi_sdk/models/providers_file.py +++ b/isi_sdk/models/providers_file.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersFile(object): @@ -66,6 +67,7 @@ def file(self, file): :param file: The file of this ProvidersFile. :type: list[ProvidersFileFileItem] """ + self._file = file def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_file_file_item.py b/isi_sdk/models/providers_file_file_item.py index b1ecf1260..9030912b2 100644 --- a/isi_sdk/models/providers_file_file_item.py +++ b/isi_sdk/models/providers_file_file_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersFileFileItem(object): @@ -168,6 +169,7 @@ def authentication(self, authentication): :param authentication: The authentication of this ProvidersFileFileItem. :type: bool """ + self._authentication = authentication @property @@ -190,6 +192,7 @@ def create_home_directory(self, create_home_directory): :param create_home_directory: The create_home_directory of this ProvidersFileFileItem. :type: bool """ + self._create_home_directory = create_home_directory @property @@ -212,6 +215,7 @@ def enabled(self, enabled): :param enabled: The enabled of this ProvidersFileFileItem. :type: bool """ + self._enabled = enabled @property @@ -234,6 +238,7 @@ def enumerate_groups(self, enumerate_groups): :param enumerate_groups: The enumerate_groups of this ProvidersFileFileItem. :type: bool """ + self._enumerate_groups = enumerate_groups @property @@ -256,6 +261,7 @@ def enumerate_users(self, enumerate_users): :param enumerate_users: The enumerate_users of this ProvidersFileFileItem. :type: bool """ + self._enumerate_users = enumerate_users @property @@ -278,6 +284,7 @@ def findable_groups(self, findable_groups): :param findable_groups: The findable_groups of this ProvidersFileFileItem. :type: list[str] """ + self._findable_groups = findable_groups @property @@ -300,6 +307,7 @@ def findable_users(self, findable_users): :param findable_users: The findable_users of this ProvidersFileFileItem. :type: list[str] """ + self._findable_users = findable_users @property @@ -322,6 +330,7 @@ def group_domain(self, group_domain): :param group_domain: The group_domain of this ProvidersFileFileItem. :type: str """ + self._group_domain = group_domain @property @@ -344,6 +353,7 @@ def group_file(self, group_file): :param group_file: The group_file of this ProvidersFileFileItem. :type: str """ + self._group_file = group_file @property @@ -366,6 +376,7 @@ def home_directory_template(self, home_directory_template): :param home_directory_template: The home_directory_template of this ProvidersFileFileItem. :type: str """ + self._home_directory_template = home_directory_template @property @@ -388,6 +399,7 @@ def id(self, id): :param id: The id of this ProvidersFileFileItem. :type: str """ + self._id = id @property @@ -410,6 +422,7 @@ def listable_groups(self, listable_groups): :param listable_groups: The listable_groups of this ProvidersFileFileItem. :type: list[str] """ + self._listable_groups = listable_groups @property @@ -432,6 +445,7 @@ def listable_users(self, listable_users): :param listable_users: The listable_users of this ProvidersFileFileItem. :type: list[str] """ + self._listable_users = listable_users @property @@ -454,6 +468,7 @@ def login_shell(self, login_shell): :param login_shell: The login_shell of this ProvidersFileFileItem. :type: str """ + self._login_shell = login_shell @property @@ -476,6 +491,7 @@ def modifiable_groups(self, modifiable_groups): :param modifiable_groups: The modifiable_groups of this ProvidersFileFileItem. :type: list[str] """ + self._modifiable_groups = modifiable_groups @property @@ -498,6 +514,7 @@ def modifiable_users(self, modifiable_users): :param modifiable_users: The modifiable_users of this ProvidersFileFileItem. :type: list[str] """ + self._modifiable_users = modifiable_users @property @@ -520,6 +537,7 @@ def name(self, name): :param name: The name of this ProvidersFileFileItem. :type: str """ + self._name = name @property @@ -542,6 +560,7 @@ def netgroup_file(self, netgroup_file): :param netgroup_file: The netgroup_file of this ProvidersFileFileItem. :type: str """ + self._netgroup_file = netgroup_file @property @@ -564,6 +583,7 @@ def normalize_groups(self, normalize_groups): :param normalize_groups: The normalize_groups of this ProvidersFileFileItem. :type: bool """ + self._normalize_groups = normalize_groups @property @@ -586,6 +606,7 @@ def normalize_users(self, normalize_users): :param normalize_users: The normalize_users of this ProvidersFileFileItem. :type: bool """ + self._normalize_users = normalize_users @property @@ -614,6 +635,7 @@ def ntlm_support(self, ntlm_support): "Invalid value for `ntlm_support`, must be one of {0}" .format(allowed_values) ) + self._ntlm_support = ntlm_support @property @@ -636,6 +658,7 @@ def password_file(self, password_file): :param password_file: The password_file of this ProvidersFileFileItem. :type: str """ + self._password_file = password_file @property @@ -658,6 +681,7 @@ def provider_domain(self, provider_domain): :param provider_domain: The provider_domain of this ProvidersFileFileItem. :type: str """ + self._provider_domain = provider_domain @property @@ -680,6 +704,7 @@ def restrict_findable(self, restrict_findable): :param restrict_findable: The restrict_findable of this ProvidersFileFileItem. :type: bool """ + self._restrict_findable = restrict_findable @property @@ -702,6 +727,7 @@ def restrict_listable(self, restrict_listable): :param restrict_listable: The restrict_listable of this ProvidersFileFileItem. :type: bool """ + self._restrict_listable = restrict_listable @property @@ -724,6 +750,7 @@ def restrict_modifiable(self, restrict_modifiable): :param restrict_modifiable: The restrict_modifiable of this ProvidersFileFileItem. :type: bool """ + self._restrict_modifiable = restrict_modifiable @property @@ -746,6 +773,7 @@ def status(self, status): :param status: The status of this ProvidersFileFileItem. :type: str """ + self._status = status @property @@ -768,6 +796,7 @@ def system(self, system): :param system: The system of this ProvidersFileFileItem. :type: bool """ + self._system = system @property @@ -790,6 +819,7 @@ def unfindable_groups(self, unfindable_groups): :param unfindable_groups: The unfindable_groups of this ProvidersFileFileItem. :type: list[str] """ + self._unfindable_groups = unfindable_groups @property @@ -812,6 +842,7 @@ def unfindable_users(self, unfindable_users): :param unfindable_users: The unfindable_users of this ProvidersFileFileItem. :type: list[str] """ + self._unfindable_users = unfindable_users @property @@ -834,6 +865,7 @@ def unlistable_groups(self, unlistable_groups): :param unlistable_groups: The unlistable_groups of this ProvidersFileFileItem. :type: list[str] """ + self._unlistable_groups = unlistable_groups @property @@ -856,6 +888,7 @@ def unlistable_users(self, unlistable_users): :param unlistable_users: The unlistable_users of this ProvidersFileFileItem. :type: list[str] """ + self._unlistable_users = unlistable_users @property @@ -878,6 +911,7 @@ def unmodifiable_groups(self, unmodifiable_groups): :param unmodifiable_groups: The unmodifiable_groups of this ProvidersFileFileItem. :type: list[str] """ + self._unmodifiable_groups = unmodifiable_groups @property @@ -900,6 +934,7 @@ def unmodifiable_users(self, unmodifiable_users): :param unmodifiable_users: The unmodifiable_users of this ProvidersFileFileItem. :type: list[str] """ + self._unmodifiable_users = unmodifiable_users @property @@ -922,6 +957,7 @@ def user_domain(self, user_domain): :param user_domain: The user_domain of this ProvidersFileFileItem. :type: str """ + self._user_domain = user_domain def to_dict(self): @@ -939,6 +975,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -956,14 +998,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_file_id_params.py b/isi_sdk/models/providers_file_id_params.py index 85c95788c..2278f7751 100644 --- a/isi_sdk/models/providers_file_id_params.py +++ b/isi_sdk/models/providers_file_id_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersFileIdParams(object): @@ -159,6 +160,7 @@ def authentication(self, authentication): :param authentication: The authentication of this ProvidersFileIdParams. :type: bool """ + self._authentication = authentication @property @@ -181,6 +183,7 @@ def create_home_directory(self, create_home_directory): :param create_home_directory: The create_home_directory of this ProvidersFileIdParams. :type: bool """ + self._create_home_directory = create_home_directory @property @@ -203,6 +206,7 @@ def enabled(self, enabled): :param enabled: The enabled of this ProvidersFileIdParams. :type: bool """ + self._enabled = enabled @property @@ -225,6 +229,7 @@ def enumerate_groups(self, enumerate_groups): :param enumerate_groups: The enumerate_groups of this ProvidersFileIdParams. :type: bool """ + self._enumerate_groups = enumerate_groups @property @@ -247,6 +252,7 @@ def enumerate_users(self, enumerate_users): :param enumerate_users: The enumerate_users of this ProvidersFileIdParams. :type: bool """ + self._enumerate_users = enumerate_users @property @@ -269,6 +275,7 @@ def findable_groups(self, findable_groups): :param findable_groups: The findable_groups of this ProvidersFileIdParams. :type: list[str] """ + self._findable_groups = findable_groups @property @@ -291,6 +298,7 @@ def findable_users(self, findable_users): :param findable_users: The findable_users of this ProvidersFileIdParams. :type: list[str] """ + self._findable_users = findable_users @property @@ -313,6 +321,7 @@ def group_domain(self, group_domain): :param group_domain: The group_domain of this ProvidersFileIdParams. :type: str """ + self._group_domain = group_domain @property @@ -335,6 +344,7 @@ def group_file(self, group_file): :param group_file: The group_file of this ProvidersFileIdParams. :type: str """ + self._group_file = group_file @property @@ -357,6 +367,7 @@ def home_directory_template(self, home_directory_template): :param home_directory_template: The home_directory_template of this ProvidersFileIdParams. :type: str """ + self._home_directory_template = home_directory_template @property @@ -379,6 +390,7 @@ def listable_groups(self, listable_groups): :param listable_groups: The listable_groups of this ProvidersFileIdParams. :type: list[str] """ + self._listable_groups = listable_groups @property @@ -401,6 +413,7 @@ def listable_users(self, listable_users): :param listable_users: The listable_users of this ProvidersFileIdParams. :type: list[str] """ + self._listable_users = listable_users @property @@ -423,6 +436,7 @@ def login_shell(self, login_shell): :param login_shell: The login_shell of this ProvidersFileIdParams. :type: str """ + self._login_shell = login_shell @property @@ -445,6 +459,7 @@ def modifiable_groups(self, modifiable_groups): :param modifiable_groups: The modifiable_groups of this ProvidersFileIdParams. :type: list[str] """ + self._modifiable_groups = modifiable_groups @property @@ -467,6 +482,7 @@ def modifiable_users(self, modifiable_users): :param modifiable_users: The modifiable_users of this ProvidersFileIdParams. :type: list[str] """ + self._modifiable_users = modifiable_users @property @@ -489,6 +505,7 @@ def name(self, name): :param name: The name of this ProvidersFileIdParams. :type: str """ + self._name = name @property @@ -511,6 +528,7 @@ def netgroup_file(self, netgroup_file): :param netgroup_file: The netgroup_file of this ProvidersFileIdParams. :type: str """ + self._netgroup_file = netgroup_file @property @@ -533,6 +551,7 @@ def normalize_groups(self, normalize_groups): :param normalize_groups: The normalize_groups of this ProvidersFileIdParams. :type: bool """ + self._normalize_groups = normalize_groups @property @@ -555,6 +574,7 @@ def normalize_users(self, normalize_users): :param normalize_users: The normalize_users of this ProvidersFileIdParams. :type: bool """ + self._normalize_users = normalize_users @property @@ -583,6 +603,7 @@ def ntlm_support(self, ntlm_support): "Invalid value for `ntlm_support`, must be one of {0}" .format(allowed_values) ) + self._ntlm_support = ntlm_support @property @@ -605,6 +626,7 @@ def password_file(self, password_file): :param password_file: The password_file of this ProvidersFileIdParams. :type: str """ + self._password_file = password_file @property @@ -627,6 +649,7 @@ def provider_domain(self, provider_domain): :param provider_domain: The provider_domain of this ProvidersFileIdParams. :type: str """ + self._provider_domain = provider_domain @property @@ -649,6 +672,7 @@ def restrict_findable(self, restrict_findable): :param restrict_findable: The restrict_findable of this ProvidersFileIdParams. :type: bool """ + self._restrict_findable = restrict_findable @property @@ -671,6 +695,7 @@ def restrict_listable(self, restrict_listable): :param restrict_listable: The restrict_listable of this ProvidersFileIdParams. :type: bool """ + self._restrict_listable = restrict_listable @property @@ -693,6 +718,7 @@ def restrict_modifiable(self, restrict_modifiable): :param restrict_modifiable: The restrict_modifiable of this ProvidersFileIdParams. :type: bool """ + self._restrict_modifiable = restrict_modifiable @property @@ -715,6 +741,7 @@ def unfindable_groups(self, unfindable_groups): :param unfindable_groups: The unfindable_groups of this ProvidersFileIdParams. :type: list[str] """ + self._unfindable_groups = unfindable_groups @property @@ -737,6 +764,7 @@ def unfindable_users(self, unfindable_users): :param unfindable_users: The unfindable_users of this ProvidersFileIdParams. :type: list[str] """ + self._unfindable_users = unfindable_users @property @@ -759,6 +787,7 @@ def unlistable_groups(self, unlistable_groups): :param unlistable_groups: The unlistable_groups of this ProvidersFileIdParams. :type: list[str] """ + self._unlistable_groups = unlistable_groups @property @@ -781,6 +810,7 @@ def unlistable_users(self, unlistable_users): :param unlistable_users: The unlistable_users of this ProvidersFileIdParams. :type: list[str] """ + self._unlistable_users = unlistable_users @property @@ -803,6 +833,7 @@ def unmodifiable_groups(self, unmodifiable_groups): :param unmodifiable_groups: The unmodifiable_groups of this ProvidersFileIdParams. :type: list[str] """ + self._unmodifiable_groups = unmodifiable_groups @property @@ -825,6 +856,7 @@ def unmodifiable_users(self, unmodifiable_users): :param unmodifiable_users: The unmodifiable_users of this ProvidersFileIdParams. :type: list[str] """ + self._unmodifiable_users = unmodifiable_users @property @@ -847,6 +879,7 @@ def user_domain(self, user_domain): :param user_domain: The user_domain of this ProvidersFileIdParams. :type: str """ + self._user_domain = user_domain def to_dict(self): @@ -864,6 +897,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -881,14 +920,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_krb5.py b/isi_sdk/models/providers_krb5.py index 7c3dbb5af..57640d098 100644 --- a/isi_sdk/models/providers_krb5.py +++ b/isi_sdk/models/providers_krb5.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersKrb5(object): @@ -66,6 +67,7 @@ def krb5(self, krb5): :param krb5: The krb5 of this ProvidersKrb5. :type: list[ProvidersKrb5Krb5Item] """ + self._krb5 = krb5 def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_krb5_extended.py b/isi_sdk/models/providers_krb5_extended.py index 588f6fe22..eea3b6d01 100644 --- a/isi_sdk/models/providers_krb5_extended.py +++ b/isi_sdk/models/providers_krb5_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersKrb5Extended(object): @@ -66,6 +67,7 @@ def krb5(self, krb5): :param krb5: The krb5 of this ProvidersKrb5Extended. :type: list[ProvidersKrb5Krb5Item] """ + self._krb5 = krb5 def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_krb5_id_params.py b/isi_sdk/models/providers_krb5_id_params.py index d42f00e56..84d9b3792 100644 --- a/isi_sdk/models/providers_krb5_id_params.py +++ b/isi_sdk/models/providers_krb5_id_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersKrb5IdParams(object): @@ -87,6 +88,7 @@ def keytab_entries(self, keytab_entries): :param keytab_entries: The keytab_entries of this ProvidersKrb5IdParams. :type: list[ProvidersKrb5IdParamsKeytabEntry] """ + self._keytab_entries = keytab_entries @property @@ -109,6 +111,7 @@ def keytab_file(self, keytab_file): :param keytab_file: The keytab_file of this ProvidersKrb5IdParams. :type: str """ + self._keytab_file = keytab_file @property @@ -131,6 +134,7 @@ def manual_keying(self, manual_keying): :param manual_keying: The manual_keying of this ProvidersKrb5IdParams. :type: bool """ + self._manual_keying = manual_keying @property @@ -153,6 +157,7 @@ def name(self, name): :param name: The name of this ProvidersKrb5IdParams. :type: str """ + self._name = name @property @@ -175,6 +180,7 @@ def password(self, password): :param password: The password of this ProvidersKrb5IdParams. :type: str """ + self._password = password @property @@ -197,6 +203,7 @@ def realm(self, realm): :param realm: The realm of this ProvidersKrb5IdParams. :type: str """ + self._realm = realm @property @@ -219,6 +226,7 @@ def status(self, status): :param status: The status of this ProvidersKrb5IdParams. :type: str """ + self._status = status @property @@ -241,6 +249,7 @@ def user(self, user): :param user: The user of this ProvidersKrb5IdParams. :type: str """ + self._user = user def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_krb5_id_params_keytab_entry.py b/isi_sdk/models/providers_krb5_id_params_keytab_entry.py index e43d6a4c2..e004264db 100644 --- a/isi_sdk/models/providers_krb5_id_params_keytab_entry.py +++ b/isi_sdk/models/providers_krb5_id_params_keytab_entry.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersKrb5IdParamsKeytabEntry(object): @@ -75,6 +76,7 @@ def encryption(self, encryption): :param encryption: The encryption of this ProvidersKrb5IdParamsKeytabEntry. :type: list[str] """ + self._encryption = encryption @property @@ -97,6 +99,7 @@ def kvno(self, kvno): :param kvno: The kvno of this ProvidersKrb5IdParamsKeytabEntry. :type: int """ + self._kvno = kvno @property @@ -119,6 +122,7 @@ def spn(self, spn): :param spn: The spn of this ProvidersKrb5IdParamsKeytabEntry. :type: str """ + self._spn = spn @property @@ -141,6 +145,7 @@ def timestamp(self, timestamp): :param timestamp: The timestamp of this ProvidersKrb5IdParamsKeytabEntry. :type: int """ + self._timestamp = timestamp def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_krb5_item.py b/isi_sdk/models/providers_krb5_item.py index a548d15ab..25aabcbde 100644 --- a/isi_sdk/models/providers_krb5_item.py +++ b/isi_sdk/models/providers_krb5_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersKrb5Item(object): @@ -87,6 +88,7 @@ def groupnet(self, groupnet): :param groupnet: The groupnet of this ProvidersKrb5Item. :type: str """ + self._groupnet = groupnet @property @@ -109,6 +111,7 @@ def keytab_entries(self, keytab_entries): :param keytab_entries: The keytab_entries of this ProvidersKrb5Item. :type: list[ProvidersKrb5IdParamsKeytabEntry] """ + self._keytab_entries = keytab_entries @property @@ -131,6 +134,7 @@ def keytab_file(self, keytab_file): :param keytab_file: The keytab_file of this ProvidersKrb5Item. :type: str """ + self._keytab_file = keytab_file @property @@ -153,6 +157,7 @@ def manual_keying(self, manual_keying): :param manual_keying: The manual_keying of this ProvidersKrb5Item. :type: bool """ + self._manual_keying = manual_keying @property @@ -175,6 +180,7 @@ def name(self, name): :param name: The name of this ProvidersKrb5Item. :type: str """ + self._name = name @property @@ -197,6 +203,7 @@ def password(self, password): :param password: The password of this ProvidersKrb5Item. :type: str """ + self._password = password @property @@ -219,6 +226,7 @@ def realm(self, realm): :param realm: The realm of this ProvidersKrb5Item. :type: str """ + self._realm = realm @property @@ -241,6 +249,7 @@ def user(self, user): :param user: The user of this ProvidersKrb5Item. :type: str """ + self._user = user def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_krb5_krb5_item.py b/isi_sdk/models/providers_krb5_krb5_item.py index 727c0cd3f..5fbeca1fb 100644 --- a/isi_sdk/models/providers_krb5_krb5_item.py +++ b/isi_sdk/models/providers_krb5_krb5_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersKrb5Krb5Item(object): @@ -96,6 +97,7 @@ def groupnet(self, groupnet): :param groupnet: The groupnet of this ProvidersKrb5Krb5Item. :type: str """ + self._groupnet = groupnet @property @@ -118,6 +120,7 @@ def id(self, id): :param id: The id of this ProvidersKrb5Krb5Item. :type: str """ + self._id = id @property @@ -140,6 +143,7 @@ def keytab_entries(self, keytab_entries): :param keytab_entries: The keytab_entries of this ProvidersKrb5Krb5Item. :type: list[ProvidersKrb5IdParamsKeytabEntry] """ + self._keytab_entries = keytab_entries @property @@ -162,6 +166,7 @@ def keytab_file(self, keytab_file): :param keytab_file: The keytab_file of this ProvidersKrb5Krb5Item. :type: str """ + self._keytab_file = keytab_file @property @@ -184,6 +189,7 @@ def manual_keying(self, manual_keying): :param manual_keying: The manual_keying of this ProvidersKrb5Krb5Item. :type: bool """ + self._manual_keying = manual_keying @property @@ -206,6 +212,7 @@ def name(self, name): :param name: The name of this ProvidersKrb5Krb5Item. :type: str """ + self._name = name @property @@ -228,6 +235,7 @@ def realm(self, realm): :param realm: The realm of this ProvidersKrb5Krb5Item. :type: str """ + self._realm = realm @property @@ -250,6 +258,7 @@ def recommended_spns(self, recommended_spns): :param recommended_spns: The recommended_spns of this ProvidersKrb5Krb5Item. :type: list[str] """ + self._recommended_spns = recommended_spns @property @@ -272,6 +281,7 @@ def status(self, status): :param status: The status of this ProvidersKrb5Krb5Item. :type: str """ + self._status = status @property @@ -294,6 +304,7 @@ def system(self, system): :param system: The system of this ProvidersKrb5Krb5Item. :type: bool """ + self._system = system @property @@ -316,6 +327,7 @@ def user(self, user): :param user: The user of this ProvidersKrb5Krb5Item. :type: str """ + self._user = user def to_dict(self): @@ -333,6 +345,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -350,14 +368,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_krb5_krb5_item_extended.py b/isi_sdk/models/providers_krb5_krb5_item_extended.py index 9bb32f07f..9cdd9228a 100644 --- a/isi_sdk/models/providers_krb5_krb5_item_extended.py +++ b/isi_sdk/models/providers_krb5_krb5_item_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersKrb5Krb5ItemExtended(object): @@ -38,46 +39,46 @@ def __init__(self): """ self.swagger_types = { 'groupnet': 'str', + 'id': 'str', 'keytab_entries': 'list[ProvidersKrb5IdParamsKeytabEntry]', - 'password': 'str', - 'system': 'bool', 'keytab_file': 'str', 'manual_keying': 'bool', 'name': 'str', - 'recommended_spns': 'list[str]', 'realm': 'str', - 'id': 'str', + 'recommended_spns': 'list[str]', + 'status': 'str', + 'system': 'bool', 'user': 'str', - 'status': 'str' + 'password': 'str' } self.attribute_map = { 'groupnet': 'groupnet', + 'id': 'id', 'keytab_entries': 'keytab_entries', - 'password': 'password', - 'system': 'system', 'keytab_file': 'keytab_file', 'manual_keying': 'manual_keying', 'name': 'name', - 'recommended_spns': 'recommended_spns', 'realm': 'realm', - 'id': 'id', + 'recommended_spns': 'recommended_spns', + 'status': 'status', + 'system': 'system', 'user': 'user', - 'status': 'status' + 'password': 'password' } self._groupnet = None + self._id = None self._keytab_entries = None - self._password = None - self._system = None self._keytab_file = None self._manual_keying = None self._name = None - self._recommended_spns = None self._realm = None - self._id = None - self._user = None + self._recommended_spns = None self._status = None + self._system = None + self._user = None + self._password = None @property def groupnet(self): @@ -99,8 +100,32 @@ def groupnet(self, groupnet): :param groupnet: The groupnet of this ProvidersKrb5Krb5ItemExtended. :type: str """ + self._groupnet = groupnet + @property + def id(self): + """ + Gets the id of this ProvidersKrb5Krb5ItemExtended. + Specifies the Kerberos provider ID. + + :return: The id of this ProvidersKrb5Krb5ItemExtended. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ProvidersKrb5Krb5ItemExtended. + Specifies the Kerberos provider ID. + + :param id: The id of this ProvidersKrb5Krb5ItemExtended. + :type: str + """ + + self._id = id + @property def keytab_entries(self): """ @@ -121,52 +146,9 @@ def keytab_entries(self, keytab_entries): :param keytab_entries: The keytab_entries of this ProvidersKrb5Krb5ItemExtended. :type: list[ProvidersKrb5IdParamsKeytabEntry] """ + self._keytab_entries = keytab_entries - @property - def password(self): - """ - Gets the password of this ProvidersKrb5Krb5ItemExtended. - Specifies the Kerberos provider password. - - :return: The password of this ProvidersKrb5Krb5ItemExtended. - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """ - Sets the password of this ProvidersKrb5Krb5ItemExtended. - Specifies the Kerberos provider password. - - :param password: The password of this ProvidersKrb5Krb5ItemExtended. - :type: str - """ - self._password = password - - @property - def system(self): - """ - Gets the system of this ProvidersKrb5Krb5ItemExtended. - If true, indicates that this provider instance was created by OneFS and cannot be removed - - :return: The system of this ProvidersKrb5Krb5ItemExtended. - :rtype: bool - """ - return self._system - - @system.setter - def system(self, system): - """ - Sets the system of this ProvidersKrb5Krb5ItemExtended. - If true, indicates that this provider instance was created by OneFS and cannot be removed - - :param system: The system of this ProvidersKrb5Krb5ItemExtended. - :type: bool - """ - self._system = system - @property def keytab_file(self): """ @@ -187,6 +169,7 @@ def keytab_file(self, keytab_file): :param keytab_file: The keytab_file of this ProvidersKrb5Krb5ItemExtended. :type: str """ + self._keytab_file = keytab_file @property @@ -209,6 +192,7 @@ def manual_keying(self, manual_keying): :param manual_keying: The manual_keying of this ProvidersKrb5Krb5ItemExtended. :type: bool """ + self._manual_keying = manual_keying @property @@ -231,8 +215,32 @@ def name(self, name): :param name: The name of this ProvidersKrb5Krb5ItemExtended. :type: str """ + self._name = name + @property + def realm(self): + """ + Gets the realm of this ProvidersKrb5Krb5ItemExtended. + Specifies the name of realm. + + :return: The realm of this ProvidersKrb5Krb5ItemExtended. + :rtype: str + """ + return self._realm + + @realm.setter + def realm(self, realm): + """ + Sets the realm of this ProvidersKrb5Krb5ItemExtended. + Specifies the name of realm. + + :param realm: The realm of this ProvidersKrb5Krb5ItemExtended. + :type: str + """ + + self._realm = realm + @property def recommended_spns(self): """ @@ -253,51 +261,54 @@ def recommended_spns(self, recommended_spns): :param recommended_spns: The recommended_spns of this ProvidersKrb5Krb5ItemExtended. :type: list[str] """ + self._recommended_spns = recommended_spns @property - def realm(self): + def status(self): """ - Gets the realm of this ProvidersKrb5Krb5ItemExtended. - Specifies the name of realm. + Gets the status of this ProvidersKrb5Krb5ItemExtended. + Specifies the status of the provider. - :return: The realm of this ProvidersKrb5Krb5ItemExtended. + :return: The status of this ProvidersKrb5Krb5ItemExtended. :rtype: str """ - return self._realm + return self._status - @realm.setter - def realm(self, realm): + @status.setter + def status(self, status): """ - Sets the realm of this ProvidersKrb5Krb5ItemExtended. - Specifies the name of realm. + Sets the status of this ProvidersKrb5Krb5ItemExtended. + Specifies the status of the provider. - :param realm: The realm of this ProvidersKrb5Krb5ItemExtended. + :param status: The status of this ProvidersKrb5Krb5ItemExtended. :type: str """ - self._realm = realm + + self._status = status @property - def id(self): + def system(self): """ - Gets the id of this ProvidersKrb5Krb5ItemExtended. - Specifies the Kerberos provider ID. + Gets the system of this ProvidersKrb5Krb5ItemExtended. + If true, indicates that this provider instance was created by OneFS and cannot be removed - :return: The id of this ProvidersKrb5Krb5ItemExtended. - :rtype: str + :return: The system of this ProvidersKrb5Krb5ItemExtended. + :rtype: bool """ - return self._id + return self._system - @id.setter - def id(self, id): + @system.setter + def system(self, system): """ - Sets the id of this ProvidersKrb5Krb5ItemExtended. - Specifies the Kerberos provider ID. + Sets the system of this ProvidersKrb5Krb5ItemExtended. + If true, indicates that this provider instance was created by OneFS and cannot be removed - :param id: The id of this ProvidersKrb5Krb5ItemExtended. - :type: str + :param system: The system of this ProvidersKrb5Krb5ItemExtended. + :type: bool """ - self._id = id + + self._system = system @property def user(self): @@ -319,29 +330,31 @@ def user(self, user): :param user: The user of this ProvidersKrb5Krb5ItemExtended. :type: str """ + self._user = user @property - def status(self): + def password(self): """ - Gets the status of this ProvidersKrb5Krb5ItemExtended. - Specifies the status of the provider. + Gets the password of this ProvidersKrb5Krb5ItemExtended. + Specifies the Kerberos provider password. - :return: The status of this ProvidersKrb5Krb5ItemExtended. + :return: The password of this ProvidersKrb5Krb5ItemExtended. :rtype: str """ - return self._status + return self._password - @status.setter - def status(self, status): + @password.setter + def password(self, password): """ - Sets the status of this ProvidersKrb5Krb5ItemExtended. - Specifies the status of the provider. + Sets the password of this ProvidersKrb5Krb5ItemExtended. + Specifies the Kerberos provider password. - :param status: The status of this ProvidersKrb5Krb5ItemExtended. + :param password: The password of this ProvidersKrb5Krb5ItemExtended. :type: str """ - self._status = status + + self._password = password def to_dict(self): """ @@ -358,6 +371,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -375,14 +394,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_ldap.py b/isi_sdk/models/providers_ldap.py index 3ce4018a6..cfb2948ca 100644 --- a/isi_sdk/models/providers_ldap.py +++ b/isi_sdk/models/providers_ldap.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersLdap(object): @@ -66,6 +67,7 @@ def ldap(self, ldap): :param ldap: The ldap of this ProvidersLdap. :type: list[ProvidersLdapLdapItem] """ + self._ldap = ldap def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_ldap_id_params.py b/isi_sdk/models/providers_ldap_id_params.py index 47a36671e..2fa53e4d1 100644 --- a/isi_sdk/models/providers_ldap_id_params.py +++ b/isi_sdk/models/providers_ldap_id_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersLdapIdParams(object): @@ -249,6 +250,7 @@ def alternate_security_identities_attribute(self, alternate_security_identities_ :param alternate_security_identities_attribute: The alternate_security_identities_attribute of this ProvidersLdapIdParams. :type: str """ + self._alternate_security_identities_attribute = alternate_security_identities_attribute @property @@ -271,6 +273,7 @@ def authentication(self, authentication): :param authentication: The authentication of this ProvidersLdapIdParams. :type: bool """ + self._authentication = authentication @property @@ -293,6 +296,7 @@ def balance_servers(self, balance_servers): :param balance_servers: The balance_servers of this ProvidersLdapIdParams. :type: bool """ + self._balance_servers = balance_servers @property @@ -315,6 +319,7 @@ def base_dn(self, base_dn): :param base_dn: The base_dn of this ProvidersLdapIdParams. :type: str """ + self._base_dn = base_dn @property @@ -337,6 +342,7 @@ def bind_dn(self, bind_dn): :param bind_dn: The bind_dn of this ProvidersLdapIdParams. :type: str """ + self._bind_dn = bind_dn @property @@ -365,6 +371,7 @@ def bind_mechanism(self, bind_mechanism): "Invalid value for `bind_mechanism`, must be one of {0}" .format(allowed_values) ) + self._bind_mechanism = bind_mechanism @property @@ -387,6 +394,7 @@ def bind_password(self, bind_password): :param bind_password: The bind_password of this ProvidersLdapIdParams. :type: str """ + self._bind_password = bind_password @property @@ -409,6 +417,7 @@ def bind_timeout(self, bind_timeout): :param bind_timeout: The bind_timeout of this ProvidersLdapIdParams. :type: int """ + self._bind_timeout = bind_timeout @property @@ -431,6 +440,7 @@ def certificate_authority_file(self, certificate_authority_file): :param certificate_authority_file: The certificate_authority_file of this ProvidersLdapIdParams. :type: str """ + self._certificate_authority_file = certificate_authority_file @property @@ -453,6 +463,7 @@ def check_online_interval(self, check_online_interval): :param check_online_interval: The check_online_interval of this ProvidersLdapIdParams. :type: int """ + self._check_online_interval = check_online_interval @property @@ -475,6 +486,7 @@ def cn_attribute(self, cn_attribute): :param cn_attribute: The cn_attribute of this ProvidersLdapIdParams. :type: str """ + self._cn_attribute = cn_attribute @property @@ -497,6 +509,7 @@ def create_home_directory(self, create_home_directory): :param create_home_directory: The create_home_directory of this ProvidersLdapIdParams. :type: bool """ + self._create_home_directory = create_home_directory @property @@ -519,6 +532,7 @@ def crypt_password_attribute(self, crypt_password_attribute): :param crypt_password_attribute: The crypt_password_attribute of this ProvidersLdapIdParams. :type: str """ + self._crypt_password_attribute = crypt_password_attribute @property @@ -541,6 +555,7 @@ def email_attribute(self, email_attribute): :param email_attribute: The email_attribute of this ProvidersLdapIdParams. :type: str """ + self._email_attribute = email_attribute @property @@ -563,6 +578,7 @@ def enabled(self, enabled): :param enabled: The enabled of this ProvidersLdapIdParams. :type: bool """ + self._enabled = enabled @property @@ -585,6 +601,7 @@ def enumerate_groups(self, enumerate_groups): :param enumerate_groups: The enumerate_groups of this ProvidersLdapIdParams. :type: bool """ + self._enumerate_groups = enumerate_groups @property @@ -607,6 +624,7 @@ def enumerate_users(self, enumerate_users): :param enumerate_users: The enumerate_users of this ProvidersLdapIdParams. :type: bool """ + self._enumerate_users = enumerate_users @property @@ -629,6 +647,7 @@ def findable_groups(self, findable_groups): :param findable_groups: The findable_groups of this ProvidersLdapIdParams. :type: list[str] """ + self._findable_groups = findable_groups @property @@ -651,6 +670,7 @@ def findable_users(self, findable_users): :param findable_users: The findable_users of this ProvidersLdapIdParams. :type: list[str] """ + self._findable_users = findable_users @property @@ -673,6 +693,7 @@ def gecos_attribute(self, gecos_attribute): :param gecos_attribute: The gecos_attribute of this ProvidersLdapIdParams. :type: str """ + self._gecos_attribute = gecos_attribute @property @@ -695,6 +716,7 @@ def gid_attribute(self, gid_attribute): :param gid_attribute: The gid_attribute of this ProvidersLdapIdParams. :type: str """ + self._gid_attribute = gid_attribute @property @@ -717,6 +739,7 @@ def group_base_dn(self, group_base_dn): :param group_base_dn: The group_base_dn of this ProvidersLdapIdParams. :type: str """ + self._group_base_dn = group_base_dn @property @@ -739,6 +762,7 @@ def group_domain(self, group_domain): :param group_domain: The group_domain of this ProvidersLdapIdParams. :type: str """ + self._group_domain = group_domain @property @@ -761,6 +785,7 @@ def group_filter(self, group_filter): :param group_filter: The group_filter of this ProvidersLdapIdParams. :type: str """ + self._group_filter = group_filter @property @@ -783,6 +808,7 @@ def group_members_attribute(self, group_members_attribute): :param group_members_attribute: The group_members_attribute of this ProvidersLdapIdParams. :type: str """ + self._group_members_attribute = group_members_attribute @property @@ -811,6 +837,7 @@ def group_search_scope(self, group_search_scope): "Invalid value for `group_search_scope`, must be one of {0}" .format(allowed_values) ) + self._group_search_scope = group_search_scope @property @@ -833,6 +860,7 @@ def home_directory_template(self, home_directory_template): :param home_directory_template: The home_directory_template of this ProvidersLdapIdParams. :type: str """ + self._home_directory_template = home_directory_template @property @@ -855,6 +883,7 @@ def homedir_attribute(self, homedir_attribute): :param homedir_attribute: The homedir_attribute of this ProvidersLdapIdParams. :type: str """ + self._homedir_attribute = homedir_attribute @property @@ -877,6 +906,7 @@ def ignore_tls_errors(self, ignore_tls_errors): :param ignore_tls_errors: The ignore_tls_errors of this ProvidersLdapIdParams. :type: bool """ + self._ignore_tls_errors = ignore_tls_errors @property @@ -899,6 +929,7 @@ def listable_groups(self, listable_groups): :param listable_groups: The listable_groups of this ProvidersLdapIdParams. :type: list[str] """ + self._listable_groups = listable_groups @property @@ -921,6 +952,7 @@ def listable_users(self, listable_users): :param listable_users: The listable_users of this ProvidersLdapIdParams. :type: list[str] """ + self._listable_users = listable_users @property @@ -943,6 +975,7 @@ def login_shell(self, login_shell): :param login_shell: The login_shell of this ProvidersLdapIdParams. :type: str """ + self._login_shell = login_shell @property @@ -965,6 +998,7 @@ def member_of_attribute(self, member_of_attribute): :param member_of_attribute: The member_of_attribute of this ProvidersLdapIdParams. :type: str """ + self._member_of_attribute = member_of_attribute @property @@ -987,6 +1021,7 @@ def name(self, name): :param name: The name of this ProvidersLdapIdParams. :type: str """ + self._name = name @property @@ -1009,6 +1044,7 @@ def name_attribute(self, name_attribute): :param name_attribute: The name_attribute of this ProvidersLdapIdParams. :type: str """ + self._name_attribute = name_attribute @property @@ -1031,6 +1067,7 @@ def netgroup_base_dn(self, netgroup_base_dn): :param netgroup_base_dn: The netgroup_base_dn of this ProvidersLdapIdParams. :type: str """ + self._netgroup_base_dn = netgroup_base_dn @property @@ -1053,6 +1090,7 @@ def netgroup_filter(self, netgroup_filter): :param netgroup_filter: The netgroup_filter of this ProvidersLdapIdParams. :type: str """ + self._netgroup_filter = netgroup_filter @property @@ -1075,6 +1113,7 @@ def netgroup_members_attribute(self, netgroup_members_attribute): :param netgroup_members_attribute: The netgroup_members_attribute of this ProvidersLdapIdParams. :type: str """ + self._netgroup_members_attribute = netgroup_members_attribute @property @@ -1103,6 +1142,7 @@ def netgroup_search_scope(self, netgroup_search_scope): "Invalid value for `netgroup_search_scope`, must be one of {0}" .format(allowed_values) ) + self._netgroup_search_scope = netgroup_search_scope @property @@ -1125,6 +1165,7 @@ def netgroup_triple_attribute(self, netgroup_triple_attribute): :param netgroup_triple_attribute: The netgroup_triple_attribute of this ProvidersLdapIdParams. :type: str """ + self._netgroup_triple_attribute = netgroup_triple_attribute @property @@ -1147,6 +1188,7 @@ def normalize_groups(self, normalize_groups): :param normalize_groups: The normalize_groups of this ProvidersLdapIdParams. :type: bool """ + self._normalize_groups = normalize_groups @property @@ -1169,6 +1211,7 @@ def normalize_users(self, normalize_users): :param normalize_users: The normalize_users of this ProvidersLdapIdParams. :type: bool """ + self._normalize_users = normalize_users @property @@ -1191,6 +1234,7 @@ def nt_password_attribute(self, nt_password_attribute): :param nt_password_attribute: The nt_password_attribute of this ProvidersLdapIdParams. :type: str """ + self._nt_password_attribute = nt_password_attribute @property @@ -1219,6 +1263,7 @@ def ntlm_support(self, ntlm_support): "Invalid value for `ntlm_support`, must be one of {0}" .format(allowed_values) ) + self._ntlm_support = ntlm_support @property @@ -1241,6 +1286,7 @@ def provider_domain(self, provider_domain): :param provider_domain: The provider_domain of this ProvidersLdapIdParams. :type: str """ + self._provider_domain = provider_domain @property @@ -1263,6 +1309,7 @@ def require_secure_connection(self, require_secure_connection): :param require_secure_connection: The require_secure_connection of this ProvidersLdapIdParams. :type: bool """ + self._require_secure_connection = require_secure_connection @property @@ -1285,6 +1332,7 @@ def restrict_findable(self, restrict_findable): :param restrict_findable: The restrict_findable of this ProvidersLdapIdParams. :type: bool """ + self._restrict_findable = restrict_findable @property @@ -1307,6 +1355,7 @@ def restrict_listable(self, restrict_listable): :param restrict_listable: The restrict_listable of this ProvidersLdapIdParams. :type: bool """ + self._restrict_listable = restrict_listable @property @@ -1335,6 +1384,7 @@ def search_scope(self, search_scope): "Invalid value for `search_scope`, must be one of {0}" .format(allowed_values) ) + self._search_scope = search_scope @property @@ -1357,6 +1407,7 @@ def search_timeout(self, search_timeout): :param search_timeout: The search_timeout of this ProvidersLdapIdParams. :type: int """ + self._search_timeout = search_timeout @property @@ -1379,6 +1430,7 @@ def server_uris(self, server_uris): :param server_uris: The server_uris of this ProvidersLdapIdParams. :type: list[str] """ + self._server_uris = server_uris @property @@ -1401,6 +1453,7 @@ def shell_attribute(self, shell_attribute): :param shell_attribute: The shell_attribute of this ProvidersLdapIdParams. :type: str """ + self._shell_attribute = shell_attribute @property @@ -1423,6 +1476,7 @@ def uid_attribute(self, uid_attribute): :param uid_attribute: The uid_attribute of this ProvidersLdapIdParams. :type: str """ + self._uid_attribute = uid_attribute @property @@ -1445,6 +1499,7 @@ def unfindable_groups(self, unfindable_groups): :param unfindable_groups: The unfindable_groups of this ProvidersLdapIdParams. :type: list[str] """ + self._unfindable_groups = unfindable_groups @property @@ -1467,6 +1522,7 @@ def unfindable_users(self, unfindable_users): :param unfindable_users: The unfindable_users of this ProvidersLdapIdParams. :type: list[str] """ + self._unfindable_users = unfindable_users @property @@ -1489,6 +1545,7 @@ def unique_group_members_attribute(self, unique_group_members_attribute): :param unique_group_members_attribute: The unique_group_members_attribute of this ProvidersLdapIdParams. :type: str """ + self._unique_group_members_attribute = unique_group_members_attribute @property @@ -1511,6 +1568,7 @@ def unlistable_groups(self, unlistable_groups): :param unlistable_groups: The unlistable_groups of this ProvidersLdapIdParams. :type: list[str] """ + self._unlistable_groups = unlistable_groups @property @@ -1533,6 +1591,7 @@ def unlistable_users(self, unlistable_users): :param unlistable_users: The unlistable_users of this ProvidersLdapIdParams. :type: list[str] """ + self._unlistable_users = unlistable_users @property @@ -1555,6 +1614,7 @@ def user_base_dn(self, user_base_dn): :param user_base_dn: The user_base_dn of this ProvidersLdapIdParams. :type: str """ + self._user_base_dn = user_base_dn @property @@ -1577,6 +1637,7 @@ def user_domain(self, user_domain): :param user_domain: The user_domain of this ProvidersLdapIdParams. :type: str """ + self._user_domain = user_domain @property @@ -1599,6 +1660,7 @@ def user_filter(self, user_filter): :param user_filter: The user_filter of this ProvidersLdapIdParams. :type: str """ + self._user_filter = user_filter @property @@ -1627,6 +1689,7 @@ def user_search_scope(self, user_search_scope): "Invalid value for `user_search_scope`, must be one of {0}" .format(allowed_values) ) + self._user_search_scope = user_search_scope def to_dict(self): @@ -1644,6 +1707,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1661,14 +1730,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_ldap_item.py b/isi_sdk/models/providers_ldap_item.py index 599c2a6db..fae1352e5 100644 --- a/isi_sdk/models/providers_ldap_item.py +++ b/isi_sdk/models/providers_ldap_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersLdapItem(object): @@ -252,6 +253,7 @@ def alternate_security_identities_attribute(self, alternate_security_identities_ :param alternate_security_identities_attribute: The alternate_security_identities_attribute of this ProvidersLdapItem. :type: str """ + self._alternate_security_identities_attribute = alternate_security_identities_attribute @property @@ -274,6 +276,7 @@ def authentication(self, authentication): :param authentication: The authentication of this ProvidersLdapItem. :type: bool """ + self._authentication = authentication @property @@ -296,6 +299,7 @@ def balance_servers(self, balance_servers): :param balance_servers: The balance_servers of this ProvidersLdapItem. :type: bool """ + self._balance_servers = balance_servers @property @@ -318,6 +322,7 @@ def base_dn(self, base_dn): :param base_dn: The base_dn of this ProvidersLdapItem. :type: str """ + self._base_dn = base_dn @property @@ -340,6 +345,7 @@ def bind_dn(self, bind_dn): :param bind_dn: The bind_dn of this ProvidersLdapItem. :type: str """ + self._bind_dn = bind_dn @property @@ -368,6 +374,7 @@ def bind_mechanism(self, bind_mechanism): "Invalid value for `bind_mechanism`, must be one of {0}" .format(allowed_values) ) + self._bind_mechanism = bind_mechanism @property @@ -390,6 +397,7 @@ def bind_password(self, bind_password): :param bind_password: The bind_password of this ProvidersLdapItem. :type: str """ + self._bind_password = bind_password @property @@ -412,6 +420,7 @@ def bind_timeout(self, bind_timeout): :param bind_timeout: The bind_timeout of this ProvidersLdapItem. :type: int """ + self._bind_timeout = bind_timeout @property @@ -434,6 +443,7 @@ def certificate_authority_file(self, certificate_authority_file): :param certificate_authority_file: The certificate_authority_file of this ProvidersLdapItem. :type: str """ + self._certificate_authority_file = certificate_authority_file @property @@ -456,6 +466,7 @@ def check_online_interval(self, check_online_interval): :param check_online_interval: The check_online_interval of this ProvidersLdapItem. :type: int """ + self._check_online_interval = check_online_interval @property @@ -478,6 +489,7 @@ def cn_attribute(self, cn_attribute): :param cn_attribute: The cn_attribute of this ProvidersLdapItem. :type: str """ + self._cn_attribute = cn_attribute @property @@ -500,6 +512,7 @@ def create_home_directory(self, create_home_directory): :param create_home_directory: The create_home_directory of this ProvidersLdapItem. :type: bool """ + self._create_home_directory = create_home_directory @property @@ -522,6 +535,7 @@ def crypt_password_attribute(self, crypt_password_attribute): :param crypt_password_attribute: The crypt_password_attribute of this ProvidersLdapItem. :type: str """ + self._crypt_password_attribute = crypt_password_attribute @property @@ -544,6 +558,7 @@ def email_attribute(self, email_attribute): :param email_attribute: The email_attribute of this ProvidersLdapItem. :type: str """ + self._email_attribute = email_attribute @property @@ -566,6 +581,7 @@ def enabled(self, enabled): :param enabled: The enabled of this ProvidersLdapItem. :type: bool """ + self._enabled = enabled @property @@ -588,6 +604,7 @@ def enumerate_groups(self, enumerate_groups): :param enumerate_groups: The enumerate_groups of this ProvidersLdapItem. :type: bool """ + self._enumerate_groups = enumerate_groups @property @@ -610,6 +627,7 @@ def enumerate_users(self, enumerate_users): :param enumerate_users: The enumerate_users of this ProvidersLdapItem. :type: bool """ + self._enumerate_users = enumerate_users @property @@ -632,6 +650,7 @@ def findable_groups(self, findable_groups): :param findable_groups: The findable_groups of this ProvidersLdapItem. :type: list[str] """ + self._findable_groups = findable_groups @property @@ -654,6 +673,7 @@ def findable_users(self, findable_users): :param findable_users: The findable_users of this ProvidersLdapItem. :type: list[str] """ + self._findable_users = findable_users @property @@ -676,6 +696,7 @@ def gecos_attribute(self, gecos_attribute): :param gecos_attribute: The gecos_attribute of this ProvidersLdapItem. :type: str """ + self._gecos_attribute = gecos_attribute @property @@ -698,6 +719,7 @@ def gid_attribute(self, gid_attribute): :param gid_attribute: The gid_attribute of this ProvidersLdapItem. :type: str """ + self._gid_attribute = gid_attribute @property @@ -720,6 +742,7 @@ def group_base_dn(self, group_base_dn): :param group_base_dn: The group_base_dn of this ProvidersLdapItem. :type: str """ + self._group_base_dn = group_base_dn @property @@ -742,6 +765,7 @@ def group_domain(self, group_domain): :param group_domain: The group_domain of this ProvidersLdapItem. :type: str """ + self._group_domain = group_domain @property @@ -764,6 +788,7 @@ def group_filter(self, group_filter): :param group_filter: The group_filter of this ProvidersLdapItem. :type: str """ + self._group_filter = group_filter @property @@ -786,6 +811,7 @@ def group_members_attribute(self, group_members_attribute): :param group_members_attribute: The group_members_attribute of this ProvidersLdapItem. :type: str """ + self._group_members_attribute = group_members_attribute @property @@ -814,6 +840,7 @@ def group_search_scope(self, group_search_scope): "Invalid value for `group_search_scope`, must be one of {0}" .format(allowed_values) ) + self._group_search_scope = group_search_scope @property @@ -836,6 +863,7 @@ def groupnet(self, groupnet): :param groupnet: The groupnet of this ProvidersLdapItem. :type: str """ + self._groupnet = groupnet @property @@ -858,6 +886,7 @@ def home_directory_template(self, home_directory_template): :param home_directory_template: The home_directory_template of this ProvidersLdapItem. :type: str """ + self._home_directory_template = home_directory_template @property @@ -880,6 +909,7 @@ def homedir_attribute(self, homedir_attribute): :param homedir_attribute: The homedir_attribute of this ProvidersLdapItem. :type: str """ + self._homedir_attribute = homedir_attribute @property @@ -902,6 +932,7 @@ def ignore_tls_errors(self, ignore_tls_errors): :param ignore_tls_errors: The ignore_tls_errors of this ProvidersLdapItem. :type: bool """ + self._ignore_tls_errors = ignore_tls_errors @property @@ -924,6 +955,7 @@ def listable_groups(self, listable_groups): :param listable_groups: The listable_groups of this ProvidersLdapItem. :type: list[str] """ + self._listable_groups = listable_groups @property @@ -946,6 +978,7 @@ def listable_users(self, listable_users): :param listable_users: The listable_users of this ProvidersLdapItem. :type: list[str] """ + self._listable_users = listable_users @property @@ -968,6 +1001,7 @@ def login_shell(self, login_shell): :param login_shell: The login_shell of this ProvidersLdapItem. :type: str """ + self._login_shell = login_shell @property @@ -990,6 +1024,7 @@ def member_of_attribute(self, member_of_attribute): :param member_of_attribute: The member_of_attribute of this ProvidersLdapItem. :type: str """ + self._member_of_attribute = member_of_attribute @property @@ -1012,6 +1047,7 @@ def name(self, name): :param name: The name of this ProvidersLdapItem. :type: str """ + self._name = name @property @@ -1034,6 +1070,7 @@ def name_attribute(self, name_attribute): :param name_attribute: The name_attribute of this ProvidersLdapItem. :type: str """ + self._name_attribute = name_attribute @property @@ -1056,6 +1093,7 @@ def netgroup_base_dn(self, netgroup_base_dn): :param netgroup_base_dn: The netgroup_base_dn of this ProvidersLdapItem. :type: str """ + self._netgroup_base_dn = netgroup_base_dn @property @@ -1078,6 +1116,7 @@ def netgroup_filter(self, netgroup_filter): :param netgroup_filter: The netgroup_filter of this ProvidersLdapItem. :type: str """ + self._netgroup_filter = netgroup_filter @property @@ -1100,6 +1139,7 @@ def netgroup_members_attribute(self, netgroup_members_attribute): :param netgroup_members_attribute: The netgroup_members_attribute of this ProvidersLdapItem. :type: str """ + self._netgroup_members_attribute = netgroup_members_attribute @property @@ -1128,6 +1168,7 @@ def netgroup_search_scope(self, netgroup_search_scope): "Invalid value for `netgroup_search_scope`, must be one of {0}" .format(allowed_values) ) + self._netgroup_search_scope = netgroup_search_scope @property @@ -1150,6 +1191,7 @@ def netgroup_triple_attribute(self, netgroup_triple_attribute): :param netgroup_triple_attribute: The netgroup_triple_attribute of this ProvidersLdapItem. :type: str """ + self._netgroup_triple_attribute = netgroup_triple_attribute @property @@ -1172,6 +1214,7 @@ def normalize_groups(self, normalize_groups): :param normalize_groups: The normalize_groups of this ProvidersLdapItem. :type: bool """ + self._normalize_groups = normalize_groups @property @@ -1194,6 +1237,7 @@ def normalize_users(self, normalize_users): :param normalize_users: The normalize_users of this ProvidersLdapItem. :type: bool """ + self._normalize_users = normalize_users @property @@ -1216,6 +1260,7 @@ def nt_password_attribute(self, nt_password_attribute): :param nt_password_attribute: The nt_password_attribute of this ProvidersLdapItem. :type: str """ + self._nt_password_attribute = nt_password_attribute @property @@ -1244,6 +1289,7 @@ def ntlm_support(self, ntlm_support): "Invalid value for `ntlm_support`, must be one of {0}" .format(allowed_values) ) + self._ntlm_support = ntlm_support @property @@ -1266,6 +1312,7 @@ def provider_domain(self, provider_domain): :param provider_domain: The provider_domain of this ProvidersLdapItem. :type: str """ + self._provider_domain = provider_domain @property @@ -1288,6 +1335,7 @@ def require_secure_connection(self, require_secure_connection): :param require_secure_connection: The require_secure_connection of this ProvidersLdapItem. :type: bool """ + self._require_secure_connection = require_secure_connection @property @@ -1310,6 +1358,7 @@ def restrict_findable(self, restrict_findable): :param restrict_findable: The restrict_findable of this ProvidersLdapItem. :type: bool """ + self._restrict_findable = restrict_findable @property @@ -1332,6 +1381,7 @@ def restrict_listable(self, restrict_listable): :param restrict_listable: The restrict_listable of this ProvidersLdapItem. :type: bool """ + self._restrict_listable = restrict_listable @property @@ -1360,6 +1410,7 @@ def search_scope(self, search_scope): "Invalid value for `search_scope`, must be one of {0}" .format(allowed_values) ) + self._search_scope = search_scope @property @@ -1382,6 +1433,7 @@ def search_timeout(self, search_timeout): :param search_timeout: The search_timeout of this ProvidersLdapItem. :type: int """ + self._search_timeout = search_timeout @property @@ -1404,6 +1456,7 @@ def server_uris(self, server_uris): :param server_uris: The server_uris of this ProvidersLdapItem. :type: list[str] """ + self._server_uris = server_uris @property @@ -1426,6 +1479,7 @@ def shell_attribute(self, shell_attribute): :param shell_attribute: The shell_attribute of this ProvidersLdapItem. :type: str """ + self._shell_attribute = shell_attribute @property @@ -1448,6 +1502,7 @@ def uid_attribute(self, uid_attribute): :param uid_attribute: The uid_attribute of this ProvidersLdapItem. :type: str """ + self._uid_attribute = uid_attribute @property @@ -1470,6 +1525,7 @@ def unfindable_groups(self, unfindable_groups): :param unfindable_groups: The unfindable_groups of this ProvidersLdapItem. :type: list[str] """ + self._unfindable_groups = unfindable_groups @property @@ -1492,6 +1548,7 @@ def unfindable_users(self, unfindable_users): :param unfindable_users: The unfindable_users of this ProvidersLdapItem. :type: list[str] """ + self._unfindable_users = unfindable_users @property @@ -1514,6 +1571,7 @@ def unique_group_members_attribute(self, unique_group_members_attribute): :param unique_group_members_attribute: The unique_group_members_attribute of this ProvidersLdapItem. :type: str """ + self._unique_group_members_attribute = unique_group_members_attribute @property @@ -1536,6 +1594,7 @@ def unlistable_groups(self, unlistable_groups): :param unlistable_groups: The unlistable_groups of this ProvidersLdapItem. :type: list[str] """ + self._unlistable_groups = unlistable_groups @property @@ -1558,6 +1617,7 @@ def unlistable_users(self, unlistable_users): :param unlistable_users: The unlistable_users of this ProvidersLdapItem. :type: list[str] """ + self._unlistable_users = unlistable_users @property @@ -1580,6 +1640,7 @@ def user_base_dn(self, user_base_dn): :param user_base_dn: The user_base_dn of this ProvidersLdapItem. :type: str """ + self._user_base_dn = user_base_dn @property @@ -1602,6 +1663,7 @@ def user_domain(self, user_domain): :param user_domain: The user_domain of this ProvidersLdapItem. :type: str """ + self._user_domain = user_domain @property @@ -1624,6 +1686,7 @@ def user_filter(self, user_filter): :param user_filter: The user_filter of this ProvidersLdapItem. :type: str """ + self._user_filter = user_filter @property @@ -1652,6 +1715,7 @@ def user_search_scope(self, user_search_scope): "Invalid value for `user_search_scope`, must be one of {0}" .format(allowed_values) ) + self._user_search_scope = user_search_scope def to_dict(self): @@ -1669,6 +1733,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1686,14 +1756,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_ldap_ldap_item.py b/isi_sdk/models/providers_ldap_ldap_item.py index f470ab46e..9612d9dc2 100644 --- a/isi_sdk/models/providers_ldap_ldap_item.py +++ b/isi_sdk/models/providers_ldap_ldap_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersLdapLdapItem(object): @@ -258,6 +259,7 @@ def alternate_security_identities_attribute(self, alternate_security_identities_ :param alternate_security_identities_attribute: The alternate_security_identities_attribute of this ProvidersLdapLdapItem. :type: str """ + self._alternate_security_identities_attribute = alternate_security_identities_attribute @property @@ -280,6 +282,7 @@ def authentication(self, authentication): :param authentication: The authentication of this ProvidersLdapLdapItem. :type: bool """ + self._authentication = authentication @property @@ -302,6 +305,7 @@ def balance_servers(self, balance_servers): :param balance_servers: The balance_servers of this ProvidersLdapLdapItem. :type: bool """ + self._balance_servers = balance_servers @property @@ -324,6 +328,7 @@ def base_dn(self, base_dn): :param base_dn: The base_dn of this ProvidersLdapLdapItem. :type: str """ + self._base_dn = base_dn @property @@ -346,6 +351,7 @@ def bind_dn(self, bind_dn): :param bind_dn: The bind_dn of this ProvidersLdapLdapItem. :type: str """ + self._bind_dn = bind_dn @property @@ -374,6 +380,7 @@ def bind_mechanism(self, bind_mechanism): "Invalid value for `bind_mechanism`, must be one of {0}" .format(allowed_values) ) + self._bind_mechanism = bind_mechanism @property @@ -396,6 +403,7 @@ def bind_timeout(self, bind_timeout): :param bind_timeout: The bind_timeout of this ProvidersLdapLdapItem. :type: int """ + self._bind_timeout = bind_timeout @property @@ -418,6 +426,7 @@ def certificate_authority_file(self, certificate_authority_file): :param certificate_authority_file: The certificate_authority_file of this ProvidersLdapLdapItem. :type: str """ + self._certificate_authority_file = certificate_authority_file @property @@ -440,6 +449,7 @@ def check_online_interval(self, check_online_interval): :param check_online_interval: The check_online_interval of this ProvidersLdapLdapItem. :type: int """ + self._check_online_interval = check_online_interval @property @@ -462,6 +472,7 @@ def cn_attribute(self, cn_attribute): :param cn_attribute: The cn_attribute of this ProvidersLdapLdapItem. :type: str """ + self._cn_attribute = cn_attribute @property @@ -484,6 +495,7 @@ def create_home_directory(self, create_home_directory): :param create_home_directory: The create_home_directory of this ProvidersLdapLdapItem. :type: bool """ + self._create_home_directory = create_home_directory @property @@ -506,6 +518,7 @@ def crypt_password_attribute(self, crypt_password_attribute): :param crypt_password_attribute: The crypt_password_attribute of this ProvidersLdapLdapItem. :type: str """ + self._crypt_password_attribute = crypt_password_attribute @property @@ -528,6 +541,7 @@ def email_attribute(self, email_attribute): :param email_attribute: The email_attribute of this ProvidersLdapLdapItem. :type: str """ + self._email_attribute = email_attribute @property @@ -550,6 +564,7 @@ def enabled(self, enabled): :param enabled: The enabled of this ProvidersLdapLdapItem. :type: bool """ + self._enabled = enabled @property @@ -572,6 +587,7 @@ def enumerate_groups(self, enumerate_groups): :param enumerate_groups: The enumerate_groups of this ProvidersLdapLdapItem. :type: bool """ + self._enumerate_groups = enumerate_groups @property @@ -594,6 +610,7 @@ def enumerate_users(self, enumerate_users): :param enumerate_users: The enumerate_users of this ProvidersLdapLdapItem. :type: bool """ + self._enumerate_users = enumerate_users @property @@ -616,6 +633,7 @@ def findable_groups(self, findable_groups): :param findable_groups: The findable_groups of this ProvidersLdapLdapItem. :type: list[str] """ + self._findable_groups = findable_groups @property @@ -638,6 +656,7 @@ def findable_users(self, findable_users): :param findable_users: The findable_users of this ProvidersLdapLdapItem. :type: list[str] """ + self._findable_users = findable_users @property @@ -660,6 +679,7 @@ def gecos_attribute(self, gecos_attribute): :param gecos_attribute: The gecos_attribute of this ProvidersLdapLdapItem. :type: str """ + self._gecos_attribute = gecos_attribute @property @@ -682,6 +702,7 @@ def gid_attribute(self, gid_attribute): :param gid_attribute: The gid_attribute of this ProvidersLdapLdapItem. :type: str """ + self._gid_attribute = gid_attribute @property @@ -704,6 +725,7 @@ def group_base_dn(self, group_base_dn): :param group_base_dn: The group_base_dn of this ProvidersLdapLdapItem. :type: str """ + self._group_base_dn = group_base_dn @property @@ -726,6 +748,7 @@ def group_domain(self, group_domain): :param group_domain: The group_domain of this ProvidersLdapLdapItem. :type: str """ + self._group_domain = group_domain @property @@ -748,6 +771,7 @@ def group_filter(self, group_filter): :param group_filter: The group_filter of this ProvidersLdapLdapItem. :type: str """ + self._group_filter = group_filter @property @@ -770,6 +794,7 @@ def group_members_attribute(self, group_members_attribute): :param group_members_attribute: The group_members_attribute of this ProvidersLdapLdapItem. :type: str """ + self._group_members_attribute = group_members_attribute @property @@ -798,6 +823,7 @@ def group_search_scope(self, group_search_scope): "Invalid value for `group_search_scope`, must be one of {0}" .format(allowed_values) ) + self._group_search_scope = group_search_scope @property @@ -820,6 +846,7 @@ def groupnet(self, groupnet): :param groupnet: The groupnet of this ProvidersLdapLdapItem. :type: str """ + self._groupnet = groupnet @property @@ -842,6 +869,7 @@ def home_directory_template(self, home_directory_template): :param home_directory_template: The home_directory_template of this ProvidersLdapLdapItem. :type: str """ + self._home_directory_template = home_directory_template @property @@ -864,6 +892,7 @@ def homedir_attribute(self, homedir_attribute): :param homedir_attribute: The homedir_attribute of this ProvidersLdapLdapItem. :type: str """ + self._homedir_attribute = homedir_attribute @property @@ -886,6 +915,7 @@ def id(self, id): :param id: The id of this ProvidersLdapLdapItem. :type: str """ + self._id = id @property @@ -908,6 +938,7 @@ def ignore_tls_errors(self, ignore_tls_errors): :param ignore_tls_errors: The ignore_tls_errors of this ProvidersLdapLdapItem. :type: bool """ + self._ignore_tls_errors = ignore_tls_errors @property @@ -930,6 +961,7 @@ def listable_groups(self, listable_groups): :param listable_groups: The listable_groups of this ProvidersLdapLdapItem. :type: list[str] """ + self._listable_groups = listable_groups @property @@ -952,6 +984,7 @@ def listable_users(self, listable_users): :param listable_users: The listable_users of this ProvidersLdapLdapItem. :type: list[str] """ + self._listable_users = listable_users @property @@ -974,6 +1007,7 @@ def login_shell(self, login_shell): :param login_shell: The login_shell of this ProvidersLdapLdapItem. :type: str """ + self._login_shell = login_shell @property @@ -996,6 +1030,7 @@ def member_of_attribute(self, member_of_attribute): :param member_of_attribute: The member_of_attribute of this ProvidersLdapLdapItem. :type: str """ + self._member_of_attribute = member_of_attribute @property @@ -1018,6 +1053,7 @@ def name(self, name): :param name: The name of this ProvidersLdapLdapItem. :type: str """ + self._name = name @property @@ -1040,6 +1076,7 @@ def name_attribute(self, name_attribute): :param name_attribute: The name_attribute of this ProvidersLdapLdapItem. :type: str """ + self._name_attribute = name_attribute @property @@ -1062,6 +1099,7 @@ def netgroup_base_dn(self, netgroup_base_dn): :param netgroup_base_dn: The netgroup_base_dn of this ProvidersLdapLdapItem. :type: str """ + self._netgroup_base_dn = netgroup_base_dn @property @@ -1084,6 +1122,7 @@ def netgroup_filter(self, netgroup_filter): :param netgroup_filter: The netgroup_filter of this ProvidersLdapLdapItem. :type: str """ + self._netgroup_filter = netgroup_filter @property @@ -1106,6 +1145,7 @@ def netgroup_members_attribute(self, netgroup_members_attribute): :param netgroup_members_attribute: The netgroup_members_attribute of this ProvidersLdapLdapItem. :type: str """ + self._netgroup_members_attribute = netgroup_members_attribute @property @@ -1134,6 +1174,7 @@ def netgroup_search_scope(self, netgroup_search_scope): "Invalid value for `netgroup_search_scope`, must be one of {0}" .format(allowed_values) ) + self._netgroup_search_scope = netgroup_search_scope @property @@ -1156,6 +1197,7 @@ def netgroup_triple_attribute(self, netgroup_triple_attribute): :param netgroup_triple_attribute: The netgroup_triple_attribute of this ProvidersLdapLdapItem. :type: str """ + self._netgroup_triple_attribute = netgroup_triple_attribute @property @@ -1178,6 +1220,7 @@ def normalize_groups(self, normalize_groups): :param normalize_groups: The normalize_groups of this ProvidersLdapLdapItem. :type: bool """ + self._normalize_groups = normalize_groups @property @@ -1200,6 +1243,7 @@ def normalize_users(self, normalize_users): :param normalize_users: The normalize_users of this ProvidersLdapLdapItem. :type: bool """ + self._normalize_users = normalize_users @property @@ -1222,6 +1266,7 @@ def nt_password_attribute(self, nt_password_attribute): :param nt_password_attribute: The nt_password_attribute of this ProvidersLdapLdapItem. :type: str """ + self._nt_password_attribute = nt_password_attribute @property @@ -1250,6 +1295,7 @@ def ntlm_support(self, ntlm_support): "Invalid value for `ntlm_support`, must be one of {0}" .format(allowed_values) ) + self._ntlm_support = ntlm_support @property @@ -1272,6 +1318,7 @@ def provider_domain(self, provider_domain): :param provider_domain: The provider_domain of this ProvidersLdapLdapItem. :type: str """ + self._provider_domain = provider_domain @property @@ -1294,6 +1341,7 @@ def require_secure_connection(self, require_secure_connection): :param require_secure_connection: The require_secure_connection of this ProvidersLdapLdapItem. :type: bool """ + self._require_secure_connection = require_secure_connection @property @@ -1316,6 +1364,7 @@ def restrict_findable(self, restrict_findable): :param restrict_findable: The restrict_findable of this ProvidersLdapLdapItem. :type: bool """ + self._restrict_findable = restrict_findable @property @@ -1338,6 +1387,7 @@ def restrict_listable(self, restrict_listable): :param restrict_listable: The restrict_listable of this ProvidersLdapLdapItem. :type: bool """ + self._restrict_listable = restrict_listable @property @@ -1366,6 +1416,7 @@ def search_scope(self, search_scope): "Invalid value for `search_scope`, must be one of {0}" .format(allowed_values) ) + self._search_scope = search_scope @property @@ -1388,6 +1439,7 @@ def search_timeout(self, search_timeout): :param search_timeout: The search_timeout of this ProvidersLdapLdapItem. :type: int """ + self._search_timeout = search_timeout @property @@ -1410,6 +1462,7 @@ def server_uris(self, server_uris): :param server_uris: The server_uris of this ProvidersLdapLdapItem. :type: list[str] """ + self._server_uris = server_uris @property @@ -1432,6 +1485,7 @@ def shell_attribute(self, shell_attribute): :param shell_attribute: The shell_attribute of this ProvidersLdapLdapItem. :type: str """ + self._shell_attribute = shell_attribute @property @@ -1454,6 +1508,7 @@ def status(self, status): :param status: The status of this ProvidersLdapLdapItem. :type: str """ + self._status = status @property @@ -1476,6 +1531,7 @@ def system(self, system): :param system: The system of this ProvidersLdapLdapItem. :type: bool """ + self._system = system @property @@ -1498,6 +1554,7 @@ def uid_attribute(self, uid_attribute): :param uid_attribute: The uid_attribute of this ProvidersLdapLdapItem. :type: str """ + self._uid_attribute = uid_attribute @property @@ -1520,6 +1577,7 @@ def unfindable_groups(self, unfindable_groups): :param unfindable_groups: The unfindable_groups of this ProvidersLdapLdapItem. :type: list[str] """ + self._unfindable_groups = unfindable_groups @property @@ -1542,6 +1600,7 @@ def unfindable_users(self, unfindable_users): :param unfindable_users: The unfindable_users of this ProvidersLdapLdapItem. :type: list[str] """ + self._unfindable_users = unfindable_users @property @@ -1564,6 +1623,7 @@ def unique_group_members_attribute(self, unique_group_members_attribute): :param unique_group_members_attribute: The unique_group_members_attribute of this ProvidersLdapLdapItem. :type: str """ + self._unique_group_members_attribute = unique_group_members_attribute @property @@ -1586,6 +1646,7 @@ def unlistable_groups(self, unlistable_groups): :param unlistable_groups: The unlistable_groups of this ProvidersLdapLdapItem. :type: list[str] """ + self._unlistable_groups = unlistable_groups @property @@ -1608,6 +1669,7 @@ def unlistable_users(self, unlistable_users): :param unlistable_users: The unlistable_users of this ProvidersLdapLdapItem. :type: list[str] """ + self._unlistable_users = unlistable_users @property @@ -1630,6 +1692,7 @@ def user_base_dn(self, user_base_dn): :param user_base_dn: The user_base_dn of this ProvidersLdapLdapItem. :type: str """ + self._user_base_dn = user_base_dn @property @@ -1652,6 +1715,7 @@ def user_domain(self, user_domain): :param user_domain: The user_domain of this ProvidersLdapLdapItem. :type: str """ + self._user_domain = user_domain @property @@ -1674,6 +1738,7 @@ def user_filter(self, user_filter): :param user_filter: The user_filter of this ProvidersLdapLdapItem. :type: str """ + self._user_filter = user_filter @property @@ -1702,6 +1767,7 @@ def user_search_scope(self, user_search_scope): "Invalid value for `user_search_scope`, must be one of {0}" .format(allowed_values) ) + self._user_search_scope = user_search_scope def to_dict(self): @@ -1719,6 +1785,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1736,14 +1808,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_local.py b/isi_sdk/models/providers_local.py index 742c5857a..f3cd38bb0 100644 --- a/isi_sdk/models/providers_local.py +++ b/isi_sdk/models/providers_local.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersLocal(object): @@ -66,6 +67,7 @@ def local(self, local): :param local: The local of this ProvidersLocal. :type: list[ProvidersLocalLocalItem] """ + self._local = local def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_local_id_params.py b/isi_sdk/models/providers_local_id_params.py index 04cd1c81d..72634351e 100644 --- a/isi_sdk/models/providers_local_id_params.py +++ b/isi_sdk/models/providers_local_id_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersLocalIdParams(object): @@ -108,6 +109,7 @@ def authentication(self, authentication): :param authentication: The authentication of this ProvidersLocalIdParams. :type: bool """ + self._authentication = authentication @property @@ -130,6 +132,7 @@ def create_home_directory(self, create_home_directory): :param create_home_directory: The create_home_directory of this ProvidersLocalIdParams. :type: bool """ + self._create_home_directory = create_home_directory @property @@ -152,6 +155,7 @@ def home_directory_template(self, home_directory_template): :param home_directory_template: The home_directory_template of this ProvidersLocalIdParams. :type: str """ + self._home_directory_template = home_directory_template @property @@ -174,6 +178,7 @@ def lockout_duration(self, lockout_duration): :param lockout_duration: The lockout_duration of this ProvidersLocalIdParams. :type: int """ + self._lockout_duration = lockout_duration @property @@ -196,6 +201,7 @@ def lockout_threshold(self, lockout_threshold): :param lockout_threshold: The lockout_threshold of this ProvidersLocalIdParams. :type: int """ + self._lockout_threshold = lockout_threshold @property @@ -218,6 +224,7 @@ def lockout_window(self, lockout_window): :param lockout_window: The lockout_window of this ProvidersLocalIdParams. :type: int """ + self._lockout_window = lockout_window @property @@ -240,6 +247,7 @@ def login_shell(self, login_shell): :param login_shell: The login_shell of this ProvidersLocalIdParams. :type: str """ + self._login_shell = login_shell @property @@ -262,6 +270,7 @@ def machine_name(self, machine_name): :param machine_name: The machine_name of this ProvidersLocalIdParams. :type: str """ + self._machine_name = machine_name @property @@ -284,6 +293,7 @@ def max_password_age(self, max_password_age): :param max_password_age: The max_password_age of this ProvidersLocalIdParams. :type: int """ + self._max_password_age = max_password_age @property @@ -306,6 +316,7 @@ def min_password_age(self, min_password_age): :param min_password_age: The min_password_age of this ProvidersLocalIdParams. :type: int """ + self._min_password_age = min_password_age @property @@ -328,6 +339,7 @@ def min_password_length(self, min_password_length): :param min_password_length: The min_password_length of this ProvidersLocalIdParams. :type: int """ + self._min_password_length = min_password_length @property @@ -350,6 +362,7 @@ def name(self, name): :param name: The name of this ProvidersLocalIdParams. :type: str """ + self._name = name @property @@ -372,6 +385,7 @@ def password_complexity(self, password_complexity): :param password_complexity: The password_complexity of this ProvidersLocalIdParams. :type: list[str] """ + self._password_complexity = password_complexity @property @@ -394,6 +408,7 @@ def password_history_length(self, password_history_length): :param password_history_length: The password_history_length of this ProvidersLocalIdParams. :type: int """ + self._password_history_length = password_history_length @property @@ -416,6 +431,7 @@ def password_prompt_time(self, password_prompt_time): :param password_prompt_time: The password_prompt_time of this ProvidersLocalIdParams. :type: int """ + self._password_prompt_time = password_prompt_time def to_dict(self): @@ -433,6 +449,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -450,14 +472,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_local_local_item.py b/isi_sdk/models/providers_local_local_item.py index 8663354a8..0939bd18a 100644 --- a/isi_sdk/models/providers_local_local_item.py +++ b/isi_sdk/models/providers_local_local_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersLocalLocalItem(object): @@ -117,6 +118,7 @@ def authentication(self, authentication): :param authentication: The authentication of this ProvidersLocalLocalItem. :type: bool """ + self._authentication = authentication @property @@ -139,6 +141,7 @@ def create_home_directory(self, create_home_directory): :param create_home_directory: The create_home_directory of this ProvidersLocalLocalItem. :type: bool """ + self._create_home_directory = create_home_directory @property @@ -161,6 +164,7 @@ def home_directory_template(self, home_directory_template): :param home_directory_template: The home_directory_template of this ProvidersLocalLocalItem. :type: str """ + self._home_directory_template = home_directory_template @property @@ -183,6 +187,7 @@ def id(self, id): :param id: The id of this ProvidersLocalLocalItem. :type: str """ + self._id = id @property @@ -205,6 +210,7 @@ def lockout_duration(self, lockout_duration): :param lockout_duration: The lockout_duration of this ProvidersLocalLocalItem. :type: int """ + self._lockout_duration = lockout_duration @property @@ -227,6 +233,7 @@ def lockout_threshold(self, lockout_threshold): :param lockout_threshold: The lockout_threshold of this ProvidersLocalLocalItem. :type: int """ + self._lockout_threshold = lockout_threshold @property @@ -249,6 +256,7 @@ def lockout_window(self, lockout_window): :param lockout_window: The lockout_window of this ProvidersLocalLocalItem. :type: int """ + self._lockout_window = lockout_window @property @@ -271,6 +279,7 @@ def login_shell(self, login_shell): :param login_shell: The login_shell of this ProvidersLocalLocalItem. :type: str """ + self._login_shell = login_shell @property @@ -293,6 +302,7 @@ def machine_name(self, machine_name): :param machine_name: The machine_name of this ProvidersLocalLocalItem. :type: str """ + self._machine_name = machine_name @property @@ -315,6 +325,7 @@ def max_password_age(self, max_password_age): :param max_password_age: The max_password_age of this ProvidersLocalLocalItem. :type: int """ + self._max_password_age = max_password_age @property @@ -337,6 +348,7 @@ def min_password_age(self, min_password_age): :param min_password_age: The min_password_age of this ProvidersLocalLocalItem. :type: int """ + self._min_password_age = min_password_age @property @@ -359,6 +371,7 @@ def min_password_length(self, min_password_length): :param min_password_length: The min_password_length of this ProvidersLocalLocalItem. :type: int """ + self._min_password_length = min_password_length @property @@ -381,6 +394,7 @@ def name(self, name): :param name: The name of this ProvidersLocalLocalItem. :type: str """ + self._name = name @property @@ -403,6 +417,7 @@ def password_complexity(self, password_complexity): :param password_complexity: The password_complexity of this ProvidersLocalLocalItem. :type: list[str] """ + self._password_complexity = password_complexity @property @@ -425,6 +440,7 @@ def password_history_length(self, password_history_length): :param password_history_length: The password_history_length of this ProvidersLocalLocalItem. :type: int """ + self._password_history_length = password_history_length @property @@ -447,6 +463,7 @@ def password_prompt_time(self, password_prompt_time): :param password_prompt_time: The password_prompt_time of this ProvidersLocalLocalItem. :type: int """ + self._password_prompt_time = password_prompt_time @property @@ -469,6 +486,7 @@ def status(self, status): :param status: The status of this ProvidersLocalLocalItem. :type: str """ + self._status = status @property @@ -491,6 +509,7 @@ def system(self, system): :param system: The system of this ProvidersLocalLocalItem. :type: bool """ + self._system = system def to_dict(self): @@ -508,6 +527,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -525,14 +550,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_nis.py b/isi_sdk/models/providers_nis.py index a5a42914b..4dcd91e65 100644 --- a/isi_sdk/models/providers_nis.py +++ b/isi_sdk/models/providers_nis.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersNis(object): @@ -37,7 +38,7 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'nis': 'list[ProvidersNiExtended]' + 'nis': 'list[ProvidersNisNisItem]' } self.attribute_map = { @@ -53,7 +54,7 @@ def nis(self): :return: The nis of this ProvidersNis. - :rtype: list[ProvidersNiExtended] + :rtype: list[ProvidersNisNisItem] """ return self._nis @@ -64,8 +65,9 @@ def nis(self, nis): :param nis: The nis of this ProvidersNis. - :type: list[ProvidersNiExtended] + :type: list[ProvidersNisNisItem] """ + self._nis = nis def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_nis_extended.py b/isi_sdk/models/providers_nis_extended.py new file mode 100644 index 000000000..3ce0e2a82 --- /dev/null +++ b/isi_sdk/models/providers_nis_extended.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersNisExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersNisExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'nis': 'list[ProvidersNisNisItem]' + } + + self.attribute_map = { + 'nis': 'nis' + } + + self._nis = None + + @property + def nis(self): + """ + Gets the nis of this ProvidersNisExtended. + + + :return: The nis of this ProvidersNisExtended. + :rtype: list[ProvidersNisNisItem] + """ + return self._nis + + @nis.setter + def nis(self, nis): + """ + Sets the nis of this ProvidersNisExtended. + + + :param nis: The nis of this ProvidersNisExtended. + :type: list[ProvidersNisNisItem] + """ + + self._nis = nis + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_nis_id_params.py b/isi_sdk/models/providers_nis_id_params.py new file mode 100644 index 000000000..f8e62df9d --- /dev/null +++ b/isi_sdk/models/providers_nis_id_params.py @@ -0,0 +1,934 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersNisIdParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersNisIdParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'authentication': 'bool', + 'balance_servers': 'bool', + 'check_online_interval': 'int', + 'create_home_directory': 'bool', + 'enabled': 'bool', + 'enumerate_groups': 'bool', + 'enumerate_users': 'bool', + 'findable_groups': 'list[str]', + 'findable_users': 'list[str]', + 'group_domain': 'str', + 'home_directory_template': 'str', + 'hostname_lookup': 'bool', + 'listable_groups': 'list[str]', + 'listable_users': 'list[str]', + 'login_shell': 'str', + 'name': 'str', + 'nis_domain': 'str', + 'normalize_groups': 'bool', + 'normalize_users': 'bool', + 'ntlm_support': 'str', + 'provider_domain': 'str', + 'request_timeout': 'int', + 'restrict_findable': 'bool', + 'restrict_listable': 'bool', + 'retry_time': 'int', + 'servers': 'list[str]', + 'unfindable_groups': 'list[str]', + 'unfindable_users': 'list[str]', + 'unlistable_groups': 'list[str]', + 'unlistable_users': 'list[str]', + 'user_domain': 'str', + 'ypmatch_using_tcp': 'bool' + } + + self.attribute_map = { + 'authentication': 'authentication', + 'balance_servers': 'balance_servers', + 'check_online_interval': 'check_online_interval', + 'create_home_directory': 'create_home_directory', + 'enabled': 'enabled', + 'enumerate_groups': 'enumerate_groups', + 'enumerate_users': 'enumerate_users', + 'findable_groups': 'findable_groups', + 'findable_users': 'findable_users', + 'group_domain': 'group_domain', + 'home_directory_template': 'home_directory_template', + 'hostname_lookup': 'hostname_lookup', + 'listable_groups': 'listable_groups', + 'listable_users': 'listable_users', + 'login_shell': 'login_shell', + 'name': 'name', + 'nis_domain': 'nis_domain', + 'normalize_groups': 'normalize_groups', + 'normalize_users': 'normalize_users', + 'ntlm_support': 'ntlm_support', + 'provider_domain': 'provider_domain', + 'request_timeout': 'request_timeout', + 'restrict_findable': 'restrict_findable', + 'restrict_listable': 'restrict_listable', + 'retry_time': 'retry_time', + 'servers': 'servers', + 'unfindable_groups': 'unfindable_groups', + 'unfindable_users': 'unfindable_users', + 'unlistable_groups': 'unlistable_groups', + 'unlistable_users': 'unlistable_users', + 'user_domain': 'user_domain', + 'ypmatch_using_tcp': 'ypmatch_using_tcp' + } + + self._authentication = None + self._balance_servers = None + self._check_online_interval = None + self._create_home_directory = None + self._enabled = None + self._enumerate_groups = None + self._enumerate_users = None + self._findable_groups = None + self._findable_users = None + self._group_domain = None + self._home_directory_template = None + self._hostname_lookup = None + self._listable_groups = None + self._listable_users = None + self._login_shell = None + self._name = None + self._nis_domain = None + self._normalize_groups = None + self._normalize_users = None + self._ntlm_support = None + self._provider_domain = None + self._request_timeout = None + self._restrict_findable = None + self._restrict_listable = None + self._retry_time = None + self._servers = None + self._unfindable_groups = None + self._unfindable_users = None + self._unlistable_groups = None + self._unlistable_users = None + self._user_domain = None + self._ypmatch_using_tcp = None + + @property + def authentication(self): + """ + Gets the authentication of this ProvidersNisIdParams. + If true, enables authentication and identity management through the authentication provider. + + :return: The authentication of this ProvidersNisIdParams. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """ + Sets the authentication of this ProvidersNisIdParams. + If true, enables authentication and identity management through the authentication provider. + + :param authentication: The authentication of this ProvidersNisIdParams. + :type: bool + """ + + self._authentication = authentication + + @property + def balance_servers(self): + """ + Gets the balance_servers of this ProvidersNisIdParams. + If true, connects the provider to a random server. + + :return: The balance_servers of this ProvidersNisIdParams. + :rtype: bool + """ + return self._balance_servers + + @balance_servers.setter + def balance_servers(self, balance_servers): + """ + Sets the balance_servers of this ProvidersNisIdParams. + If true, connects the provider to a random server. + + :param balance_servers: The balance_servers of this ProvidersNisIdParams. + :type: bool + """ + + self._balance_servers = balance_servers + + @property + def check_online_interval(self): + """ + Gets the check_online_interval of this ProvidersNisIdParams. + Specifies the time in seconds between provider online checks. + + :return: The check_online_interval of this ProvidersNisIdParams. + :rtype: int + """ + return self._check_online_interval + + @check_online_interval.setter + def check_online_interval(self, check_online_interval): + """ + Sets the check_online_interval of this ProvidersNisIdParams. + Specifies the time in seconds between provider online checks. + + :param check_online_interval: The check_online_interval of this ProvidersNisIdParams. + :type: int + """ + + self._check_online_interval = check_online_interval + + @property + def create_home_directory(self): + """ + Gets the create_home_directory of this ProvidersNisIdParams. + Automatically creates the home directory on the first login. + + :return: The create_home_directory of this ProvidersNisIdParams. + :rtype: bool + """ + return self._create_home_directory + + @create_home_directory.setter + def create_home_directory(self, create_home_directory): + """ + Sets the create_home_directory of this ProvidersNisIdParams. + Automatically creates the home directory on the first login. + + :param create_home_directory: The create_home_directory of this ProvidersNisIdParams. + :type: bool + """ + + self._create_home_directory = create_home_directory + + @property + def enabled(self): + """ + Gets the enabled of this ProvidersNisIdParams. + If true, enables the NIS provider. + + :return: The enabled of this ProvidersNisIdParams. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this ProvidersNisIdParams. + If true, enables the NIS provider. + + :param enabled: The enabled of this ProvidersNisIdParams. + :type: bool + """ + + self._enabled = enabled + + @property + def enumerate_groups(self): + """ + Gets the enumerate_groups of this ProvidersNisIdParams. + If true, allows the provider to enumerate groups. + + :return: The enumerate_groups of this ProvidersNisIdParams. + :rtype: bool + """ + return self._enumerate_groups + + @enumerate_groups.setter + def enumerate_groups(self, enumerate_groups): + """ + Sets the enumerate_groups of this ProvidersNisIdParams. + If true, allows the provider to enumerate groups. + + :param enumerate_groups: The enumerate_groups of this ProvidersNisIdParams. + :type: bool + """ + + self._enumerate_groups = enumerate_groups + + @property + def enumerate_users(self): + """ + Gets the enumerate_users of this ProvidersNisIdParams. + If true, allows the provider to enumerate users. + + :return: The enumerate_users of this ProvidersNisIdParams. + :rtype: bool + """ + return self._enumerate_users + + @enumerate_users.setter + def enumerate_users(self, enumerate_users): + """ + Sets the enumerate_users of this ProvidersNisIdParams. + If true, allows the provider to enumerate users. + + :param enumerate_users: The enumerate_users of this ProvidersNisIdParams. + :type: bool + """ + + self._enumerate_users = enumerate_users + + @property + def findable_groups(self): + """ + Gets the findable_groups of this ProvidersNisIdParams. + Specifies the list of groups that can be resolved. + + :return: The findable_groups of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._findable_groups + + @findable_groups.setter + def findable_groups(self, findable_groups): + """ + Sets the findable_groups of this ProvidersNisIdParams. + Specifies the list of groups that can be resolved. + + :param findable_groups: The findable_groups of this ProvidersNisIdParams. + :type: list[str] + """ + + self._findable_groups = findable_groups + + @property + def findable_users(self): + """ + Gets the findable_users of this ProvidersNisIdParams. + Specifies the list of users that can be resolved. + + :return: The findable_users of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._findable_users + + @findable_users.setter + def findable_users(self, findable_users): + """ + Sets the findable_users of this ProvidersNisIdParams. + Specifies the list of users that can be resolved. + + :param findable_users: The findable_users of this ProvidersNisIdParams. + :type: list[str] + """ + + self._findable_users = findable_users + + @property + def group_domain(self): + """ + Gets the group_domain of this ProvidersNisIdParams. + Specifies the domain for this provider through which groups are qualified. + + :return: The group_domain of this ProvidersNisIdParams. + :rtype: str + """ + return self._group_domain + + @group_domain.setter + def group_domain(self, group_domain): + """ + Sets the group_domain of this ProvidersNisIdParams. + Specifies the domain for this provider through which groups are qualified. + + :param group_domain: The group_domain of this ProvidersNisIdParams. + :type: str + """ + + self._group_domain = group_domain + + @property + def home_directory_template(self): + """ + Gets the home_directory_template of this ProvidersNisIdParams. + Specifies the path to the home directory template. + + :return: The home_directory_template of this ProvidersNisIdParams. + :rtype: str + """ + return self._home_directory_template + + @home_directory_template.setter + def home_directory_template(self, home_directory_template): + """ + Sets the home_directory_template of this ProvidersNisIdParams. + Specifies the path to the home directory template. + + :param home_directory_template: The home_directory_template of this ProvidersNisIdParams. + :type: str + """ + + self._home_directory_template = home_directory_template + + @property + def hostname_lookup(self): + """ + Gets the hostname_lookup of this ProvidersNisIdParams. + If true, enables host name look ups. + + :return: The hostname_lookup of this ProvidersNisIdParams. + :rtype: bool + """ + return self._hostname_lookup + + @hostname_lookup.setter + def hostname_lookup(self, hostname_lookup): + """ + Sets the hostname_lookup of this ProvidersNisIdParams. + If true, enables host name look ups. + + :param hostname_lookup: The hostname_lookup of this ProvidersNisIdParams. + :type: bool + """ + + self._hostname_lookup = hostname_lookup + + @property + def listable_groups(self): + """ + Gets the listable_groups of this ProvidersNisIdParams. + Specifies the groups that can be viewed in the provider. + + :return: The listable_groups of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._listable_groups + + @listable_groups.setter + def listable_groups(self, listable_groups): + """ + Sets the listable_groups of this ProvidersNisIdParams. + Specifies the groups that can be viewed in the provider. + + :param listable_groups: The listable_groups of this ProvidersNisIdParams. + :type: list[str] + """ + + self._listable_groups = listable_groups + + @property + def listable_users(self): + """ + Gets the listable_users of this ProvidersNisIdParams. + Specifies the users that can be viewed in the provider. + + :return: The listable_users of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._listable_users + + @listable_users.setter + def listable_users(self, listable_users): + """ + Sets the listable_users of this ProvidersNisIdParams. + Specifies the users that can be viewed in the provider. + + :param listable_users: The listable_users of this ProvidersNisIdParams. + :type: list[str] + """ + + self._listable_users = listable_users + + @property + def login_shell(self): + """ + Gets the login_shell of this ProvidersNisIdParams. + Specifies the login shell path. + + :return: The login_shell of this ProvidersNisIdParams. + :rtype: str + """ + return self._login_shell + + @login_shell.setter + def login_shell(self, login_shell): + """ + Sets the login_shell of this ProvidersNisIdParams. + Specifies the login shell path. + + :param login_shell: The login_shell of this ProvidersNisIdParams. + :type: str + """ + + self._login_shell = login_shell + + @property + def name(self): + """ + Gets the name of this ProvidersNisIdParams. + Specifies the NIS provider name. + + :return: The name of this ProvidersNisIdParams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ProvidersNisIdParams. + Specifies the NIS provider name. + + :param name: The name of this ProvidersNisIdParams. + :type: str + """ + + self._name = name + + @property + def nis_domain(self): + """ + Gets the nis_domain of this ProvidersNisIdParams. + Specifies the NIS domain name. + + :return: The nis_domain of this ProvidersNisIdParams. + :rtype: str + """ + return self._nis_domain + + @nis_domain.setter + def nis_domain(self, nis_domain): + """ + Sets the nis_domain of this ProvidersNisIdParams. + Specifies the NIS domain name. + + :param nis_domain: The nis_domain of this ProvidersNisIdParams. + :type: str + """ + + self._nis_domain = nis_domain + + @property + def normalize_groups(self): + """ + Gets the normalize_groups of this ProvidersNisIdParams. + Normalizes group names to lowercase before look up. + + :return: The normalize_groups of this ProvidersNisIdParams. + :rtype: bool + """ + return self._normalize_groups + + @normalize_groups.setter + def normalize_groups(self, normalize_groups): + """ + Sets the normalize_groups of this ProvidersNisIdParams. + Normalizes group names to lowercase before look up. + + :param normalize_groups: The normalize_groups of this ProvidersNisIdParams. + :type: bool + """ + + self._normalize_groups = normalize_groups + + @property + def normalize_users(self): + """ + Gets the normalize_users of this ProvidersNisIdParams. + Normalizes user names to lowercase before look up. + + :return: The normalize_users of this ProvidersNisIdParams. + :rtype: bool + """ + return self._normalize_users + + @normalize_users.setter + def normalize_users(self, normalize_users): + """ + Sets the normalize_users of this ProvidersNisIdParams. + Normalizes user names to lowercase before look up. + + :param normalize_users: The normalize_users of this ProvidersNisIdParams. + :type: bool + """ + + self._normalize_users = normalize_users + + @property + def ntlm_support(self): + """ + Gets the ntlm_support of this ProvidersNisIdParams. + Specifies which NTLM versions to support for users with NTLM-compatible credentials. + + :return: The ntlm_support of this ProvidersNisIdParams. + :rtype: str + """ + return self._ntlm_support + + @ntlm_support.setter + def ntlm_support(self, ntlm_support): + """ + Sets the ntlm_support of this ProvidersNisIdParams. + Specifies which NTLM versions to support for users with NTLM-compatible credentials. + + :param ntlm_support: The ntlm_support of this ProvidersNisIdParams. + :type: str + """ + allowed_values = ["all", "v2only", "none"] + if ntlm_support not in allowed_values: + raise ValueError( + "Invalid value for `ntlm_support`, must be one of {0}" + .format(allowed_values) + ) + + self._ntlm_support = ntlm_support + + @property + def provider_domain(self): + """ + Gets the provider_domain of this ProvidersNisIdParams. + Specifies the domain for the provider. + + :return: The provider_domain of this ProvidersNisIdParams. + :rtype: str + """ + return self._provider_domain + + @provider_domain.setter + def provider_domain(self, provider_domain): + """ + Sets the provider_domain of this ProvidersNisIdParams. + Specifies the domain for the provider. + + :param provider_domain: The provider_domain of this ProvidersNisIdParams. + :type: str + """ + + self._provider_domain = provider_domain + + @property + def request_timeout(self): + """ + Gets the request_timeout of this ProvidersNisIdParams. + Specifies the request timeout interval in seconds. + + :return: The request_timeout of this ProvidersNisIdParams. + :rtype: int + """ + return self._request_timeout + + @request_timeout.setter + def request_timeout(self, request_timeout): + """ + Sets the request_timeout of this ProvidersNisIdParams. + Specifies the request timeout interval in seconds. + + :param request_timeout: The request_timeout of this ProvidersNisIdParams. + :type: int + """ + + self._request_timeout = request_timeout + + @property + def restrict_findable(self): + """ + Gets the restrict_findable of this ProvidersNisIdParams. + If true, checks the provider for filtered lists of findable and unfindable users and groups. + + :return: The restrict_findable of this ProvidersNisIdParams. + :rtype: bool + """ + return self._restrict_findable + + @restrict_findable.setter + def restrict_findable(self, restrict_findable): + """ + Sets the restrict_findable of this ProvidersNisIdParams. + If true, checks the provider for filtered lists of findable and unfindable users and groups. + + :param restrict_findable: The restrict_findable of this ProvidersNisIdParams. + :type: bool + """ + + self._restrict_findable = restrict_findable + + @property + def restrict_listable(self): + """ + Gets the restrict_listable of this ProvidersNisIdParams. + If true, checks the provider for filtered lists of listable and unlistable users and groups. + + :return: The restrict_listable of this ProvidersNisIdParams. + :rtype: bool + """ + return self._restrict_listable + + @restrict_listable.setter + def restrict_listable(self, restrict_listable): + """ + Sets the restrict_listable of this ProvidersNisIdParams. + If true, checks the provider for filtered lists of listable and unlistable users and groups. + + :param restrict_listable: The restrict_listable of this ProvidersNisIdParams. + :type: bool + """ + + self._restrict_listable = restrict_listable + + @property + def retry_time(self): + """ + Gets the retry_time of this ProvidersNisIdParams. + Specifies the timeout period in seconds after which a request will be retried. + + :return: The retry_time of this ProvidersNisIdParams. + :rtype: int + """ + return self._retry_time + + @retry_time.setter + def retry_time(self, retry_time): + """ + Sets the retry_time of this ProvidersNisIdParams. + Specifies the timeout period in seconds after which a request will be retried. + + :param retry_time: The retry_time of this ProvidersNisIdParams. + :type: int + """ + + self._retry_time = retry_time + + @property + def servers(self): + """ + Gets the servers of this ProvidersNisIdParams. + Adds an NIS server for this provider. + + :return: The servers of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._servers + + @servers.setter + def servers(self, servers): + """ + Sets the servers of this ProvidersNisIdParams. + Adds an NIS server for this provider. + + :param servers: The servers of this ProvidersNisIdParams. + :type: list[str] + """ + + self._servers = servers + + @property + def unfindable_groups(self): + """ + Gets the unfindable_groups of this ProvidersNisIdParams. + Specifies groups that cannot be resolved by the provider. + + :return: The unfindable_groups of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._unfindable_groups + + @unfindable_groups.setter + def unfindable_groups(self, unfindable_groups): + """ + Sets the unfindable_groups of this ProvidersNisIdParams. + Specifies groups that cannot be resolved by the provider. + + :param unfindable_groups: The unfindable_groups of this ProvidersNisIdParams. + :type: list[str] + """ + + self._unfindable_groups = unfindable_groups + + @property + def unfindable_users(self): + """ + Gets the unfindable_users of this ProvidersNisIdParams. + Specifies users that cannot be resolved by the provider. + + :return: The unfindable_users of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._unfindable_users + + @unfindable_users.setter + def unfindable_users(self, unfindable_users): + """ + Sets the unfindable_users of this ProvidersNisIdParams. + Specifies users that cannot be resolved by the provider. + + :param unfindable_users: The unfindable_users of this ProvidersNisIdParams. + :type: list[str] + """ + + self._unfindable_users = unfindable_users + + @property + def unlistable_groups(self): + """ + Gets the unlistable_groups of this ProvidersNisIdParams. + Specifies a group that cannot be listed by the provider. + + :return: The unlistable_groups of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._unlistable_groups + + @unlistable_groups.setter + def unlistable_groups(self, unlistable_groups): + """ + Sets the unlistable_groups of this ProvidersNisIdParams. + Specifies a group that cannot be listed by the provider. + + :param unlistable_groups: The unlistable_groups of this ProvidersNisIdParams. + :type: list[str] + """ + + self._unlistable_groups = unlistable_groups + + @property + def unlistable_users(self): + """ + Gets the unlistable_users of this ProvidersNisIdParams. + Specifies a user that cannot be listed by the provider. + + :return: The unlistable_users of this ProvidersNisIdParams. + :rtype: list[str] + """ + return self._unlistable_users + + @unlistable_users.setter + def unlistable_users(self, unlistable_users): + """ + Sets the unlistable_users of this ProvidersNisIdParams. + Specifies a user that cannot be listed by the provider. + + :param unlistable_users: The unlistable_users of this ProvidersNisIdParams. + :type: list[str] + """ + + self._unlistable_users = unlistable_users + + @property + def user_domain(self): + """ + Gets the user_domain of this ProvidersNisIdParams. + Specifies the domain for this provider through which users are qualified. + + :return: The user_domain of this ProvidersNisIdParams. + :rtype: str + """ + return self._user_domain + + @user_domain.setter + def user_domain(self, user_domain): + """ + Sets the user_domain of this ProvidersNisIdParams. + Specifies the domain for this provider through which users are qualified. + + :param user_domain: The user_domain of this ProvidersNisIdParams. + :type: str + """ + + self._user_domain = user_domain + + @property + def ypmatch_using_tcp(self): + """ + Gets the ypmatch_using_tcp of this ProvidersNisIdParams. + If true, specifies TCP for YP Match operations. + + :return: The ypmatch_using_tcp of this ProvidersNisIdParams. + :rtype: bool + """ + return self._ypmatch_using_tcp + + @ypmatch_using_tcp.setter + def ypmatch_using_tcp(self, ypmatch_using_tcp): + """ + Sets the ypmatch_using_tcp of this ProvidersNisIdParams. + If true, specifies TCP for YP Match operations. + + :param ypmatch_using_tcp: The ypmatch_using_tcp of this ProvidersNisIdParams. + :type: bool + """ + + self._ypmatch_using_tcp = ypmatch_using_tcp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_nis_item.py b/isi_sdk/models/providers_nis_item.py new file mode 100644 index 000000000..a05704884 --- /dev/null +++ b/isi_sdk/models/providers_nis_item.py @@ -0,0 +1,960 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersNisItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersNisItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'authentication': 'bool', + 'balance_servers': 'bool', + 'check_online_interval': 'int', + 'create_home_directory': 'bool', + 'enabled': 'bool', + 'enumerate_groups': 'bool', + 'enumerate_users': 'bool', + 'findable_groups': 'list[str]', + 'findable_users': 'list[str]', + 'group_domain': 'str', + 'groupnet': 'str', + 'home_directory_template': 'str', + 'hostname_lookup': 'bool', + 'listable_groups': 'list[str]', + 'listable_users': 'list[str]', + 'login_shell': 'str', + 'name': 'str', + 'nis_domain': 'str', + 'normalize_groups': 'bool', + 'normalize_users': 'bool', + 'ntlm_support': 'str', + 'provider_domain': 'str', + 'request_timeout': 'int', + 'restrict_findable': 'bool', + 'restrict_listable': 'bool', + 'retry_time': 'int', + 'servers': 'list[str]', + 'unfindable_groups': 'list[str]', + 'unfindable_users': 'list[str]', + 'unlistable_groups': 'list[str]', + 'unlistable_users': 'list[str]', + 'user_domain': 'str', + 'ypmatch_using_tcp': 'bool' + } + + self.attribute_map = { + 'authentication': 'authentication', + 'balance_servers': 'balance_servers', + 'check_online_interval': 'check_online_interval', + 'create_home_directory': 'create_home_directory', + 'enabled': 'enabled', + 'enumerate_groups': 'enumerate_groups', + 'enumerate_users': 'enumerate_users', + 'findable_groups': 'findable_groups', + 'findable_users': 'findable_users', + 'group_domain': 'group_domain', + 'groupnet': 'groupnet', + 'home_directory_template': 'home_directory_template', + 'hostname_lookup': 'hostname_lookup', + 'listable_groups': 'listable_groups', + 'listable_users': 'listable_users', + 'login_shell': 'login_shell', + 'name': 'name', + 'nis_domain': 'nis_domain', + 'normalize_groups': 'normalize_groups', + 'normalize_users': 'normalize_users', + 'ntlm_support': 'ntlm_support', + 'provider_domain': 'provider_domain', + 'request_timeout': 'request_timeout', + 'restrict_findable': 'restrict_findable', + 'restrict_listable': 'restrict_listable', + 'retry_time': 'retry_time', + 'servers': 'servers', + 'unfindable_groups': 'unfindable_groups', + 'unfindable_users': 'unfindable_users', + 'unlistable_groups': 'unlistable_groups', + 'unlistable_users': 'unlistable_users', + 'user_domain': 'user_domain', + 'ypmatch_using_tcp': 'ypmatch_using_tcp' + } + + self._authentication = None + self._balance_servers = None + self._check_online_interval = None + self._create_home_directory = None + self._enabled = None + self._enumerate_groups = None + self._enumerate_users = None + self._findable_groups = None + self._findable_users = None + self._group_domain = None + self._groupnet = None + self._home_directory_template = None + self._hostname_lookup = None + self._listable_groups = None + self._listable_users = None + self._login_shell = None + self._name = None + self._nis_domain = None + self._normalize_groups = None + self._normalize_users = None + self._ntlm_support = None + self._provider_domain = None + self._request_timeout = None + self._restrict_findable = None + self._restrict_listable = None + self._retry_time = None + self._servers = None + self._unfindable_groups = None + self._unfindable_users = None + self._unlistable_groups = None + self._unlistable_users = None + self._user_domain = None + self._ypmatch_using_tcp = None + + @property + def authentication(self): + """ + Gets the authentication of this ProvidersNisItem. + If true, enables authentication and identity management through the authentication provider. + + :return: The authentication of this ProvidersNisItem. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """ + Sets the authentication of this ProvidersNisItem. + If true, enables authentication and identity management through the authentication provider. + + :param authentication: The authentication of this ProvidersNisItem. + :type: bool + """ + + self._authentication = authentication + + @property + def balance_servers(self): + """ + Gets the balance_servers of this ProvidersNisItem. + If true, connects the provider to a random server. + + :return: The balance_servers of this ProvidersNisItem. + :rtype: bool + """ + return self._balance_servers + + @balance_servers.setter + def balance_servers(self, balance_servers): + """ + Sets the balance_servers of this ProvidersNisItem. + If true, connects the provider to a random server. + + :param balance_servers: The balance_servers of this ProvidersNisItem. + :type: bool + """ + + self._balance_servers = balance_servers + + @property + def check_online_interval(self): + """ + Gets the check_online_interval of this ProvidersNisItem. + Specifies the time in seconds between provider online checks. + + :return: The check_online_interval of this ProvidersNisItem. + :rtype: int + """ + return self._check_online_interval + + @check_online_interval.setter + def check_online_interval(self, check_online_interval): + """ + Sets the check_online_interval of this ProvidersNisItem. + Specifies the time in seconds between provider online checks. + + :param check_online_interval: The check_online_interval of this ProvidersNisItem. + :type: int + """ + + self._check_online_interval = check_online_interval + + @property + def create_home_directory(self): + """ + Gets the create_home_directory of this ProvidersNisItem. + Automatically creates the home directory on the first login. + + :return: The create_home_directory of this ProvidersNisItem. + :rtype: bool + """ + return self._create_home_directory + + @create_home_directory.setter + def create_home_directory(self, create_home_directory): + """ + Sets the create_home_directory of this ProvidersNisItem. + Automatically creates the home directory on the first login. + + :param create_home_directory: The create_home_directory of this ProvidersNisItem. + :type: bool + """ + + self._create_home_directory = create_home_directory + + @property + def enabled(self): + """ + Gets the enabled of this ProvidersNisItem. + If true, enables the NIS provider. + + :return: The enabled of this ProvidersNisItem. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this ProvidersNisItem. + If true, enables the NIS provider. + + :param enabled: The enabled of this ProvidersNisItem. + :type: bool + """ + + self._enabled = enabled + + @property + def enumerate_groups(self): + """ + Gets the enumerate_groups of this ProvidersNisItem. + If true, allows the provider to enumerate groups. + + :return: The enumerate_groups of this ProvidersNisItem. + :rtype: bool + """ + return self._enumerate_groups + + @enumerate_groups.setter + def enumerate_groups(self, enumerate_groups): + """ + Sets the enumerate_groups of this ProvidersNisItem. + If true, allows the provider to enumerate groups. + + :param enumerate_groups: The enumerate_groups of this ProvidersNisItem. + :type: bool + """ + + self._enumerate_groups = enumerate_groups + + @property + def enumerate_users(self): + """ + Gets the enumerate_users of this ProvidersNisItem. + If true, allows the provider to enumerate users. + + :return: The enumerate_users of this ProvidersNisItem. + :rtype: bool + """ + return self._enumerate_users + + @enumerate_users.setter + def enumerate_users(self, enumerate_users): + """ + Sets the enumerate_users of this ProvidersNisItem. + If true, allows the provider to enumerate users. + + :param enumerate_users: The enumerate_users of this ProvidersNisItem. + :type: bool + """ + + self._enumerate_users = enumerate_users + + @property + def findable_groups(self): + """ + Gets the findable_groups of this ProvidersNisItem. + Specifies the list of groups that can be resolved. + + :return: The findable_groups of this ProvidersNisItem. + :rtype: list[str] + """ + return self._findable_groups + + @findable_groups.setter + def findable_groups(self, findable_groups): + """ + Sets the findable_groups of this ProvidersNisItem. + Specifies the list of groups that can be resolved. + + :param findable_groups: The findable_groups of this ProvidersNisItem. + :type: list[str] + """ + + self._findable_groups = findable_groups + + @property + def findable_users(self): + """ + Gets the findable_users of this ProvidersNisItem. + Specifies the list of users that can be resolved. + + :return: The findable_users of this ProvidersNisItem. + :rtype: list[str] + """ + return self._findable_users + + @findable_users.setter + def findable_users(self, findable_users): + """ + Sets the findable_users of this ProvidersNisItem. + Specifies the list of users that can be resolved. + + :param findable_users: The findable_users of this ProvidersNisItem. + :type: list[str] + """ + + self._findable_users = findable_users + + @property + def group_domain(self): + """ + Gets the group_domain of this ProvidersNisItem. + Specifies the domain for this provider through which groups are qualified. + + :return: The group_domain of this ProvidersNisItem. + :rtype: str + """ + return self._group_domain + + @group_domain.setter + def group_domain(self, group_domain): + """ + Sets the group_domain of this ProvidersNisItem. + Specifies the domain for this provider through which groups are qualified. + + :param group_domain: The group_domain of this ProvidersNisItem. + :type: str + """ + + self._group_domain = group_domain + + @property + def groupnet(self): + """ + Gets the groupnet of this ProvidersNisItem. + Groupnet identifier. + + :return: The groupnet of this ProvidersNisItem. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this ProvidersNisItem. + Groupnet identifier. + + :param groupnet: The groupnet of this ProvidersNisItem. + :type: str + """ + + self._groupnet = groupnet + + @property + def home_directory_template(self): + """ + Gets the home_directory_template of this ProvidersNisItem. + Specifies the path to the home directory template. + + :return: The home_directory_template of this ProvidersNisItem. + :rtype: str + """ + return self._home_directory_template + + @home_directory_template.setter + def home_directory_template(self, home_directory_template): + """ + Sets the home_directory_template of this ProvidersNisItem. + Specifies the path to the home directory template. + + :param home_directory_template: The home_directory_template of this ProvidersNisItem. + :type: str + """ + + self._home_directory_template = home_directory_template + + @property + def hostname_lookup(self): + """ + Gets the hostname_lookup of this ProvidersNisItem. + If true, enables host name look ups. + + :return: The hostname_lookup of this ProvidersNisItem. + :rtype: bool + """ + return self._hostname_lookup + + @hostname_lookup.setter + def hostname_lookup(self, hostname_lookup): + """ + Sets the hostname_lookup of this ProvidersNisItem. + If true, enables host name look ups. + + :param hostname_lookup: The hostname_lookup of this ProvidersNisItem. + :type: bool + """ + + self._hostname_lookup = hostname_lookup + + @property + def listable_groups(self): + """ + Gets the listable_groups of this ProvidersNisItem. + Specifies the groups that can be viewed in the provider. + + :return: The listable_groups of this ProvidersNisItem. + :rtype: list[str] + """ + return self._listable_groups + + @listable_groups.setter + def listable_groups(self, listable_groups): + """ + Sets the listable_groups of this ProvidersNisItem. + Specifies the groups that can be viewed in the provider. + + :param listable_groups: The listable_groups of this ProvidersNisItem. + :type: list[str] + """ + + self._listable_groups = listable_groups + + @property + def listable_users(self): + """ + Gets the listable_users of this ProvidersNisItem. + Specifies the users that can be viewed in the provider. + + :return: The listable_users of this ProvidersNisItem. + :rtype: list[str] + """ + return self._listable_users + + @listable_users.setter + def listable_users(self, listable_users): + """ + Sets the listable_users of this ProvidersNisItem. + Specifies the users that can be viewed in the provider. + + :param listable_users: The listable_users of this ProvidersNisItem. + :type: list[str] + """ + + self._listable_users = listable_users + + @property + def login_shell(self): + """ + Gets the login_shell of this ProvidersNisItem. + Specifies the login shell path. + + :return: The login_shell of this ProvidersNisItem. + :rtype: str + """ + return self._login_shell + + @login_shell.setter + def login_shell(self, login_shell): + """ + Sets the login_shell of this ProvidersNisItem. + Specifies the login shell path. + + :param login_shell: The login_shell of this ProvidersNisItem. + :type: str + """ + + self._login_shell = login_shell + + @property + def name(self): + """ + Gets the name of this ProvidersNisItem. + Specifies the NIS provider name. + + :return: The name of this ProvidersNisItem. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ProvidersNisItem. + Specifies the NIS provider name. + + :param name: The name of this ProvidersNisItem. + :type: str + """ + + self._name = name + + @property + def nis_domain(self): + """ + Gets the nis_domain of this ProvidersNisItem. + Specifies the NIS domain name. + + :return: The nis_domain of this ProvidersNisItem. + :rtype: str + """ + return self._nis_domain + + @nis_domain.setter + def nis_domain(self, nis_domain): + """ + Sets the nis_domain of this ProvidersNisItem. + Specifies the NIS domain name. + + :param nis_domain: The nis_domain of this ProvidersNisItem. + :type: str + """ + + self._nis_domain = nis_domain + + @property + def normalize_groups(self): + """ + Gets the normalize_groups of this ProvidersNisItem. + Normalizes group names to lowercase before look up. + + :return: The normalize_groups of this ProvidersNisItem. + :rtype: bool + """ + return self._normalize_groups + + @normalize_groups.setter + def normalize_groups(self, normalize_groups): + """ + Sets the normalize_groups of this ProvidersNisItem. + Normalizes group names to lowercase before look up. + + :param normalize_groups: The normalize_groups of this ProvidersNisItem. + :type: bool + """ + + self._normalize_groups = normalize_groups + + @property + def normalize_users(self): + """ + Gets the normalize_users of this ProvidersNisItem. + Normalizes user names to lowercase before look up. + + :return: The normalize_users of this ProvidersNisItem. + :rtype: bool + """ + return self._normalize_users + + @normalize_users.setter + def normalize_users(self, normalize_users): + """ + Sets the normalize_users of this ProvidersNisItem. + Normalizes user names to lowercase before look up. + + :param normalize_users: The normalize_users of this ProvidersNisItem. + :type: bool + """ + + self._normalize_users = normalize_users + + @property + def ntlm_support(self): + """ + Gets the ntlm_support of this ProvidersNisItem. + Specifies which NTLM versions to support for users with NTLM-compatible credentials. + + :return: The ntlm_support of this ProvidersNisItem. + :rtype: str + """ + return self._ntlm_support + + @ntlm_support.setter + def ntlm_support(self, ntlm_support): + """ + Sets the ntlm_support of this ProvidersNisItem. + Specifies which NTLM versions to support for users with NTLM-compatible credentials. + + :param ntlm_support: The ntlm_support of this ProvidersNisItem. + :type: str + """ + allowed_values = ["all", "v2only", "none"] + if ntlm_support not in allowed_values: + raise ValueError( + "Invalid value for `ntlm_support`, must be one of {0}" + .format(allowed_values) + ) + + self._ntlm_support = ntlm_support + + @property + def provider_domain(self): + """ + Gets the provider_domain of this ProvidersNisItem. + Specifies the domain for the provider. + + :return: The provider_domain of this ProvidersNisItem. + :rtype: str + """ + return self._provider_domain + + @provider_domain.setter + def provider_domain(self, provider_domain): + """ + Sets the provider_domain of this ProvidersNisItem. + Specifies the domain for the provider. + + :param provider_domain: The provider_domain of this ProvidersNisItem. + :type: str + """ + + self._provider_domain = provider_domain + + @property + def request_timeout(self): + """ + Gets the request_timeout of this ProvidersNisItem. + Specifies the request timeout interval in seconds. + + :return: The request_timeout of this ProvidersNisItem. + :rtype: int + """ + return self._request_timeout + + @request_timeout.setter + def request_timeout(self, request_timeout): + """ + Sets the request_timeout of this ProvidersNisItem. + Specifies the request timeout interval in seconds. + + :param request_timeout: The request_timeout of this ProvidersNisItem. + :type: int + """ + + self._request_timeout = request_timeout + + @property + def restrict_findable(self): + """ + Gets the restrict_findable of this ProvidersNisItem. + If true, checks the provider for filtered lists of findable and unfindable users and groups. + + :return: The restrict_findable of this ProvidersNisItem. + :rtype: bool + """ + return self._restrict_findable + + @restrict_findable.setter + def restrict_findable(self, restrict_findable): + """ + Sets the restrict_findable of this ProvidersNisItem. + If true, checks the provider for filtered lists of findable and unfindable users and groups. + + :param restrict_findable: The restrict_findable of this ProvidersNisItem. + :type: bool + """ + + self._restrict_findable = restrict_findable + + @property + def restrict_listable(self): + """ + Gets the restrict_listable of this ProvidersNisItem. + If true, checks the provider for filtered lists of listable and unlistable users and groups. + + :return: The restrict_listable of this ProvidersNisItem. + :rtype: bool + """ + return self._restrict_listable + + @restrict_listable.setter + def restrict_listable(self, restrict_listable): + """ + Sets the restrict_listable of this ProvidersNisItem. + If true, checks the provider for filtered lists of listable and unlistable users and groups. + + :param restrict_listable: The restrict_listable of this ProvidersNisItem. + :type: bool + """ + + self._restrict_listable = restrict_listable + + @property + def retry_time(self): + """ + Gets the retry_time of this ProvidersNisItem. + Specifies the timeout period in seconds after which a request will be retried. + + :return: The retry_time of this ProvidersNisItem. + :rtype: int + """ + return self._retry_time + + @retry_time.setter + def retry_time(self, retry_time): + """ + Sets the retry_time of this ProvidersNisItem. + Specifies the timeout period in seconds after which a request will be retried. + + :param retry_time: The retry_time of this ProvidersNisItem. + :type: int + """ + + self._retry_time = retry_time + + @property + def servers(self): + """ + Gets the servers of this ProvidersNisItem. + Adds an NIS server for this provider. + + :return: The servers of this ProvidersNisItem. + :rtype: list[str] + """ + return self._servers + + @servers.setter + def servers(self, servers): + """ + Sets the servers of this ProvidersNisItem. + Adds an NIS server for this provider. + + :param servers: The servers of this ProvidersNisItem. + :type: list[str] + """ + + self._servers = servers + + @property + def unfindable_groups(self): + """ + Gets the unfindable_groups of this ProvidersNisItem. + Specifies groups that cannot be resolved by the provider. + + :return: The unfindable_groups of this ProvidersNisItem. + :rtype: list[str] + """ + return self._unfindable_groups + + @unfindable_groups.setter + def unfindable_groups(self, unfindable_groups): + """ + Sets the unfindable_groups of this ProvidersNisItem. + Specifies groups that cannot be resolved by the provider. + + :param unfindable_groups: The unfindable_groups of this ProvidersNisItem. + :type: list[str] + """ + + self._unfindable_groups = unfindable_groups + + @property + def unfindable_users(self): + """ + Gets the unfindable_users of this ProvidersNisItem. + Specifies users that cannot be resolved by the provider. + + :return: The unfindable_users of this ProvidersNisItem. + :rtype: list[str] + """ + return self._unfindable_users + + @unfindable_users.setter + def unfindable_users(self, unfindable_users): + """ + Sets the unfindable_users of this ProvidersNisItem. + Specifies users that cannot be resolved by the provider. + + :param unfindable_users: The unfindable_users of this ProvidersNisItem. + :type: list[str] + """ + + self._unfindable_users = unfindable_users + + @property + def unlistable_groups(self): + """ + Gets the unlistable_groups of this ProvidersNisItem. + Specifies a group that cannot be listed by the provider. + + :return: The unlistable_groups of this ProvidersNisItem. + :rtype: list[str] + """ + return self._unlistable_groups + + @unlistable_groups.setter + def unlistable_groups(self, unlistable_groups): + """ + Sets the unlistable_groups of this ProvidersNisItem. + Specifies a group that cannot be listed by the provider. + + :param unlistable_groups: The unlistable_groups of this ProvidersNisItem. + :type: list[str] + """ + + self._unlistable_groups = unlistable_groups + + @property + def unlistable_users(self): + """ + Gets the unlistable_users of this ProvidersNisItem. + Specifies a user that cannot be listed by the provider. + + :return: The unlistable_users of this ProvidersNisItem. + :rtype: list[str] + """ + return self._unlistable_users + + @unlistable_users.setter + def unlistable_users(self, unlistable_users): + """ + Sets the unlistable_users of this ProvidersNisItem. + Specifies a user that cannot be listed by the provider. + + :param unlistable_users: The unlistable_users of this ProvidersNisItem. + :type: list[str] + """ + + self._unlistable_users = unlistable_users + + @property + def user_domain(self): + """ + Gets the user_domain of this ProvidersNisItem. + Specifies the domain for this provider through which users are qualified. + + :return: The user_domain of this ProvidersNisItem. + :rtype: str + """ + return self._user_domain + + @user_domain.setter + def user_domain(self, user_domain): + """ + Sets the user_domain of this ProvidersNisItem. + Specifies the domain for this provider through which users are qualified. + + :param user_domain: The user_domain of this ProvidersNisItem. + :type: str + """ + + self._user_domain = user_domain + + @property + def ypmatch_using_tcp(self): + """ + Gets the ypmatch_using_tcp of this ProvidersNisItem. + If true, specifies TCP for YP Match operations. + + :return: The ypmatch_using_tcp of this ProvidersNisItem. + :rtype: bool + """ + return self._ypmatch_using_tcp + + @ypmatch_using_tcp.setter + def ypmatch_using_tcp(self, ypmatch_using_tcp): + """ + Sets the ypmatch_using_tcp of this ProvidersNisItem. + If true, specifies TCP for YP Match operations. + + :param ypmatch_using_tcp: The ypmatch_using_tcp of this ProvidersNisItem. + :type: bool + """ + + self._ypmatch_using_tcp = ypmatch_using_tcp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_nis_nis_item.py b/isi_sdk/models/providers_nis_nis_item.py new file mode 100644 index 000000000..f19a6e571 --- /dev/null +++ b/isi_sdk/models/providers_nis_nis_item.py @@ -0,0 +1,1012 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersNisNisItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersNisNisItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'authentication': 'bool', + 'balance_servers': 'bool', + 'check_online_interval': 'int', + 'create_home_directory': 'bool', + 'enabled': 'bool', + 'enumerate_groups': 'bool', + 'enumerate_users': 'bool', + 'findable_groups': 'list[str]', + 'findable_users': 'list[str]', + 'group_domain': 'str', + 'home_directory_template': 'str', + 'hostname_lookup': 'bool', + 'id': 'str', + 'listable_groups': 'list[str]', + 'listable_users': 'list[str]', + 'login_shell': 'str', + 'name': 'str', + 'nis_domain': 'str', + 'normalize_groups': 'bool', + 'normalize_users': 'bool', + 'ntlm_support': 'str', + 'provider_domain': 'str', + 'request_timeout': 'int', + 'restrict_findable': 'bool', + 'restrict_listable': 'bool', + 'retry_time': 'int', + 'servers': 'list[str]', + 'status': 'str', + 'system': 'bool', + 'unfindable_groups': 'list[str]', + 'unfindable_users': 'list[str]', + 'unlistable_groups': 'list[str]', + 'unlistable_users': 'list[str]', + 'user_domain': 'str', + 'ypmatch_using_tcp': 'bool' + } + + self.attribute_map = { + 'authentication': 'authentication', + 'balance_servers': 'balance_servers', + 'check_online_interval': 'check_online_interval', + 'create_home_directory': 'create_home_directory', + 'enabled': 'enabled', + 'enumerate_groups': 'enumerate_groups', + 'enumerate_users': 'enumerate_users', + 'findable_groups': 'findable_groups', + 'findable_users': 'findable_users', + 'group_domain': 'group_domain', + 'home_directory_template': 'home_directory_template', + 'hostname_lookup': 'hostname_lookup', + 'id': 'id', + 'listable_groups': 'listable_groups', + 'listable_users': 'listable_users', + 'login_shell': 'login_shell', + 'name': 'name', + 'nis_domain': 'nis_domain', + 'normalize_groups': 'normalize_groups', + 'normalize_users': 'normalize_users', + 'ntlm_support': 'ntlm_support', + 'provider_domain': 'provider_domain', + 'request_timeout': 'request_timeout', + 'restrict_findable': 'restrict_findable', + 'restrict_listable': 'restrict_listable', + 'retry_time': 'retry_time', + 'servers': 'servers', + 'status': 'status', + 'system': 'system', + 'unfindable_groups': 'unfindable_groups', + 'unfindable_users': 'unfindable_users', + 'unlistable_groups': 'unlistable_groups', + 'unlistable_users': 'unlistable_users', + 'user_domain': 'user_domain', + 'ypmatch_using_tcp': 'ypmatch_using_tcp' + } + + self._authentication = None + self._balance_servers = None + self._check_online_interval = None + self._create_home_directory = None + self._enabled = None + self._enumerate_groups = None + self._enumerate_users = None + self._findable_groups = None + self._findable_users = None + self._group_domain = None + self._home_directory_template = None + self._hostname_lookup = None + self._id = None + self._listable_groups = None + self._listable_users = None + self._login_shell = None + self._name = None + self._nis_domain = None + self._normalize_groups = None + self._normalize_users = None + self._ntlm_support = None + self._provider_domain = None + self._request_timeout = None + self._restrict_findable = None + self._restrict_listable = None + self._retry_time = None + self._servers = None + self._status = None + self._system = None + self._unfindable_groups = None + self._unfindable_users = None + self._unlistable_groups = None + self._unlistable_users = None + self._user_domain = None + self._ypmatch_using_tcp = None + + @property + def authentication(self): + """ + Gets the authentication of this ProvidersNisNisItem. + If true, enables authentication and identity management through the authentication provider. + + :return: The authentication of this ProvidersNisNisItem. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """ + Sets the authentication of this ProvidersNisNisItem. + If true, enables authentication and identity management through the authentication provider. + + :param authentication: The authentication of this ProvidersNisNisItem. + :type: bool + """ + + self._authentication = authentication + + @property + def balance_servers(self): + """ + Gets the balance_servers of this ProvidersNisNisItem. + If true, connects the provider to a random server. + + :return: The balance_servers of this ProvidersNisNisItem. + :rtype: bool + """ + return self._balance_servers + + @balance_servers.setter + def balance_servers(self, balance_servers): + """ + Sets the balance_servers of this ProvidersNisNisItem. + If true, connects the provider to a random server. + + :param balance_servers: The balance_servers of this ProvidersNisNisItem. + :type: bool + """ + + self._balance_servers = balance_servers + + @property + def check_online_interval(self): + """ + Gets the check_online_interval of this ProvidersNisNisItem. + Specifies the time in seconds between provider online checks. + + :return: The check_online_interval of this ProvidersNisNisItem. + :rtype: int + """ + return self._check_online_interval + + @check_online_interval.setter + def check_online_interval(self, check_online_interval): + """ + Sets the check_online_interval of this ProvidersNisNisItem. + Specifies the time in seconds between provider online checks. + + :param check_online_interval: The check_online_interval of this ProvidersNisNisItem. + :type: int + """ + + self._check_online_interval = check_online_interval + + @property + def create_home_directory(self): + """ + Gets the create_home_directory of this ProvidersNisNisItem. + Automatically creates the home directory on the first login. + + :return: The create_home_directory of this ProvidersNisNisItem. + :rtype: bool + """ + return self._create_home_directory + + @create_home_directory.setter + def create_home_directory(self, create_home_directory): + """ + Sets the create_home_directory of this ProvidersNisNisItem. + Automatically creates the home directory on the first login. + + :param create_home_directory: The create_home_directory of this ProvidersNisNisItem. + :type: bool + """ + + self._create_home_directory = create_home_directory + + @property + def enabled(self): + """ + Gets the enabled of this ProvidersNisNisItem. + If true, enables the NIS provider. + + :return: The enabled of this ProvidersNisNisItem. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this ProvidersNisNisItem. + If true, enables the NIS provider. + + :param enabled: The enabled of this ProvidersNisNisItem. + :type: bool + """ + + self._enabled = enabled + + @property + def enumerate_groups(self): + """ + Gets the enumerate_groups of this ProvidersNisNisItem. + If true, allows the provider to enumerate groups. + + :return: The enumerate_groups of this ProvidersNisNisItem. + :rtype: bool + """ + return self._enumerate_groups + + @enumerate_groups.setter + def enumerate_groups(self, enumerate_groups): + """ + Sets the enumerate_groups of this ProvidersNisNisItem. + If true, allows the provider to enumerate groups. + + :param enumerate_groups: The enumerate_groups of this ProvidersNisNisItem. + :type: bool + """ + + self._enumerate_groups = enumerate_groups + + @property + def enumerate_users(self): + """ + Gets the enumerate_users of this ProvidersNisNisItem. + If true, allows the provider to enumerate users. + + :return: The enumerate_users of this ProvidersNisNisItem. + :rtype: bool + """ + return self._enumerate_users + + @enumerate_users.setter + def enumerate_users(self, enumerate_users): + """ + Sets the enumerate_users of this ProvidersNisNisItem. + If true, allows the provider to enumerate users. + + :param enumerate_users: The enumerate_users of this ProvidersNisNisItem. + :type: bool + """ + + self._enumerate_users = enumerate_users + + @property + def findable_groups(self): + """ + Gets the findable_groups of this ProvidersNisNisItem. + Specifies the list of groups that can be resolved. + + :return: The findable_groups of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._findable_groups + + @findable_groups.setter + def findable_groups(self, findable_groups): + """ + Sets the findable_groups of this ProvidersNisNisItem. + Specifies the list of groups that can be resolved. + + :param findable_groups: The findable_groups of this ProvidersNisNisItem. + :type: list[str] + """ + + self._findable_groups = findable_groups + + @property + def findable_users(self): + """ + Gets the findable_users of this ProvidersNisNisItem. + Specifies the list of users that can be resolved. + + :return: The findable_users of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._findable_users + + @findable_users.setter + def findable_users(self, findable_users): + """ + Sets the findable_users of this ProvidersNisNisItem. + Specifies the list of users that can be resolved. + + :param findable_users: The findable_users of this ProvidersNisNisItem. + :type: list[str] + """ + + self._findable_users = findable_users + + @property + def group_domain(self): + """ + Gets the group_domain of this ProvidersNisNisItem. + Specifies the domain for this provider through which groups are qualified. + + :return: The group_domain of this ProvidersNisNisItem. + :rtype: str + """ + return self._group_domain + + @group_domain.setter + def group_domain(self, group_domain): + """ + Sets the group_domain of this ProvidersNisNisItem. + Specifies the domain for this provider through which groups are qualified. + + :param group_domain: The group_domain of this ProvidersNisNisItem. + :type: str + """ + + self._group_domain = group_domain + + @property + def home_directory_template(self): + """ + Gets the home_directory_template of this ProvidersNisNisItem. + Specifies the path to the home directory template. + + :return: The home_directory_template of this ProvidersNisNisItem. + :rtype: str + """ + return self._home_directory_template + + @home_directory_template.setter + def home_directory_template(self, home_directory_template): + """ + Sets the home_directory_template of this ProvidersNisNisItem. + Specifies the path to the home directory template. + + :param home_directory_template: The home_directory_template of this ProvidersNisNisItem. + :type: str + """ + + self._home_directory_template = home_directory_template + + @property + def hostname_lookup(self): + """ + Gets the hostname_lookup of this ProvidersNisNisItem. + If true, enables host name look ups. + + :return: The hostname_lookup of this ProvidersNisNisItem. + :rtype: bool + """ + return self._hostname_lookup + + @hostname_lookup.setter + def hostname_lookup(self, hostname_lookup): + """ + Sets the hostname_lookup of this ProvidersNisNisItem. + If true, enables host name look ups. + + :param hostname_lookup: The hostname_lookup of this ProvidersNisNisItem. + :type: bool + """ + + self._hostname_lookup = hostname_lookup + + @property + def id(self): + """ + Gets the id of this ProvidersNisNisItem. + Specifies the NIS provider ID. + + :return: The id of this ProvidersNisNisItem. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ProvidersNisNisItem. + Specifies the NIS provider ID. + + :param id: The id of this ProvidersNisNisItem. + :type: str + """ + + self._id = id + + @property + def listable_groups(self): + """ + Gets the listable_groups of this ProvidersNisNisItem. + Specifies the groups that can be viewed in the provider. + + :return: The listable_groups of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._listable_groups + + @listable_groups.setter + def listable_groups(self, listable_groups): + """ + Sets the listable_groups of this ProvidersNisNisItem. + Specifies the groups that can be viewed in the provider. + + :param listable_groups: The listable_groups of this ProvidersNisNisItem. + :type: list[str] + """ + + self._listable_groups = listable_groups + + @property + def listable_users(self): + """ + Gets the listable_users of this ProvidersNisNisItem. + Specifies the users that can be viewed in the provider. + + :return: The listable_users of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._listable_users + + @listable_users.setter + def listable_users(self, listable_users): + """ + Sets the listable_users of this ProvidersNisNisItem. + Specifies the users that can be viewed in the provider. + + :param listable_users: The listable_users of this ProvidersNisNisItem. + :type: list[str] + """ + + self._listable_users = listable_users + + @property + def login_shell(self): + """ + Gets the login_shell of this ProvidersNisNisItem. + Specifies the login shell path. + + :return: The login_shell of this ProvidersNisNisItem. + :rtype: str + """ + return self._login_shell + + @login_shell.setter + def login_shell(self, login_shell): + """ + Sets the login_shell of this ProvidersNisNisItem. + Specifies the login shell path. + + :param login_shell: The login_shell of this ProvidersNisNisItem. + :type: str + """ + + self._login_shell = login_shell + + @property + def name(self): + """ + Gets the name of this ProvidersNisNisItem. + Specifies the NIS provider name. + + :return: The name of this ProvidersNisNisItem. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ProvidersNisNisItem. + Specifies the NIS provider name. + + :param name: The name of this ProvidersNisNisItem. + :type: str + """ + + self._name = name + + @property + def nis_domain(self): + """ + Gets the nis_domain of this ProvidersNisNisItem. + Specifies the NIS domain name. + + :return: The nis_domain of this ProvidersNisNisItem. + :rtype: str + """ + return self._nis_domain + + @nis_domain.setter + def nis_domain(self, nis_domain): + """ + Sets the nis_domain of this ProvidersNisNisItem. + Specifies the NIS domain name. + + :param nis_domain: The nis_domain of this ProvidersNisNisItem. + :type: str + """ + + self._nis_domain = nis_domain + + @property + def normalize_groups(self): + """ + Gets the normalize_groups of this ProvidersNisNisItem. + Normalizes group names to lowercase before look up. + + :return: The normalize_groups of this ProvidersNisNisItem. + :rtype: bool + """ + return self._normalize_groups + + @normalize_groups.setter + def normalize_groups(self, normalize_groups): + """ + Sets the normalize_groups of this ProvidersNisNisItem. + Normalizes group names to lowercase before look up. + + :param normalize_groups: The normalize_groups of this ProvidersNisNisItem. + :type: bool + """ + + self._normalize_groups = normalize_groups + + @property + def normalize_users(self): + """ + Gets the normalize_users of this ProvidersNisNisItem. + Normalizes user names to lowercase before look up. + + :return: The normalize_users of this ProvidersNisNisItem. + :rtype: bool + """ + return self._normalize_users + + @normalize_users.setter + def normalize_users(self, normalize_users): + """ + Sets the normalize_users of this ProvidersNisNisItem. + Normalizes user names to lowercase before look up. + + :param normalize_users: The normalize_users of this ProvidersNisNisItem. + :type: bool + """ + + self._normalize_users = normalize_users + + @property + def ntlm_support(self): + """ + Gets the ntlm_support of this ProvidersNisNisItem. + Specifies which NTLM versions to support for users with NTLM-compatible credentials. + + :return: The ntlm_support of this ProvidersNisNisItem. + :rtype: str + """ + return self._ntlm_support + + @ntlm_support.setter + def ntlm_support(self, ntlm_support): + """ + Sets the ntlm_support of this ProvidersNisNisItem. + Specifies which NTLM versions to support for users with NTLM-compatible credentials. + + :param ntlm_support: The ntlm_support of this ProvidersNisNisItem. + :type: str + """ + allowed_values = ["all", "v2only", "none"] + if ntlm_support not in allowed_values: + raise ValueError( + "Invalid value for `ntlm_support`, must be one of {0}" + .format(allowed_values) + ) + + self._ntlm_support = ntlm_support + + @property + def provider_domain(self): + """ + Gets the provider_domain of this ProvidersNisNisItem. + Specifies the domain for the provider. + + :return: The provider_domain of this ProvidersNisNisItem. + :rtype: str + """ + return self._provider_domain + + @provider_domain.setter + def provider_domain(self, provider_domain): + """ + Sets the provider_domain of this ProvidersNisNisItem. + Specifies the domain for the provider. + + :param provider_domain: The provider_domain of this ProvidersNisNisItem. + :type: str + """ + + self._provider_domain = provider_domain + + @property + def request_timeout(self): + """ + Gets the request_timeout of this ProvidersNisNisItem. + Specifies the request timeout interval in seconds. + + :return: The request_timeout of this ProvidersNisNisItem. + :rtype: int + """ + return self._request_timeout + + @request_timeout.setter + def request_timeout(self, request_timeout): + """ + Sets the request_timeout of this ProvidersNisNisItem. + Specifies the request timeout interval in seconds. + + :param request_timeout: The request_timeout of this ProvidersNisNisItem. + :type: int + """ + + self._request_timeout = request_timeout + + @property + def restrict_findable(self): + """ + Gets the restrict_findable of this ProvidersNisNisItem. + If true, checks the provider for filtered lists of findable and unfindable users and groups. + + :return: The restrict_findable of this ProvidersNisNisItem. + :rtype: bool + """ + return self._restrict_findable + + @restrict_findable.setter + def restrict_findable(self, restrict_findable): + """ + Sets the restrict_findable of this ProvidersNisNisItem. + If true, checks the provider for filtered lists of findable and unfindable users and groups. + + :param restrict_findable: The restrict_findable of this ProvidersNisNisItem. + :type: bool + """ + + self._restrict_findable = restrict_findable + + @property + def restrict_listable(self): + """ + Gets the restrict_listable of this ProvidersNisNisItem. + If true, checks the provider for filtered lists of listable and unlistable users and groups. + + :return: The restrict_listable of this ProvidersNisNisItem. + :rtype: bool + """ + return self._restrict_listable + + @restrict_listable.setter + def restrict_listable(self, restrict_listable): + """ + Sets the restrict_listable of this ProvidersNisNisItem. + If true, checks the provider for filtered lists of listable and unlistable users and groups. + + :param restrict_listable: The restrict_listable of this ProvidersNisNisItem. + :type: bool + """ + + self._restrict_listable = restrict_listable + + @property + def retry_time(self): + """ + Gets the retry_time of this ProvidersNisNisItem. + Specifies the timeout period in seconds after which a request will be retried. + + :return: The retry_time of this ProvidersNisNisItem. + :rtype: int + """ + return self._retry_time + + @retry_time.setter + def retry_time(self, retry_time): + """ + Sets the retry_time of this ProvidersNisNisItem. + Specifies the timeout period in seconds after which a request will be retried. + + :param retry_time: The retry_time of this ProvidersNisNisItem. + :type: int + """ + + self._retry_time = retry_time + + @property + def servers(self): + """ + Gets the servers of this ProvidersNisNisItem. + Adds an NIS server for this provider. + + :return: The servers of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._servers + + @servers.setter + def servers(self, servers): + """ + Sets the servers of this ProvidersNisNisItem. + Adds an NIS server for this provider. + + :param servers: The servers of this ProvidersNisNisItem. + :type: list[str] + """ + + self._servers = servers + + @property + def status(self): + """ + Gets the status of this ProvidersNisNisItem. + Specifies the status of the provider. + + :return: The status of this ProvidersNisNisItem. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ProvidersNisNisItem. + Specifies the status of the provider. + + :param status: The status of this ProvidersNisNisItem. + :type: str + """ + + self._status = status + + @property + def system(self): + """ + Gets the system of this ProvidersNisNisItem. + If true, indicates that this provider instance was created by OneFS and cannot be removed. + + :return: The system of this ProvidersNisNisItem. + :rtype: bool + """ + return self._system + + @system.setter + def system(self, system): + """ + Sets the system of this ProvidersNisNisItem. + If true, indicates that this provider instance was created by OneFS and cannot be removed. + + :param system: The system of this ProvidersNisNisItem. + :type: bool + """ + + self._system = system + + @property + def unfindable_groups(self): + """ + Gets the unfindable_groups of this ProvidersNisNisItem. + Specifies groups that cannot be resolved by the provider. + + :return: The unfindable_groups of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._unfindable_groups + + @unfindable_groups.setter + def unfindable_groups(self, unfindable_groups): + """ + Sets the unfindable_groups of this ProvidersNisNisItem. + Specifies groups that cannot be resolved by the provider. + + :param unfindable_groups: The unfindable_groups of this ProvidersNisNisItem. + :type: list[str] + """ + + self._unfindable_groups = unfindable_groups + + @property + def unfindable_users(self): + """ + Gets the unfindable_users of this ProvidersNisNisItem. + Specifies users that cannot be resolved by the provider. + + :return: The unfindable_users of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._unfindable_users + + @unfindable_users.setter + def unfindable_users(self, unfindable_users): + """ + Sets the unfindable_users of this ProvidersNisNisItem. + Specifies users that cannot be resolved by the provider. + + :param unfindable_users: The unfindable_users of this ProvidersNisNisItem. + :type: list[str] + """ + + self._unfindable_users = unfindable_users + + @property + def unlistable_groups(self): + """ + Gets the unlistable_groups of this ProvidersNisNisItem. + Specifies a group that cannot be listed by the provider. + + :return: The unlistable_groups of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._unlistable_groups + + @unlistable_groups.setter + def unlistable_groups(self, unlistable_groups): + """ + Sets the unlistable_groups of this ProvidersNisNisItem. + Specifies a group that cannot be listed by the provider. + + :param unlistable_groups: The unlistable_groups of this ProvidersNisNisItem. + :type: list[str] + """ + + self._unlistable_groups = unlistable_groups + + @property + def unlistable_users(self): + """ + Gets the unlistable_users of this ProvidersNisNisItem. + Specifies a user that cannot be listed by the provider. + + :return: The unlistable_users of this ProvidersNisNisItem. + :rtype: list[str] + """ + return self._unlistable_users + + @unlistable_users.setter + def unlistable_users(self, unlistable_users): + """ + Sets the unlistable_users of this ProvidersNisNisItem. + Specifies a user that cannot be listed by the provider. + + :param unlistable_users: The unlistable_users of this ProvidersNisNisItem. + :type: list[str] + """ + + self._unlistable_users = unlistable_users + + @property + def user_domain(self): + """ + Gets the user_domain of this ProvidersNisNisItem. + Specifies the domain for this provider through which users are qualified. + + :return: The user_domain of this ProvidersNisNisItem. + :rtype: str + """ + return self._user_domain + + @user_domain.setter + def user_domain(self, user_domain): + """ + Sets the user_domain of this ProvidersNisNisItem. + Specifies the domain for this provider through which users are qualified. + + :param user_domain: The user_domain of this ProvidersNisNisItem. + :type: str + """ + + self._user_domain = user_domain + + @property + def ypmatch_using_tcp(self): + """ + Gets the ypmatch_using_tcp of this ProvidersNisNisItem. + If true, specifies TCP for YP Match operations. + + :return: The ypmatch_using_tcp of this ProvidersNisNisItem. + :rtype: bool + """ + return self._ypmatch_using_tcp + + @ypmatch_using_tcp.setter + def ypmatch_using_tcp(self, ypmatch_using_tcp): + """ + Sets the ypmatch_using_tcp of this ProvidersNisNisItem. + If true, specifies TCP for YP Match operations. + + :param ypmatch_using_tcp: The ypmatch_using_tcp of this ProvidersNisNisItem. + :type: bool + """ + + self._ypmatch_using_tcp = ypmatch_using_tcp + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_nis_nis_item_extended.py b/isi_sdk/models/providers_nis_nis_item_extended.py new file mode 100644 index 000000000..66d74b7a7 --- /dev/null +++ b/isi_sdk/models/providers_nis_nis_item_extended.py @@ -0,0 +1,1038 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ProvidersNisNisItemExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ProvidersNisNisItemExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'authentication': 'bool', + 'balance_servers': 'bool', + 'check_online_interval': 'int', + 'create_home_directory': 'bool', + 'enabled': 'bool', + 'enumerate_groups': 'bool', + 'enumerate_users': 'bool', + 'findable_groups': 'list[str]', + 'findable_users': 'list[str]', + 'group_domain': 'str', + 'home_directory_template': 'str', + 'hostname_lookup': 'bool', + 'id': 'str', + 'listable_groups': 'list[str]', + 'listable_users': 'list[str]', + 'login_shell': 'str', + 'name': 'str', + 'nis_domain': 'str', + 'normalize_groups': 'bool', + 'normalize_users': 'bool', + 'ntlm_support': 'str', + 'provider_domain': 'str', + 'request_timeout': 'int', + 'restrict_findable': 'bool', + 'restrict_listable': 'bool', + 'retry_time': 'int', + 'servers': 'list[str]', + 'status': 'str', + 'system': 'bool', + 'unfindable_groups': 'list[str]', + 'unfindable_users': 'list[str]', + 'unlistable_groups': 'list[str]', + 'unlistable_users': 'list[str]', + 'user_domain': 'str', + 'ypmatch_using_tcp': 'bool', + 'groupnet': 'str' + } + + self.attribute_map = { + 'authentication': 'authentication', + 'balance_servers': 'balance_servers', + 'check_online_interval': 'check_online_interval', + 'create_home_directory': 'create_home_directory', + 'enabled': 'enabled', + 'enumerate_groups': 'enumerate_groups', + 'enumerate_users': 'enumerate_users', + 'findable_groups': 'findable_groups', + 'findable_users': 'findable_users', + 'group_domain': 'group_domain', + 'home_directory_template': 'home_directory_template', + 'hostname_lookup': 'hostname_lookup', + 'id': 'id', + 'listable_groups': 'listable_groups', + 'listable_users': 'listable_users', + 'login_shell': 'login_shell', + 'name': 'name', + 'nis_domain': 'nis_domain', + 'normalize_groups': 'normalize_groups', + 'normalize_users': 'normalize_users', + 'ntlm_support': 'ntlm_support', + 'provider_domain': 'provider_domain', + 'request_timeout': 'request_timeout', + 'restrict_findable': 'restrict_findable', + 'restrict_listable': 'restrict_listable', + 'retry_time': 'retry_time', + 'servers': 'servers', + 'status': 'status', + 'system': 'system', + 'unfindable_groups': 'unfindable_groups', + 'unfindable_users': 'unfindable_users', + 'unlistable_groups': 'unlistable_groups', + 'unlistable_users': 'unlistable_users', + 'user_domain': 'user_domain', + 'ypmatch_using_tcp': 'ypmatch_using_tcp', + 'groupnet': 'groupnet' + } + + self._authentication = None + self._balance_servers = None + self._check_online_interval = None + self._create_home_directory = None + self._enabled = None + self._enumerate_groups = None + self._enumerate_users = None + self._findable_groups = None + self._findable_users = None + self._group_domain = None + self._home_directory_template = None + self._hostname_lookup = None + self._id = None + self._listable_groups = None + self._listable_users = None + self._login_shell = None + self._name = None + self._nis_domain = None + self._normalize_groups = None + self._normalize_users = None + self._ntlm_support = None + self._provider_domain = None + self._request_timeout = None + self._restrict_findable = None + self._restrict_listable = None + self._retry_time = None + self._servers = None + self._status = None + self._system = None + self._unfindable_groups = None + self._unfindable_users = None + self._unlistable_groups = None + self._unlistable_users = None + self._user_domain = None + self._ypmatch_using_tcp = None + self._groupnet = None + + @property + def authentication(self): + """ + Gets the authentication of this ProvidersNisNisItemExtended. + If true, enables authentication and identity management through the authentication provider. + + :return: The authentication of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """ + Sets the authentication of this ProvidersNisNisItemExtended. + If true, enables authentication and identity management through the authentication provider. + + :param authentication: The authentication of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._authentication = authentication + + @property + def balance_servers(self): + """ + Gets the balance_servers of this ProvidersNisNisItemExtended. + If true, connects the provider to a random server. + + :return: The balance_servers of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._balance_servers + + @balance_servers.setter + def balance_servers(self, balance_servers): + """ + Sets the balance_servers of this ProvidersNisNisItemExtended. + If true, connects the provider to a random server. + + :param balance_servers: The balance_servers of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._balance_servers = balance_servers + + @property + def check_online_interval(self): + """ + Gets the check_online_interval of this ProvidersNisNisItemExtended. + Specifies the time in seconds between provider online checks. + + :return: The check_online_interval of this ProvidersNisNisItemExtended. + :rtype: int + """ + return self._check_online_interval + + @check_online_interval.setter + def check_online_interval(self, check_online_interval): + """ + Sets the check_online_interval of this ProvidersNisNisItemExtended. + Specifies the time in seconds between provider online checks. + + :param check_online_interval: The check_online_interval of this ProvidersNisNisItemExtended. + :type: int + """ + + self._check_online_interval = check_online_interval + + @property + def create_home_directory(self): + """ + Gets the create_home_directory of this ProvidersNisNisItemExtended. + Automatically creates the home directory on the first login. + + :return: The create_home_directory of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._create_home_directory + + @create_home_directory.setter + def create_home_directory(self, create_home_directory): + """ + Sets the create_home_directory of this ProvidersNisNisItemExtended. + Automatically creates the home directory on the first login. + + :param create_home_directory: The create_home_directory of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._create_home_directory = create_home_directory + + @property + def enabled(self): + """ + Gets the enabled of this ProvidersNisNisItemExtended. + If true, enables the NIS provider. + + :return: The enabled of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this ProvidersNisNisItemExtended. + If true, enables the NIS provider. + + :param enabled: The enabled of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._enabled = enabled + + @property + def enumerate_groups(self): + """ + Gets the enumerate_groups of this ProvidersNisNisItemExtended. + If true, allows the provider to enumerate groups. + + :return: The enumerate_groups of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._enumerate_groups + + @enumerate_groups.setter + def enumerate_groups(self, enumerate_groups): + """ + Sets the enumerate_groups of this ProvidersNisNisItemExtended. + If true, allows the provider to enumerate groups. + + :param enumerate_groups: The enumerate_groups of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._enumerate_groups = enumerate_groups + + @property + def enumerate_users(self): + """ + Gets the enumerate_users of this ProvidersNisNisItemExtended. + If true, allows the provider to enumerate users. + + :return: The enumerate_users of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._enumerate_users + + @enumerate_users.setter + def enumerate_users(self, enumerate_users): + """ + Sets the enumerate_users of this ProvidersNisNisItemExtended. + If true, allows the provider to enumerate users. + + :param enumerate_users: The enumerate_users of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._enumerate_users = enumerate_users + + @property + def findable_groups(self): + """ + Gets the findable_groups of this ProvidersNisNisItemExtended. + Specifies the list of groups that can be resolved. + + :return: The findable_groups of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._findable_groups + + @findable_groups.setter + def findable_groups(self, findable_groups): + """ + Sets the findable_groups of this ProvidersNisNisItemExtended. + Specifies the list of groups that can be resolved. + + :param findable_groups: The findable_groups of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._findable_groups = findable_groups + + @property + def findable_users(self): + """ + Gets the findable_users of this ProvidersNisNisItemExtended. + Specifies the list of users that can be resolved. + + :return: The findable_users of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._findable_users + + @findable_users.setter + def findable_users(self, findable_users): + """ + Sets the findable_users of this ProvidersNisNisItemExtended. + Specifies the list of users that can be resolved. + + :param findable_users: The findable_users of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._findable_users = findable_users + + @property + def group_domain(self): + """ + Gets the group_domain of this ProvidersNisNisItemExtended. + Specifies the domain for this provider through which groups are qualified. + + :return: The group_domain of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._group_domain + + @group_domain.setter + def group_domain(self, group_domain): + """ + Sets the group_domain of this ProvidersNisNisItemExtended. + Specifies the domain for this provider through which groups are qualified. + + :param group_domain: The group_domain of this ProvidersNisNisItemExtended. + :type: str + """ + + self._group_domain = group_domain + + @property + def home_directory_template(self): + """ + Gets the home_directory_template of this ProvidersNisNisItemExtended. + Specifies the path to the home directory template. + + :return: The home_directory_template of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._home_directory_template + + @home_directory_template.setter + def home_directory_template(self, home_directory_template): + """ + Sets the home_directory_template of this ProvidersNisNisItemExtended. + Specifies the path to the home directory template. + + :param home_directory_template: The home_directory_template of this ProvidersNisNisItemExtended. + :type: str + """ + + self._home_directory_template = home_directory_template + + @property + def hostname_lookup(self): + """ + Gets the hostname_lookup of this ProvidersNisNisItemExtended. + If true, enables host name look ups. + + :return: The hostname_lookup of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._hostname_lookup + + @hostname_lookup.setter + def hostname_lookup(self, hostname_lookup): + """ + Sets the hostname_lookup of this ProvidersNisNisItemExtended. + If true, enables host name look ups. + + :param hostname_lookup: The hostname_lookup of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._hostname_lookup = hostname_lookup + + @property + def id(self): + """ + Gets the id of this ProvidersNisNisItemExtended. + Specifies the NIS provider ID. + + :return: The id of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ProvidersNisNisItemExtended. + Specifies the NIS provider ID. + + :param id: The id of this ProvidersNisNisItemExtended. + :type: str + """ + + self._id = id + + @property + def listable_groups(self): + """ + Gets the listable_groups of this ProvidersNisNisItemExtended. + Specifies the groups that can be viewed in the provider. + + :return: The listable_groups of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._listable_groups + + @listable_groups.setter + def listable_groups(self, listable_groups): + """ + Sets the listable_groups of this ProvidersNisNisItemExtended. + Specifies the groups that can be viewed in the provider. + + :param listable_groups: The listable_groups of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._listable_groups = listable_groups + + @property + def listable_users(self): + """ + Gets the listable_users of this ProvidersNisNisItemExtended. + Specifies the users that can be viewed in the provider. + + :return: The listable_users of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._listable_users + + @listable_users.setter + def listable_users(self, listable_users): + """ + Sets the listable_users of this ProvidersNisNisItemExtended. + Specifies the users that can be viewed in the provider. + + :param listable_users: The listable_users of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._listable_users = listable_users + + @property + def login_shell(self): + """ + Gets the login_shell of this ProvidersNisNisItemExtended. + Specifies the login shell path. + + :return: The login_shell of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._login_shell + + @login_shell.setter + def login_shell(self, login_shell): + """ + Sets the login_shell of this ProvidersNisNisItemExtended. + Specifies the login shell path. + + :param login_shell: The login_shell of this ProvidersNisNisItemExtended. + :type: str + """ + + self._login_shell = login_shell + + @property + def name(self): + """ + Gets the name of this ProvidersNisNisItemExtended. + Specifies the NIS provider name. + + :return: The name of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ProvidersNisNisItemExtended. + Specifies the NIS provider name. + + :param name: The name of this ProvidersNisNisItemExtended. + :type: str + """ + + self._name = name + + @property + def nis_domain(self): + """ + Gets the nis_domain of this ProvidersNisNisItemExtended. + Specifies the NIS domain name. + + :return: The nis_domain of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._nis_domain + + @nis_domain.setter + def nis_domain(self, nis_domain): + """ + Sets the nis_domain of this ProvidersNisNisItemExtended. + Specifies the NIS domain name. + + :param nis_domain: The nis_domain of this ProvidersNisNisItemExtended. + :type: str + """ + + self._nis_domain = nis_domain + + @property + def normalize_groups(self): + """ + Gets the normalize_groups of this ProvidersNisNisItemExtended. + Normalizes group names to lowercase before look up. + + :return: The normalize_groups of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._normalize_groups + + @normalize_groups.setter + def normalize_groups(self, normalize_groups): + """ + Sets the normalize_groups of this ProvidersNisNisItemExtended. + Normalizes group names to lowercase before look up. + + :param normalize_groups: The normalize_groups of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._normalize_groups = normalize_groups + + @property + def normalize_users(self): + """ + Gets the normalize_users of this ProvidersNisNisItemExtended. + Normalizes user names to lowercase before look up. + + :return: The normalize_users of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._normalize_users + + @normalize_users.setter + def normalize_users(self, normalize_users): + """ + Sets the normalize_users of this ProvidersNisNisItemExtended. + Normalizes user names to lowercase before look up. + + :param normalize_users: The normalize_users of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._normalize_users = normalize_users + + @property + def ntlm_support(self): + """ + Gets the ntlm_support of this ProvidersNisNisItemExtended. + Specifies which NTLM versions to support for users with NTLM-compatible credentials. + + :return: The ntlm_support of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._ntlm_support + + @ntlm_support.setter + def ntlm_support(self, ntlm_support): + """ + Sets the ntlm_support of this ProvidersNisNisItemExtended. + Specifies which NTLM versions to support for users with NTLM-compatible credentials. + + :param ntlm_support: The ntlm_support of this ProvidersNisNisItemExtended. + :type: str + """ + allowed_values = ["all", "v2only", "none"] + if ntlm_support not in allowed_values: + raise ValueError( + "Invalid value for `ntlm_support`, must be one of {0}" + .format(allowed_values) + ) + + self._ntlm_support = ntlm_support + + @property + def provider_domain(self): + """ + Gets the provider_domain of this ProvidersNisNisItemExtended. + Specifies the domain for the provider. + + :return: The provider_domain of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._provider_domain + + @provider_domain.setter + def provider_domain(self, provider_domain): + """ + Sets the provider_domain of this ProvidersNisNisItemExtended. + Specifies the domain for the provider. + + :param provider_domain: The provider_domain of this ProvidersNisNisItemExtended. + :type: str + """ + + self._provider_domain = provider_domain + + @property + def request_timeout(self): + """ + Gets the request_timeout of this ProvidersNisNisItemExtended. + Specifies the request timeout interval in seconds. + + :return: The request_timeout of this ProvidersNisNisItemExtended. + :rtype: int + """ + return self._request_timeout + + @request_timeout.setter + def request_timeout(self, request_timeout): + """ + Sets the request_timeout of this ProvidersNisNisItemExtended. + Specifies the request timeout interval in seconds. + + :param request_timeout: The request_timeout of this ProvidersNisNisItemExtended. + :type: int + """ + + self._request_timeout = request_timeout + + @property + def restrict_findable(self): + """ + Gets the restrict_findable of this ProvidersNisNisItemExtended. + If true, checks the provider for filtered lists of findable and unfindable users and groups. + + :return: The restrict_findable of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._restrict_findable + + @restrict_findable.setter + def restrict_findable(self, restrict_findable): + """ + Sets the restrict_findable of this ProvidersNisNisItemExtended. + If true, checks the provider for filtered lists of findable and unfindable users and groups. + + :param restrict_findable: The restrict_findable of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._restrict_findable = restrict_findable + + @property + def restrict_listable(self): + """ + Gets the restrict_listable of this ProvidersNisNisItemExtended. + If true, checks the provider for filtered lists of listable and unlistable users and groups. + + :return: The restrict_listable of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._restrict_listable + + @restrict_listable.setter + def restrict_listable(self, restrict_listable): + """ + Sets the restrict_listable of this ProvidersNisNisItemExtended. + If true, checks the provider for filtered lists of listable and unlistable users and groups. + + :param restrict_listable: The restrict_listable of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._restrict_listable = restrict_listable + + @property + def retry_time(self): + """ + Gets the retry_time of this ProvidersNisNisItemExtended. + Specifies the timeout period in seconds after which a request will be retried. + + :return: The retry_time of this ProvidersNisNisItemExtended. + :rtype: int + """ + return self._retry_time + + @retry_time.setter + def retry_time(self, retry_time): + """ + Sets the retry_time of this ProvidersNisNisItemExtended. + Specifies the timeout period in seconds after which a request will be retried. + + :param retry_time: The retry_time of this ProvidersNisNisItemExtended. + :type: int + """ + + self._retry_time = retry_time + + @property + def servers(self): + """ + Gets the servers of this ProvidersNisNisItemExtended. + Adds an NIS server for this provider. + + :return: The servers of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._servers + + @servers.setter + def servers(self, servers): + """ + Sets the servers of this ProvidersNisNisItemExtended. + Adds an NIS server for this provider. + + :param servers: The servers of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._servers = servers + + @property + def status(self): + """ + Gets the status of this ProvidersNisNisItemExtended. + Specifies the status of the provider. + + :return: The status of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this ProvidersNisNisItemExtended. + Specifies the status of the provider. + + :param status: The status of this ProvidersNisNisItemExtended. + :type: str + """ + + self._status = status + + @property + def system(self): + """ + Gets the system of this ProvidersNisNisItemExtended. + If true, indicates that this provider instance was created by OneFS and cannot be removed. + + :return: The system of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._system + + @system.setter + def system(self, system): + """ + Sets the system of this ProvidersNisNisItemExtended. + If true, indicates that this provider instance was created by OneFS and cannot be removed. + + :param system: The system of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._system = system + + @property + def unfindable_groups(self): + """ + Gets the unfindable_groups of this ProvidersNisNisItemExtended. + Specifies groups that cannot be resolved by the provider. + + :return: The unfindable_groups of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._unfindable_groups + + @unfindable_groups.setter + def unfindable_groups(self, unfindable_groups): + """ + Sets the unfindable_groups of this ProvidersNisNisItemExtended. + Specifies groups that cannot be resolved by the provider. + + :param unfindable_groups: The unfindable_groups of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._unfindable_groups = unfindable_groups + + @property + def unfindable_users(self): + """ + Gets the unfindable_users of this ProvidersNisNisItemExtended. + Specifies users that cannot be resolved by the provider. + + :return: The unfindable_users of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._unfindable_users + + @unfindable_users.setter + def unfindable_users(self, unfindable_users): + """ + Sets the unfindable_users of this ProvidersNisNisItemExtended. + Specifies users that cannot be resolved by the provider. + + :param unfindable_users: The unfindable_users of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._unfindable_users = unfindable_users + + @property + def unlistable_groups(self): + """ + Gets the unlistable_groups of this ProvidersNisNisItemExtended. + Specifies a group that cannot be listed by the provider. + + :return: The unlistable_groups of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._unlistable_groups + + @unlistable_groups.setter + def unlistable_groups(self, unlistable_groups): + """ + Sets the unlistable_groups of this ProvidersNisNisItemExtended. + Specifies a group that cannot be listed by the provider. + + :param unlistable_groups: The unlistable_groups of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._unlistable_groups = unlistable_groups + + @property + def unlistable_users(self): + """ + Gets the unlistable_users of this ProvidersNisNisItemExtended. + Specifies a user that cannot be listed by the provider. + + :return: The unlistable_users of this ProvidersNisNisItemExtended. + :rtype: list[str] + """ + return self._unlistable_users + + @unlistable_users.setter + def unlistable_users(self, unlistable_users): + """ + Sets the unlistable_users of this ProvidersNisNisItemExtended. + Specifies a user that cannot be listed by the provider. + + :param unlistable_users: The unlistable_users of this ProvidersNisNisItemExtended. + :type: list[str] + """ + + self._unlistable_users = unlistable_users + + @property + def user_domain(self): + """ + Gets the user_domain of this ProvidersNisNisItemExtended. + Specifies the domain for this provider through which users are qualified. + + :return: The user_domain of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._user_domain + + @user_domain.setter + def user_domain(self, user_domain): + """ + Sets the user_domain of this ProvidersNisNisItemExtended. + Specifies the domain for this provider through which users are qualified. + + :param user_domain: The user_domain of this ProvidersNisNisItemExtended. + :type: str + """ + + self._user_domain = user_domain + + @property + def ypmatch_using_tcp(self): + """ + Gets the ypmatch_using_tcp of this ProvidersNisNisItemExtended. + If true, specifies TCP for YP Match operations. + + :return: The ypmatch_using_tcp of this ProvidersNisNisItemExtended. + :rtype: bool + """ + return self._ypmatch_using_tcp + + @ypmatch_using_tcp.setter + def ypmatch_using_tcp(self, ypmatch_using_tcp): + """ + Sets the ypmatch_using_tcp of this ProvidersNisNisItemExtended. + If true, specifies TCP for YP Match operations. + + :param ypmatch_using_tcp: The ypmatch_using_tcp of this ProvidersNisNisItemExtended. + :type: bool + """ + + self._ypmatch_using_tcp = ypmatch_using_tcp + + @property + def groupnet(self): + """ + Gets the groupnet of this ProvidersNisNisItemExtended. + Groupnet identifier. + + :return: The groupnet of this ProvidersNisNisItemExtended. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this ProvidersNisNisItemExtended. + Groupnet identifier. + + :param groupnet: The groupnet of this ProvidersNisNisItemExtended. + :type: str + """ + + self._groupnet = groupnet + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/providers_summary.py b/isi_sdk/models/providers_summary.py index 7c133faad..a5d7b1e1d 100644 --- a/isi_sdk/models/providers_summary.py +++ b/isi_sdk/models/providers_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersSummary(object): @@ -66,6 +67,7 @@ def provider_instances(self, provider_instances): :param provider_instances: The provider_instances of this ProvidersSummary. :type: list[ProvidersSummaryProviderInstance] """ + self._provider_instances = provider_instances def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_summary_provider_instance.py b/isi_sdk/models/providers_summary_provider_instance.py index 152a804dc..7f06c7070 100644 --- a/isi_sdk/models/providers_summary_provider_instance.py +++ b/isi_sdk/models/providers_summary_provider_instance.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersSummaryProviderInstance(object): @@ -93,6 +94,7 @@ def active_server(self, active_server): :param active_server: The active_server of this ProvidersSummaryProviderInstance. :type: str """ + self._active_server = active_server @property @@ -115,6 +117,7 @@ def client_site(self, client_site): :param client_site: The client_site of this ProvidersSummaryProviderInstance. :type: str """ + self._client_site = client_site @property @@ -137,6 +140,7 @@ def connections(self, connections): :param connections: The connections of this ProvidersSummaryProviderInstance. :type: list[ProvidersSummaryProviderInstanceConnection] """ + self._connections = connections @property @@ -159,6 +163,7 @@ def dc_site(self, dc_site): :param dc_site: The dc_site of this ProvidersSummaryProviderInstance. :type: str """ + self._dc_site = dc_site @property @@ -181,6 +186,7 @@ def forest(self, forest): :param forest: The forest of this ProvidersSummaryProviderInstance. :type: str """ + self._forest = forest @property @@ -203,6 +209,7 @@ def groupnet(self, groupnet): :param groupnet: The groupnet of this ProvidersSummaryProviderInstance. :type: str """ + self._groupnet = groupnet @property @@ -225,6 +232,7 @@ def id(self, id): :param id: The id of this ProvidersSummaryProviderInstance. :type: str """ + self._id = id @property @@ -247,6 +255,7 @@ def name(self, name): :param name: The name of this ProvidersSummaryProviderInstance. :type: str """ + self._name = name @property @@ -275,6 +284,7 @@ def status(self, status): "Invalid value for `status`, must be one of {0}" .format(allowed_values) ) + self._status = status @property @@ -303,6 +313,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -320,6 +331,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -337,14 +354,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/providers_summary_provider_instance_connection.py b/isi_sdk/models/providers_summary_provider_instance_connection.py index 4a59a4abe..128a02887 100644 --- a/isi_sdk/models/providers_summary_provider_instance_connection.py +++ b/isi_sdk/models/providers_summary_provider_instance_connection.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ProvidersSummaryProviderInstanceConnection(object): @@ -72,6 +73,7 @@ def address(self, address): :param address: The address of this ProvidersSummaryProviderInstanceConnection. :type: str """ + self._address = address @property @@ -94,6 +96,7 @@ def last_used(self, last_used): :param last_used: The last_used of this ProvidersSummaryProviderInstanceConnection. :type: str """ + self._last_used = last_used @property @@ -116,6 +119,7 @@ def server(self, server): :param server: The server of this ProvidersSummaryProviderInstanceConnection. :type: str """ + self._server = server def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_notification.py b/isi_sdk/models/quota_notification.py new file mode 100644 index 000000000..d37b6c52d --- /dev/null +++ b/isi_sdk/models/quota_notification.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class QuotaNotification(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + QuotaNotification - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'action_alert': 'bool', + 'action_email_address': 'str', + 'action_email_owner': 'bool', + 'email_template': 'str', + 'holdoff': 'int', + 'schedule': 'str' + } + + self.attribute_map = { + 'action_alert': 'action_alert', + 'action_email_address': 'action_email_address', + 'action_email_owner': 'action_email_owner', + 'email_template': 'email_template', + 'holdoff': 'holdoff', + 'schedule': 'schedule' + } + + self._action_alert = None + self._action_email_address = None + self._action_email_owner = None + self._email_template = None + self._holdoff = None + self._schedule = None + + @property + def action_alert(self): + """ + Gets the action_alert of this QuotaNotification. + Send alert when rule matches. + + :return: The action_alert of this QuotaNotification. + :rtype: bool + """ + return self._action_alert + + @action_alert.setter + def action_alert(self, action_alert): + """ + Sets the action_alert of this QuotaNotification. + Send alert when rule matches. + + :param action_alert: The action_alert of this QuotaNotification. + :type: bool + """ + + self._action_alert = action_alert + + @property + def action_email_address(self): + """ + Gets the action_email_address of this QuotaNotification. + Email a specific email address when rule matches. + + :return: The action_email_address of this QuotaNotification. + :rtype: str + """ + return self._action_email_address + + @action_email_address.setter + def action_email_address(self, action_email_address): + """ + Sets the action_email_address of this QuotaNotification. + Email a specific email address when rule matches. + + :param action_email_address: The action_email_address of this QuotaNotification. + :type: str + """ + + self._action_email_address = action_email_address + + @property + def action_email_owner(self): + """ + Gets the action_email_owner of this QuotaNotification. + Email quota domain owner when rule matches. + + :return: The action_email_owner of this QuotaNotification. + :rtype: bool + """ + return self._action_email_owner + + @action_email_owner.setter + def action_email_owner(self, action_email_owner): + """ + Sets the action_email_owner of this QuotaNotification. + Email quota domain owner when rule matches. + + :param action_email_owner: The action_email_owner of this QuotaNotification. + :type: bool + """ + + self._action_email_owner = action_email_owner + + @property + def email_template(self): + """ + Gets the email_template of this QuotaNotification. + Path of optional /ifs template file used for email actions. + + :return: The email_template of this QuotaNotification. + :rtype: str + """ + return self._email_template + + @email_template.setter + def email_template(self, email_template): + """ + Sets the email_template of this QuotaNotification. + Path of optional /ifs template file used for email actions. + + :param email_template: The email_template of this QuotaNotification. + :type: str + """ + + self._email_template = email_template + + @property + def holdoff(self): + """ + Gets the holdoff of this QuotaNotification. + Time to wait between detections for rules triggered by user actions. + + :return: The holdoff of this QuotaNotification. + :rtype: int + """ + return self._holdoff + + @holdoff.setter + def holdoff(self, holdoff): + """ + Sets the holdoff of this QuotaNotification. + Time to wait between detections for rules triggered by user actions. + + :param holdoff: The holdoff of this QuotaNotification. + :type: int + """ + + self._holdoff = holdoff + + @property + def schedule(self): + """ + Gets the schedule of this QuotaNotification. + Schedule for rules that repeatedly notify. + + :return: The schedule of this QuotaNotification. + :rtype: str + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this QuotaNotification. + Schedule for rules that repeatedly notify. + + :param schedule: The schedule of this QuotaNotification. + :type: str + """ + + self._schedule = schedule + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/quota_notification_create_params.py b/isi_sdk/models/quota_notification_create_params.py new file mode 100644 index 000000000..ff6b915c5 --- /dev/null +++ b/isi_sdk/models/quota_notification_create_params.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class QuotaNotificationCreateParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + QuotaNotificationCreateParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'action_alert': 'bool', + 'action_email_address': 'str', + 'action_email_owner': 'bool', + 'email_template': 'str', + 'holdoff': 'int', + 'schedule': 'str', + 'condition': 'str', + 'threshold': 'str' + } + + self.attribute_map = { + 'action_alert': 'action_alert', + 'action_email_address': 'action_email_address', + 'action_email_owner': 'action_email_owner', + 'email_template': 'email_template', + 'holdoff': 'holdoff', + 'schedule': 'schedule', + 'condition': 'condition', + 'threshold': 'threshold' + } + + self._action_alert = None + self._action_email_address = None + self._action_email_owner = None + self._email_template = None + self._holdoff = None + self._schedule = None + self._condition = None + self._threshold = None + + @property + def action_alert(self): + """ + Gets the action_alert of this QuotaNotificationCreateParams. + Send alert when rule matches. + + :return: The action_alert of this QuotaNotificationCreateParams. + :rtype: bool + """ + return self._action_alert + + @action_alert.setter + def action_alert(self, action_alert): + """ + Sets the action_alert of this QuotaNotificationCreateParams. + Send alert when rule matches. + + :param action_alert: The action_alert of this QuotaNotificationCreateParams. + :type: bool + """ + + self._action_alert = action_alert + + @property + def action_email_address(self): + """ + Gets the action_email_address of this QuotaNotificationCreateParams. + Email a specific email address when rule matches. + + :return: The action_email_address of this QuotaNotificationCreateParams. + :rtype: str + """ + return self._action_email_address + + @action_email_address.setter + def action_email_address(self, action_email_address): + """ + Sets the action_email_address of this QuotaNotificationCreateParams. + Email a specific email address when rule matches. + + :param action_email_address: The action_email_address of this QuotaNotificationCreateParams. + :type: str + """ + + self._action_email_address = action_email_address + + @property + def action_email_owner(self): + """ + Gets the action_email_owner of this QuotaNotificationCreateParams. + Email quota domain owner when rule matches. + + :return: The action_email_owner of this QuotaNotificationCreateParams. + :rtype: bool + """ + return self._action_email_owner + + @action_email_owner.setter + def action_email_owner(self, action_email_owner): + """ + Sets the action_email_owner of this QuotaNotificationCreateParams. + Email quota domain owner when rule matches. + + :param action_email_owner: The action_email_owner of this QuotaNotificationCreateParams. + :type: bool + """ + + self._action_email_owner = action_email_owner + + @property + def email_template(self): + """ + Gets the email_template of this QuotaNotificationCreateParams. + Path of optional /ifs template file used for email actions. + + :return: The email_template of this QuotaNotificationCreateParams. + :rtype: str + """ + return self._email_template + + @email_template.setter + def email_template(self, email_template): + """ + Sets the email_template of this QuotaNotificationCreateParams. + Path of optional /ifs template file used for email actions. + + :param email_template: The email_template of this QuotaNotificationCreateParams. + :type: str + """ + + self._email_template = email_template + + @property + def holdoff(self): + """ + Gets the holdoff of this QuotaNotificationCreateParams. + Time to wait between detections for rules triggered by user actions. + + :return: The holdoff of this QuotaNotificationCreateParams. + :rtype: int + """ + return self._holdoff + + @holdoff.setter + def holdoff(self, holdoff): + """ + Sets the holdoff of this QuotaNotificationCreateParams. + Time to wait between detections for rules triggered by user actions. + + :param holdoff: The holdoff of this QuotaNotificationCreateParams. + :type: int + """ + + self._holdoff = holdoff + + @property + def schedule(self): + """ + Gets the schedule of this QuotaNotificationCreateParams. + Schedule for rules that repeatedly notify. + + :return: The schedule of this QuotaNotificationCreateParams. + :rtype: str + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this QuotaNotificationCreateParams. + Schedule for rules that repeatedly notify. + + :param schedule: The schedule of this QuotaNotificationCreateParams. + :type: str + """ + + self._schedule = schedule + + @property + def condition(self): + """ + Gets the condition of this QuotaNotificationCreateParams. + The condition detected. + + :return: The condition of this QuotaNotificationCreateParams. + :rtype: str + """ + return self._condition + + @condition.setter + def condition(self, condition): + """ + Sets the condition of this QuotaNotificationCreateParams. + The condition detected. + + :param condition: The condition of this QuotaNotificationCreateParams. + :type: str + """ + allowed_values = ["exceeded", "denied", "violated", "expired"] + if condition not in allowed_values: + raise ValueError( + "Invalid value for `condition`, must be one of {0}" + .format(allowed_values) + ) + + self._condition = condition + + @property + def threshold(self): + """ + Gets the threshold of this QuotaNotificationCreateParams. + The quota threshold detected. + + :return: The threshold of this QuotaNotificationCreateParams. + :rtype: str + """ + return self._threshold + + @threshold.setter + def threshold(self, threshold): + """ + Sets the threshold of this QuotaNotificationCreateParams. + The quota threshold detected. + + :param threshold: The threshold of this QuotaNotificationCreateParams. + :type: str + """ + allowed_values = ["hard", "soft", "advisory"] + if threshold not in allowed_values: + raise ValueError( + "Invalid value for `threshold`, must be one of {0}" + .format(allowed_values) + ) + + self._threshold = threshold + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/quota_notification_extended.py b/isi_sdk/models/quota_notification_extended.py new file mode 100644 index 000000000..4a050a5c1 --- /dev/null +++ b/isi_sdk/models/quota_notification_extended.py @@ -0,0 +1,342 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class QuotaNotificationExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + QuotaNotificationExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'action_alert': 'bool', + 'action_email_address': 'str', + 'action_email_owner': 'bool', + 'email_template': 'str', + 'holdoff': 'int', + 'schedule': 'str', + 'condition': 'str', + 'id': 'str', + 'threshold': 'str' + } + + self.attribute_map = { + 'action_alert': 'action_alert', + 'action_email_address': 'action_email_address', + 'action_email_owner': 'action_email_owner', + 'email_template': 'email_template', + 'holdoff': 'holdoff', + 'schedule': 'schedule', + 'condition': 'condition', + 'id': 'id', + 'threshold': 'threshold' + } + + self._action_alert = None + self._action_email_address = None + self._action_email_owner = None + self._email_template = None + self._holdoff = None + self._schedule = None + self._condition = None + self._id = None + self._threshold = None + + @property + def action_alert(self): + """ + Gets the action_alert of this QuotaNotificationExtended. + Send alert when rule matches. + + :return: The action_alert of this QuotaNotificationExtended. + :rtype: bool + """ + return self._action_alert + + @action_alert.setter + def action_alert(self, action_alert): + """ + Sets the action_alert of this QuotaNotificationExtended. + Send alert when rule matches. + + :param action_alert: The action_alert of this QuotaNotificationExtended. + :type: bool + """ + + self._action_alert = action_alert + + @property + def action_email_address(self): + """ + Gets the action_email_address of this QuotaNotificationExtended. + Email a specific email address when rule matches. + + :return: The action_email_address of this QuotaNotificationExtended. + :rtype: str + """ + return self._action_email_address + + @action_email_address.setter + def action_email_address(self, action_email_address): + """ + Sets the action_email_address of this QuotaNotificationExtended. + Email a specific email address when rule matches. + + :param action_email_address: The action_email_address of this QuotaNotificationExtended. + :type: str + """ + + self._action_email_address = action_email_address + + @property + def action_email_owner(self): + """ + Gets the action_email_owner of this QuotaNotificationExtended. + Email quota domain owner when rule matches. + + :return: The action_email_owner of this QuotaNotificationExtended. + :rtype: bool + """ + return self._action_email_owner + + @action_email_owner.setter + def action_email_owner(self, action_email_owner): + """ + Sets the action_email_owner of this QuotaNotificationExtended. + Email quota domain owner when rule matches. + + :param action_email_owner: The action_email_owner of this QuotaNotificationExtended. + :type: bool + """ + + self._action_email_owner = action_email_owner + + @property + def email_template(self): + """ + Gets the email_template of this QuotaNotificationExtended. + Path of optional /ifs template file used for email actions. + + :return: The email_template of this QuotaNotificationExtended. + :rtype: str + """ + return self._email_template + + @email_template.setter + def email_template(self, email_template): + """ + Sets the email_template of this QuotaNotificationExtended. + Path of optional /ifs template file used for email actions. + + :param email_template: The email_template of this QuotaNotificationExtended. + :type: str + """ + + self._email_template = email_template + + @property + def holdoff(self): + """ + Gets the holdoff of this QuotaNotificationExtended. + Time to wait between detections for rules triggered by user actions. + + :return: The holdoff of this QuotaNotificationExtended. + :rtype: int + """ + return self._holdoff + + @holdoff.setter + def holdoff(self, holdoff): + """ + Sets the holdoff of this QuotaNotificationExtended. + Time to wait between detections for rules triggered by user actions. + + :param holdoff: The holdoff of this QuotaNotificationExtended. + :type: int + """ + + self._holdoff = holdoff + + @property + def schedule(self): + """ + Gets the schedule of this QuotaNotificationExtended. + Schedule for rules that repeatedly notify. + + :return: The schedule of this QuotaNotificationExtended. + :rtype: str + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this QuotaNotificationExtended. + Schedule for rules that repeatedly notify. + + :param schedule: The schedule of this QuotaNotificationExtended. + :type: str + """ + + self._schedule = schedule + + @property + def condition(self): + """ + Gets the condition of this QuotaNotificationExtended. + The condition detected. + + :return: The condition of this QuotaNotificationExtended. + :rtype: str + """ + return self._condition + + @condition.setter + def condition(self, condition): + """ + Sets the condition of this QuotaNotificationExtended. + The condition detected. + + :param condition: The condition of this QuotaNotificationExtended. + :type: str + """ + allowed_values = ["exceeded", "denied", "violated", "expired"] + if condition not in allowed_values: + raise ValueError( + "Invalid value for `condition`, must be one of {0}" + .format(allowed_values) + ) + + self._condition = condition + + @property + def id(self): + """ + Gets the id of this QuotaNotificationExtended. + The system ID given to the rule. + + :return: The id of this QuotaNotificationExtended. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this QuotaNotificationExtended. + The system ID given to the rule. + + :param id: The id of this QuotaNotificationExtended. + :type: str + """ + + self._id = id + + @property + def threshold(self): + """ + Gets the threshold of this QuotaNotificationExtended. + The quota threshold detected. + + :return: The threshold of this QuotaNotificationExtended. + :rtype: str + """ + return self._threshold + + @threshold.setter + def threshold(self, threshold): + """ + Sets the threshold of this QuotaNotificationExtended. + The quota threshold detected. + + :param threshold: The threshold of this QuotaNotificationExtended. + :type: str + """ + allowed_values = ["hard", "soft", "advisory"] + if threshold not in allowed_values: + raise ValueError( + "Invalid value for `threshold`, must be one of {0}" + .format(allowed_values) + ) + + self._threshold = threshold + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/quota_notifications.py b/isi_sdk/models/quota_notifications.py new file mode 100644 index 000000000..9cff86e88 --- /dev/null +++ b/isi_sdk/models/quota_notifications.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class QuotaNotifications(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + QuotaNotifications - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'notifications': 'list[QuotaNotificationExtended]' + } + + self.attribute_map = { + 'notifications': 'notifications' + } + + self._notifications = None + + @property + def notifications(self): + """ + Gets the notifications of this QuotaNotifications. + + + :return: The notifications of this QuotaNotifications. + :rtype: list[QuotaNotificationExtended] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """ + Sets the notifications of this QuotaNotifications. + + + :param notifications: The notifications of this QuotaNotifications. + :type: list[QuotaNotificationExtended] + """ + + self._notifications = notifications + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/quota_notifications_extended.py b/isi_sdk/models/quota_notifications_extended.py new file mode 100644 index 000000000..c0600e7d1 --- /dev/null +++ b/isi_sdk/models/quota_notifications_extended.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class QuotaNotificationsExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + QuotaNotificationsExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'notifications': 'list[QuotaNotificationExtended]', + 'total': 'int' + } + + self.attribute_map = { + 'notifications': 'notifications', + 'total': 'total' + } + + self._notifications = None + self._total = None + + @property + def notifications(self): + """ + Gets the notifications of this QuotaNotificationsExtended. + + + :return: The notifications of this QuotaNotificationsExtended. + :rtype: list[QuotaNotificationExtended] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """ + Sets the notifications of this QuotaNotificationsExtended. + + + :param notifications: The notifications of this QuotaNotificationsExtended. + :type: list[QuotaNotificationExtended] + """ + + self._notifications = notifications + + @property + def total(self): + """ + Gets the total of this QuotaNotificationsExtended. + Total number of items available. + + :return: The total of this QuotaNotificationsExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this QuotaNotificationsExtended. + Total number of items available. + + :param total: The total of this QuotaNotificationsExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/quota_quota.py b/isi_sdk/models/quota_quota.py index 1bfe18a9a..37c757708 100644 --- a/isi_sdk/models/quota_quota.py +++ b/isi_sdk/models/quota_quota.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuota(object): @@ -78,6 +79,7 @@ def container(self, container): :param container: The container of this QuotaQuota. :type: bool """ + self._container = container @property @@ -100,6 +102,7 @@ def enforced(self, enforced): :param enforced: The enforced of this QuotaQuota. :type: bool """ + self._enforced = enforced @property @@ -122,6 +125,7 @@ def linked(self, linked): :param linked: The linked of this QuotaQuota. :type: bool """ + self._linked = linked @property @@ -144,6 +148,7 @@ def thresholds(self, thresholds): :param thresholds: The thresholds of this QuotaQuota. :type: QuotaQuotaThresholds """ + self._thresholds = thresholds @property @@ -166,6 +171,7 @@ def thresholds_include_overhead(self, thresholds_include_overhead): :param thresholds_include_overhead: The thresholds_include_overhead of this QuotaQuota. :type: bool """ + self._thresholds_include_overhead = thresholds_include_overhead def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quota_create_params.py b/isi_sdk/models/quota_quota_create_params.py index ea6c5e405..c400b47b1 100644 --- a/isi_sdk/models/quota_quota_create_params.py +++ b/isi_sdk/models/quota_quota_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotaCreateParams(object): @@ -39,39 +40,36 @@ def __init__(self): self.swagger_types = { 'container': 'bool', 'enforced': 'bool', + 'force': 'bool', + 'include_snapshots': 'bool', 'path': 'str', + 'persona': 'GroupMember', 'thresholds': 'QuotaQuotaThresholds', - 'persona': 'GroupsGroupMember', 'thresholds_include_overhead': 'bool', - 'force': 'bool', - 'type': 'str', - 'include_snapshots': 'bool', - 'linked': 'bool' + 'type': 'str' } self.attribute_map = { 'container': 'container', 'enforced': 'enforced', + 'force': 'force', + 'include_snapshots': 'include_snapshots', 'path': 'path', - 'thresholds': 'thresholds', 'persona': 'persona', + 'thresholds': 'thresholds', 'thresholds_include_overhead': 'thresholds_include_overhead', - 'force': 'force', - 'type': 'type', - 'include_snapshots': 'include_snapshots', - 'linked': 'linked' + 'type': 'type' } self._container = None self._enforced = None + self._force = None + self._include_snapshots = None self._path = None - self._thresholds = None self._persona = None + self._thresholds = None self._thresholds_include_overhead = None - self._force = None self._type = None - self._include_snapshots = None - self._linked = None @property def container(self): @@ -93,6 +91,7 @@ def container(self, container): :param container: The container of this QuotaQuotaCreateParams. :type: bool """ + self._container = container @property @@ -115,8 +114,55 @@ def enforced(self, enforced): :param enforced: The enforced of this QuotaQuotaCreateParams. :type: bool """ + self._enforced = enforced + @property + def force(self): + """ + Gets the force of this QuotaQuotaCreateParams. + Force creation of quotas on the root of /ifs. + + :return: The force of this QuotaQuotaCreateParams. + :rtype: bool + """ + return self._force + + @force.setter + def force(self, force): + """ + Sets the force of this QuotaQuotaCreateParams. + Force creation of quotas on the root of /ifs. + + :param force: The force of this QuotaQuotaCreateParams. + :type: bool + """ + + self._force = force + + @property + def include_snapshots(self): + """ + Gets the include_snapshots of this QuotaQuotaCreateParams. + If true, quota governs snapshot data as well as head data. + + :return: The include_snapshots of this QuotaQuotaCreateParams. + :rtype: bool + """ + return self._include_snapshots + + @include_snapshots.setter + def include_snapshots(self, include_snapshots): + """ + Sets the include_snapshots of this QuotaQuotaCreateParams. + If true, quota governs snapshot data as well as head data. + + :param include_snapshots: The include_snapshots of this QuotaQuotaCreateParams. + :type: bool + """ + + self._include_snapshots = include_snapshots + @property def path(self): """ @@ -137,8 +183,32 @@ def path(self, path): :param path: The path of this QuotaQuotaCreateParams. :type: str """ + self._path = path + @property + def persona(self): + """ + Gets the persona of this QuotaQuotaCreateParams. + Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. + + :return: The persona of this QuotaQuotaCreateParams. + :rtype: GroupMember + """ + return self._persona + + @persona.setter + def persona(self, persona): + """ + Sets the persona of this QuotaQuotaCreateParams. + Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. + + :param persona: The persona of this QuotaQuotaCreateParams. + :type: GroupMember + """ + + self._persona = persona + @property def thresholds(self): """ @@ -159,30 +229,9 @@ def thresholds(self, thresholds): :param thresholds: The thresholds of this QuotaQuotaCreateParams. :type: QuotaQuotaThresholds """ + self._thresholds = thresholds - @property - def persona(self): - """ - Gets the persona of this QuotaQuotaCreateParams. - Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. - - :return: The persona of this QuotaQuotaCreateParams. - :rtype: GroupsGroupMember - """ - return self._persona - - @persona.setter - def persona(self, persona): - """ - Sets the persona of this QuotaQuotaCreateParams. - Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. - - :param persona: The persona of this QuotaQuotaCreateParams. - :type: GroupsGroupMember - """ - self._persona = persona - @property def thresholds_include_overhead(self): """ @@ -203,30 +252,9 @@ def thresholds_include_overhead(self, thresholds_include_overhead): :param thresholds_include_overhead: The thresholds_include_overhead of this QuotaQuotaCreateParams. :type: bool """ + self._thresholds_include_overhead = thresholds_include_overhead - @property - def force(self): - """ - Gets the force of this QuotaQuotaCreateParams. - Force creation of quotas on the root of /ifs. - - :return: The force of this QuotaQuotaCreateParams. - :rtype: bool - """ - return self._force - - @force.setter - def force(self, force): - """ - Sets the force of this QuotaQuotaCreateParams. - Force creation of quotas on the root of /ifs. - - :param force: The force of this QuotaQuotaCreateParams. - :type: bool - """ - self._force = force - @property def type(self): """ @@ -253,51 +281,8 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) - self._type = type - @property - def include_snapshots(self): - """ - Gets the include_snapshots of this QuotaQuotaCreateParams. - If true, quota governs snapshot data as well as head data. - - :return: The include_snapshots of this QuotaQuotaCreateParams. - :rtype: bool - """ - return self._include_snapshots - - @include_snapshots.setter - def include_snapshots(self, include_snapshots): - """ - Sets the include_snapshots of this QuotaQuotaCreateParams. - If true, quota governs snapshot data as well as head data. - - :param include_snapshots: The include_snapshots of this QuotaQuotaCreateParams. - :type: bool - """ - self._include_snapshots = include_snapshots - - @property - def linked(self): - """ - Gets the linked of this QuotaQuotaCreateParams. - If false and the quota is linked, attempt to unlink. - - :return: The linked of this QuotaQuotaCreateParams. - :rtype: bool - """ - return self._linked - - @linked.setter - def linked(self, linked): - """ - Sets the linked of this QuotaQuotaCreateParams. - If false and the quota is linked, attempt to unlink. - - :param linked: The linked of this QuotaQuotaCreateParams. - :type: bool - """ - self._linked = linked + self._type = type def to_dict(self): """ @@ -314,6 +299,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -331,14 +322,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quota_extended.py b/isi_sdk/models/quota_quota_extended.py index 2a08bea13..ef9ae139a 100644 --- a/isi_sdk/models/quota_quota_extended.py +++ b/isi_sdk/models/quota_quota_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotaExtended(object): @@ -39,48 +40,48 @@ def __init__(self): self.swagger_types = { 'container': 'bool', 'enforced': 'bool', - 'persona': 'GroupsGroupMember', - 'usage': 'QuotaQuotaUsage', - 'type': 'str', - 'path': 'str', + 'linked': 'bool', 'thresholds': 'QuotaQuotaThresholds', - 'ready': 'bool', 'thresholds_include_overhead': 'bool', 'id': 'str', 'include_snapshots': 'bool', 'notifications': 'str', - 'linked': 'bool' + 'path': 'str', + 'persona': 'GroupMember', + 'ready': 'bool', + 'type': 'str', + 'usage': 'QuotaQuotaUsage' } self.attribute_map = { 'container': 'container', 'enforced': 'enforced', - 'persona': 'persona', - 'usage': 'usage', - 'type': 'type', - 'path': 'path', + 'linked': 'linked', 'thresholds': 'thresholds', - 'ready': 'ready', 'thresholds_include_overhead': 'thresholds_include_overhead', 'id': 'id', 'include_snapshots': 'include_snapshots', 'notifications': 'notifications', - 'linked': 'linked' + 'path': 'path', + 'persona': 'persona', + 'ready': 'ready', + 'type': 'type', + 'usage': 'usage' } self._container = None self._enforced = None - self._persona = None - self._usage = None - self._type = None - self._path = None + self._linked = None self._thresholds = None - self._ready = None self._thresholds_include_overhead = None self._id = None self._include_snapshots = None self._notifications = None - self._linked = None + self._path = None + self._persona = None + self._ready = None + self._type = None + self._usage = None @property def container(self): @@ -102,6 +103,7 @@ def container(self, container): :param container: The container of this QuotaQuotaExtended. :type: bool """ + self._container = container @property @@ -124,101 +126,31 @@ def enforced(self, enforced): :param enforced: The enforced of this QuotaQuotaExtended. :type: bool """ + self._enforced = enforced @property - def persona(self): - """ - Gets the persona of this QuotaQuotaExtended. - Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. - - :return: The persona of this QuotaQuotaExtended. - :rtype: GroupsGroupMember - """ - return self._persona - - @persona.setter - def persona(self, persona): - """ - Sets the persona of this QuotaQuotaExtended. - Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. - - :param persona: The persona of this QuotaQuotaExtended. - :type: GroupsGroupMember + def linked(self): """ - self._persona = persona + Gets the linked of this QuotaQuotaExtended. + If false and the quota is linked, attempt to unlink. - @property - def usage(self): + :return: The linked of this QuotaQuotaExtended. + :rtype: bool """ - Gets the usage of this QuotaQuotaExtended. - + return self._linked - :return: The usage of this QuotaQuotaExtended. - :rtype: QuotaQuotaUsage + @linked.setter + def linked(self, linked): """ - return self._usage + Sets the linked of this QuotaQuotaExtended. + If false and the quota is linked, attempt to unlink. - @usage.setter - def usage(self, usage): + :param linked: The linked of this QuotaQuotaExtended. + :type: bool """ - Sets the usage of this QuotaQuotaExtended. - - :param usage: The usage of this QuotaQuotaExtended. - :type: QuotaQuotaUsage - """ - self._usage = usage - - @property - def type(self): - """ - Gets the type of this QuotaQuotaExtended. - The type of quota. - - :return: The type of this QuotaQuotaExtended. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this QuotaQuotaExtended. - The type of quota. - - :param type: The type of this QuotaQuotaExtended. - :type: str - """ - allowed_values = ["directory", "user", "group", "default-user", "default-group"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type`, must be one of {0}" - .format(allowed_values) - ) - self._type = type - - @property - def path(self): - """ - Gets the path of this QuotaQuotaExtended. - The /ifs path governed. - - :return: The path of this QuotaQuotaExtended. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """ - Sets the path of this QuotaQuotaExtended. - The /ifs path governed. - - :param path: The path of this QuotaQuotaExtended. - :type: str - """ - self._path = path + self._linked = linked @property def thresholds(self): @@ -240,30 +172,9 @@ def thresholds(self, thresholds): :param thresholds: The thresholds of this QuotaQuotaExtended. :type: QuotaQuotaThresholds """ + self._thresholds = thresholds - @property - def ready(self): - """ - Gets the ready of this QuotaQuotaExtended. - True if the accounting is accurate on the quota. If false, this quota is waiting on completion of a QuotaScan job. - - :return: The ready of this QuotaQuotaExtended. - :rtype: bool - """ - return self._ready - - @ready.setter - def ready(self, ready): - """ - Sets the ready of this QuotaQuotaExtended. - True if the accounting is accurate on the quota. If false, this quota is waiting on completion of a QuotaScan job. - - :param ready: The ready of this QuotaQuotaExtended. - :type: bool - """ - self._ready = ready - @property def thresholds_include_overhead(self): """ @@ -284,6 +195,7 @@ def thresholds_include_overhead(self, thresholds_include_overhead): :param thresholds_include_overhead: The thresholds_include_overhead of this QuotaQuotaExtended. :type: bool """ + self._thresholds_include_overhead = thresholds_include_overhead @property @@ -306,6 +218,7 @@ def id(self, id): :param id: The id of this QuotaQuotaExtended. :type: str """ + self._id = id @property @@ -328,6 +241,7 @@ def include_snapshots(self, include_snapshots): :param include_snapshots: The include_snapshots of this QuotaQuotaExtended. :type: bool """ + self._include_snapshots = include_snapshots @property @@ -356,29 +270,129 @@ def notifications(self, notifications): "Invalid value for `notifications`, must be one of {0}" .format(allowed_values) ) + self._notifications = notifications @property - def linked(self): + def path(self): """ - Gets the linked of this QuotaQuotaExtended. - If false and the quota is linked, attempt to unlink. + Gets the path of this QuotaQuotaExtended. + The /ifs path governed. - :return: The linked of this QuotaQuotaExtended. + :return: The path of this QuotaQuotaExtended. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this QuotaQuotaExtended. + The /ifs path governed. + + :param path: The path of this QuotaQuotaExtended. + :type: str + """ + + self._path = path + + @property + def persona(self): + """ + Gets the persona of this QuotaQuotaExtended. + Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. + + :return: The persona of this QuotaQuotaExtended. + :rtype: GroupMember + """ + return self._persona + + @persona.setter + def persona(self, persona): + """ + Sets the persona of this QuotaQuotaExtended. + Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. + + :param persona: The persona of this QuotaQuotaExtended. + :type: GroupMember + """ + + self._persona = persona + + @property + def ready(self): + """ + Gets the ready of this QuotaQuotaExtended. + True if the accounting is accurate on the quota. If false, this quota is waiting on completion of a QuotaScan job. + + :return: The ready of this QuotaQuotaExtended. :rtype: bool """ - return self._linked + return self._ready - @linked.setter - def linked(self, linked): + @ready.setter + def ready(self, ready): """ - Sets the linked of this QuotaQuotaExtended. - If false and the quota is linked, attempt to unlink. + Sets the ready of this QuotaQuotaExtended. + True if the accounting is accurate on the quota. If false, this quota is waiting on completion of a QuotaScan job. - :param linked: The linked of this QuotaQuotaExtended. + :param ready: The ready of this QuotaQuotaExtended. :type: bool """ - self._linked = linked + + self._ready = ready + + @property + def type(self): + """ + Gets the type of this QuotaQuotaExtended. + The type of quota. + + :return: The type of this QuotaQuotaExtended. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this QuotaQuotaExtended. + The type of quota. + + :param type: The type of this QuotaQuotaExtended. + :type: str + """ + allowed_values = ["directory", "user", "group", "default-user", "default-group"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type + + @property + def usage(self): + """ + Gets the usage of this QuotaQuotaExtended. + + + :return: The usage of this QuotaQuotaExtended. + :rtype: QuotaQuotaUsage + """ + return self._usage + + @usage.setter + def usage(self, usage): + """ + Sets the usage of this QuotaQuotaExtended. + + + :param usage: The usage of this QuotaQuotaExtended. + :type: QuotaQuotaUsage + """ + + self._usage = usage def to_dict(self): """ @@ -395,6 +409,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -412,14 +432,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quota_thresholds.py b/isi_sdk/models/quota_quota_thresholds.py index a381d42b1..92105bcd6 100644 --- a/isi_sdk/models/quota_quota_thresholds.py +++ b/isi_sdk/models/quota_quota_thresholds.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotaThresholds(object): @@ -75,6 +76,12 @@ def advisory(self, advisory): :param advisory: The advisory of this QuotaQuotaThresholds. :type: int """ + + if not advisory: + raise ValueError("Invalid value for `advisory`, must not be `None`") + if advisory < 1.0: + raise ValueError("Invalid value for `advisory`, must be a value greater than or equal to `1.0`") + self._advisory = advisory @property @@ -97,6 +104,12 @@ def hard(self, hard): :param hard: The hard of this QuotaQuotaThresholds. :type: int """ + + if not hard: + raise ValueError("Invalid value for `hard`, must not be `None`") + if hard < 1.0: + raise ValueError("Invalid value for `hard`, must be a value greater than or equal to `1.0`") + self._hard = hard @property @@ -119,6 +132,12 @@ def soft(self, soft): :param soft: The soft of this QuotaQuotaThresholds. :type: int """ + + if not soft: + raise ValueError("Invalid value for `soft`, must not be `None`") + if soft < 1.0: + raise ValueError("Invalid value for `soft`, must be a value greater than or equal to `1.0`") + self._soft = soft @property @@ -141,6 +160,12 @@ def soft_grace(self, soft_grace): :param soft_grace: The soft_grace of this QuotaQuotaThresholds. :type: int """ + + if not soft_grace: + raise ValueError("Invalid value for `soft_grace`, must not be `None`") + if soft_grace < 1.0: + raise ValueError("Invalid value for `soft_grace`, must be a value greater than or equal to `1.0`") + self._soft_grace = soft_grace def to_dict(self): @@ -158,6 +183,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +206,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quota_thresholds_extended.py b/isi_sdk/models/quota_quota_thresholds_extended.py index aa8b631e6..5224e4597 100644 --- a/isi_sdk/models/quota_quota_thresholds_extended.py +++ b/isi_sdk/models/quota_quota_thresholds_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotaThresholdsExtended(object): @@ -37,151 +38,176 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'advisory_exceeded': 'bool', - 'hard_last_exceeded': 'int', - 'soft_grace': 'int', 'advisory': 'int', - 'soft_exceeded': 'bool', - 'advisory_last_exceeded': 'int', 'hard': 'int', 'soft': 'int', + 'soft_grace': 'int', + 'advisory_exceeded': 'bool', + 'advisory_last_exceeded': 'int', 'hard_exceeded': 'bool', + 'hard_last_exceeded': 'int', + 'soft_exceeded': 'bool', 'soft_last_exceeded': 'int' } self.attribute_map = { - 'advisory_exceeded': 'advisory_exceeded', - 'hard_last_exceeded': 'hard_last_exceeded', - 'soft_grace': 'soft_grace', 'advisory': 'advisory', - 'soft_exceeded': 'soft_exceeded', - 'advisory_last_exceeded': 'advisory_last_exceeded', 'hard': 'hard', 'soft': 'soft', + 'soft_grace': 'soft_grace', + 'advisory_exceeded': 'advisory_exceeded', + 'advisory_last_exceeded': 'advisory_last_exceeded', 'hard_exceeded': 'hard_exceeded', + 'hard_last_exceeded': 'hard_last_exceeded', + 'soft_exceeded': 'soft_exceeded', 'soft_last_exceeded': 'soft_last_exceeded' } - self._advisory_exceeded = None - self._hard_last_exceeded = None - self._soft_grace = None self._advisory = None - self._soft_exceeded = None - self._advisory_last_exceeded = None self._hard = None self._soft = None + self._soft_grace = None + self._advisory_exceeded = None + self._advisory_last_exceeded = None self._hard_exceeded = None + self._hard_last_exceeded = None + self._soft_exceeded = None self._soft_last_exceeded = None @property - def advisory_exceeded(self): + def advisory(self): """ - Gets the advisory_exceeded of this QuotaQuotaThresholdsExtended. - True if the advisory threshold has been hit. + Gets the advisory of this QuotaQuotaThresholdsExtended. + Usage bytes at which notifications will be sent but writes will not be denied. - :return: The advisory_exceeded of this QuotaQuotaThresholdsExtended. - :rtype: bool + :return: The advisory of this QuotaQuotaThresholdsExtended. + :rtype: int """ - return self._advisory_exceeded + return self._advisory - @advisory_exceeded.setter - def advisory_exceeded(self, advisory_exceeded): + @advisory.setter + def advisory(self, advisory): """ - Sets the advisory_exceeded of this QuotaQuotaThresholdsExtended. - True if the advisory threshold has been hit. + Sets the advisory of this QuotaQuotaThresholdsExtended. + Usage bytes at which notifications will be sent but writes will not be denied. - :param advisory_exceeded: The advisory_exceeded of this QuotaQuotaThresholdsExtended. - :type: bool + :param advisory: The advisory of this QuotaQuotaThresholdsExtended. + :type: int """ - self._advisory_exceeded = advisory_exceeded + + if not advisory: + raise ValueError("Invalid value for `advisory`, must not be `None`") + if advisory < 1.0: + raise ValueError("Invalid value for `advisory`, must be a value greater than or equal to `1.0`") + + self._advisory = advisory @property - def hard_last_exceeded(self): + def hard(self): """ - Gets the hard_last_exceeded of this QuotaQuotaThresholdsExtended. - Time at which hard threshold was hit. + Gets the hard of this QuotaQuotaThresholdsExtended. + Usage bytes at which further writes will be denied. - :return: The hard_last_exceeded of this QuotaQuotaThresholdsExtended. + :return: The hard of this QuotaQuotaThresholdsExtended. :rtype: int """ - return self._hard_last_exceeded + return self._hard - @hard_last_exceeded.setter - def hard_last_exceeded(self, hard_last_exceeded): + @hard.setter + def hard(self, hard): """ - Sets the hard_last_exceeded of this QuotaQuotaThresholdsExtended. - Time at which hard threshold was hit. + Sets the hard of this QuotaQuotaThresholdsExtended. + Usage bytes at which further writes will be denied. - :param hard_last_exceeded: The hard_last_exceeded of this QuotaQuotaThresholdsExtended. + :param hard: The hard of this QuotaQuotaThresholdsExtended. :type: int """ - self._hard_last_exceeded = hard_last_exceeded + + if not hard: + raise ValueError("Invalid value for `hard`, must not be `None`") + if hard < 1.0: + raise ValueError("Invalid value for `hard`, must be a value greater than or equal to `1.0`") + + self._hard = hard @property - def soft_grace(self): + def soft(self): """ - Gets the soft_grace of this QuotaQuotaThresholdsExtended. - Time in seconds after which the soft threshold has been hit before writes will be denied. + Gets the soft of this QuotaQuotaThresholdsExtended. + Usage bytes at which notifications will be sent and soft grace time will be started. - :return: The soft_grace of this QuotaQuotaThresholdsExtended. + :return: The soft of this QuotaQuotaThresholdsExtended. :rtype: int """ - return self._soft_grace + return self._soft - @soft_grace.setter - def soft_grace(self, soft_grace): + @soft.setter + def soft(self, soft): """ - Sets the soft_grace of this QuotaQuotaThresholdsExtended. - Time in seconds after which the soft threshold has been hit before writes will be denied. + Sets the soft of this QuotaQuotaThresholdsExtended. + Usage bytes at which notifications will be sent and soft grace time will be started. - :param soft_grace: The soft_grace of this QuotaQuotaThresholdsExtended. + :param soft: The soft of this QuotaQuotaThresholdsExtended. :type: int """ - self._soft_grace = soft_grace + + if not soft: + raise ValueError("Invalid value for `soft`, must not be `None`") + if soft < 1.0: + raise ValueError("Invalid value for `soft`, must be a value greater than or equal to `1.0`") + + self._soft = soft @property - def advisory(self): + def soft_grace(self): """ - Gets the advisory of this QuotaQuotaThresholdsExtended. - Usage bytes at which notifications will be sent but writes will not be denied. + Gets the soft_grace of this QuotaQuotaThresholdsExtended. + Time in seconds after which the soft threshold has been hit before writes will be denied. - :return: The advisory of this QuotaQuotaThresholdsExtended. + :return: The soft_grace of this QuotaQuotaThresholdsExtended. :rtype: int """ - return self._advisory + return self._soft_grace - @advisory.setter - def advisory(self, advisory): + @soft_grace.setter + def soft_grace(self, soft_grace): """ - Sets the advisory of this QuotaQuotaThresholdsExtended. - Usage bytes at which notifications will be sent but writes will not be denied. + Sets the soft_grace of this QuotaQuotaThresholdsExtended. + Time in seconds after which the soft threshold has been hit before writes will be denied. - :param advisory: The advisory of this QuotaQuotaThresholdsExtended. + :param soft_grace: The soft_grace of this QuotaQuotaThresholdsExtended. :type: int """ - self._advisory = advisory + + if not soft_grace: + raise ValueError("Invalid value for `soft_grace`, must not be `None`") + if soft_grace < 1.0: + raise ValueError("Invalid value for `soft_grace`, must be a value greater than or equal to `1.0`") + + self._soft_grace = soft_grace @property - def soft_exceeded(self): + def advisory_exceeded(self): """ - Gets the soft_exceeded of this QuotaQuotaThresholdsExtended. - True if the soft threshold has been hit. + Gets the advisory_exceeded of this QuotaQuotaThresholdsExtended. + True if the advisory threshold has been hit. - :return: The soft_exceeded of this QuotaQuotaThresholdsExtended. + :return: The advisory_exceeded of this QuotaQuotaThresholdsExtended. :rtype: bool """ - return self._soft_exceeded + return self._advisory_exceeded - @soft_exceeded.setter - def soft_exceeded(self, soft_exceeded): + @advisory_exceeded.setter + def advisory_exceeded(self, advisory_exceeded): """ - Sets the soft_exceeded of this QuotaQuotaThresholdsExtended. - True if the soft threshold has been hit. + Sets the advisory_exceeded of this QuotaQuotaThresholdsExtended. + True if the advisory threshold has been hit. - :param soft_exceeded: The soft_exceeded of this QuotaQuotaThresholdsExtended. + :param advisory_exceeded: The advisory_exceeded of this QuotaQuotaThresholdsExtended. :type: bool """ - self._soft_exceeded = soft_exceeded + + self._advisory_exceeded = advisory_exceeded @property def advisory_last_exceeded(self): @@ -203,73 +229,77 @@ def advisory_last_exceeded(self, advisory_last_exceeded): :param advisory_last_exceeded: The advisory_last_exceeded of this QuotaQuotaThresholdsExtended. :type: int """ + self._advisory_last_exceeded = advisory_last_exceeded @property - def hard(self): + def hard_exceeded(self): """ - Gets the hard of this QuotaQuotaThresholdsExtended. - Usage bytes at which further writes will be denied. + Gets the hard_exceeded of this QuotaQuotaThresholdsExtended. + True if the hard threshold has been hit. - :return: The hard of this QuotaQuotaThresholdsExtended. - :rtype: int + :return: The hard_exceeded of this QuotaQuotaThresholdsExtended. + :rtype: bool """ - return self._hard + return self._hard_exceeded - @hard.setter - def hard(self, hard): + @hard_exceeded.setter + def hard_exceeded(self, hard_exceeded): """ - Sets the hard of this QuotaQuotaThresholdsExtended. - Usage bytes at which further writes will be denied. + Sets the hard_exceeded of this QuotaQuotaThresholdsExtended. + True if the hard threshold has been hit. - :param hard: The hard of this QuotaQuotaThresholdsExtended. - :type: int + :param hard_exceeded: The hard_exceeded of this QuotaQuotaThresholdsExtended. + :type: bool """ - self._hard = hard + + self._hard_exceeded = hard_exceeded @property - def soft(self): + def hard_last_exceeded(self): """ - Gets the soft of this QuotaQuotaThresholdsExtended. - Usage bytes at which notifications will be sent and soft grace time will be started. + Gets the hard_last_exceeded of this QuotaQuotaThresholdsExtended. + Time at which hard threshold was hit. - :return: The soft of this QuotaQuotaThresholdsExtended. + :return: The hard_last_exceeded of this QuotaQuotaThresholdsExtended. :rtype: int """ - return self._soft + return self._hard_last_exceeded - @soft.setter - def soft(self, soft): + @hard_last_exceeded.setter + def hard_last_exceeded(self, hard_last_exceeded): """ - Sets the soft of this QuotaQuotaThresholdsExtended. - Usage bytes at which notifications will be sent and soft grace time will be started. + Sets the hard_last_exceeded of this QuotaQuotaThresholdsExtended. + Time at which hard threshold was hit. - :param soft: The soft of this QuotaQuotaThresholdsExtended. + :param hard_last_exceeded: The hard_last_exceeded of this QuotaQuotaThresholdsExtended. :type: int """ - self._soft = soft + + self._hard_last_exceeded = hard_last_exceeded @property - def hard_exceeded(self): + def soft_exceeded(self): """ - Gets the hard_exceeded of this QuotaQuotaThresholdsExtended. - True if the hard threshold has been hit. + Gets the soft_exceeded of this QuotaQuotaThresholdsExtended. + True if the soft threshold has been hit. - :return: The hard_exceeded of this QuotaQuotaThresholdsExtended. + :return: The soft_exceeded of this QuotaQuotaThresholdsExtended. :rtype: bool """ - return self._hard_exceeded + return self._soft_exceeded - @hard_exceeded.setter - def hard_exceeded(self, hard_exceeded): + @soft_exceeded.setter + def soft_exceeded(self, soft_exceeded): """ - Sets the hard_exceeded of this QuotaQuotaThresholdsExtended. - True if the hard threshold has been hit. + Sets the soft_exceeded of this QuotaQuotaThresholdsExtended. + True if the soft threshold has been hit. - :param hard_exceeded: The hard_exceeded of this QuotaQuotaThresholdsExtended. + :param soft_exceeded: The soft_exceeded of this QuotaQuotaThresholdsExtended. :type: bool """ - self._hard_exceeded = hard_exceeded + + self._soft_exceeded = soft_exceeded @property def soft_last_exceeded(self): @@ -291,6 +321,7 @@ def soft_last_exceeded(self, soft_last_exceeded): :param soft_last_exceeded: The soft_last_exceeded of this QuotaQuotaThresholdsExtended. :type: int """ + self._soft_last_exceeded = soft_last_exceeded def to_dict(self): @@ -308,6 +339,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -325,14 +362,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quota_usage.py b/isi_sdk/models/quota_quota_usage.py index 8a89df0a5..081172d18 100644 --- a/isi_sdk/models/quota_quota_usage.py +++ b/isi_sdk/models/quota_quota_usage.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotaUsage(object): @@ -72,6 +73,7 @@ def inodes(self, inodes): :param inodes: The inodes of this QuotaQuotaUsage. :type: int """ + self._inodes = inodes @property @@ -94,6 +96,7 @@ def logical(self, logical): :param logical: The logical of this QuotaQuotaUsage. :type: int """ + self._logical = logical @property @@ -116,6 +119,7 @@ def physical(self, physical): :param physical: The physical of this QuotaQuotaUsage. :type: int """ + self._physical = physical def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quotas.py b/isi_sdk/models/quota_quotas.py index a5996700c..297d5be70 100644 --- a/isi_sdk/models/quota_quotas.py +++ b/isi_sdk/models/quota_quotas.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotas(object): @@ -66,6 +67,7 @@ def quotas(self, quotas): :param quotas: The quotas of this QuotaQuotas. :type: list[QuotaQuotaExtended] """ + self._quotas = quotas def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quotas_extended.py b/isi_sdk/models/quota_quotas_extended.py index f7ae5cd64..68fe651d4 100644 --- a/isi_sdk/models/quota_quotas_extended.py +++ b/isi_sdk/models/quota_quotas_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotasExtended(object): @@ -37,39 +38,17 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', - 'quotas': 'list[QuotaQuotaExtended]' + 'quotas': 'list[QuotaQuotaExtended]', + 'resume': 'str' } self.attribute_map = { - 'resume': 'resume', - 'quotas': 'quotas' + 'quotas': 'quotas', + 'resume': 'resume' } - self._resume = None self._quotas = None - - @property - def resume(self): - """ - Gets the resume of this QuotaQuotasExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this QuotaQuotasExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this QuotaQuotasExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this QuotaQuotasExtended. - :type: str - """ - self._resume = resume + self._resume = None @property def quotas(self): @@ -91,8 +70,32 @@ def quotas(self, quotas): :param quotas: The quotas of this QuotaQuotasExtended. :type: list[QuotaQuotaExtended] """ + self._quotas = quotas + @property + def resume(self): + """ + Gets the resume of this QuotaQuotasExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this QuotaQuotasExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this QuotaQuotasExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this QuotaQuotasExtended. + :type: str + """ + + self._resume = resume + def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quotas_summary.py b/isi_sdk/models/quota_quotas_summary.py index 53a594c02..992383983 100644 --- a/isi_sdk/models/quota_quotas_summary.py +++ b/isi_sdk/models/quota_quotas_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotasSummary(object): @@ -66,6 +67,7 @@ def summary(self, summary): :param summary: The summary of this QuotaQuotasSummary. :type: QuotaQuotasSummarySummary """ + self._summary = summary def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_quotas_summary_summary.py b/isi_sdk/models/quota_quotas_summary_summary.py index dc0511733..b10181d1c 100644 --- a/isi_sdk/models/quota_quotas_summary_summary.py +++ b/isi_sdk/models/quota_quotas_summary_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaQuotasSummarySummary(object): @@ -84,6 +85,7 @@ def count(self, count): :param count: The count of this QuotaQuotasSummarySummary. :type: int """ + self._count = count @property @@ -106,6 +108,7 @@ def default_group_quotas_count(self, default_group_quotas_count): :param default_group_quotas_count: The default_group_quotas_count of this QuotaQuotasSummarySummary. :type: int """ + self._default_group_quotas_count = default_group_quotas_count @property @@ -128,6 +131,7 @@ def default_user_quotas_count(self, default_user_quotas_count): :param default_user_quotas_count: The default_user_quotas_count of this QuotaQuotasSummarySummary. :type: int """ + self._default_user_quotas_count = default_user_quotas_count @property @@ -150,6 +154,7 @@ def directory_quotas_count(self, directory_quotas_count): :param directory_quotas_count: The directory_quotas_count of this QuotaQuotasSummarySummary. :type: int """ + self._directory_quotas_count = directory_quotas_count @property @@ -172,6 +177,7 @@ def group_quotas_count(self, group_quotas_count): :param group_quotas_count: The group_quotas_count of this QuotaQuotasSummarySummary. :type: int """ + self._group_quotas_count = group_quotas_count @property @@ -194,6 +200,7 @@ def linked_quotas_count(self, linked_quotas_count): :param linked_quotas_count: The linked_quotas_count of this QuotaQuotasSummarySummary. :type: int """ + self._linked_quotas_count = linked_quotas_count @property @@ -216,6 +223,7 @@ def user_quotas_count(self, user_quotas_count): :param user_quotas_count: The user_quotas_count of this QuotaQuotasSummarySummary. :type: int """ + self._user_quotas_count = user_quotas_count def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/quota_reports.py b/isi_sdk/models/quota_reports.py index 071cd9a54..f6a1d8284 100644 --- a/isi_sdk/models/quota_reports.py +++ b/isi_sdk/models/quota_reports.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class QuotaReports(object): @@ -37,7 +38,7 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'reports': 'list[ReportsRidAboutReport]', + 'reports': 'list[ReportAboutReport]', 'resume': 'str', 'total': 'int' } @@ -59,7 +60,7 @@ def reports(self): :return: The reports of this QuotaReports. - :rtype: list[ReportsRidAboutReport] + :rtype: list[ReportAboutReport] """ return self._reports @@ -70,8 +71,9 @@ def reports(self, reports): :param reports: The reports of this QuotaReports. - :type: list[ReportsRidAboutReport] + :type: list[ReportAboutReport] """ + self._reports = reports @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this QuotaReports. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this QuotaReports. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/remotesupport_connectemc.py b/isi_sdk/models/remotesupport_connectemc.py index 7104a761e..9db007473 100644 --- a/isi_sdk/models/remotesupport_connectemc.py +++ b/isi_sdk/models/remotesupport_connectemc.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class RemotesupportConnectemc(object): @@ -66,6 +67,7 @@ def connectemc(self, connectemc): :param connectemc: The connectemc of this RemotesupportConnectemc. :type: RemotesupportConnectemcConnectemc """ + self._connectemc = connectemc def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/remotesupport_connectemc_connectemc.py b/isi_sdk/models/remotesupport_connectemc_connectemc.py index 34ae2dc26..ce154c0c3 100644 --- a/isi_sdk/models/remotesupport_connectemc_connectemc.py +++ b/isi_sdk/models/remotesupport_connectemc_connectemc.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class RemotesupportConnectemcConnectemc(object): @@ -81,6 +82,7 @@ def email_customer_on_failure(self, email_customer_on_failure): :param email_customer_on_failure: The email_customer_on_failure of this RemotesupportConnectemcConnectemc. :type: bool """ + self._email_customer_on_failure = email_customer_on_failure @property @@ -103,6 +105,7 @@ def enabled(self, enabled): :param enabled: The enabled of this RemotesupportConnectemcConnectemc. :type: bool """ + self._enabled = enabled @property @@ -125,6 +128,7 @@ def gateway_access_pools(self, gateway_access_pools): :param gateway_access_pools: The gateway_access_pools of this RemotesupportConnectemcConnectemc. :type: list[str] """ + self._gateway_access_pools = gateway_access_pools @property @@ -147,6 +151,7 @@ def primary_esrs_gateway(self, primary_esrs_gateway): :param primary_esrs_gateway: The primary_esrs_gateway of this RemotesupportConnectemcConnectemc. :type: str """ + self._primary_esrs_gateway = primary_esrs_gateway @property @@ -169,6 +174,7 @@ def secondary_esrs_gateway(self, secondary_esrs_gateway): :param secondary_esrs_gateway: The secondary_esrs_gateway of this RemotesupportConnectemcConnectemc. :type: str """ + self._secondary_esrs_gateway = secondary_esrs_gateway @property @@ -191,6 +197,7 @@ def use_smtp_failover(self, use_smtp_failover): :param use_smtp_failover: The use_smtp_failover of this RemotesupportConnectemcConnectemc. :type: bool """ + self._use_smtp_failover = use_smtp_failover def to_dict(self): @@ -208,6 +215,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +238,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/report_about.py b/isi_sdk/models/report_about.py new file mode 100644 index 000000000..196e61e05 --- /dev/null +++ b/isi_sdk/models/report_about.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportAbout(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportAbout - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'reports': 'list[ReportAboutReport]' + } + + self.attribute_map = { + 'reports': 'reports' + } + + self._reports = None + + @property + def reports(self): + """ + Gets the reports of this ReportAbout. + + + :return: The reports of this ReportAbout. + :rtype: list[ReportAboutReport] + """ + return self._reports + + @reports.setter + def reports(self, reports): + """ + Sets the reports of this ReportAbout. + + + :param reports: The reports of this ReportAbout. + :type: list[ReportAboutReport] + """ + + self._reports = reports + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_about_report.py b/isi_sdk/models/report_about_report.py new file mode 100644 index 000000000..d123a0a06 --- /dev/null +++ b/isi_sdk/models/report_about_report.py @@ -0,0 +1,212 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportAboutReport(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportAboutReport - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'generated': 'str', + 'id': 'str', + 'time': 'int', + 'type': 'str' + } + + self.attribute_map = { + 'generated': 'generated', + 'id': 'id', + 'time': 'time', + 'type': 'type' + } + + self._generated = None + self._id = None + self._time = None + self._type = None + + @property + def generated(self): + """ + Gets the generated of this ReportAboutReport. + Whether report was manually requested (live) or scheduled. + + :return: The generated of this ReportAboutReport. + :rtype: str + """ + return self._generated + + @generated.setter + def generated(self, generated): + """ + Sets the generated of this ReportAboutReport. + Whether report was manually requested (live) or scheduled. + + :param generated: The generated of this ReportAboutReport. + :type: str + """ + allowed_values = ["manual", "scheduled"] + if generated not in allowed_values: + raise ValueError( + "Invalid value for `generated`, must be one of {0}" + .format(allowed_values) + ) + + self._generated = generated + + @property + def id(self): + """ + Gets the id of this ReportAboutReport. + The system ID given to the report. + + :return: The id of this ReportAboutReport. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ReportAboutReport. + The system ID given to the report. + + :param id: The id of this ReportAboutReport. + :type: str + """ + + self._id = id + + @property + def time(self): + """ + Gets the time of this ReportAboutReport. + Unix epoch time the report was taken. + + :return: The time of this ReportAboutReport. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """ + Sets the time of this ReportAboutReport. + Unix epoch time the report was taken. + + :param time: The time of this ReportAboutReport. + :type: int + """ + + self._time = time + + @property + def type(self): + """ + Gets the type of this ReportAboutReport. + Whether this is a summary or detail report. + + :return: The type of this ReportAboutReport. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ReportAboutReport. + Whether this is a summary or detail report. + + :param type: The type of this ReportAboutReport. + :type: str + """ + allowed_values = ["summary", "detail"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_subreport.py b/isi_sdk/models/report_subreport.py new file mode 100644 index 000000000..6fac33420 --- /dev/null +++ b/isi_sdk/models/report_subreport.py @@ -0,0 +1,2356 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportSubreport(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportSubreport - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'action': 'str', + 'ads_streams_replicated': 'int', + 'block_specs_replicated': 'int', + 'bytes_recoverable': 'int', + 'bytes_transferred': 'int', + 'char_specs_replicated': 'int', + 'corrected_lins': 'int', + 'dead_node': 'bool', + 'directories_replicated': 'int', + 'dirs_changed': 'int', + 'dirs_deleted': 'int', + 'dirs_moved': 'int', + 'dirs_new': 'int', + 'duration': 'int', + 'end_time': 'int', + 'error': 'str', + 'error_checksum_files_skipped': 'int', + 'error_io_files_skipped': 'int', + 'error_net_files_skipped': 'int', + 'errors': 'list[str]', + 'failed_chunks': 'int', + 'fifos_replicated': 'int', + 'file_data_bytes': 'int', + 'files_changed': 'int', + 'files_linked': 'int', + 'files_new': 'int', + 'files_selected': 'int', + 'files_transferred': 'int', + 'files_unlinked': 'int', + 'files_with_ads_replicated': 'int', + 'flipped_lins': 'int', + 'hard_links_replicated': 'int', + 'hash_exceptions_fixed': 'int', + 'hash_exceptions_found': 'int', + 'id': 'str', + 'job_id': 'int', + 'lins_total': 'int', + 'network_bytes_to_source': 'int', + 'network_bytes_to_target': 'int', + 'new_files_replicated': 'int', + 'num_retransmitted_files': 'int', + 'phases': 'list[ReportSubreportPhase]', + 'policy': 'ReportSubreportPolicy', + 'policy_action': 'str', + 'policy_id': 'str', + 'policy_name': 'str', + 'regular_files_replicated': 'int', + 'resynced_lins': 'int', + 'retransmitted_files': 'list[str]', + 'retry': 'int', + 'running_chunks': 'int', + 'sockets_replicated': 'int', + 'source_bytes_recovered': 'int', + 'source_directories_created': 'int', + 'source_directories_deleted': 'int', + 'source_directories_linked': 'int', + 'source_directories_unlinked': 'int', + 'source_directories_visited': 'int', + 'source_files_deleted': 'int', + 'source_files_linked': 'int', + 'source_files_unlinked': 'int', + 'sparse_data_bytes': 'int', + 'start_time': 'int', + 'state': 'str', + 'succeeded_chunks': 'int', + 'symlinks_replicated': 'int', + 'sync_type': 'str', + 'target_bytes_recovered': 'int', + 'target_directories_created': 'int', + 'target_directories_deleted': 'int', + 'target_directories_linked': 'int', + 'target_directories_unlinked': 'int', + 'target_files_deleted': 'int', + 'target_files_linked': 'int', + 'target_files_unlinked': 'int', + 'target_snapshots': 'list[str]', + 'total_chunks': 'int', + 'total_data_bytes': 'int', + 'total_files': 'int', + 'total_network_bytes': 'int', + 'total_phases': 'int', + 'unchanged_data_bytes': 'int', + 'up_to_date_files_skipped': 'int', + 'updated_files_replicated': 'int', + 'user_conflict_files_skipped': 'int', + 'warnings': 'list[str]' + } + + self.attribute_map = { + 'action': 'action', + 'ads_streams_replicated': 'ads_streams_replicated', + 'block_specs_replicated': 'block_specs_replicated', + 'bytes_recoverable': 'bytes_recoverable', + 'bytes_transferred': 'bytes_transferred', + 'char_specs_replicated': 'char_specs_replicated', + 'corrected_lins': 'corrected_lins', + 'dead_node': 'dead_node', + 'directories_replicated': 'directories_replicated', + 'dirs_changed': 'dirs_changed', + 'dirs_deleted': 'dirs_deleted', + 'dirs_moved': 'dirs_moved', + 'dirs_new': 'dirs_new', + 'duration': 'duration', + 'end_time': 'end_time', + 'error': 'error', + 'error_checksum_files_skipped': 'error_checksum_files_skipped', + 'error_io_files_skipped': 'error_io_files_skipped', + 'error_net_files_skipped': 'error_net_files_skipped', + 'errors': 'errors', + 'failed_chunks': 'failed_chunks', + 'fifos_replicated': 'fifos_replicated', + 'file_data_bytes': 'file_data_bytes', + 'files_changed': 'files_changed', + 'files_linked': 'files_linked', + 'files_new': 'files_new', + 'files_selected': 'files_selected', + 'files_transferred': 'files_transferred', + 'files_unlinked': 'files_unlinked', + 'files_with_ads_replicated': 'files_with_ads_replicated', + 'flipped_lins': 'flipped_lins', + 'hard_links_replicated': 'hard_links_replicated', + 'hash_exceptions_fixed': 'hash_exceptions_fixed', + 'hash_exceptions_found': 'hash_exceptions_found', + 'id': 'id', + 'job_id': 'job_id', + 'lins_total': 'lins_total', + 'network_bytes_to_source': 'network_bytes_to_source', + 'network_bytes_to_target': 'network_bytes_to_target', + 'new_files_replicated': 'new_files_replicated', + 'num_retransmitted_files': 'num_retransmitted_files', + 'phases': 'phases', + 'policy': 'policy', + 'policy_action': 'policy_action', + 'policy_id': 'policy_id', + 'policy_name': 'policy_name', + 'regular_files_replicated': 'regular_files_replicated', + 'resynced_lins': 'resynced_lins', + 'retransmitted_files': 'retransmitted_files', + 'retry': 'retry', + 'running_chunks': 'running_chunks', + 'sockets_replicated': 'sockets_replicated', + 'source_bytes_recovered': 'source_bytes_recovered', + 'source_directories_created': 'source_directories_created', + 'source_directories_deleted': 'source_directories_deleted', + 'source_directories_linked': 'source_directories_linked', + 'source_directories_unlinked': 'source_directories_unlinked', + 'source_directories_visited': 'source_directories_visited', + 'source_files_deleted': 'source_files_deleted', + 'source_files_linked': 'source_files_linked', + 'source_files_unlinked': 'source_files_unlinked', + 'sparse_data_bytes': 'sparse_data_bytes', + 'start_time': 'start_time', + 'state': 'state', + 'succeeded_chunks': 'succeeded_chunks', + 'symlinks_replicated': 'symlinks_replicated', + 'sync_type': 'sync_type', + 'target_bytes_recovered': 'target_bytes_recovered', + 'target_directories_created': 'target_directories_created', + 'target_directories_deleted': 'target_directories_deleted', + 'target_directories_linked': 'target_directories_linked', + 'target_directories_unlinked': 'target_directories_unlinked', + 'target_files_deleted': 'target_files_deleted', + 'target_files_linked': 'target_files_linked', + 'target_files_unlinked': 'target_files_unlinked', + 'target_snapshots': 'target_snapshots', + 'total_chunks': 'total_chunks', + 'total_data_bytes': 'total_data_bytes', + 'total_files': 'total_files', + 'total_network_bytes': 'total_network_bytes', + 'total_phases': 'total_phases', + 'unchanged_data_bytes': 'unchanged_data_bytes', + 'up_to_date_files_skipped': 'up_to_date_files_skipped', + 'updated_files_replicated': 'updated_files_replicated', + 'user_conflict_files_skipped': 'user_conflict_files_skipped', + 'warnings': 'warnings' + } + + self._action = None + self._ads_streams_replicated = None + self._block_specs_replicated = None + self._bytes_recoverable = None + self._bytes_transferred = None + self._char_specs_replicated = None + self._corrected_lins = None + self._dead_node = None + self._directories_replicated = None + self._dirs_changed = None + self._dirs_deleted = None + self._dirs_moved = None + self._dirs_new = None + self._duration = None + self._end_time = None + self._error = None + self._error_checksum_files_skipped = None + self._error_io_files_skipped = None + self._error_net_files_skipped = None + self._errors = None + self._failed_chunks = None + self._fifos_replicated = None + self._file_data_bytes = None + self._files_changed = None + self._files_linked = None + self._files_new = None + self._files_selected = None + self._files_transferred = None + self._files_unlinked = None + self._files_with_ads_replicated = None + self._flipped_lins = None + self._hard_links_replicated = None + self._hash_exceptions_fixed = None + self._hash_exceptions_found = None + self._id = None + self._job_id = None + self._lins_total = None + self._network_bytes_to_source = None + self._network_bytes_to_target = None + self._new_files_replicated = None + self._num_retransmitted_files = None + self._phases = None + self._policy = None + self._policy_action = None + self._policy_id = None + self._policy_name = None + self._regular_files_replicated = None + self._resynced_lins = None + self._retransmitted_files = None + self._retry = None + self._running_chunks = None + self._sockets_replicated = None + self._source_bytes_recovered = None + self._source_directories_created = None + self._source_directories_deleted = None + self._source_directories_linked = None + self._source_directories_unlinked = None + self._source_directories_visited = None + self._source_files_deleted = None + self._source_files_linked = None + self._source_files_unlinked = None + self._sparse_data_bytes = None + self._start_time = None + self._state = None + self._succeeded_chunks = None + self._symlinks_replicated = None + self._sync_type = None + self._target_bytes_recovered = None + self._target_directories_created = None + self._target_directories_deleted = None + self._target_directories_linked = None + self._target_directories_unlinked = None + self._target_files_deleted = None + self._target_files_linked = None + self._target_files_unlinked = None + self._target_snapshots = None + self._total_chunks = None + self._total_data_bytes = None + self._total_files = None + self._total_network_bytes = None + self._total_phases = None + self._unchanged_data_bytes = None + self._up_to_date_files_skipped = None + self._updated_files_replicated = None + self._user_conflict_files_skipped = None + self._warnings = None + + @property + def action(self): + """ + Gets the action of this ReportSubreport. + The action to be taken by this job. + + :return: The action of this ReportSubreport. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this ReportSubreport. + The action to be taken by this job. + + :param action: The action of this ReportSubreport. + :type: str + """ + allowed_values = ["resync_prep", "allow_write", "allow_write_revert", "test", "run"] + if action not in allowed_values: + raise ValueError( + "Invalid value for `action`, must be one of {0}" + .format(allowed_values) + ) + + self._action = action + + @property + def ads_streams_replicated(self): + """ + Gets the ads_streams_replicated of this ReportSubreport. + The number of ads streams replicated by this job. + + :return: The ads_streams_replicated of this ReportSubreport. + :rtype: int + """ + return self._ads_streams_replicated + + @ads_streams_replicated.setter + def ads_streams_replicated(self, ads_streams_replicated): + """ + Sets the ads_streams_replicated of this ReportSubreport. + The number of ads streams replicated by this job. + + :param ads_streams_replicated: The ads_streams_replicated of this ReportSubreport. + :type: int + """ + + self._ads_streams_replicated = ads_streams_replicated + + @property + def block_specs_replicated(self): + """ + Gets the block_specs_replicated of this ReportSubreport. + The number of block specs replicated by this job. + + :return: The block_specs_replicated of this ReportSubreport. + :rtype: int + """ + return self._block_specs_replicated + + @block_specs_replicated.setter + def block_specs_replicated(self, block_specs_replicated): + """ + Sets the block_specs_replicated of this ReportSubreport. + The number of block specs replicated by this job. + + :param block_specs_replicated: The block_specs_replicated of this ReportSubreport. + :type: int + """ + + self._block_specs_replicated = block_specs_replicated + + @property + def bytes_recoverable(self): + """ + Gets the bytes_recoverable of this ReportSubreport. + The number of bytes recoverable by this job. + + :return: The bytes_recoverable of this ReportSubreport. + :rtype: int + """ + return self._bytes_recoverable + + @bytes_recoverable.setter + def bytes_recoverable(self, bytes_recoverable): + """ + Sets the bytes_recoverable of this ReportSubreport. + The number of bytes recoverable by this job. + + :param bytes_recoverable: The bytes_recoverable of this ReportSubreport. + :type: int + """ + + self._bytes_recoverable = bytes_recoverable + + @property + def bytes_transferred(self): + """ + Gets the bytes_transferred of this ReportSubreport. + The number of bytes that have been transferred by this job. + + :return: The bytes_transferred of this ReportSubreport. + :rtype: int + """ + return self._bytes_transferred + + @bytes_transferred.setter + def bytes_transferred(self, bytes_transferred): + """ + Sets the bytes_transferred of this ReportSubreport. + The number of bytes that have been transferred by this job. + + :param bytes_transferred: The bytes_transferred of this ReportSubreport. + :type: int + """ + + self._bytes_transferred = bytes_transferred + + @property + def char_specs_replicated(self): + """ + Gets the char_specs_replicated of this ReportSubreport. + The number of char specs replicated by this job. + + :return: The char_specs_replicated of this ReportSubreport. + :rtype: int + """ + return self._char_specs_replicated + + @char_specs_replicated.setter + def char_specs_replicated(self, char_specs_replicated): + """ + Sets the char_specs_replicated of this ReportSubreport. + The number of char specs replicated by this job. + + :param char_specs_replicated: The char_specs_replicated of this ReportSubreport. + :type: int + """ + + self._char_specs_replicated = char_specs_replicated + + @property + def corrected_lins(self): + """ + Gets the corrected_lins of this ReportSubreport. + The number of LINs corrected by this job. + + :return: The corrected_lins of this ReportSubreport. + :rtype: int + """ + return self._corrected_lins + + @corrected_lins.setter + def corrected_lins(self, corrected_lins): + """ + Sets the corrected_lins of this ReportSubreport. + The number of LINs corrected by this job. + + :param corrected_lins: The corrected_lins of this ReportSubreport. + :type: int + """ + + self._corrected_lins = corrected_lins + + @property + def dead_node(self): + """ + Gets the dead_node of this ReportSubreport. + This field is true if the node running this job is dead. + + :return: The dead_node of this ReportSubreport. + :rtype: bool + """ + return self._dead_node + + @dead_node.setter + def dead_node(self, dead_node): + """ + Sets the dead_node of this ReportSubreport. + This field is true if the node running this job is dead. + + :param dead_node: The dead_node of this ReportSubreport. + :type: bool + """ + + self._dead_node = dead_node + + @property + def directories_replicated(self): + """ + Gets the directories_replicated of this ReportSubreport. + The number of directories replicated. + + :return: The directories_replicated of this ReportSubreport. + :rtype: int + """ + return self._directories_replicated + + @directories_replicated.setter + def directories_replicated(self, directories_replicated): + """ + Sets the directories_replicated of this ReportSubreport. + The number of directories replicated. + + :param directories_replicated: The directories_replicated of this ReportSubreport. + :type: int + """ + + self._directories_replicated = directories_replicated + + @property + def dirs_changed(self): + """ + Gets the dirs_changed of this ReportSubreport. + The number of directories changed by this job. + + :return: The dirs_changed of this ReportSubreport. + :rtype: int + """ + return self._dirs_changed + + @dirs_changed.setter + def dirs_changed(self, dirs_changed): + """ + Sets the dirs_changed of this ReportSubreport. + The number of directories changed by this job. + + :param dirs_changed: The dirs_changed of this ReportSubreport. + :type: int + """ + + self._dirs_changed = dirs_changed + + @property + def dirs_deleted(self): + """ + Gets the dirs_deleted of this ReportSubreport. + The number of directories deleted by this job. + + :return: The dirs_deleted of this ReportSubreport. + :rtype: int + """ + return self._dirs_deleted + + @dirs_deleted.setter + def dirs_deleted(self, dirs_deleted): + """ + Sets the dirs_deleted of this ReportSubreport. + The number of directories deleted by this job. + + :param dirs_deleted: The dirs_deleted of this ReportSubreport. + :type: int + """ + + self._dirs_deleted = dirs_deleted + + @property + def dirs_moved(self): + """ + Gets the dirs_moved of this ReportSubreport. + The number of directories moved by this job. + + :return: The dirs_moved of this ReportSubreport. + :rtype: int + """ + return self._dirs_moved + + @dirs_moved.setter + def dirs_moved(self, dirs_moved): + """ + Sets the dirs_moved of this ReportSubreport. + The number of directories moved by this job. + + :param dirs_moved: The dirs_moved of this ReportSubreport. + :type: int + """ + + self._dirs_moved = dirs_moved + + @property + def dirs_new(self): + """ + Gets the dirs_new of this ReportSubreport. + The number of directories created by this job. + + :return: The dirs_new of this ReportSubreport. + :rtype: int + """ + return self._dirs_new + + @dirs_new.setter + def dirs_new(self, dirs_new): + """ + Sets the dirs_new of this ReportSubreport. + The number of directories created by this job. + + :param dirs_new: The dirs_new of this ReportSubreport. + :type: int + """ + + self._dirs_new = dirs_new + + @property + def duration(self): + """ + Gets the duration of this ReportSubreport. + The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. + + :return: The duration of this ReportSubreport. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """ + Sets the duration of this ReportSubreport. + The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. + + :param duration: The duration of this ReportSubreport. + :type: int + """ + + self._duration = duration + + @property + def end_time(self): + """ + Gets the end_time of this ReportSubreport. + The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. + + :return: The end_time of this ReportSubreport. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """ + Sets the end_time of this ReportSubreport. + The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. + + :param end_time: The end_time of this ReportSubreport. + :type: int + """ + + self._end_time = end_time + + @property + def error(self): + """ + Gets the error of this ReportSubreport. + The primary error message for this job. + + :return: The error of this ReportSubreport. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this ReportSubreport. + The primary error message for this job. + + :param error: The error of this ReportSubreport. + :type: str + """ + + self._error = error + + @property + def error_checksum_files_skipped(self): + """ + Gets the error_checksum_files_skipped of this ReportSubreport. + The number of files with checksum errors skipped by this job. + + :return: The error_checksum_files_skipped of this ReportSubreport. + :rtype: int + """ + return self._error_checksum_files_skipped + + @error_checksum_files_skipped.setter + def error_checksum_files_skipped(self, error_checksum_files_skipped): + """ + Sets the error_checksum_files_skipped of this ReportSubreport. + The number of files with checksum errors skipped by this job. + + :param error_checksum_files_skipped: The error_checksum_files_skipped of this ReportSubreport. + :type: int + """ + + self._error_checksum_files_skipped = error_checksum_files_skipped + + @property + def error_io_files_skipped(self): + """ + Gets the error_io_files_skipped of this ReportSubreport. + The number of files with io errors skipped by this job. + + :return: The error_io_files_skipped of this ReportSubreport. + :rtype: int + """ + return self._error_io_files_skipped + + @error_io_files_skipped.setter + def error_io_files_skipped(self, error_io_files_skipped): + """ + Sets the error_io_files_skipped of this ReportSubreport. + The number of files with io errors skipped by this job. + + :param error_io_files_skipped: The error_io_files_skipped of this ReportSubreport. + :type: int + """ + + self._error_io_files_skipped = error_io_files_skipped + + @property + def error_net_files_skipped(self): + """ + Gets the error_net_files_skipped of this ReportSubreport. + The number of files with network errors skipped by this job. + + :return: The error_net_files_skipped of this ReportSubreport. + :rtype: int + """ + return self._error_net_files_skipped + + @error_net_files_skipped.setter + def error_net_files_skipped(self, error_net_files_skipped): + """ + Sets the error_net_files_skipped of this ReportSubreport. + The number of files with network errors skipped by this job. + + :param error_net_files_skipped: The error_net_files_skipped of this ReportSubreport. + :type: int + """ + + self._error_net_files_skipped = error_net_files_skipped + + @property + def errors(self): + """ + Gets the errors of this ReportSubreport. + A list of error messages for this job. + + :return: The errors of this ReportSubreport. + :rtype: list[str] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """ + Sets the errors of this ReportSubreport. + A list of error messages for this job. + + :param errors: The errors of this ReportSubreport. + :type: list[str] + """ + + self._errors = errors + + @property + def failed_chunks(self): + """ + Gets the failed_chunks of this ReportSubreport. + Tyhe number of data chunks that failed transmission. + + :return: The failed_chunks of this ReportSubreport. + :rtype: int + """ + return self._failed_chunks + + @failed_chunks.setter + def failed_chunks(self, failed_chunks): + """ + Sets the failed_chunks of this ReportSubreport. + Tyhe number of data chunks that failed transmission. + + :param failed_chunks: The failed_chunks of this ReportSubreport. + :type: int + """ + + self._failed_chunks = failed_chunks + + @property + def fifos_replicated(self): + """ + Gets the fifos_replicated of this ReportSubreport. + The number of fifos replicated by this job. + + :return: The fifos_replicated of this ReportSubreport. + :rtype: int + """ + return self._fifos_replicated + + @fifos_replicated.setter + def fifos_replicated(self, fifos_replicated): + """ + Sets the fifos_replicated of this ReportSubreport. + The number of fifos replicated by this job. + + :param fifos_replicated: The fifos_replicated of this ReportSubreport. + :type: int + """ + + self._fifos_replicated = fifos_replicated + + @property + def file_data_bytes(self): + """ + Gets the file_data_bytes of this ReportSubreport. + The number of bytes transferred that belong to files. + + :return: The file_data_bytes of this ReportSubreport. + :rtype: int + """ + return self._file_data_bytes + + @file_data_bytes.setter + def file_data_bytes(self, file_data_bytes): + """ + Sets the file_data_bytes of this ReportSubreport. + The number of bytes transferred that belong to files. + + :param file_data_bytes: The file_data_bytes of this ReportSubreport. + :type: int + """ + + self._file_data_bytes = file_data_bytes + + @property + def files_changed(self): + """ + Gets the files_changed of this ReportSubreport. + The number of files changed by this job. + + :return: The files_changed of this ReportSubreport. + :rtype: int + """ + return self._files_changed + + @files_changed.setter + def files_changed(self, files_changed): + """ + Sets the files_changed of this ReportSubreport. + The number of files changed by this job. + + :param files_changed: The files_changed of this ReportSubreport. + :type: int + """ + + self._files_changed = files_changed + + @property + def files_linked(self): + """ + Gets the files_linked of this ReportSubreport. + The number of files linked by this job. + + :return: The files_linked of this ReportSubreport. + :rtype: int + """ + return self._files_linked + + @files_linked.setter + def files_linked(self, files_linked): + """ + Sets the files_linked of this ReportSubreport. + The number of files linked by this job. + + :param files_linked: The files_linked of this ReportSubreport. + :type: int + """ + + self._files_linked = files_linked + + @property + def files_new(self): + """ + Gets the files_new of this ReportSubreport. + The number of files created by this job. + + :return: The files_new of this ReportSubreport. + :rtype: int + """ + return self._files_new + + @files_new.setter + def files_new(self, files_new): + """ + Sets the files_new of this ReportSubreport. + The number of files created by this job. + + :param files_new: The files_new of this ReportSubreport. + :type: int + """ + + self._files_new = files_new + + @property + def files_selected(self): + """ + Gets the files_selected of this ReportSubreport. + The number of files selected by this job. + + :return: The files_selected of this ReportSubreport. + :rtype: int + """ + return self._files_selected + + @files_selected.setter + def files_selected(self, files_selected): + """ + Sets the files_selected of this ReportSubreport. + The number of files selected by this job. + + :param files_selected: The files_selected of this ReportSubreport. + :type: int + """ + + self._files_selected = files_selected + + @property + def files_transferred(self): + """ + Gets the files_transferred of this ReportSubreport. + The number of files transferred by this job. + + :return: The files_transferred of this ReportSubreport. + :rtype: int + """ + return self._files_transferred + + @files_transferred.setter + def files_transferred(self, files_transferred): + """ + Sets the files_transferred of this ReportSubreport. + The number of files transferred by this job. + + :param files_transferred: The files_transferred of this ReportSubreport. + :type: int + """ + + self._files_transferred = files_transferred + + @property + def files_unlinked(self): + """ + Gets the files_unlinked of this ReportSubreport. + The number of files unlinked by this job. + + :return: The files_unlinked of this ReportSubreport. + :rtype: int + """ + return self._files_unlinked + + @files_unlinked.setter + def files_unlinked(self, files_unlinked): + """ + Sets the files_unlinked of this ReportSubreport. + The number of files unlinked by this job. + + :param files_unlinked: The files_unlinked of this ReportSubreport. + :type: int + """ + + self._files_unlinked = files_unlinked + + @property + def files_with_ads_replicated(self): + """ + Gets the files_with_ads_replicated of this ReportSubreport. + The number of files with ads replicated by this job. + + :return: The files_with_ads_replicated of this ReportSubreport. + :rtype: int + """ + return self._files_with_ads_replicated + + @files_with_ads_replicated.setter + def files_with_ads_replicated(self, files_with_ads_replicated): + """ + Sets the files_with_ads_replicated of this ReportSubreport. + The number of files with ads replicated by this job. + + :param files_with_ads_replicated: The files_with_ads_replicated of this ReportSubreport. + :type: int + """ + + self._files_with_ads_replicated = files_with_ads_replicated + + @property + def flipped_lins(self): + """ + Gets the flipped_lins of this ReportSubreport. + The number of LINs flipped by this job. + + :return: The flipped_lins of this ReportSubreport. + :rtype: int + """ + return self._flipped_lins + + @flipped_lins.setter + def flipped_lins(self, flipped_lins): + """ + Sets the flipped_lins of this ReportSubreport. + The number of LINs flipped by this job. + + :param flipped_lins: The flipped_lins of this ReportSubreport. + :type: int + """ + + self._flipped_lins = flipped_lins + + @property + def hard_links_replicated(self): + """ + Gets the hard_links_replicated of this ReportSubreport. + The number of hard links replicated by this job. + + :return: The hard_links_replicated of this ReportSubreport. + :rtype: int + """ + return self._hard_links_replicated + + @hard_links_replicated.setter + def hard_links_replicated(self, hard_links_replicated): + """ + Sets the hard_links_replicated of this ReportSubreport. + The number of hard links replicated by this job. + + :param hard_links_replicated: The hard_links_replicated of this ReportSubreport. + :type: int + """ + + self._hard_links_replicated = hard_links_replicated + + @property + def hash_exceptions_fixed(self): + """ + Gets the hash_exceptions_fixed of this ReportSubreport. + The number of hash exceptions fixed by this job. + + :return: The hash_exceptions_fixed of this ReportSubreport. + :rtype: int + """ + return self._hash_exceptions_fixed + + @hash_exceptions_fixed.setter + def hash_exceptions_fixed(self, hash_exceptions_fixed): + """ + Sets the hash_exceptions_fixed of this ReportSubreport. + The number of hash exceptions fixed by this job. + + :param hash_exceptions_fixed: The hash_exceptions_fixed of this ReportSubreport. + :type: int + """ + + self._hash_exceptions_fixed = hash_exceptions_fixed + + @property + def hash_exceptions_found(self): + """ + Gets the hash_exceptions_found of this ReportSubreport. + The number of hash exceptions found by this job. + + :return: The hash_exceptions_found of this ReportSubreport. + :rtype: int + """ + return self._hash_exceptions_found + + @hash_exceptions_found.setter + def hash_exceptions_found(self, hash_exceptions_found): + """ + Sets the hash_exceptions_found of this ReportSubreport. + The number of hash exceptions found by this job. + + :param hash_exceptions_found: The hash_exceptions_found of this ReportSubreport. + :type: int + """ + + self._hash_exceptions_found = hash_exceptions_found + + @property + def id(self): + """ + Gets the id of this ReportSubreport. + A unique identifier for this object. + + :return: The id of this ReportSubreport. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ReportSubreport. + A unique identifier for this object. + + :param id: The id of this ReportSubreport. + :type: str + """ + + self._id = id + + @property + def job_id(self): + """ + Gets the job_id of this ReportSubreport. + The ID of the job. + + :return: The job_id of this ReportSubreport. + :rtype: int + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """ + Sets the job_id of this ReportSubreport. + The ID of the job. + + :param job_id: The job_id of this ReportSubreport. + :type: int + """ + + self._job_id = job_id + + @property + def lins_total(self): + """ + Gets the lins_total of this ReportSubreport. + The number of LINs transferred by this job. + + :return: The lins_total of this ReportSubreport. + :rtype: int + """ + return self._lins_total + + @lins_total.setter + def lins_total(self, lins_total): + """ + Sets the lins_total of this ReportSubreport. + The number of LINs transferred by this job. + + :param lins_total: The lins_total of this ReportSubreport. + :type: int + """ + + self._lins_total = lins_total + + @property + def network_bytes_to_source(self): + """ + Gets the network_bytes_to_source of this ReportSubreport. + The total number of bytes sent to the source by this job. + + :return: The network_bytes_to_source of this ReportSubreport. + :rtype: int + """ + return self._network_bytes_to_source + + @network_bytes_to_source.setter + def network_bytes_to_source(self, network_bytes_to_source): + """ + Sets the network_bytes_to_source of this ReportSubreport. + The total number of bytes sent to the source by this job. + + :param network_bytes_to_source: The network_bytes_to_source of this ReportSubreport. + :type: int + """ + + self._network_bytes_to_source = network_bytes_to_source + + @property + def network_bytes_to_target(self): + """ + Gets the network_bytes_to_target of this ReportSubreport. + The total number of bytes sent to the target by this job. + + :return: The network_bytes_to_target of this ReportSubreport. + :rtype: int + """ + return self._network_bytes_to_target + + @network_bytes_to_target.setter + def network_bytes_to_target(self, network_bytes_to_target): + """ + Sets the network_bytes_to_target of this ReportSubreport. + The total number of bytes sent to the target by this job. + + :param network_bytes_to_target: The network_bytes_to_target of this ReportSubreport. + :type: int + """ + + self._network_bytes_to_target = network_bytes_to_target + + @property + def new_files_replicated(self): + """ + Gets the new_files_replicated of this ReportSubreport. + The number of new files replicated by this job. + + :return: The new_files_replicated of this ReportSubreport. + :rtype: int + """ + return self._new_files_replicated + + @new_files_replicated.setter + def new_files_replicated(self, new_files_replicated): + """ + Sets the new_files_replicated of this ReportSubreport. + The number of new files replicated by this job. + + :param new_files_replicated: The new_files_replicated of this ReportSubreport. + :type: int + """ + + self._new_files_replicated = new_files_replicated + + @property + def num_retransmitted_files(self): + """ + Gets the num_retransmitted_files of this ReportSubreport. + The number of files that have been retransmitted by this job. + + :return: The num_retransmitted_files of this ReportSubreport. + :rtype: int + """ + return self._num_retransmitted_files + + @num_retransmitted_files.setter + def num_retransmitted_files(self, num_retransmitted_files): + """ + Sets the num_retransmitted_files of this ReportSubreport. + The number of files that have been retransmitted by this job. + + :param num_retransmitted_files: The num_retransmitted_files of this ReportSubreport. + :type: int + """ + + self._num_retransmitted_files = num_retransmitted_files + + @property + def phases(self): + """ + Gets the phases of this ReportSubreport. + Data for each phase of this job. + + :return: The phases of this ReportSubreport. + :rtype: list[ReportSubreportPhase] + """ + return self._phases + + @phases.setter + def phases(self, phases): + """ + Sets the phases of this ReportSubreport. + Data for each phase of this job. + + :param phases: The phases of this ReportSubreport. + :type: list[ReportSubreportPhase] + """ + + self._phases = phases + + @property + def policy(self): + """ + Gets the policy of this ReportSubreport. + + + :return: The policy of this ReportSubreport. + :rtype: ReportSubreportPolicy + """ + return self._policy + + @policy.setter + def policy(self, policy): + """ + Sets the policy of this ReportSubreport. + + + :param policy: The policy of this ReportSubreport. + :type: ReportSubreportPolicy + """ + + self._policy = policy + + @property + def policy_action(self): + """ + Gets the policy_action of this ReportSubreport. + This is the action the policy is configured to perform. + + :return: The policy_action of this ReportSubreport. + :rtype: str + """ + return self._policy_action + + @policy_action.setter + def policy_action(self, policy_action): + """ + Sets the policy_action of this ReportSubreport. + This is the action the policy is configured to perform. + + :param policy_action: The policy_action of this ReportSubreport. + :type: str + """ + allowed_values = ["copy", "sync"] + if policy_action not in allowed_values: + raise ValueError( + "Invalid value for `policy_action`, must be one of {0}" + .format(allowed_values) + ) + + self._policy_action = policy_action + + @property + def policy_id(self): + """ + Gets the policy_id of this ReportSubreport. + The ID of the policy. + + :return: The policy_id of this ReportSubreport. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """ + Sets the policy_id of this ReportSubreport. + The ID of the policy. + + :param policy_id: The policy_id of this ReportSubreport. + :type: str + """ + + self._policy_id = policy_id + + @property + def policy_name(self): + """ + Gets the policy_name of this ReportSubreport. + The name of the policy. + + :return: The policy_name of this ReportSubreport. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """ + Sets the policy_name of this ReportSubreport. + The name of the policy. + + :param policy_name: The policy_name of this ReportSubreport. + :type: str + """ + + self._policy_name = policy_name + + @property + def regular_files_replicated(self): + """ + Gets the regular_files_replicated of this ReportSubreport. + The number of regular files replicated by this job. + + :return: The regular_files_replicated of this ReportSubreport. + :rtype: int + """ + return self._regular_files_replicated + + @regular_files_replicated.setter + def regular_files_replicated(self, regular_files_replicated): + """ + Sets the regular_files_replicated of this ReportSubreport. + The number of regular files replicated by this job. + + :param regular_files_replicated: The regular_files_replicated of this ReportSubreport. + :type: int + """ + + self._regular_files_replicated = regular_files_replicated + + @property + def resynced_lins(self): + """ + Gets the resynced_lins of this ReportSubreport. + The number of LINs resynched by this job. + + :return: The resynced_lins of this ReportSubreport. + :rtype: int + """ + return self._resynced_lins + + @resynced_lins.setter + def resynced_lins(self, resynced_lins): + """ + Sets the resynced_lins of this ReportSubreport. + The number of LINs resynched by this job. + + :param resynced_lins: The resynced_lins of this ReportSubreport. + :type: int + """ + + self._resynced_lins = resynced_lins + + @property + def retransmitted_files(self): + """ + Gets the retransmitted_files of this ReportSubreport. + The files that have been retransmitted by this job. + + :return: The retransmitted_files of this ReportSubreport. + :rtype: list[str] + """ + return self._retransmitted_files + + @retransmitted_files.setter + def retransmitted_files(self, retransmitted_files): + """ + Sets the retransmitted_files of this ReportSubreport. + The files that have been retransmitted by this job. + + :param retransmitted_files: The retransmitted_files of this ReportSubreport. + :type: list[str] + """ + + self._retransmitted_files = retransmitted_files + + @property + def retry(self): + """ + Gets the retry of this ReportSubreport. + The number of times the job has been retried. + + :return: The retry of this ReportSubreport. + :rtype: int + """ + return self._retry + + @retry.setter + def retry(self, retry): + """ + Sets the retry of this ReportSubreport. + The number of times the job has been retried. + + :param retry: The retry of this ReportSubreport. + :type: int + """ + + self._retry = retry + + @property + def running_chunks(self): + """ + Gets the running_chunks of this ReportSubreport. + The number of data chunks currently being transmitted. + + :return: The running_chunks of this ReportSubreport. + :rtype: int + """ + return self._running_chunks + + @running_chunks.setter + def running_chunks(self, running_chunks): + """ + Sets the running_chunks of this ReportSubreport. + The number of data chunks currently being transmitted. + + :param running_chunks: The running_chunks of this ReportSubreport. + :type: int + """ + + self._running_chunks = running_chunks + + @property + def sockets_replicated(self): + """ + Gets the sockets_replicated of this ReportSubreport. + The number of sockets replicated by this job. + + :return: The sockets_replicated of this ReportSubreport. + :rtype: int + """ + return self._sockets_replicated + + @sockets_replicated.setter + def sockets_replicated(self, sockets_replicated): + """ + Sets the sockets_replicated of this ReportSubreport. + The number of sockets replicated by this job. + + :param sockets_replicated: The sockets_replicated of this ReportSubreport. + :type: int + """ + + self._sockets_replicated = sockets_replicated + + @property + def source_bytes_recovered(self): + """ + Gets the source_bytes_recovered of this ReportSubreport. + The number of bytes recovered on the source. + + :return: The source_bytes_recovered of this ReportSubreport. + :rtype: int + """ + return self._source_bytes_recovered + + @source_bytes_recovered.setter + def source_bytes_recovered(self, source_bytes_recovered): + """ + Sets the source_bytes_recovered of this ReportSubreport. + The number of bytes recovered on the source. + + :param source_bytes_recovered: The source_bytes_recovered of this ReportSubreport. + :type: int + """ + + self._source_bytes_recovered = source_bytes_recovered + + @property + def source_directories_created(self): + """ + Gets the source_directories_created of this ReportSubreport. + The number of directories created on the source. + + :return: The source_directories_created of this ReportSubreport. + :rtype: int + """ + return self._source_directories_created + + @source_directories_created.setter + def source_directories_created(self, source_directories_created): + """ + Sets the source_directories_created of this ReportSubreport. + The number of directories created on the source. + + :param source_directories_created: The source_directories_created of this ReportSubreport. + :type: int + """ + + self._source_directories_created = source_directories_created + + @property + def source_directories_deleted(self): + """ + Gets the source_directories_deleted of this ReportSubreport. + The number of directories deleted on the source. + + :return: The source_directories_deleted of this ReportSubreport. + :rtype: int + """ + return self._source_directories_deleted + + @source_directories_deleted.setter + def source_directories_deleted(self, source_directories_deleted): + """ + Sets the source_directories_deleted of this ReportSubreport. + The number of directories deleted on the source. + + :param source_directories_deleted: The source_directories_deleted of this ReportSubreport. + :type: int + """ + + self._source_directories_deleted = source_directories_deleted + + @property + def source_directories_linked(self): + """ + Gets the source_directories_linked of this ReportSubreport. + The number of directories linked on the source. + + :return: The source_directories_linked of this ReportSubreport. + :rtype: int + """ + return self._source_directories_linked + + @source_directories_linked.setter + def source_directories_linked(self, source_directories_linked): + """ + Sets the source_directories_linked of this ReportSubreport. + The number of directories linked on the source. + + :param source_directories_linked: The source_directories_linked of this ReportSubreport. + :type: int + """ + + self._source_directories_linked = source_directories_linked + + @property + def source_directories_unlinked(self): + """ + Gets the source_directories_unlinked of this ReportSubreport. + The number of directories unlinked on the source. + + :return: The source_directories_unlinked of this ReportSubreport. + :rtype: int + """ + return self._source_directories_unlinked + + @source_directories_unlinked.setter + def source_directories_unlinked(self, source_directories_unlinked): + """ + Sets the source_directories_unlinked of this ReportSubreport. + The number of directories unlinked on the source. + + :param source_directories_unlinked: The source_directories_unlinked of this ReportSubreport. + :type: int + """ + + self._source_directories_unlinked = source_directories_unlinked + + @property + def source_directories_visited(self): + """ + Gets the source_directories_visited of this ReportSubreport. + The number of directories visited on the source. + + :return: The source_directories_visited of this ReportSubreport. + :rtype: int + """ + return self._source_directories_visited + + @source_directories_visited.setter + def source_directories_visited(self, source_directories_visited): + """ + Sets the source_directories_visited of this ReportSubreport. + The number of directories visited on the source. + + :param source_directories_visited: The source_directories_visited of this ReportSubreport. + :type: int + """ + + self._source_directories_visited = source_directories_visited + + @property + def source_files_deleted(self): + """ + Gets the source_files_deleted of this ReportSubreport. + The number of files deleted on the source. + + :return: The source_files_deleted of this ReportSubreport. + :rtype: int + """ + return self._source_files_deleted + + @source_files_deleted.setter + def source_files_deleted(self, source_files_deleted): + """ + Sets the source_files_deleted of this ReportSubreport. + The number of files deleted on the source. + + :param source_files_deleted: The source_files_deleted of this ReportSubreport. + :type: int + """ + + self._source_files_deleted = source_files_deleted + + @property + def source_files_linked(self): + """ + Gets the source_files_linked of this ReportSubreport. + The number of files linked on the source. + + :return: The source_files_linked of this ReportSubreport. + :rtype: int + """ + return self._source_files_linked + + @source_files_linked.setter + def source_files_linked(self, source_files_linked): + """ + Sets the source_files_linked of this ReportSubreport. + The number of files linked on the source. + + :param source_files_linked: The source_files_linked of this ReportSubreport. + :type: int + """ + + self._source_files_linked = source_files_linked + + @property + def source_files_unlinked(self): + """ + Gets the source_files_unlinked of this ReportSubreport. + The number of files unlinked on the source. + + :return: The source_files_unlinked of this ReportSubreport. + :rtype: int + """ + return self._source_files_unlinked + + @source_files_unlinked.setter + def source_files_unlinked(self, source_files_unlinked): + """ + Sets the source_files_unlinked of this ReportSubreport. + The number of files unlinked on the source. + + :param source_files_unlinked: The source_files_unlinked of this ReportSubreport. + :type: int + """ + + self._source_files_unlinked = source_files_unlinked + + @property + def sparse_data_bytes(self): + """ + Gets the sparse_data_bytes of this ReportSubreport. + The number of sparse data bytes transferred by this job. + + :return: The sparse_data_bytes of this ReportSubreport. + :rtype: int + """ + return self._sparse_data_bytes + + @sparse_data_bytes.setter + def sparse_data_bytes(self, sparse_data_bytes): + """ + Sets the sparse_data_bytes of this ReportSubreport. + The number of sparse data bytes transferred by this job. + + :param sparse_data_bytes: The sparse_data_bytes of this ReportSubreport. + :type: int + """ + + self._sparse_data_bytes = sparse_data_bytes + + @property + def start_time(self): + """ + Gets the start_time of this ReportSubreport. + The time the job started in unix epoch seconds. The field is null if the job hasn't started. + + :return: The start_time of this ReportSubreport. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this ReportSubreport. + The time the job started in unix epoch seconds. The field is null if the job hasn't started. + + :param start_time: The start_time of this ReportSubreport. + :type: int + """ + + self._start_time = start_time + + @property + def state(self): + """ + Gets the state of this ReportSubreport. + The state of the job. + + :return: The state of this ReportSubreport. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this ReportSubreport. + The state of the job. + + :param state: The state of this ReportSubreport. + :type: str + """ + allowed_values = ["scheduled", "running", "paused", "finished", "failed", "canceled", "needs_attention", "skipped", "pending", "unknown"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state`, must be one of {0}" + .format(allowed_values) + ) + + self._state = state + + @property + def succeeded_chunks(self): + """ + Gets the succeeded_chunks of this ReportSubreport. + The number of data chunks that have been transmitted successfully. + + :return: The succeeded_chunks of this ReportSubreport. + :rtype: int + """ + return self._succeeded_chunks + + @succeeded_chunks.setter + def succeeded_chunks(self, succeeded_chunks): + """ + Sets the succeeded_chunks of this ReportSubreport. + The number of data chunks that have been transmitted successfully. + + :param succeeded_chunks: The succeeded_chunks of this ReportSubreport. + :type: int + """ + + self._succeeded_chunks = succeeded_chunks + + @property + def symlinks_replicated(self): + """ + Gets the symlinks_replicated of this ReportSubreport. + The number of symlinks replicated by this job. + + :return: The symlinks_replicated of this ReportSubreport. + :rtype: int + """ + return self._symlinks_replicated + + @symlinks_replicated.setter + def symlinks_replicated(self, symlinks_replicated): + """ + Sets the symlinks_replicated of this ReportSubreport. + The number of symlinks replicated by this job. + + :param symlinks_replicated: The symlinks_replicated of this ReportSubreport. + :type: int + """ + + self._symlinks_replicated = symlinks_replicated + + @property + def sync_type(self): + """ + Gets the sync_type of this ReportSubreport. + The type of sync being performed by this job. + + :return: The sync_type of this ReportSubreport. + :rtype: str + """ + return self._sync_type + + @sync_type.setter + def sync_type(self, sync_type): + """ + Sets the sync_type of this ReportSubreport. + The type of sync being performed by this job. + + :param sync_type: The sync_type of this ReportSubreport. + :type: str + """ + allowed_values = ["invalid", "legacy", "initial", "incremental", "upgrade", "fofb", "domainmark"] + if sync_type not in allowed_values: + raise ValueError( + "Invalid value for `sync_type`, must be one of {0}" + .format(allowed_values) + ) + + self._sync_type = sync_type + + @property + def target_bytes_recovered(self): + """ + Gets the target_bytes_recovered of this ReportSubreport. + The number of bytes recovered on the target. + + :return: The target_bytes_recovered of this ReportSubreport. + :rtype: int + """ + return self._target_bytes_recovered + + @target_bytes_recovered.setter + def target_bytes_recovered(self, target_bytes_recovered): + """ + Sets the target_bytes_recovered of this ReportSubreport. + The number of bytes recovered on the target. + + :param target_bytes_recovered: The target_bytes_recovered of this ReportSubreport. + :type: int + """ + + self._target_bytes_recovered = target_bytes_recovered + + @property + def target_directories_created(self): + """ + Gets the target_directories_created of this ReportSubreport. + The number of directories created on the target. + + :return: The target_directories_created of this ReportSubreport. + :rtype: int + """ + return self._target_directories_created + + @target_directories_created.setter + def target_directories_created(self, target_directories_created): + """ + Sets the target_directories_created of this ReportSubreport. + The number of directories created on the target. + + :param target_directories_created: The target_directories_created of this ReportSubreport. + :type: int + """ + + self._target_directories_created = target_directories_created + + @property + def target_directories_deleted(self): + """ + Gets the target_directories_deleted of this ReportSubreport. + The number of directories deleted on the target. + + :return: The target_directories_deleted of this ReportSubreport. + :rtype: int + """ + return self._target_directories_deleted + + @target_directories_deleted.setter + def target_directories_deleted(self, target_directories_deleted): + """ + Sets the target_directories_deleted of this ReportSubreport. + The number of directories deleted on the target. + + :param target_directories_deleted: The target_directories_deleted of this ReportSubreport. + :type: int + """ + + self._target_directories_deleted = target_directories_deleted + + @property + def target_directories_linked(self): + """ + Gets the target_directories_linked of this ReportSubreport. + The number of directories linked on the target. + + :return: The target_directories_linked of this ReportSubreport. + :rtype: int + """ + return self._target_directories_linked + + @target_directories_linked.setter + def target_directories_linked(self, target_directories_linked): + """ + Sets the target_directories_linked of this ReportSubreport. + The number of directories linked on the target. + + :param target_directories_linked: The target_directories_linked of this ReportSubreport. + :type: int + """ + + self._target_directories_linked = target_directories_linked + + @property + def target_directories_unlinked(self): + """ + Gets the target_directories_unlinked of this ReportSubreport. + The number of directories unlinked on the target. + + :return: The target_directories_unlinked of this ReportSubreport. + :rtype: int + """ + return self._target_directories_unlinked + + @target_directories_unlinked.setter + def target_directories_unlinked(self, target_directories_unlinked): + """ + Sets the target_directories_unlinked of this ReportSubreport. + The number of directories unlinked on the target. + + :param target_directories_unlinked: The target_directories_unlinked of this ReportSubreport. + :type: int + """ + + self._target_directories_unlinked = target_directories_unlinked + + @property + def target_files_deleted(self): + """ + Gets the target_files_deleted of this ReportSubreport. + The number of files deleted on the target. + + :return: The target_files_deleted of this ReportSubreport. + :rtype: int + """ + return self._target_files_deleted + + @target_files_deleted.setter + def target_files_deleted(self, target_files_deleted): + """ + Sets the target_files_deleted of this ReportSubreport. + The number of files deleted on the target. + + :param target_files_deleted: The target_files_deleted of this ReportSubreport. + :type: int + """ + + self._target_files_deleted = target_files_deleted + + @property + def target_files_linked(self): + """ + Gets the target_files_linked of this ReportSubreport. + The number of files linked on the target. + + :return: The target_files_linked of this ReportSubreport. + :rtype: int + """ + return self._target_files_linked + + @target_files_linked.setter + def target_files_linked(self, target_files_linked): + """ + Sets the target_files_linked of this ReportSubreport. + The number of files linked on the target. + + :param target_files_linked: The target_files_linked of this ReportSubreport. + :type: int + """ + + self._target_files_linked = target_files_linked + + @property + def target_files_unlinked(self): + """ + Gets the target_files_unlinked of this ReportSubreport. + The number of files unlinked on the target. + + :return: The target_files_unlinked of this ReportSubreport. + :rtype: int + """ + return self._target_files_unlinked + + @target_files_unlinked.setter + def target_files_unlinked(self, target_files_unlinked): + """ + Sets the target_files_unlinked of this ReportSubreport. + The number of files unlinked on the target. + + :param target_files_unlinked: The target_files_unlinked of this ReportSubreport. + :type: int + """ + + self._target_files_unlinked = target_files_unlinked + + @property + def target_snapshots(self): + """ + Gets the target_snapshots of this ReportSubreport. + The target snapshots created by this job. + + :return: The target_snapshots of this ReportSubreport. + :rtype: list[str] + """ + return self._target_snapshots + + @target_snapshots.setter + def target_snapshots(self, target_snapshots): + """ + Sets the target_snapshots of this ReportSubreport. + The target snapshots created by this job. + + :param target_snapshots: The target_snapshots of this ReportSubreport. + :type: list[str] + """ + + self._target_snapshots = target_snapshots + + @property + def total_chunks(self): + """ + Gets the total_chunks of this ReportSubreport. + The total number of data chunks transmitted by this job. + + :return: The total_chunks of this ReportSubreport. + :rtype: int + """ + return self._total_chunks + + @total_chunks.setter + def total_chunks(self, total_chunks): + """ + Sets the total_chunks of this ReportSubreport. + The total number of data chunks transmitted by this job. + + :param total_chunks: The total_chunks of this ReportSubreport. + :type: int + """ + + self._total_chunks = total_chunks + + @property + def total_data_bytes(self): + """ + Gets the total_data_bytes of this ReportSubreport. + The total number of bytes transferred by this job. + + :return: The total_data_bytes of this ReportSubreport. + :rtype: int + """ + return self._total_data_bytes + + @total_data_bytes.setter + def total_data_bytes(self, total_data_bytes): + """ + Sets the total_data_bytes of this ReportSubreport. + The total number of bytes transferred by this job. + + :param total_data_bytes: The total_data_bytes of this ReportSubreport. + :type: int + """ + + self._total_data_bytes = total_data_bytes + + @property + def total_files(self): + """ + Gets the total_files of this ReportSubreport. + The number of files affected by this job. + + :return: The total_files of this ReportSubreport. + :rtype: int + """ + return self._total_files + + @total_files.setter + def total_files(self, total_files): + """ + Sets the total_files of this ReportSubreport. + The number of files affected by this job. + + :param total_files: The total_files of this ReportSubreport. + :type: int + """ + + self._total_files = total_files + + @property + def total_network_bytes(self): + """ + Gets the total_network_bytes of this ReportSubreport. + The total number of bytes sent over the network by this job. + + :return: The total_network_bytes of this ReportSubreport. + :rtype: int + """ + return self._total_network_bytes + + @total_network_bytes.setter + def total_network_bytes(self, total_network_bytes): + """ + Sets the total_network_bytes of this ReportSubreport. + The total number of bytes sent over the network by this job. + + :param total_network_bytes: The total_network_bytes of this ReportSubreport. + :type: int + """ + + self._total_network_bytes = total_network_bytes + + @property + def total_phases(self): + """ + Gets the total_phases of this ReportSubreport. + The total number of phases for this job. + + :return: The total_phases of this ReportSubreport. + :rtype: int + """ + return self._total_phases + + @total_phases.setter + def total_phases(self, total_phases): + """ + Sets the total_phases of this ReportSubreport. + The total number of phases for this job. + + :param total_phases: The total_phases of this ReportSubreport. + :type: int + """ + + self._total_phases = total_phases + + @property + def unchanged_data_bytes(self): + """ + Gets the unchanged_data_bytes of this ReportSubreport. + The number of bytes unchanged by this job. + + :return: The unchanged_data_bytes of this ReportSubreport. + :rtype: int + """ + return self._unchanged_data_bytes + + @unchanged_data_bytes.setter + def unchanged_data_bytes(self, unchanged_data_bytes): + """ + Sets the unchanged_data_bytes of this ReportSubreport. + The number of bytes unchanged by this job. + + :param unchanged_data_bytes: The unchanged_data_bytes of this ReportSubreport. + :type: int + """ + + self._unchanged_data_bytes = unchanged_data_bytes + + @property + def up_to_date_files_skipped(self): + """ + Gets the up_to_date_files_skipped of this ReportSubreport. + The number of up-to-date files skipped by this job. + + :return: The up_to_date_files_skipped of this ReportSubreport. + :rtype: int + """ + return self._up_to_date_files_skipped + + @up_to_date_files_skipped.setter + def up_to_date_files_skipped(self, up_to_date_files_skipped): + """ + Sets the up_to_date_files_skipped of this ReportSubreport. + The number of up-to-date files skipped by this job. + + :param up_to_date_files_skipped: The up_to_date_files_skipped of this ReportSubreport. + :type: int + """ + + self._up_to_date_files_skipped = up_to_date_files_skipped + + @property + def updated_files_replicated(self): + """ + Gets the updated_files_replicated of this ReportSubreport. + The number of updated files replicated by this job. + + :return: The updated_files_replicated of this ReportSubreport. + :rtype: int + """ + return self._updated_files_replicated + + @updated_files_replicated.setter + def updated_files_replicated(self, updated_files_replicated): + """ + Sets the updated_files_replicated of this ReportSubreport. + The number of updated files replicated by this job. + + :param updated_files_replicated: The updated_files_replicated of this ReportSubreport. + :type: int + """ + + self._updated_files_replicated = updated_files_replicated + + @property + def user_conflict_files_skipped(self): + """ + Gets the user_conflict_files_skipped of this ReportSubreport. + The number of files with user conflicts skipped by this job. + + :return: The user_conflict_files_skipped of this ReportSubreport. + :rtype: int + """ + return self._user_conflict_files_skipped + + @user_conflict_files_skipped.setter + def user_conflict_files_skipped(self, user_conflict_files_skipped): + """ + Sets the user_conflict_files_skipped of this ReportSubreport. + The number of files with user conflicts skipped by this job. + + :param user_conflict_files_skipped: The user_conflict_files_skipped of this ReportSubreport. + :type: int + """ + + self._user_conflict_files_skipped = user_conflict_files_skipped + + @property + def warnings(self): + """ + Gets the warnings of this ReportSubreport. + A list of warning messages for this job. + + :return: The warnings of this ReportSubreport. + :rtype: list[str] + """ + return self._warnings + + @warnings.setter + def warnings(self, warnings): + """ + Sets the warnings of this ReportSubreport. + A list of warning messages for this job. + + :param warnings: The warnings of this ReportSubreport. + :type: list[str] + """ + + self._warnings = warnings + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_subreport_phase.py b/isi_sdk/models/report_subreport_phase.py new file mode 100644 index 000000000..5ac7b531c --- /dev/null +++ b/isi_sdk/models/report_subreport_phase.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportSubreportPhase(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportSubreportPhase - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'end_time': 'int', + 'phase': 'str', + 'start_time': 'int' + } + + self.attribute_map = { + 'end_time': 'end_time', + 'phase': 'phase', + 'start_time': 'start_time' + } + + self._end_time = None + self._phase = None + self._start_time = None + + @property + def end_time(self): + """ + Gets the end_time of this ReportSubreportPhase. + The time the job ended this phase. + + :return: The end_time of this ReportSubreportPhase. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """ + Sets the end_time of this ReportSubreportPhase. + The time the job ended this phase. + + :param end_time: The end_time of this ReportSubreportPhase. + :type: int + """ + + self._end_time = end_time + + @property + def phase(self): + """ + Gets the phase of this ReportSubreportPhase. + The phase that the job was in. + + :return: The phase of this ReportSubreportPhase. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this ReportSubreportPhase. + The phase that the job was in. + + :param phase: The phase of this ReportSubreportPhase. + :type: str + """ + + self._phase = phase + + @property + def start_time(self): + """ + Gets the start_time of this ReportSubreportPhase. + The time the job began this phase. + + :return: The start_time of this ReportSubreportPhase. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this ReportSubreportPhase. + The time the job began this phase. + + :param start_time: The start_time of this ReportSubreportPhase. + :type: int + """ + + self._start_time = start_time + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_subreport_policy.py b/isi_sdk/models/report_subreport_policy.py new file mode 100644 index 000000000..ad06e9cde --- /dev/null +++ b/isi_sdk/models/report_subreport_policy.py @@ -0,0 +1,310 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportSubreportPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportSubreportPolicy - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'action': 'str', + 'file_matching_pattern': 'ReportSubreportPolicyFileMatchingPattern', + 'name': 'str', + 'source_exclude_directories': 'list[str]', + 'source_include_directories': 'list[str]', + 'source_root_path': 'str', + 'target_host': 'str', + 'target_path': 'str' + } + + self.attribute_map = { + 'action': 'action', + 'file_matching_pattern': 'file_matching_pattern', + 'name': 'name', + 'source_exclude_directories': 'source_exclude_directories', + 'source_include_directories': 'source_include_directories', + 'source_root_path': 'source_root_path', + 'target_host': 'target_host', + 'target_path': 'target_path' + } + + self._action = None + self._file_matching_pattern = None + self._name = None + self._source_exclude_directories = None + self._source_include_directories = None + self._source_root_path = None + self._target_host = None + self._target_path = None + + @property + def action(self): + """ + Gets the action of this ReportSubreportPolicy. + If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. + + :return: The action of this ReportSubreportPolicy. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this ReportSubreportPolicy. + If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. + + :param action: The action of this ReportSubreportPolicy. + :type: str + """ + allowed_values = ["copy", "sync"] + if action not in allowed_values: + raise ValueError( + "Invalid value for `action`, must be one of {0}" + .format(allowed_values) + ) + + self._action = action + + @property + def file_matching_pattern(self): + """ + Gets the file_matching_pattern of this ReportSubreportPolicy. + A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. + + :return: The file_matching_pattern of this ReportSubreportPolicy. + :rtype: ReportSubreportPolicyFileMatchingPattern + """ + return self._file_matching_pattern + + @file_matching_pattern.setter + def file_matching_pattern(self, file_matching_pattern): + """ + Sets the file_matching_pattern of this ReportSubreportPolicy. + A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. + + :param file_matching_pattern: The file_matching_pattern of this ReportSubreportPolicy. + :type: ReportSubreportPolicyFileMatchingPattern + """ + + self._file_matching_pattern = file_matching_pattern + + @property + def name(self): + """ + Gets the name of this ReportSubreportPolicy. + User-assigned name of this sync policy. + + :return: The name of this ReportSubreportPolicy. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ReportSubreportPolicy. + User-assigned name of this sync policy. + + :param name: The name of this ReportSubreportPolicy. + :type: str + """ + + self._name = name + + @property + def source_exclude_directories(self): + """ + Gets the source_exclude_directories of this ReportSubreportPolicy. + Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. + + :return: The source_exclude_directories of this ReportSubreportPolicy. + :rtype: list[str] + """ + return self._source_exclude_directories + + @source_exclude_directories.setter + def source_exclude_directories(self, source_exclude_directories): + """ + Sets the source_exclude_directories of this ReportSubreportPolicy. + Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. + + :param source_exclude_directories: The source_exclude_directories of this ReportSubreportPolicy. + :type: list[str] + """ + + self._source_exclude_directories = source_exclude_directories + + @property + def source_include_directories(self): + """ + Gets the source_include_directories of this ReportSubreportPolicy. + Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. + + :return: The source_include_directories of this ReportSubreportPolicy. + :rtype: list[str] + """ + return self._source_include_directories + + @source_include_directories.setter + def source_include_directories(self, source_include_directories): + """ + Sets the source_include_directories of this ReportSubreportPolicy. + Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. + + :param source_include_directories: The source_include_directories of this ReportSubreportPolicy. + :type: list[str] + """ + + self._source_include_directories = source_include_directories + + @property + def source_root_path(self): + """ + Gets the source_root_path of this ReportSubreportPolicy. + The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. + + :return: The source_root_path of this ReportSubreportPolicy. + :rtype: str + """ + return self._source_root_path + + @source_root_path.setter + def source_root_path(self, source_root_path): + """ + Sets the source_root_path of this ReportSubreportPolicy. + The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. + + :param source_root_path: The source_root_path of this ReportSubreportPolicy. + :type: str + """ + + self._source_root_path = source_root_path + + @property + def target_host(self): + """ + Gets the target_host of this ReportSubreportPolicy. + Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. + + :return: The target_host of this ReportSubreportPolicy. + :rtype: str + """ + return self._target_host + + @target_host.setter + def target_host(self, target_host): + """ + Sets the target_host of this ReportSubreportPolicy. + Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. + + :param target_host: The target_host of this ReportSubreportPolicy. + :type: str + """ + + self._target_host = target_host + + @property + def target_path(self): + """ + Gets the target_path of this ReportSubreportPolicy. + Absolute filesystem path on the target cluster for the sync destination. + + :return: The target_path of this ReportSubreportPolicy. + :rtype: str + """ + return self._target_path + + @target_path.setter + def target_path(self, target_path): + """ + Sets the target_path of this ReportSubreportPolicy. + Absolute filesystem path on the target cluster for the sync destination. + + :param target_path: The target_path of this ReportSubreportPolicy. + :type: str + """ + + self._target_path = target_path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_subreport_policy_file_matching_pattern.py b/isi_sdk/models/report_subreport_policy_file_matching_pattern.py new file mode 100644 index 000000000..a87fb95bb --- /dev/null +++ b/isi_sdk/models/report_subreport_policy_file_matching_pattern.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportSubreportPolicyFileMatchingPattern(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportSubreportPolicyFileMatchingPattern - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'or_criteria': 'list[ReportSubreportPolicyFileMatchingPatternOrCriteriaItem]' + } + + self.attribute_map = { + 'or_criteria': 'or_criteria' + } + + self._or_criteria = None + + @property + def or_criteria(self): + """ + Gets the or_criteria of this ReportSubreportPolicyFileMatchingPattern. + An array containing objects with \"and_criteria\" properties, each set of and_criteria will be logically OR'ed together to create the full file matching pattern. + + :return: The or_criteria of this ReportSubreportPolicyFileMatchingPattern. + :rtype: list[ReportSubreportPolicyFileMatchingPatternOrCriteriaItem] + """ + return self._or_criteria + + @or_criteria.setter + def or_criteria(self, or_criteria): + """ + Sets the or_criteria of this ReportSubreportPolicyFileMatchingPattern. + An array containing objects with \"and_criteria\" properties, each set of and_criteria will be logically OR'ed together to create the full file matching pattern. + + :param or_criteria: The or_criteria of this ReportSubreportPolicyFileMatchingPattern. + :type: list[ReportSubreportPolicyFileMatchingPatternOrCriteriaItem] + """ + + self._or_criteria = or_criteria + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item.py b/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item.py new file mode 100644 index 000000000..ef0d135a2 --- /dev/null +++ b/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportSubreportPolicyFileMatchingPatternOrCriteriaItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportSubreportPolicyFileMatchingPatternOrCriteriaItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'and_criteria': 'list[ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem]' + } + + self.attribute_map = { + 'and_criteria': 'and_criteria' + } + + self._and_criteria = None + + @property + def and_criteria(self): + """ + Gets the and_criteria of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItem. + An array containing individual file criterion objects each describing one criterion. These are logically AND'ed together to form a set of criteria. + + :return: The and_criteria of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItem. + :rtype: list[ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem] + """ + return self._and_criteria + + @and_criteria.setter + def and_criteria(self, and_criteria): + """ + Sets the and_criteria of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItem. + An array containing individual file criterion objects each describing one criterion. These are logically AND'ed together to form a set of criteria. + + :param and_criteria: The and_criteria of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItem. + :type: list[ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem] + """ + + self._and_criteria = and_criteria + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py b/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py new file mode 100644 index 000000000..54b02cc4c --- /dev/null +++ b/isi_sdk/models/report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'attribute_exists': 'bool', + 'case_sensitive': 'bool', + 'field': 'str', + 'operator': 'str', + 'type': 'str', + 'value': 'str', + 'whole_word': 'bool' + } + + self.attribute_map = { + 'attribute_exists': 'attribute_exists', + 'case_sensitive': 'case_sensitive', + 'field': 'field', + 'operator': 'operator', + 'type': 'type', + 'value': 'value', + 'whole_word': 'whole_word' + } + + self._attribute_exists = None + self._case_sensitive = None + self._field = None + self._operator = None + self._type = None + self._value = None + self._whole_word = None + + @property + def attribute_exists(self): + """ + Gets the attribute_exists of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + For \"custom_attribute\" type criteria. The file will match as long as the attribute named by \"field\" exists. Default is true. + + :return: The attribute_exists of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :rtype: bool + """ + return self._attribute_exists + + @attribute_exists.setter + def attribute_exists(self, attribute_exists): + """ + Sets the attribute_exists of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + For \"custom_attribute\" type criteria. The file will match as long as the attribute named by \"field\" exists. Default is true. + + :param attribute_exists: The attribute_exists of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :type: bool + """ + + self._attribute_exists = attribute_exists + + @property + def case_sensitive(self): + """ + Gets the case_sensitive of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + If true, the value comparison will be case sensitive. Default is true. + + :return: The case_sensitive of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :rtype: bool + """ + return self._case_sensitive + + @case_sensitive.setter + def case_sensitive(self, case_sensitive): + """ + Sets the case_sensitive of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + If true, the value comparison will be case sensitive. Default is true. + + :param case_sensitive: The case_sensitive of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :type: bool + """ + + self._case_sensitive = case_sensitive + + @property + def field(self): + """ + Gets the field of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + The name of the file attribute to match on (only required if this is a custom_attribute type criterion). Default is an empty string \"\". + + :return: The field of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """ + Sets the field of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + The name of the file attribute to match on (only required if this is a custom_attribute type criterion). Default is an empty string \"\". + + :param field: The field of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :type: str + """ + + self._field = field + + @property + def operator(self): + """ + Gets the operator of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + How to compare the specified attribute of each file to the specified value. + + :return: The operator of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """ + Sets the operator of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + How to compare the specified attribute of each file to the specified value. + + :param operator: The operator of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :type: str + """ + allowed_values = ["==", "!=", ">", ">=", "<", "<=", "!"] + if operator not in allowed_values: + raise ValueError( + "Invalid value for `operator`, must be one of {0}" + .format(allowed_values) + ) + + self._operator = operator + + @property + def type(self): + """ + Gets the type of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + The type of this criterion, that is, which file attribute to match on. + + :return: The type of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + The type of this criterion, that is, which file attribute to match on. + + :param type: The type of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :type: str + """ + allowed_values = ["name", "path", "accessed_time", "accessed_before", "accessed_after", "birth_time", "birth_before", "birth_after", "changed_time", "changed_before", "changed_after", "size", "file_type", "posix_regex_name", "user_name", "user_id", "group_name", "group_id", "no_user", "no_group"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type + + @property + def value(self): + """ + Gets the value of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + The value to compare the specified attribute of each file to. + + :return: The value of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + The value to compare the specified attribute of each file to. + + :param value: The value of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :type: str + """ + + self._value = value + + @property + def whole_word(self): + """ + Gets the whole_word of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + If true, the attribute must match the entire word. Default is true. + + :return: The whole_word of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :rtype: bool + """ + return self._whole_word + + @whole_word.setter + def whole_word(self, whole_word): + """ + Sets the whole_word of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + If true, the attribute must match the entire word. Default is true. + + :param whole_word: The whole_word of this ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem. + :type: bool + """ + + self._whole_word = whole_word + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_subreports.py b/isi_sdk/models/report_subreports.py new file mode 100644 index 000000000..3042ef7b9 --- /dev/null +++ b/isi_sdk/models/report_subreports.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportSubreports(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportSubreports - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'subreports': 'list[ReportSubreport]' + } + + self.attribute_map = { + 'subreports': 'subreports' + } + + self._subreports = None + + @property + def subreports(self): + """ + Gets the subreports of this ReportSubreports. + + + :return: The subreports of this ReportSubreports. + :rtype: list[ReportSubreport] + """ + return self._subreports + + @subreports.setter + def subreports(self, subreports): + """ + Sets the subreports of this ReportSubreports. + + + :param subreports: The subreports of this ReportSubreports. + :type: list[ReportSubreport] + """ + + self._subreports = subreports + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/report_subreports_extended.py b/isi_sdk/models/report_subreports_extended.py new file mode 100644 index 000000000..4e3264516 --- /dev/null +++ b/isi_sdk/models/report_subreports_extended.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportSubreportsExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportSubreportsExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'subreports': 'list[ReportSubreport]', + 'resume': 'str', + 'total': 'int' + } + + self.attribute_map = { + 'subreports': 'subreports', + 'resume': 'resume', + 'total': 'total' + } + + self._subreports = None + self._resume = None + self._total = None + + @property + def subreports(self): + """ + Gets the subreports of this ReportSubreportsExtended. + + + :return: The subreports of this ReportSubreportsExtended. + :rtype: list[ReportSubreport] + """ + return self._subreports + + @subreports.setter + def subreports(self, subreports): + """ + Sets the subreports of this ReportSubreportsExtended. + + + :param subreports: The subreports of this ReportSubreportsExtended. + :type: list[ReportSubreport] + """ + + self._subreports = subreports + + @property + def resume(self): + """ + Gets the resume of this ReportSubreportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this ReportSubreportsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this ReportSubreportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this ReportSubreportsExtended. + :type: str + """ + + self._resume = resume + + @property + def total(self): + """ + Gets the total of this ReportSubreportsExtended. + Total number of items available. + + :return: The total of this ReportSubreportsExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this ReportSubreportsExtended. + Total number of items available. + + :param total: The total of this ReportSubreportsExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/reports_report_subreports.py b/isi_sdk/models/reports_report_subreports.py new file mode 100644 index 000000000..47ea57e9f --- /dev/null +++ b/isi_sdk/models/reports_report_subreports.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportsReportSubreports(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportsReportSubreports - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'subreports': 'list[ReportsReportSubreportsSubreport]' + } + + self.attribute_map = { + 'subreports': 'subreports' + } + + self._subreports = None + + @property + def subreports(self): + """ + Gets the subreports of this ReportsReportSubreports. + + + :return: The subreports of this ReportsReportSubreports. + :rtype: list[ReportsReportSubreportsSubreport] + """ + return self._subreports + + @subreports.setter + def subreports(self, subreports): + """ + Sets the subreports of this ReportsReportSubreports. + + + :param subreports: The subreports of this ReportsReportSubreports. + :type: list[ReportsReportSubreportsSubreport] + """ + + self._subreports = subreports + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/reports_report_subreports_extended.py b/isi_sdk/models/reports_report_subreports_extended.py new file mode 100644 index 000000000..81356cf2c --- /dev/null +++ b/isi_sdk/models/reports_report_subreports_extended.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportsReportSubreportsExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportsReportSubreportsExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'subreports': 'list[ReportsReportSubreportsSubreport]', + 'resume': 'str', + 'total': 'int' + } + + self.attribute_map = { + 'subreports': 'subreports', + 'resume': 'resume', + 'total': 'total' + } + + self._subreports = None + self._resume = None + self._total = None + + @property + def subreports(self): + """ + Gets the subreports of this ReportsReportSubreportsExtended. + + + :return: The subreports of this ReportsReportSubreportsExtended. + :rtype: list[ReportsReportSubreportsSubreport] + """ + return self._subreports + + @subreports.setter + def subreports(self, subreports): + """ + Sets the subreports of this ReportsReportSubreportsExtended. + + + :param subreports: The subreports of this ReportsReportSubreportsExtended. + :type: list[ReportsReportSubreportsSubreport] + """ + + self._subreports = subreports + + @property + def resume(self): + """ + Gets the resume of this ReportsReportSubreportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this ReportsReportSubreportsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this ReportsReportSubreportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this ReportsReportSubreportsExtended. + :type: str + """ + + self._resume = resume + + @property + def total(self): + """ + Gets the total of this ReportsReportSubreportsExtended. + Total number of items available. + + :return: The total of this ReportsReportSubreportsExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this ReportsReportSubreportsExtended. + Total number of items available. + + :param total: The total of this ReportsReportSubreportsExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/reports_report_subreports_subreport.py b/isi_sdk/models/reports_report_subreports_subreport.py new file mode 100644 index 000000000..f90418c49 --- /dev/null +++ b/isi_sdk/models/reports_report_subreports_subreport.py @@ -0,0 +1,2350 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ReportsReportSubreportsSubreport(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ReportsReportSubreportsSubreport - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'action': 'str', + 'ads_streams_replicated': 'int', + 'block_specs_replicated': 'int', + 'bytes_recoverable': 'int', + 'bytes_transferred': 'int', + 'char_specs_replicated': 'int', + 'corrected_lins': 'int', + 'dead_node': 'bool', + 'directories_replicated': 'int', + 'dirs_changed': 'int', + 'dirs_deleted': 'int', + 'dirs_moved': 'int', + 'dirs_new': 'int', + 'duration': 'int', + 'end_time': 'int', + 'error': 'str', + 'error_checksum_files_skipped': 'int', + 'error_io_files_skipped': 'int', + 'error_net_files_skipped': 'int', + 'errors': 'list[str]', + 'failed_chunks': 'int', + 'fifos_replicated': 'int', + 'file_data_bytes': 'int', + 'files_changed': 'int', + 'files_linked': 'int', + 'files_new': 'int', + 'files_selected': 'int', + 'files_transferred': 'int', + 'files_unlinked': 'int', + 'files_with_ads_replicated': 'int', + 'flipped_lins': 'int', + 'hard_links_replicated': 'int', + 'hash_exceptions_fixed': 'int', + 'hash_exceptions_found': 'int', + 'id': 'str', + 'job_id': 'int', + 'lins_total': 'int', + 'network_bytes_to_source': 'int', + 'network_bytes_to_target': 'int', + 'new_files_replicated': 'int', + 'num_retransmitted_files': 'int', + 'phases': 'list[ReportSubreportPhase]', + 'policy_id': 'str', + 'policy_name': 'str', + 'regular_files_replicated': 'int', + 'resynced_lins': 'int', + 'retransmitted_files': 'list[str]', + 'retry': 'int', + 'running_chunks': 'int', + 'sockets_replicated': 'int', + 'source_bytes_recovered': 'int', + 'source_directories_created': 'int', + 'source_directories_deleted': 'int', + 'source_directories_linked': 'int', + 'source_directories_unlinked': 'int', + 'source_directories_visited': 'int', + 'source_files_deleted': 'int', + 'source_files_linked': 'int', + 'source_files_unlinked': 'int', + 'source_host': 'str', + 'sparse_data_bytes': 'int', + 'start_time': 'int', + 'state': 'str', + 'succeeded_chunks': 'int', + 'symlinks_replicated': 'int', + 'sync_type': 'str', + 'target_bytes_recovered': 'int', + 'target_directories_created': 'int', + 'target_directories_deleted': 'int', + 'target_directories_linked': 'int', + 'target_directories_unlinked': 'int', + 'target_files_deleted': 'int', + 'target_files_linked': 'int', + 'target_files_unlinked': 'int', + 'target_path': 'str', + 'target_snapshots': 'list[str]', + 'total_chunks': 'int', + 'total_data_bytes': 'int', + 'total_files': 'int', + 'total_network_bytes': 'int', + 'total_phases': 'int', + 'unchanged_data_bytes': 'int', + 'up_to_date_files_skipped': 'int', + 'updated_files_replicated': 'int', + 'user_conflict_files_skipped': 'int', + 'warnings': 'list[str]' + } + + self.attribute_map = { + 'action': 'action', + 'ads_streams_replicated': 'ads_streams_replicated', + 'block_specs_replicated': 'block_specs_replicated', + 'bytes_recoverable': 'bytes_recoverable', + 'bytes_transferred': 'bytes_transferred', + 'char_specs_replicated': 'char_specs_replicated', + 'corrected_lins': 'corrected_lins', + 'dead_node': 'dead_node', + 'directories_replicated': 'directories_replicated', + 'dirs_changed': 'dirs_changed', + 'dirs_deleted': 'dirs_deleted', + 'dirs_moved': 'dirs_moved', + 'dirs_new': 'dirs_new', + 'duration': 'duration', + 'end_time': 'end_time', + 'error': 'error', + 'error_checksum_files_skipped': 'error_checksum_files_skipped', + 'error_io_files_skipped': 'error_io_files_skipped', + 'error_net_files_skipped': 'error_net_files_skipped', + 'errors': 'errors', + 'failed_chunks': 'failed_chunks', + 'fifos_replicated': 'fifos_replicated', + 'file_data_bytes': 'file_data_bytes', + 'files_changed': 'files_changed', + 'files_linked': 'files_linked', + 'files_new': 'files_new', + 'files_selected': 'files_selected', + 'files_transferred': 'files_transferred', + 'files_unlinked': 'files_unlinked', + 'files_with_ads_replicated': 'files_with_ads_replicated', + 'flipped_lins': 'flipped_lins', + 'hard_links_replicated': 'hard_links_replicated', + 'hash_exceptions_fixed': 'hash_exceptions_fixed', + 'hash_exceptions_found': 'hash_exceptions_found', + 'id': 'id', + 'job_id': 'job_id', + 'lins_total': 'lins_total', + 'network_bytes_to_source': 'network_bytes_to_source', + 'network_bytes_to_target': 'network_bytes_to_target', + 'new_files_replicated': 'new_files_replicated', + 'num_retransmitted_files': 'num_retransmitted_files', + 'phases': 'phases', + 'policy_id': 'policy_id', + 'policy_name': 'policy_name', + 'regular_files_replicated': 'regular_files_replicated', + 'resynced_lins': 'resynced_lins', + 'retransmitted_files': 'retransmitted_files', + 'retry': 'retry', + 'running_chunks': 'running_chunks', + 'sockets_replicated': 'sockets_replicated', + 'source_bytes_recovered': 'source_bytes_recovered', + 'source_directories_created': 'source_directories_created', + 'source_directories_deleted': 'source_directories_deleted', + 'source_directories_linked': 'source_directories_linked', + 'source_directories_unlinked': 'source_directories_unlinked', + 'source_directories_visited': 'source_directories_visited', + 'source_files_deleted': 'source_files_deleted', + 'source_files_linked': 'source_files_linked', + 'source_files_unlinked': 'source_files_unlinked', + 'source_host': 'source_host', + 'sparse_data_bytes': 'sparse_data_bytes', + 'start_time': 'start_time', + 'state': 'state', + 'succeeded_chunks': 'succeeded_chunks', + 'symlinks_replicated': 'symlinks_replicated', + 'sync_type': 'sync_type', + 'target_bytes_recovered': 'target_bytes_recovered', + 'target_directories_created': 'target_directories_created', + 'target_directories_deleted': 'target_directories_deleted', + 'target_directories_linked': 'target_directories_linked', + 'target_directories_unlinked': 'target_directories_unlinked', + 'target_files_deleted': 'target_files_deleted', + 'target_files_linked': 'target_files_linked', + 'target_files_unlinked': 'target_files_unlinked', + 'target_path': 'target_path', + 'target_snapshots': 'target_snapshots', + 'total_chunks': 'total_chunks', + 'total_data_bytes': 'total_data_bytes', + 'total_files': 'total_files', + 'total_network_bytes': 'total_network_bytes', + 'total_phases': 'total_phases', + 'unchanged_data_bytes': 'unchanged_data_bytes', + 'up_to_date_files_skipped': 'up_to_date_files_skipped', + 'updated_files_replicated': 'updated_files_replicated', + 'user_conflict_files_skipped': 'user_conflict_files_skipped', + 'warnings': 'warnings' + } + + self._action = None + self._ads_streams_replicated = None + self._block_specs_replicated = None + self._bytes_recoverable = None + self._bytes_transferred = None + self._char_specs_replicated = None + self._corrected_lins = None + self._dead_node = None + self._directories_replicated = None + self._dirs_changed = None + self._dirs_deleted = None + self._dirs_moved = None + self._dirs_new = None + self._duration = None + self._end_time = None + self._error = None + self._error_checksum_files_skipped = None + self._error_io_files_skipped = None + self._error_net_files_skipped = None + self._errors = None + self._failed_chunks = None + self._fifos_replicated = None + self._file_data_bytes = None + self._files_changed = None + self._files_linked = None + self._files_new = None + self._files_selected = None + self._files_transferred = None + self._files_unlinked = None + self._files_with_ads_replicated = None + self._flipped_lins = None + self._hard_links_replicated = None + self._hash_exceptions_fixed = None + self._hash_exceptions_found = None + self._id = None + self._job_id = None + self._lins_total = None + self._network_bytes_to_source = None + self._network_bytes_to_target = None + self._new_files_replicated = None + self._num_retransmitted_files = None + self._phases = None + self._policy_id = None + self._policy_name = None + self._regular_files_replicated = None + self._resynced_lins = None + self._retransmitted_files = None + self._retry = None + self._running_chunks = None + self._sockets_replicated = None + self._source_bytes_recovered = None + self._source_directories_created = None + self._source_directories_deleted = None + self._source_directories_linked = None + self._source_directories_unlinked = None + self._source_directories_visited = None + self._source_files_deleted = None + self._source_files_linked = None + self._source_files_unlinked = None + self._source_host = None + self._sparse_data_bytes = None + self._start_time = None + self._state = None + self._succeeded_chunks = None + self._symlinks_replicated = None + self._sync_type = None + self._target_bytes_recovered = None + self._target_directories_created = None + self._target_directories_deleted = None + self._target_directories_linked = None + self._target_directories_unlinked = None + self._target_files_deleted = None + self._target_files_linked = None + self._target_files_unlinked = None + self._target_path = None + self._target_snapshots = None + self._total_chunks = None + self._total_data_bytes = None + self._total_files = None + self._total_network_bytes = None + self._total_phases = None + self._unchanged_data_bytes = None + self._up_to_date_files_skipped = None + self._updated_files_replicated = None + self._user_conflict_files_skipped = None + self._warnings = None + + @property + def action(self): + """ + Gets the action of this ReportsReportSubreportsSubreport. + The action to be taken by this job. + + :return: The action of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this ReportsReportSubreportsSubreport. + The action to be taken by this job. + + :param action: The action of this ReportsReportSubreportsSubreport. + :type: str + """ + allowed_values = ["resync_prep", "allow_write", "allow_write_revert", "test", "run"] + if action not in allowed_values: + raise ValueError( + "Invalid value for `action`, must be one of {0}" + .format(allowed_values) + ) + + self._action = action + + @property + def ads_streams_replicated(self): + """ + Gets the ads_streams_replicated of this ReportsReportSubreportsSubreport. + The number of ads streams replicated by this job. + + :return: The ads_streams_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._ads_streams_replicated + + @ads_streams_replicated.setter + def ads_streams_replicated(self, ads_streams_replicated): + """ + Sets the ads_streams_replicated of this ReportsReportSubreportsSubreport. + The number of ads streams replicated by this job. + + :param ads_streams_replicated: The ads_streams_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._ads_streams_replicated = ads_streams_replicated + + @property + def block_specs_replicated(self): + """ + Gets the block_specs_replicated of this ReportsReportSubreportsSubreport. + The number of block specs replicated by this job. + + :return: The block_specs_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._block_specs_replicated + + @block_specs_replicated.setter + def block_specs_replicated(self, block_specs_replicated): + """ + Sets the block_specs_replicated of this ReportsReportSubreportsSubreport. + The number of block specs replicated by this job. + + :param block_specs_replicated: The block_specs_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._block_specs_replicated = block_specs_replicated + + @property + def bytes_recoverable(self): + """ + Gets the bytes_recoverable of this ReportsReportSubreportsSubreport. + The number of bytes recoverable by this job. + + :return: The bytes_recoverable of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._bytes_recoverable + + @bytes_recoverable.setter + def bytes_recoverable(self, bytes_recoverable): + """ + Sets the bytes_recoverable of this ReportsReportSubreportsSubreport. + The number of bytes recoverable by this job. + + :param bytes_recoverable: The bytes_recoverable of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._bytes_recoverable = bytes_recoverable + + @property + def bytes_transferred(self): + """ + Gets the bytes_transferred of this ReportsReportSubreportsSubreport. + The number of bytes that have been transferred by this job. + + :return: The bytes_transferred of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._bytes_transferred + + @bytes_transferred.setter + def bytes_transferred(self, bytes_transferred): + """ + Sets the bytes_transferred of this ReportsReportSubreportsSubreport. + The number of bytes that have been transferred by this job. + + :param bytes_transferred: The bytes_transferred of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._bytes_transferred = bytes_transferred + + @property + def char_specs_replicated(self): + """ + Gets the char_specs_replicated of this ReportsReportSubreportsSubreport. + The number of char specs replicated by this job. + + :return: The char_specs_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._char_specs_replicated + + @char_specs_replicated.setter + def char_specs_replicated(self, char_specs_replicated): + """ + Sets the char_specs_replicated of this ReportsReportSubreportsSubreport. + The number of char specs replicated by this job. + + :param char_specs_replicated: The char_specs_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._char_specs_replicated = char_specs_replicated + + @property + def corrected_lins(self): + """ + Gets the corrected_lins of this ReportsReportSubreportsSubreport. + The number of LINs corrected by this job. + + :return: The corrected_lins of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._corrected_lins + + @corrected_lins.setter + def corrected_lins(self, corrected_lins): + """ + Sets the corrected_lins of this ReportsReportSubreportsSubreport. + The number of LINs corrected by this job. + + :param corrected_lins: The corrected_lins of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._corrected_lins = corrected_lins + + @property + def dead_node(self): + """ + Gets the dead_node of this ReportsReportSubreportsSubreport. + This field is true if the node running this job is dead. + + :return: The dead_node of this ReportsReportSubreportsSubreport. + :rtype: bool + """ + return self._dead_node + + @dead_node.setter + def dead_node(self, dead_node): + """ + Sets the dead_node of this ReportsReportSubreportsSubreport. + This field is true if the node running this job is dead. + + :param dead_node: The dead_node of this ReportsReportSubreportsSubreport. + :type: bool + """ + + self._dead_node = dead_node + + @property + def directories_replicated(self): + """ + Gets the directories_replicated of this ReportsReportSubreportsSubreport. + The number of directories replicated. + + :return: The directories_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._directories_replicated + + @directories_replicated.setter + def directories_replicated(self, directories_replicated): + """ + Sets the directories_replicated of this ReportsReportSubreportsSubreport. + The number of directories replicated. + + :param directories_replicated: The directories_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._directories_replicated = directories_replicated + + @property + def dirs_changed(self): + """ + Gets the dirs_changed of this ReportsReportSubreportsSubreport. + The number of directories changed by this job. + + :return: The dirs_changed of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._dirs_changed + + @dirs_changed.setter + def dirs_changed(self, dirs_changed): + """ + Sets the dirs_changed of this ReportsReportSubreportsSubreport. + The number of directories changed by this job. + + :param dirs_changed: The dirs_changed of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._dirs_changed = dirs_changed + + @property + def dirs_deleted(self): + """ + Gets the dirs_deleted of this ReportsReportSubreportsSubreport. + The number of directories deleted by this job. + + :return: The dirs_deleted of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._dirs_deleted + + @dirs_deleted.setter + def dirs_deleted(self, dirs_deleted): + """ + Sets the dirs_deleted of this ReportsReportSubreportsSubreport. + The number of directories deleted by this job. + + :param dirs_deleted: The dirs_deleted of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._dirs_deleted = dirs_deleted + + @property + def dirs_moved(self): + """ + Gets the dirs_moved of this ReportsReportSubreportsSubreport. + The number of directories moved by this job. + + :return: The dirs_moved of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._dirs_moved + + @dirs_moved.setter + def dirs_moved(self, dirs_moved): + """ + Sets the dirs_moved of this ReportsReportSubreportsSubreport. + The number of directories moved by this job. + + :param dirs_moved: The dirs_moved of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._dirs_moved = dirs_moved + + @property + def dirs_new(self): + """ + Gets the dirs_new of this ReportsReportSubreportsSubreport. + The number of directories created by this job. + + :return: The dirs_new of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._dirs_new + + @dirs_new.setter + def dirs_new(self, dirs_new): + """ + Sets the dirs_new of this ReportsReportSubreportsSubreport. + The number of directories created by this job. + + :param dirs_new: The dirs_new of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._dirs_new = dirs_new + + @property + def duration(self): + """ + Gets the duration of this ReportsReportSubreportsSubreport. + The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. + + :return: The duration of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """ + Sets the duration of this ReportsReportSubreportsSubreport. + The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. + + :param duration: The duration of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._duration = duration + + @property + def end_time(self): + """ + Gets the end_time of this ReportsReportSubreportsSubreport. + The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. + + :return: The end_time of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """ + Sets the end_time of this ReportsReportSubreportsSubreport. + The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. + + :param end_time: The end_time of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._end_time = end_time + + @property + def error(self): + """ + Gets the error of this ReportsReportSubreportsSubreport. + The primary error message for this job. + + :return: The error of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this ReportsReportSubreportsSubreport. + The primary error message for this job. + + :param error: The error of this ReportsReportSubreportsSubreport. + :type: str + """ + + self._error = error + + @property + def error_checksum_files_skipped(self): + """ + Gets the error_checksum_files_skipped of this ReportsReportSubreportsSubreport. + The number of files with checksum errors skipped by this job. + + :return: The error_checksum_files_skipped of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._error_checksum_files_skipped + + @error_checksum_files_skipped.setter + def error_checksum_files_skipped(self, error_checksum_files_skipped): + """ + Sets the error_checksum_files_skipped of this ReportsReportSubreportsSubreport. + The number of files with checksum errors skipped by this job. + + :param error_checksum_files_skipped: The error_checksum_files_skipped of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._error_checksum_files_skipped = error_checksum_files_skipped + + @property + def error_io_files_skipped(self): + """ + Gets the error_io_files_skipped of this ReportsReportSubreportsSubreport. + The number of files with io errors skipped by this job. + + :return: The error_io_files_skipped of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._error_io_files_skipped + + @error_io_files_skipped.setter + def error_io_files_skipped(self, error_io_files_skipped): + """ + Sets the error_io_files_skipped of this ReportsReportSubreportsSubreport. + The number of files with io errors skipped by this job. + + :param error_io_files_skipped: The error_io_files_skipped of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._error_io_files_skipped = error_io_files_skipped + + @property + def error_net_files_skipped(self): + """ + Gets the error_net_files_skipped of this ReportsReportSubreportsSubreport. + The number of files with network errors skipped by this job. + + :return: The error_net_files_skipped of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._error_net_files_skipped + + @error_net_files_skipped.setter + def error_net_files_skipped(self, error_net_files_skipped): + """ + Sets the error_net_files_skipped of this ReportsReportSubreportsSubreport. + The number of files with network errors skipped by this job. + + :param error_net_files_skipped: The error_net_files_skipped of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._error_net_files_skipped = error_net_files_skipped + + @property + def errors(self): + """ + Gets the errors of this ReportsReportSubreportsSubreport. + A list of error messages for this job. + + :return: The errors of this ReportsReportSubreportsSubreport. + :rtype: list[str] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """ + Sets the errors of this ReportsReportSubreportsSubreport. + A list of error messages for this job. + + :param errors: The errors of this ReportsReportSubreportsSubreport. + :type: list[str] + """ + + self._errors = errors + + @property + def failed_chunks(self): + """ + Gets the failed_chunks of this ReportsReportSubreportsSubreport. + Tyhe number of data chunks that failed transmission. + + :return: The failed_chunks of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._failed_chunks + + @failed_chunks.setter + def failed_chunks(self, failed_chunks): + """ + Sets the failed_chunks of this ReportsReportSubreportsSubreport. + Tyhe number of data chunks that failed transmission. + + :param failed_chunks: The failed_chunks of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._failed_chunks = failed_chunks + + @property + def fifos_replicated(self): + """ + Gets the fifos_replicated of this ReportsReportSubreportsSubreport. + The number of fifos replicated by this job. + + :return: The fifos_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._fifos_replicated + + @fifos_replicated.setter + def fifos_replicated(self, fifos_replicated): + """ + Sets the fifos_replicated of this ReportsReportSubreportsSubreport. + The number of fifos replicated by this job. + + :param fifos_replicated: The fifos_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._fifos_replicated = fifos_replicated + + @property + def file_data_bytes(self): + """ + Gets the file_data_bytes of this ReportsReportSubreportsSubreport. + The number of bytes transferred that belong to files. + + :return: The file_data_bytes of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._file_data_bytes + + @file_data_bytes.setter + def file_data_bytes(self, file_data_bytes): + """ + Sets the file_data_bytes of this ReportsReportSubreportsSubreport. + The number of bytes transferred that belong to files. + + :param file_data_bytes: The file_data_bytes of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._file_data_bytes = file_data_bytes + + @property + def files_changed(self): + """ + Gets the files_changed of this ReportsReportSubreportsSubreport. + The number of files changed by this job. + + :return: The files_changed of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._files_changed + + @files_changed.setter + def files_changed(self, files_changed): + """ + Sets the files_changed of this ReportsReportSubreportsSubreport. + The number of files changed by this job. + + :param files_changed: The files_changed of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._files_changed = files_changed + + @property + def files_linked(self): + """ + Gets the files_linked of this ReportsReportSubreportsSubreport. + The number of files linked by this job. + + :return: The files_linked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._files_linked + + @files_linked.setter + def files_linked(self, files_linked): + """ + Sets the files_linked of this ReportsReportSubreportsSubreport. + The number of files linked by this job. + + :param files_linked: The files_linked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._files_linked = files_linked + + @property + def files_new(self): + """ + Gets the files_new of this ReportsReportSubreportsSubreport. + The number of files created by this job. + + :return: The files_new of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._files_new + + @files_new.setter + def files_new(self, files_new): + """ + Sets the files_new of this ReportsReportSubreportsSubreport. + The number of files created by this job. + + :param files_new: The files_new of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._files_new = files_new + + @property + def files_selected(self): + """ + Gets the files_selected of this ReportsReportSubreportsSubreport. + The number of files selected by this job. + + :return: The files_selected of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._files_selected + + @files_selected.setter + def files_selected(self, files_selected): + """ + Sets the files_selected of this ReportsReportSubreportsSubreport. + The number of files selected by this job. + + :param files_selected: The files_selected of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._files_selected = files_selected + + @property + def files_transferred(self): + """ + Gets the files_transferred of this ReportsReportSubreportsSubreport. + The number of files transferred by this job. + + :return: The files_transferred of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._files_transferred + + @files_transferred.setter + def files_transferred(self, files_transferred): + """ + Sets the files_transferred of this ReportsReportSubreportsSubreport. + The number of files transferred by this job. + + :param files_transferred: The files_transferred of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._files_transferred = files_transferred + + @property + def files_unlinked(self): + """ + Gets the files_unlinked of this ReportsReportSubreportsSubreport. + The number of files unlinked by this job. + + :return: The files_unlinked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._files_unlinked + + @files_unlinked.setter + def files_unlinked(self, files_unlinked): + """ + Sets the files_unlinked of this ReportsReportSubreportsSubreport. + The number of files unlinked by this job. + + :param files_unlinked: The files_unlinked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._files_unlinked = files_unlinked + + @property + def files_with_ads_replicated(self): + """ + Gets the files_with_ads_replicated of this ReportsReportSubreportsSubreport. + The number of files with ads replicated by this job. + + :return: The files_with_ads_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._files_with_ads_replicated + + @files_with_ads_replicated.setter + def files_with_ads_replicated(self, files_with_ads_replicated): + """ + Sets the files_with_ads_replicated of this ReportsReportSubreportsSubreport. + The number of files with ads replicated by this job. + + :param files_with_ads_replicated: The files_with_ads_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._files_with_ads_replicated = files_with_ads_replicated + + @property + def flipped_lins(self): + """ + Gets the flipped_lins of this ReportsReportSubreportsSubreport. + The number of LINs flipped by this job. + + :return: The flipped_lins of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._flipped_lins + + @flipped_lins.setter + def flipped_lins(self, flipped_lins): + """ + Sets the flipped_lins of this ReportsReportSubreportsSubreport. + The number of LINs flipped by this job. + + :param flipped_lins: The flipped_lins of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._flipped_lins = flipped_lins + + @property + def hard_links_replicated(self): + """ + Gets the hard_links_replicated of this ReportsReportSubreportsSubreport. + The number of hard links replicated by this job. + + :return: The hard_links_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._hard_links_replicated + + @hard_links_replicated.setter + def hard_links_replicated(self, hard_links_replicated): + """ + Sets the hard_links_replicated of this ReportsReportSubreportsSubreport. + The number of hard links replicated by this job. + + :param hard_links_replicated: The hard_links_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._hard_links_replicated = hard_links_replicated + + @property + def hash_exceptions_fixed(self): + """ + Gets the hash_exceptions_fixed of this ReportsReportSubreportsSubreport. + The number of hash exceptions fixed by this job. + + :return: The hash_exceptions_fixed of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._hash_exceptions_fixed + + @hash_exceptions_fixed.setter + def hash_exceptions_fixed(self, hash_exceptions_fixed): + """ + Sets the hash_exceptions_fixed of this ReportsReportSubreportsSubreport. + The number of hash exceptions fixed by this job. + + :param hash_exceptions_fixed: The hash_exceptions_fixed of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._hash_exceptions_fixed = hash_exceptions_fixed + + @property + def hash_exceptions_found(self): + """ + Gets the hash_exceptions_found of this ReportsReportSubreportsSubreport. + The number of hash exceptions found by this job. + + :return: The hash_exceptions_found of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._hash_exceptions_found + + @hash_exceptions_found.setter + def hash_exceptions_found(self, hash_exceptions_found): + """ + Sets the hash_exceptions_found of this ReportsReportSubreportsSubreport. + The number of hash exceptions found by this job. + + :param hash_exceptions_found: The hash_exceptions_found of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._hash_exceptions_found = hash_exceptions_found + + @property + def id(self): + """ + Gets the id of this ReportsReportSubreportsSubreport. + A unique identifier for this object. + + :return: The id of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this ReportsReportSubreportsSubreport. + A unique identifier for this object. + + :param id: The id of this ReportsReportSubreportsSubreport. + :type: str + """ + + self._id = id + + @property + def job_id(self): + """ + Gets the job_id of this ReportsReportSubreportsSubreport. + The ID of the job. + + :return: The job_id of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """ + Sets the job_id of this ReportsReportSubreportsSubreport. + The ID of the job. + + :param job_id: The job_id of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._job_id = job_id + + @property + def lins_total(self): + """ + Gets the lins_total of this ReportsReportSubreportsSubreport. + The number of LINs transferred by this job. + + :return: The lins_total of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._lins_total + + @lins_total.setter + def lins_total(self, lins_total): + """ + Sets the lins_total of this ReportsReportSubreportsSubreport. + The number of LINs transferred by this job. + + :param lins_total: The lins_total of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._lins_total = lins_total + + @property + def network_bytes_to_source(self): + """ + Gets the network_bytes_to_source of this ReportsReportSubreportsSubreport. + The total number of bytes sent to the source by this job. + + :return: The network_bytes_to_source of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._network_bytes_to_source + + @network_bytes_to_source.setter + def network_bytes_to_source(self, network_bytes_to_source): + """ + Sets the network_bytes_to_source of this ReportsReportSubreportsSubreport. + The total number of bytes sent to the source by this job. + + :param network_bytes_to_source: The network_bytes_to_source of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._network_bytes_to_source = network_bytes_to_source + + @property + def network_bytes_to_target(self): + """ + Gets the network_bytes_to_target of this ReportsReportSubreportsSubreport. + The total number of bytes sent to the target by this job. + + :return: The network_bytes_to_target of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._network_bytes_to_target + + @network_bytes_to_target.setter + def network_bytes_to_target(self, network_bytes_to_target): + """ + Sets the network_bytes_to_target of this ReportsReportSubreportsSubreport. + The total number of bytes sent to the target by this job. + + :param network_bytes_to_target: The network_bytes_to_target of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._network_bytes_to_target = network_bytes_to_target + + @property + def new_files_replicated(self): + """ + Gets the new_files_replicated of this ReportsReportSubreportsSubreport. + The number of new files replicated by this job. + + :return: The new_files_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._new_files_replicated + + @new_files_replicated.setter + def new_files_replicated(self, new_files_replicated): + """ + Sets the new_files_replicated of this ReportsReportSubreportsSubreport. + The number of new files replicated by this job. + + :param new_files_replicated: The new_files_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._new_files_replicated = new_files_replicated + + @property + def num_retransmitted_files(self): + """ + Gets the num_retransmitted_files of this ReportsReportSubreportsSubreport. + The number of files that have been retransmitted by this job. + + :return: The num_retransmitted_files of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._num_retransmitted_files + + @num_retransmitted_files.setter + def num_retransmitted_files(self, num_retransmitted_files): + """ + Sets the num_retransmitted_files of this ReportsReportSubreportsSubreport. + The number of files that have been retransmitted by this job. + + :param num_retransmitted_files: The num_retransmitted_files of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._num_retransmitted_files = num_retransmitted_files + + @property + def phases(self): + """ + Gets the phases of this ReportsReportSubreportsSubreport. + Data for each phase of this job. + + :return: The phases of this ReportsReportSubreportsSubreport. + :rtype: list[ReportSubreportPhase] + """ + return self._phases + + @phases.setter + def phases(self, phases): + """ + Sets the phases of this ReportsReportSubreportsSubreport. + Data for each phase of this job. + + :param phases: The phases of this ReportsReportSubreportsSubreport. + :type: list[ReportSubreportPhase] + """ + + self._phases = phases + + @property + def policy_id(self): + """ + Gets the policy_id of this ReportsReportSubreportsSubreport. + The ID of the policy. + + :return: The policy_id of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """ + Sets the policy_id of this ReportsReportSubreportsSubreport. + The ID of the policy. + + :param policy_id: The policy_id of this ReportsReportSubreportsSubreport. + :type: str + """ + + self._policy_id = policy_id + + @property + def policy_name(self): + """ + Gets the policy_name of this ReportsReportSubreportsSubreport. + The name of the policy. + + :return: The policy_name of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """ + Sets the policy_name of this ReportsReportSubreportsSubreport. + The name of the policy. + + :param policy_name: The policy_name of this ReportsReportSubreportsSubreport. + :type: str + """ + + self._policy_name = policy_name + + @property + def regular_files_replicated(self): + """ + Gets the regular_files_replicated of this ReportsReportSubreportsSubreport. + The number of regular files replicated by this job. + + :return: The regular_files_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._regular_files_replicated + + @regular_files_replicated.setter + def regular_files_replicated(self, regular_files_replicated): + """ + Sets the regular_files_replicated of this ReportsReportSubreportsSubreport. + The number of regular files replicated by this job. + + :param regular_files_replicated: The regular_files_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._regular_files_replicated = regular_files_replicated + + @property + def resynced_lins(self): + """ + Gets the resynced_lins of this ReportsReportSubreportsSubreport. + The number of LINs resynched by this job. + + :return: The resynced_lins of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._resynced_lins + + @resynced_lins.setter + def resynced_lins(self, resynced_lins): + """ + Sets the resynced_lins of this ReportsReportSubreportsSubreport. + The number of LINs resynched by this job. + + :param resynced_lins: The resynced_lins of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._resynced_lins = resynced_lins + + @property + def retransmitted_files(self): + """ + Gets the retransmitted_files of this ReportsReportSubreportsSubreport. + The files that have been retransmitted by this job. + + :return: The retransmitted_files of this ReportsReportSubreportsSubreport. + :rtype: list[str] + """ + return self._retransmitted_files + + @retransmitted_files.setter + def retransmitted_files(self, retransmitted_files): + """ + Sets the retransmitted_files of this ReportsReportSubreportsSubreport. + The files that have been retransmitted by this job. + + :param retransmitted_files: The retransmitted_files of this ReportsReportSubreportsSubreport. + :type: list[str] + """ + + self._retransmitted_files = retransmitted_files + + @property + def retry(self): + """ + Gets the retry of this ReportsReportSubreportsSubreport. + The number of times the job has been retried. + + :return: The retry of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._retry + + @retry.setter + def retry(self, retry): + """ + Sets the retry of this ReportsReportSubreportsSubreport. + The number of times the job has been retried. + + :param retry: The retry of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._retry = retry + + @property + def running_chunks(self): + """ + Gets the running_chunks of this ReportsReportSubreportsSubreport. + The number of data chunks currently being transmitted. + + :return: The running_chunks of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._running_chunks + + @running_chunks.setter + def running_chunks(self, running_chunks): + """ + Sets the running_chunks of this ReportsReportSubreportsSubreport. + The number of data chunks currently being transmitted. + + :param running_chunks: The running_chunks of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._running_chunks = running_chunks + + @property + def sockets_replicated(self): + """ + Gets the sockets_replicated of this ReportsReportSubreportsSubreport. + The number of sockets replicated by this job. + + :return: The sockets_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._sockets_replicated + + @sockets_replicated.setter + def sockets_replicated(self, sockets_replicated): + """ + Sets the sockets_replicated of this ReportsReportSubreportsSubreport. + The number of sockets replicated by this job. + + :param sockets_replicated: The sockets_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._sockets_replicated = sockets_replicated + + @property + def source_bytes_recovered(self): + """ + Gets the source_bytes_recovered of this ReportsReportSubreportsSubreport. + The number of bytes recovered on the source. + + :return: The source_bytes_recovered of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_bytes_recovered + + @source_bytes_recovered.setter + def source_bytes_recovered(self, source_bytes_recovered): + """ + Sets the source_bytes_recovered of this ReportsReportSubreportsSubreport. + The number of bytes recovered on the source. + + :param source_bytes_recovered: The source_bytes_recovered of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_bytes_recovered = source_bytes_recovered + + @property + def source_directories_created(self): + """ + Gets the source_directories_created of this ReportsReportSubreportsSubreport. + The number of directories created on the source. + + :return: The source_directories_created of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_directories_created + + @source_directories_created.setter + def source_directories_created(self, source_directories_created): + """ + Sets the source_directories_created of this ReportsReportSubreportsSubreport. + The number of directories created on the source. + + :param source_directories_created: The source_directories_created of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_directories_created = source_directories_created + + @property + def source_directories_deleted(self): + """ + Gets the source_directories_deleted of this ReportsReportSubreportsSubreport. + The number of directories deleted on the source. + + :return: The source_directories_deleted of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_directories_deleted + + @source_directories_deleted.setter + def source_directories_deleted(self, source_directories_deleted): + """ + Sets the source_directories_deleted of this ReportsReportSubreportsSubreport. + The number of directories deleted on the source. + + :param source_directories_deleted: The source_directories_deleted of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_directories_deleted = source_directories_deleted + + @property + def source_directories_linked(self): + """ + Gets the source_directories_linked of this ReportsReportSubreportsSubreport. + The number of directories linked on the source. + + :return: The source_directories_linked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_directories_linked + + @source_directories_linked.setter + def source_directories_linked(self, source_directories_linked): + """ + Sets the source_directories_linked of this ReportsReportSubreportsSubreport. + The number of directories linked on the source. + + :param source_directories_linked: The source_directories_linked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_directories_linked = source_directories_linked + + @property + def source_directories_unlinked(self): + """ + Gets the source_directories_unlinked of this ReportsReportSubreportsSubreport. + The number of directories unlinked on the source. + + :return: The source_directories_unlinked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_directories_unlinked + + @source_directories_unlinked.setter + def source_directories_unlinked(self, source_directories_unlinked): + """ + Sets the source_directories_unlinked of this ReportsReportSubreportsSubreport. + The number of directories unlinked on the source. + + :param source_directories_unlinked: The source_directories_unlinked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_directories_unlinked = source_directories_unlinked + + @property + def source_directories_visited(self): + """ + Gets the source_directories_visited of this ReportsReportSubreportsSubreport. + The number of directories visited on the source. + + :return: The source_directories_visited of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_directories_visited + + @source_directories_visited.setter + def source_directories_visited(self, source_directories_visited): + """ + Sets the source_directories_visited of this ReportsReportSubreportsSubreport. + The number of directories visited on the source. + + :param source_directories_visited: The source_directories_visited of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_directories_visited = source_directories_visited + + @property + def source_files_deleted(self): + """ + Gets the source_files_deleted of this ReportsReportSubreportsSubreport. + The number of files deleted on the source. + + :return: The source_files_deleted of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_files_deleted + + @source_files_deleted.setter + def source_files_deleted(self, source_files_deleted): + """ + Sets the source_files_deleted of this ReportsReportSubreportsSubreport. + The number of files deleted on the source. + + :param source_files_deleted: The source_files_deleted of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_files_deleted = source_files_deleted + + @property + def source_files_linked(self): + """ + Gets the source_files_linked of this ReportsReportSubreportsSubreport. + The number of files linked on the source. + + :return: The source_files_linked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_files_linked + + @source_files_linked.setter + def source_files_linked(self, source_files_linked): + """ + Sets the source_files_linked of this ReportsReportSubreportsSubreport. + The number of files linked on the source. + + :param source_files_linked: The source_files_linked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_files_linked = source_files_linked + + @property + def source_files_unlinked(self): + """ + Gets the source_files_unlinked of this ReportsReportSubreportsSubreport. + The number of files unlinked on the source. + + :return: The source_files_unlinked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._source_files_unlinked + + @source_files_unlinked.setter + def source_files_unlinked(self, source_files_unlinked): + """ + Sets the source_files_unlinked of this ReportsReportSubreportsSubreport. + The number of files unlinked on the source. + + :param source_files_unlinked: The source_files_unlinked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._source_files_unlinked = source_files_unlinked + + @property + def source_host(self): + """ + Gets the source_host of this ReportsReportSubreportsSubreport. + Hostname or IP address of sync source cluster. + + :return: The source_host of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._source_host + + @source_host.setter + def source_host(self, source_host): + """ + Sets the source_host of this ReportsReportSubreportsSubreport. + Hostname or IP address of sync source cluster. + + :param source_host: The source_host of this ReportsReportSubreportsSubreport. + :type: str + """ + + self._source_host = source_host + + @property + def sparse_data_bytes(self): + """ + Gets the sparse_data_bytes of this ReportsReportSubreportsSubreport. + The number of sparse data bytes transferred by this job. + + :return: The sparse_data_bytes of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._sparse_data_bytes + + @sparse_data_bytes.setter + def sparse_data_bytes(self, sparse_data_bytes): + """ + Sets the sparse_data_bytes of this ReportsReportSubreportsSubreport. + The number of sparse data bytes transferred by this job. + + :param sparse_data_bytes: The sparse_data_bytes of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._sparse_data_bytes = sparse_data_bytes + + @property + def start_time(self): + """ + Gets the start_time of this ReportsReportSubreportsSubreport. + The time the job started in unix epoch seconds. The field is null if the job hasn't started. + + :return: The start_time of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this ReportsReportSubreportsSubreport. + The time the job started in unix epoch seconds. The field is null if the job hasn't started. + + :param start_time: The start_time of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._start_time = start_time + + @property + def state(self): + """ + Gets the state of this ReportsReportSubreportsSubreport. + The state of the job. + + :return: The state of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this ReportsReportSubreportsSubreport. + The state of the job. + + :param state: The state of this ReportsReportSubreportsSubreport. + :type: str + """ + allowed_values = ["scheduled", "running", "paused", "finished", "failed", "canceled", "needs_attention", "skipped", "pending", "unknown"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state`, must be one of {0}" + .format(allowed_values) + ) + + self._state = state + + @property + def succeeded_chunks(self): + """ + Gets the succeeded_chunks of this ReportsReportSubreportsSubreport. + The number of data chunks that have been transmitted successfully. + + :return: The succeeded_chunks of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._succeeded_chunks + + @succeeded_chunks.setter + def succeeded_chunks(self, succeeded_chunks): + """ + Sets the succeeded_chunks of this ReportsReportSubreportsSubreport. + The number of data chunks that have been transmitted successfully. + + :param succeeded_chunks: The succeeded_chunks of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._succeeded_chunks = succeeded_chunks + + @property + def symlinks_replicated(self): + """ + Gets the symlinks_replicated of this ReportsReportSubreportsSubreport. + The number of symlinks replicated by this job. + + :return: The symlinks_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._symlinks_replicated + + @symlinks_replicated.setter + def symlinks_replicated(self, symlinks_replicated): + """ + Sets the symlinks_replicated of this ReportsReportSubreportsSubreport. + The number of symlinks replicated by this job. + + :param symlinks_replicated: The symlinks_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._symlinks_replicated = symlinks_replicated + + @property + def sync_type(self): + """ + Gets the sync_type of this ReportsReportSubreportsSubreport. + The type of sync being performed by this job. + + :return: The sync_type of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._sync_type + + @sync_type.setter + def sync_type(self, sync_type): + """ + Sets the sync_type of this ReportsReportSubreportsSubreport. + The type of sync being performed by this job. + + :param sync_type: The sync_type of this ReportsReportSubreportsSubreport. + :type: str + """ + allowed_values = ["invalid", "legacy", "initial", "incremental", "upgrade", "fofb", "domainmark"] + if sync_type not in allowed_values: + raise ValueError( + "Invalid value for `sync_type`, must be one of {0}" + .format(allowed_values) + ) + + self._sync_type = sync_type + + @property + def target_bytes_recovered(self): + """ + Gets the target_bytes_recovered of this ReportsReportSubreportsSubreport. + The number of bytes recovered on the target. + + :return: The target_bytes_recovered of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._target_bytes_recovered + + @target_bytes_recovered.setter + def target_bytes_recovered(self, target_bytes_recovered): + """ + Sets the target_bytes_recovered of this ReportsReportSubreportsSubreport. + The number of bytes recovered on the target. + + :param target_bytes_recovered: The target_bytes_recovered of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._target_bytes_recovered = target_bytes_recovered + + @property + def target_directories_created(self): + """ + Gets the target_directories_created of this ReportsReportSubreportsSubreport. + The number of directories created on the target. + + :return: The target_directories_created of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._target_directories_created + + @target_directories_created.setter + def target_directories_created(self, target_directories_created): + """ + Sets the target_directories_created of this ReportsReportSubreportsSubreport. + The number of directories created on the target. + + :param target_directories_created: The target_directories_created of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._target_directories_created = target_directories_created + + @property + def target_directories_deleted(self): + """ + Gets the target_directories_deleted of this ReportsReportSubreportsSubreport. + The number of directories deleted on the target. + + :return: The target_directories_deleted of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._target_directories_deleted + + @target_directories_deleted.setter + def target_directories_deleted(self, target_directories_deleted): + """ + Sets the target_directories_deleted of this ReportsReportSubreportsSubreport. + The number of directories deleted on the target. + + :param target_directories_deleted: The target_directories_deleted of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._target_directories_deleted = target_directories_deleted + + @property + def target_directories_linked(self): + """ + Gets the target_directories_linked of this ReportsReportSubreportsSubreport. + The number of directories linked on the target. + + :return: The target_directories_linked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._target_directories_linked + + @target_directories_linked.setter + def target_directories_linked(self, target_directories_linked): + """ + Sets the target_directories_linked of this ReportsReportSubreportsSubreport. + The number of directories linked on the target. + + :param target_directories_linked: The target_directories_linked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._target_directories_linked = target_directories_linked + + @property + def target_directories_unlinked(self): + """ + Gets the target_directories_unlinked of this ReportsReportSubreportsSubreport. + The number of directories unlinked on the target. + + :return: The target_directories_unlinked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._target_directories_unlinked + + @target_directories_unlinked.setter + def target_directories_unlinked(self, target_directories_unlinked): + """ + Sets the target_directories_unlinked of this ReportsReportSubreportsSubreport. + The number of directories unlinked on the target. + + :param target_directories_unlinked: The target_directories_unlinked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._target_directories_unlinked = target_directories_unlinked + + @property + def target_files_deleted(self): + """ + Gets the target_files_deleted of this ReportsReportSubreportsSubreport. + The number of files deleted on the target. + + :return: The target_files_deleted of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._target_files_deleted + + @target_files_deleted.setter + def target_files_deleted(self, target_files_deleted): + """ + Sets the target_files_deleted of this ReportsReportSubreportsSubreport. + The number of files deleted on the target. + + :param target_files_deleted: The target_files_deleted of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._target_files_deleted = target_files_deleted + + @property + def target_files_linked(self): + """ + Gets the target_files_linked of this ReportsReportSubreportsSubreport. + The number of files linked on the target. + + :return: The target_files_linked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._target_files_linked + + @target_files_linked.setter + def target_files_linked(self, target_files_linked): + """ + Sets the target_files_linked of this ReportsReportSubreportsSubreport. + The number of files linked on the target. + + :param target_files_linked: The target_files_linked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._target_files_linked = target_files_linked + + @property + def target_files_unlinked(self): + """ + Gets the target_files_unlinked of this ReportsReportSubreportsSubreport. + The number of files unlinked on the target. + + :return: The target_files_unlinked of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._target_files_unlinked + + @target_files_unlinked.setter + def target_files_unlinked(self, target_files_unlinked): + """ + Sets the target_files_unlinked of this ReportsReportSubreportsSubreport. + The number of files unlinked on the target. + + :param target_files_unlinked: The target_files_unlinked of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._target_files_unlinked = target_files_unlinked + + @property + def target_path(self): + """ + Gets the target_path of this ReportsReportSubreportsSubreport. + Absolute filesystem path on the target cluster for the sync destination. + + :return: The target_path of this ReportsReportSubreportsSubreport. + :rtype: str + """ + return self._target_path + + @target_path.setter + def target_path(self, target_path): + """ + Sets the target_path of this ReportsReportSubreportsSubreport. + Absolute filesystem path on the target cluster for the sync destination. + + :param target_path: The target_path of this ReportsReportSubreportsSubreport. + :type: str + """ + + self._target_path = target_path + + @property + def target_snapshots(self): + """ + Gets the target_snapshots of this ReportsReportSubreportsSubreport. + The target snapshots created by this job. + + :return: The target_snapshots of this ReportsReportSubreportsSubreport. + :rtype: list[str] + """ + return self._target_snapshots + + @target_snapshots.setter + def target_snapshots(self, target_snapshots): + """ + Sets the target_snapshots of this ReportsReportSubreportsSubreport. + The target snapshots created by this job. + + :param target_snapshots: The target_snapshots of this ReportsReportSubreportsSubreport. + :type: list[str] + """ + + self._target_snapshots = target_snapshots + + @property + def total_chunks(self): + """ + Gets the total_chunks of this ReportsReportSubreportsSubreport. + The total number of data chunks transmitted by this job. + + :return: The total_chunks of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._total_chunks + + @total_chunks.setter + def total_chunks(self, total_chunks): + """ + Sets the total_chunks of this ReportsReportSubreportsSubreport. + The total number of data chunks transmitted by this job. + + :param total_chunks: The total_chunks of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._total_chunks = total_chunks + + @property + def total_data_bytes(self): + """ + Gets the total_data_bytes of this ReportsReportSubreportsSubreport. + The total number of bytes transferred by this job. + + :return: The total_data_bytes of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._total_data_bytes + + @total_data_bytes.setter + def total_data_bytes(self, total_data_bytes): + """ + Sets the total_data_bytes of this ReportsReportSubreportsSubreport. + The total number of bytes transferred by this job. + + :param total_data_bytes: The total_data_bytes of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._total_data_bytes = total_data_bytes + + @property + def total_files(self): + """ + Gets the total_files of this ReportsReportSubreportsSubreport. + The number of files affected by this job. + + :return: The total_files of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._total_files + + @total_files.setter + def total_files(self, total_files): + """ + Sets the total_files of this ReportsReportSubreportsSubreport. + The number of files affected by this job. + + :param total_files: The total_files of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._total_files = total_files + + @property + def total_network_bytes(self): + """ + Gets the total_network_bytes of this ReportsReportSubreportsSubreport. + The total number of bytes sent over the network by this job. + + :return: The total_network_bytes of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._total_network_bytes + + @total_network_bytes.setter + def total_network_bytes(self, total_network_bytes): + """ + Sets the total_network_bytes of this ReportsReportSubreportsSubreport. + The total number of bytes sent over the network by this job. + + :param total_network_bytes: The total_network_bytes of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._total_network_bytes = total_network_bytes + + @property + def total_phases(self): + """ + Gets the total_phases of this ReportsReportSubreportsSubreport. + The total number of phases for this job. + + :return: The total_phases of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._total_phases + + @total_phases.setter + def total_phases(self, total_phases): + """ + Sets the total_phases of this ReportsReportSubreportsSubreport. + The total number of phases for this job. + + :param total_phases: The total_phases of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._total_phases = total_phases + + @property + def unchanged_data_bytes(self): + """ + Gets the unchanged_data_bytes of this ReportsReportSubreportsSubreport. + The number of bytes unchanged by this job. + + :return: The unchanged_data_bytes of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._unchanged_data_bytes + + @unchanged_data_bytes.setter + def unchanged_data_bytes(self, unchanged_data_bytes): + """ + Sets the unchanged_data_bytes of this ReportsReportSubreportsSubreport. + The number of bytes unchanged by this job. + + :param unchanged_data_bytes: The unchanged_data_bytes of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._unchanged_data_bytes = unchanged_data_bytes + + @property + def up_to_date_files_skipped(self): + """ + Gets the up_to_date_files_skipped of this ReportsReportSubreportsSubreport. + The number of up-to-date files skipped by this job. + + :return: The up_to_date_files_skipped of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._up_to_date_files_skipped + + @up_to_date_files_skipped.setter + def up_to_date_files_skipped(self, up_to_date_files_skipped): + """ + Sets the up_to_date_files_skipped of this ReportsReportSubreportsSubreport. + The number of up-to-date files skipped by this job. + + :param up_to_date_files_skipped: The up_to_date_files_skipped of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._up_to_date_files_skipped = up_to_date_files_skipped + + @property + def updated_files_replicated(self): + """ + Gets the updated_files_replicated of this ReportsReportSubreportsSubreport. + The number of updated files replicated by this job. + + :return: The updated_files_replicated of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._updated_files_replicated + + @updated_files_replicated.setter + def updated_files_replicated(self, updated_files_replicated): + """ + Sets the updated_files_replicated of this ReportsReportSubreportsSubreport. + The number of updated files replicated by this job. + + :param updated_files_replicated: The updated_files_replicated of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._updated_files_replicated = updated_files_replicated + + @property + def user_conflict_files_skipped(self): + """ + Gets the user_conflict_files_skipped of this ReportsReportSubreportsSubreport. + The number of files with user conflicts skipped by this job. + + :return: The user_conflict_files_skipped of this ReportsReportSubreportsSubreport. + :rtype: int + """ + return self._user_conflict_files_skipped + + @user_conflict_files_skipped.setter + def user_conflict_files_skipped(self, user_conflict_files_skipped): + """ + Sets the user_conflict_files_skipped of this ReportsReportSubreportsSubreport. + The number of files with user conflicts skipped by this job. + + :param user_conflict_files_skipped: The user_conflict_files_skipped of this ReportsReportSubreportsSubreport. + :type: int + """ + + self._user_conflict_files_skipped = user_conflict_files_skipped + + @property + def warnings(self): + """ + Gets the warnings of this ReportsReportSubreportsSubreport. + A list of warning messages for this job. + + :return: The warnings of this ReportsReportSubreportsSubreport. + :rtype: list[str] + """ + return self._warnings + + @warnings.setter + def warnings(self, warnings): + """ + Sets the warnings of this ReportsReportSubreportsSubreport. + A list of warning messages for this job. + + :param warnings: The warnings of this ReportsReportSubreportsSubreport. + :type: list[str] + """ + + self._warnings = warnings + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/reports_scans.py b/isi_sdk/models/reports_scans.py index cc79ca139..f86ca2dd5 100644 --- a/isi_sdk/models/reports_scans.py +++ b/isi_sdk/models/reports_scans.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ReportsScans(object): @@ -66,6 +67,7 @@ def reports(self, reports): :param reports: The reports of this ReportsScans. :type: list[ReportsScansReport] """ + self._reports = reports def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/reports_scans_extended.py b/isi_sdk/models/reports_scans_extended.py index c84926b4e..ddecc6049 100644 --- a/isi_sdk/models/reports_scans_extended.py +++ b/isi_sdk/models/reports_scans_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ReportsScansExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'reports': 'list[ReportsScansReport]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'reports': 'reports', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._reports = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this ReportsScansExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this ReportsScansExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this ReportsScansExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this ReportsScansExtended. - :type: str - """ - self._resume = resume - @property def reports(self): """ @@ -94,8 +73,32 @@ def reports(self, reports): :param reports: The reports of this ReportsScansExtended. :type: list[ReportsScansReport] """ + self._reports = reports + @property + def resume(self): + """ + Gets the resume of this ReportsScansExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this ReportsScansExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this ReportsScansExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this ReportsScansExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this ReportsScansExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/reports_scans_report.py b/isi_sdk/models/reports_scans_report.py index b61b0c59c..dbc2d2dcd 100644 --- a/isi_sdk/models/reports_scans_report.py +++ b/isi_sdk/models/reports_scans_report.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ReportsScansReport(object): @@ -40,7 +41,7 @@ def __init__(self): 'bytes_sent': 'int', 'duration': 'int', 'end': 'int', - '_files': 'int', + 'files': 'int', 'id': 'str', 'infections': 'int', 'job_id': 'int', @@ -54,7 +55,7 @@ def __init__(self): 'bytes_sent': 'bytes_sent', 'duration': 'duration', 'end': 'end', - '_files': 'files', + 'files': 'files', 'id': 'id', 'infections': 'infections', 'job_id': 'job_id', @@ -67,7 +68,7 @@ def __init__(self): self._bytes_sent = None self._duration = None self._end = None - self.__files = None + self._files = None self._id = None self._infections = None self._job_id = None @@ -96,6 +97,7 @@ def bytes_sent(self, bytes_sent): :param bytes_sent: The bytes_sent of this ReportsScansReport. :type: int """ + self._bytes_sent = bytes_sent @property @@ -118,6 +120,7 @@ def duration(self, duration): :param duration: The duration of this ReportsScansReport. :type: int """ + self._duration = duration @property @@ -140,29 +143,31 @@ def end(self, end): :param end: The end of this ReportsScansReport. :type: int """ + self._end = end @property - def _files(self): + def files(self): """ - Gets the _files of this ReportsScansReport. + Gets the files of this ReportsScansReport. The number of file scanned. - :return: The _files of this ReportsScansReport. + :return: The files of this ReportsScansReport. :rtype: int """ - return self.__files + return self._files - @_files.setter - def _files(self, _files): + @files.setter + def files(self, files): """ - Sets the _files of this ReportsScansReport. + Sets the files of this ReportsScansReport. The number of file scanned. - :param _files: The _files of this ReportsScansReport. + :param files: The files of this ReportsScansReport. :type: int """ - self.__files = _files + + self._files = files @property def id(self): @@ -184,6 +189,7 @@ def id(self, id): :param id: The id of this ReportsScansReport. :type: str """ + self._id = id @property @@ -206,6 +212,7 @@ def infections(self, infections): :param infections: The infections of this ReportsScansReport. :type: int """ + self._infections = infections @property @@ -228,6 +235,7 @@ def job_id(self, job_id): :param job_id: The job_id of this ReportsScansReport. :type: int """ + self._job_id = job_id @property @@ -250,6 +258,7 @@ def policy_id(self, policy_id): :param policy_id: The policy_id of this ReportsScansReport. :type: str """ + self._policy_id = policy_id @property @@ -272,6 +281,7 @@ def size(self, size): :param size: The size of this ReportsScansReport. :type: int """ + self._size = size @property @@ -294,6 +304,7 @@ def start(self, start): :param start: The start of this ReportsScansReport. :type: int """ + self._start = start @property @@ -316,6 +327,7 @@ def status(self, status): :param status: The status of this ReportsScansReport. :type: str """ + self._status = status def to_dict(self): @@ -333,6 +345,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -350,14 +368,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/reports_threats.py b/isi_sdk/models/reports_threats.py index ed90740e9..6ad299fe2 100644 --- a/isi_sdk/models/reports_threats.py +++ b/isi_sdk/models/reports_threats.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ReportsThreats(object): @@ -66,6 +67,7 @@ def reports(self, reports): :param reports: The reports of this ReportsThreats. :type: list[ReportsThreatsReport] """ + self._reports = reports def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/reports_threats_extended.py b/isi_sdk/models/reports_threats_extended.py index b9fee5688..a8c994bd2 100644 --- a/isi_sdk/models/reports_threats_extended.py +++ b/isi_sdk/models/reports_threats_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ReportsThreatsExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'reports': 'list[ReportsThreatsReport]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'reports': 'reports', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._reports = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this ReportsThreatsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this ReportsThreatsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this ReportsThreatsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this ReportsThreatsExtended. - :type: str - """ - self._resume = resume - @property def reports(self): """ @@ -94,8 +73,32 @@ def reports(self, reports): :param reports: The reports of this ReportsThreatsExtended. :type: list[ReportsThreatsReport] """ + self._reports = reports + @property + def resume(self): + """ + Gets the resume of this ReportsThreatsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this ReportsThreatsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this ReportsThreatsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this ReportsThreatsExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this ReportsThreatsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/reports_threats_report.py b/isi_sdk/models/reports_threats_report.py index 7e7d8aeba..98737fccc 100644 --- a/isi_sdk/models/reports_threats_report.py +++ b/isi_sdk/models/reports_threats_report.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ReportsThreatsReport(object): @@ -84,6 +85,7 @@ def file(self, file): :param file: The file of this ReportsThreatsReport. :type: str """ + self._file = file @property @@ -106,6 +108,7 @@ def id(self, id): :param id: The id of this ReportsThreatsReport. :type: str """ + self._id = id @property @@ -128,6 +131,7 @@ def policy_id(self, policy_id): :param policy_id: The policy_id of this ReportsThreatsReport. :type: str """ + self._policy_id = policy_id @property @@ -150,6 +154,7 @@ def remediation(self, remediation): :param remediation: The remediation of this ReportsThreatsReport. :type: str """ + self._remediation = remediation @property @@ -172,6 +177,7 @@ def scan_id(self, scan_id): :param scan_id: The scan_id of this ReportsThreatsReport. :type: str """ + self._scan_id = scan_id @property @@ -194,6 +200,7 @@ def threat(self, threat): :param threat: The threat of this ReportsThreatsReport. :type: str """ + self._threat = threat @property @@ -216,6 +223,7 @@ def time(self, time): :param time: The time of this ReportsThreatsReport. :type: int """ + self._time = time def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/result_directories_total_usage.py b/isi_sdk/models/result_directories_total_usage.py new file mode 100644 index 000000000..02fbc19da --- /dev/null +++ b/isi_sdk/models/result_directories_total_usage.py @@ -0,0 +1,356 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ResultDirectoriesTotalUsage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ResultDirectoriesTotalUsage - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'ads_cnt': 'int', + 'dir_cnt': 'int', + 'file_cnt': 'int', + 'lin': 'int', + 'log_size_sum': 'int', + 'log_size_sum_overflow': 'int', + 'name': 'str', + 'other_cnt': 'int', + 'parent': 'int', + 'phys_size_sum': 'int' + } + + self.attribute_map = { + 'ads_cnt': 'ads_cnt', + 'dir_cnt': 'dir_cnt', + 'file_cnt': 'file_cnt', + 'lin': 'lin', + 'log_size_sum': 'log_size_sum', + 'log_size_sum_overflow': 'log_size_sum_overflow', + 'name': 'name', + 'other_cnt': 'other_cnt', + 'parent': 'parent', + 'phys_size_sum': 'phys_size_sum' + } + + self._ads_cnt = None + self._dir_cnt = None + self._file_cnt = None + self._lin = None + self._log_size_sum = None + self._log_size_sum_overflow = None + self._name = None + self._other_cnt = None + self._parent = None + self._phys_size_sum = None + + @property + def ads_cnt(self): + """ + Gets the ads_cnt of this ResultDirectoriesTotalUsage. + Number of alternate data streams. + + :return: The ads_cnt of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._ads_cnt + + @ads_cnt.setter + def ads_cnt(self, ads_cnt): + """ + Sets the ads_cnt of this ResultDirectoriesTotalUsage. + Number of alternate data streams. + + :param ads_cnt: The ads_cnt of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._ads_cnt = ads_cnt + + @property + def dir_cnt(self): + """ + Gets the dir_cnt of this ResultDirectoriesTotalUsage. + Number of directories. + + :return: The dir_cnt of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._dir_cnt + + @dir_cnt.setter + def dir_cnt(self, dir_cnt): + """ + Sets the dir_cnt of this ResultDirectoriesTotalUsage. + Number of directories. + + :param dir_cnt: The dir_cnt of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._dir_cnt = dir_cnt + + @property + def file_cnt(self): + """ + Gets the file_cnt of this ResultDirectoriesTotalUsage. + Number of files. + + :return: The file_cnt of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._file_cnt + + @file_cnt.setter + def file_cnt(self, file_cnt): + """ + Sets the file_cnt of this ResultDirectoriesTotalUsage. + Number of files. + + :param file_cnt: The file_cnt of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._file_cnt = file_cnt + + @property + def lin(self): + """ + Gets the lin of this ResultDirectoriesTotalUsage. + Logical inode number. + + :return: The lin of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._lin + + @lin.setter + def lin(self, lin): + """ + Sets the lin of this ResultDirectoriesTotalUsage. + Logical inode number. + + :param lin: The lin of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._lin = lin + + @property + def log_size_sum(self): + """ + Gets the log_size_sum of this ResultDirectoriesTotalUsage. + Logical size directory in bytes. + + :return: The log_size_sum of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._log_size_sum + + @log_size_sum.setter + def log_size_sum(self, log_size_sum): + """ + Sets the log_size_sum of this ResultDirectoriesTotalUsage. + Logical size directory in bytes. + + :param log_size_sum: The log_size_sum of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._log_size_sum = log_size_sum + + @property + def log_size_sum_overflow(self): + """ + Gets the log_size_sum_overflow of this ResultDirectoriesTotalUsage. + Logical size sum of overflow in bytes. + + :return: The log_size_sum_overflow of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._log_size_sum_overflow + + @log_size_sum_overflow.setter + def log_size_sum_overflow(self, log_size_sum_overflow): + """ + Sets the log_size_sum_overflow of this ResultDirectoriesTotalUsage. + Logical size sum of overflow in bytes. + + :param log_size_sum_overflow: The log_size_sum_overflow of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._log_size_sum_overflow = log_size_sum_overflow + + @property + def name(self): + """ + Gets the name of this ResultDirectoriesTotalUsage. + Name of directory. + + :return: The name of this ResultDirectoriesTotalUsage. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ResultDirectoriesTotalUsage. + Name of directory. + + :param name: The name of this ResultDirectoriesTotalUsage. + :type: str + """ + + self._name = name + + @property + def other_cnt(self): + """ + Gets the other_cnt of this ResultDirectoriesTotalUsage. + Other count. + + :return: The other_cnt of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._other_cnt + + @other_cnt.setter + def other_cnt(self, other_cnt): + """ + Sets the other_cnt of this ResultDirectoriesTotalUsage. + Other count. + + :param other_cnt: The other_cnt of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._other_cnt = other_cnt + + @property + def parent(self): + """ + Gets the parent of this ResultDirectoriesTotalUsage. + Parent directory inode. + + :return: The parent of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this ResultDirectoriesTotalUsage. + Parent directory inode. + + :param parent: The parent of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._parent = parent + + @property + def phys_size_sum(self): + """ + Gets the phys_size_sum of this ResultDirectoriesTotalUsage. + Physical size directory in bytes. + + :return: The phys_size_sum of this ResultDirectoriesTotalUsage. + :rtype: int + """ + return self._phys_size_sum + + @phys_size_sum.setter + def phys_size_sum(self, phys_size_sum): + """ + Sets the phys_size_sum of this ResultDirectoriesTotalUsage. + Physical size directory in bytes. + + :param phys_size_sum: The phys_size_sum of this ResultDirectoriesTotalUsage. + :type: int + """ + + self._phys_size_sum = phys_size_sum + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/result_histogram.py b/isi_sdk/models/result_histogram.py new file mode 100644 index 000000000..296c71c42 --- /dev/null +++ b/isi_sdk/models/result_histogram.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ResultHistogram(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ResultHistogram - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'atime_enabled': 'bool', + 'attribute_count': 'int', + 'begin_time': 'int', + 'histogram': 'list[ResultHistogramHistogramItem]' + } + + self.attribute_map = { + 'atime_enabled': 'atime_enabled', + 'attribute_count': 'attribute_count', + 'begin_time': 'begin_time', + 'histogram': 'histogram' + } + + self._atime_enabled = None + self._attribute_count = None + self._begin_time = None + self._histogram = None + + @property + def atime_enabled(self): + """ + Gets the atime_enabled of this ResultHistogram. + Access time enabled. + + :return: The atime_enabled of this ResultHistogram. + :rtype: bool + """ + return self._atime_enabled + + @atime_enabled.setter + def atime_enabled(self, atime_enabled): + """ + Sets the atime_enabled of this ResultHistogram. + Access time enabled. + + :param atime_enabled: The atime_enabled of this ResultHistogram. + :type: bool + """ + + self._atime_enabled = atime_enabled + + @property + def attribute_count(self): + """ + Gets the attribute_count of this ResultHistogram. + User attribute count. + + :return: The attribute_count of this ResultHistogram. + :rtype: int + """ + return self._attribute_count + + @attribute_count.setter + def attribute_count(self, attribute_count): + """ + Sets the attribute_count of this ResultHistogram. + User attribute count. + + :param attribute_count: The attribute_count of this ResultHistogram. + :type: int + """ + + self._attribute_count = attribute_count + + @property + def begin_time(self): + """ + Gets the begin_time of this ResultHistogram. + Unix Epoch time of start of results collection job. + + :return: The begin_time of this ResultHistogram. + :rtype: int + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """ + Sets the begin_time of this ResultHistogram. + Unix Epoch time of start of results collection job. + + :param begin_time: The begin_time of this ResultHistogram. + :type: int + """ + + self._begin_time = begin_time + + @property + def histogram(self): + """ + Gets the histogram of this ResultHistogram. + Histogram data of specified file count parameter. + + :return: The histogram of this ResultHistogram. + :rtype: list[ResultHistogramHistogramItem] + """ + return self._histogram + + @histogram.setter + def histogram(self, histogram): + """ + Sets the histogram of this ResultHistogram. + Histogram data of specified file count parameter. + + :param histogram: The histogram of this ResultHistogram. + :type: list[ResultHistogramHistogramItem] + """ + + self._histogram = histogram + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/result_histogram_histogram_item.py b/isi_sdk/models/result_histogram_histogram_item.py new file mode 100644 index 000000000..e7f29e7c0 --- /dev/null +++ b/isi_sdk/models/result_histogram_histogram_item.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ResultHistogramHistogramItem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ResultHistogramHistogramItem - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'bucket': 'int', + 'value': 'int' + } + + self.attribute_map = { + 'bucket': 'bucket', + 'value': 'value' + } + + self._bucket = None + self._value = None + + @property + def bucket(self): + """ + Gets the bucket of this ResultHistogramHistogramItem. + Bucket for holding file counts within a range. + + :return: The bucket of this ResultHistogramHistogramItem. + :rtype: int + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """ + Sets the bucket of this ResultHistogramHistogramItem. + Bucket for holding file counts within a range. + + :param bucket: The bucket of this ResultHistogramHistogramItem. + :type: int + """ + + self._bucket = bucket + + @property + def value(self): + """ + Gets the value of this ResultHistogramHistogramItem. + Number of files within the bucket. + + :return: The value of this ResultHistogramHistogramItem. + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this ResultHistogramHistogramItem. + Number of files within the bucket. + + :param value: The value of this ResultHistogramHistogramItem. + :type: int + """ + + self._value = value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/result_top_dirs.py b/isi_sdk/models/result_top_dirs.py new file mode 100644 index 000000000..bb1a052bb --- /dev/null +++ b/isi_sdk/models/result_top_dirs.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ResultTopDirs(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ResultTopDirs - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'change': 'int', + 'dir_atime_enabled': 'bool', + 'dirs': 'list[ResultTopDirsDir]', + 'top_n_max': 'int', + 'total_count': 'int' + } + + self.attribute_map = { + 'change': 'change', + 'dir_atime_enabled': 'dir_atime_enabled', + 'dirs': 'dirs', + 'top_n_max': 'top_n_max', + 'total_count': 'total_count' + } + + self._change = None + self._dir_atime_enabled = None + self._dirs = None + self._top_n_max = None + self._total_count = None + + @property + def change(self): + """ + Gets the change of this ResultTopDirs. + Change in directory ranking from result set comparison. + + :return: The change of this ResultTopDirs. + :rtype: int + """ + return self._change + + @change.setter + def change(self, change): + """ + Sets the change of this ResultTopDirs. + Change in directory ranking from result set comparison. + + :param change: The change of this ResultTopDirs. + :type: int + """ + + self._change = change + + @property + def dir_atime_enabled(self): + """ + Gets the dir_atime_enabled of this ResultTopDirs. + Directory access time enabled. + + :return: The dir_atime_enabled of this ResultTopDirs. + :rtype: bool + """ + return self._dir_atime_enabled + + @dir_atime_enabled.setter + def dir_atime_enabled(self, dir_atime_enabled): + """ + Sets the dir_atime_enabled of this ResultTopDirs. + Directory access time enabled. + + :param dir_atime_enabled: The dir_atime_enabled of this ResultTopDirs. + :type: bool + """ + + self._dir_atime_enabled = dir_atime_enabled + + @property + def dirs(self): + """ + Gets the dirs of this ResultTopDirs. + Directory listing. + + :return: The dirs of this ResultTopDirs. + :rtype: list[ResultTopDirsDir] + """ + return self._dirs + + @dirs.setter + def dirs(self, dirs): + """ + Sets the dirs of this ResultTopDirs. + Directory listing. + + :param dirs: The dirs of this ResultTopDirs. + :type: list[ResultTopDirsDir] + """ + + self._dirs = dirs + + @property + def top_n_max(self): + """ + Gets the top_n_max of this ResultTopDirs. + Limit on number of top results. + + :return: The top_n_max of this ResultTopDirs. + :rtype: int + """ + return self._top_n_max + + @top_n_max.setter + def top_n_max(self, top_n_max): + """ + Sets the top_n_max of this ResultTopDirs. + Limit on number of top results. + + :param top_n_max: The top_n_max of this ResultTopDirs. + :type: int + """ + + self._top_n_max = top_n_max + + @property + def total_count(self): + """ + Gets the total_count of this ResultTopDirs. + Total count of directory results. + + :return: The total_count of this ResultTopDirs. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """ + Sets the total_count of this ResultTopDirs. + Total count of directory results. + + :param total_count: The total_count of this ResultTopDirs. + :type: int + """ + + self._total_count = total_count + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/result_top_dirs_dir.py b/isi_sdk/models/result_top_dirs_dir.py new file mode 100644 index 000000000..05b99c69c --- /dev/null +++ b/isi_sdk/models/result_top_dirs_dir.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ResultTopDirsDir(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ResultTopDirsDir - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'atime': 'int', + 'btime': 'int', + 'ctime': 'int', + 'path': 'str' + } + + self.attribute_map = { + 'atime': 'atime', + 'btime': 'btime', + 'ctime': 'ctime', + 'path': 'path' + } + + self._atime = None + self._btime = None + self._ctime = None + self._path = None + + @property + def atime(self): + """ + Gets the atime of this ResultTopDirsDir. + Directory access time + + :return: The atime of this ResultTopDirsDir. + :rtype: int + """ + return self._atime + + @atime.setter + def atime(self, atime): + """ + Sets the atime of this ResultTopDirsDir. + Directory access time + + :param atime: The atime of this ResultTopDirsDir. + :type: int + """ + + self._atime = atime + + @property + def btime(self): + """ + Gets the btime of this ResultTopDirsDir. + Directory creation begin time. + + :return: The btime of this ResultTopDirsDir. + :rtype: int + """ + return self._btime + + @btime.setter + def btime(self, btime): + """ + Sets the btime of this ResultTopDirsDir. + Directory creation begin time. + + :param btime: The btime of this ResultTopDirsDir. + :type: int + """ + + self._btime = btime + + @property + def ctime(self): + """ + Gets the ctime of this ResultTopDirsDir. + Unix inode change time. + + :return: The ctime of this ResultTopDirsDir. + :rtype: int + """ + return self._ctime + + @ctime.setter + def ctime(self, ctime): + """ + Sets the ctime of this ResultTopDirsDir. + Unix inode change time. + + :param ctime: The ctime of this ResultTopDirsDir. + :type: int + """ + + self._ctime = ctime + + @property + def path(self): + """ + Gets the path of this ResultTopDirsDir. + Relative directory path under /ifs/. + + :return: The path of this ResultTopDirsDir. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this ResultTopDirsDir. + Relative directory path under /ifs/. + + :param path: The path of this ResultTopDirsDir. + :type: str + """ + + self._path = path + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/result_top_files.py b/isi_sdk/models/result_top_files.py new file mode 100644 index 000000000..836bc91d5 --- /dev/null +++ b/isi_sdk/models/result_top_files.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ResultTopFiles(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ResultTopFiles - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'atime_enabled': 'bool', + 'change': 'int', + 'dir_atime_enabled': 'bool', + 'files': 'list[ResultTopFilesFile]', + 'top_n_max': 'int', + 'total_count': 'int' + } + + self.attribute_map = { + 'atime_enabled': 'atime_enabled', + 'change': 'change', + 'dir_atime_enabled': 'dir_atime_enabled', + 'files': 'files', + 'top_n_max': 'top_n_max', + 'total_count': 'total_count' + } + + self._atime_enabled = None + self._change = None + self._dir_atime_enabled = None + self._files = None + self._top_n_max = None + self._total_count = None + + @property + def atime_enabled(self): + """ + Gets the atime_enabled of this ResultTopFiles. + Access time enabled. + + :return: The atime_enabled of this ResultTopFiles. + :rtype: bool + """ + return self._atime_enabled + + @atime_enabled.setter + def atime_enabled(self, atime_enabled): + """ + Sets the atime_enabled of this ResultTopFiles. + Access time enabled. + + :param atime_enabled: The atime_enabled of this ResultTopFiles. + :type: bool + """ + + self._atime_enabled = atime_enabled + + @property + def change(self): + """ + Gets the change of this ResultTopFiles. + Change in file ranking from result set comparison. + + :return: The change of this ResultTopFiles. + :rtype: int + """ + return self._change + + @change.setter + def change(self, change): + """ + Sets the change of this ResultTopFiles. + Change in file ranking from result set comparison. + + :param change: The change of this ResultTopFiles. + :type: int + """ + + self._change = change + + @property + def dir_atime_enabled(self): + """ + Gets the dir_atime_enabled of this ResultTopFiles. + Directory access time enabled. + + :return: The dir_atime_enabled of this ResultTopFiles. + :rtype: bool + """ + return self._dir_atime_enabled + + @dir_atime_enabled.setter + def dir_atime_enabled(self, dir_atime_enabled): + """ + Sets the dir_atime_enabled of this ResultTopFiles. + Directory access time enabled. + + :param dir_atime_enabled: The dir_atime_enabled of this ResultTopFiles. + :type: bool + """ + + self._dir_atime_enabled = dir_atime_enabled + + @property + def files(self): + """ + Gets the files of this ResultTopFiles. + Files listing. + + :return: The files of this ResultTopFiles. + :rtype: list[ResultTopFilesFile] + """ + return self._files + + @files.setter + def files(self, files): + """ + Sets the files of this ResultTopFiles. + Files listing. + + :param files: The files of this ResultTopFiles. + :type: list[ResultTopFilesFile] + """ + + self._files = files + + @property + def top_n_max(self): + """ + Gets the top_n_max of this ResultTopFiles. + Limit on number of top results. + + :return: The top_n_max of this ResultTopFiles. + :rtype: int + """ + return self._top_n_max + + @top_n_max.setter + def top_n_max(self, top_n_max): + """ + Sets the top_n_max of this ResultTopFiles. + Limit on number of top results. + + :param top_n_max: The top_n_max of this ResultTopFiles. + :type: int + """ + + self._top_n_max = top_n_max + + @property + def total_count(self): + """ + Gets the total_count of this ResultTopFiles. + Total count of file results. + + :return: The total_count of this ResultTopFiles. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """ + Sets the total_count of this ResultTopFiles. + Total count of file results. + + :param total_count: The total_count of this ResultTopFiles. + :type: int + """ + + self._total_count = total_count + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/result_top_files_file.py b/isi_sdk/models/result_top_files_file.py new file mode 100644 index 000000000..6165f5857 --- /dev/null +++ b/isi_sdk/models/result_top_files_file.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class ResultTopFilesFile(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + ResultTopFilesFile - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'atime': 'int', + 'btime': 'int', + 'ctime': 'int', + 'log_size': 'int', + 'path': 'str', + 'phys_size': 'int' + } + + self.attribute_map = { + 'atime': 'atime', + 'btime': 'btime', + 'ctime': 'ctime', + 'log_size': 'log_size', + 'path': 'path', + 'phys_size': 'phys_size' + } + + self._atime = None + self._btime = None + self._ctime = None + self._log_size = None + self._path = None + self._phys_size = None + + @property + def atime(self): + """ + Gets the atime of this ResultTopFilesFile. + File access time. + + :return: The atime of this ResultTopFilesFile. + :rtype: int + """ + return self._atime + + @atime.setter + def atime(self, atime): + """ + Sets the atime of this ResultTopFilesFile. + File access time. + + :param atime: The atime of this ResultTopFilesFile. + :type: int + """ + + self._atime = atime + + @property + def btime(self): + """ + Gets the btime of this ResultTopFilesFile. + File creation begin time. + + :return: The btime of this ResultTopFilesFile. + :rtype: int + """ + return self._btime + + @btime.setter + def btime(self, btime): + """ + Sets the btime of this ResultTopFilesFile. + File creation begin time. + + :param btime: The btime of this ResultTopFilesFile. + :type: int + """ + + self._btime = btime + + @property + def ctime(self): + """ + Gets the ctime of this ResultTopFilesFile. + Unix inode change time. + + :return: The ctime of this ResultTopFilesFile. + :rtype: int + """ + return self._ctime + + @ctime.setter + def ctime(self, ctime): + """ + Sets the ctime of this ResultTopFilesFile. + Unix inode change time. + + :param ctime: The ctime of this ResultTopFilesFile. + :type: int + """ + + self._ctime = ctime + + @property + def log_size(self): + """ + Gets the log_size of this ResultTopFilesFile. + Logical file size in bytes. + + :return: The log_size of this ResultTopFilesFile. + :rtype: int + """ + return self._log_size + + @log_size.setter + def log_size(self, log_size): + """ + Sets the log_size of this ResultTopFilesFile. + Logical file size in bytes. + + :param log_size: The log_size of this ResultTopFilesFile. + :type: int + """ + + self._log_size = log_size + + @property + def path(self): + """ + Gets the path of this ResultTopFilesFile. + Relative file path under /ifs/. + + :return: The path of this ResultTopFilesFile. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this ResultTopFilesFile. + Relative file path under /ifs/. + + :param path: The path of this ResultTopFilesFile. + :type: str + """ + + self._path = path + + @property + def phys_size(self): + """ + Gets the phys_size of this ResultTopFilesFile. + Physical file size in bytes. + + :return: The phys_size of this ResultTopFilesFile. + :rtype: int + """ + return self._phys_size + + @phys_size.setter + def phys_size(self, phys_size): + """ + Sets the phys_size of this ResultTopFilesFile. + Physical file size in bytes. + + :param phys_size: The phys_size of this ResultTopFilesFile. + :type: int + """ + + self._phys_size = phys_size + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/role_privileges.py b/isi_sdk/models/role_privileges.py new file mode 100644 index 000000000..b4d683c1a --- /dev/null +++ b/isi_sdk/models/role_privileges.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class RolePrivileges(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + RolePrivileges - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'privileges': 'list[AuthIdNtokenPrivilegeItem]', + 'resume': 'str' + } + + self.attribute_map = { + 'privileges': 'privileges', + 'resume': 'resume' + } + + self._privileges = None + self._resume = None + + @property + def privileges(self): + """ + Gets the privileges of this RolePrivileges. + + + :return: The privileges of this RolePrivileges. + :rtype: list[AuthIdNtokenPrivilegeItem] + """ + return self._privileges + + @privileges.setter + def privileges(self, privileges): + """ + Sets the privileges of this RolePrivileges. + + + :param privileges: The privileges of this RolePrivileges. + :type: list[AuthIdNtokenPrivilegeItem] + """ + + self._privileges = privileges + + @property + def resume(self): + """ + Gets the resume of this RolePrivileges. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this RolePrivileges. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this RolePrivileges. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this RolePrivileges. + :type: str + """ + + self._resume = resume + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/settings_access_time.py b/isi_sdk/models/settings_access_time.py index 0fb2d7534..cbe6cc854 100644 --- a/isi_sdk/models/settings_access_time.py +++ b/isi_sdk/models/settings_access_time.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsAccessTime(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this SettingsAccessTime. :type: SettingsAccessTimeSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_access_time_extended.py b/isi_sdk/models/settings_access_time_extended.py index 8ef4b9d5e..efb55f0cd 100644 --- a/isi_sdk/models/settings_access_time_extended.py +++ b/isi_sdk/models/settings_access_time_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsAccessTimeExtended(object): @@ -37,43 +38,18 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'settings': 'SettingsAccessTimeSettings', 'enabled': 'bool', 'precision': 'int' } self.attribute_map = { - 'settings': 'settings', 'enabled': 'enabled', 'precision': 'precision' } - self._settings = None self._enabled = None self._precision = None - @property - def settings(self): - """ - Gets the settings of this SettingsAccessTimeExtended. - - - :return: The settings of this SettingsAccessTimeExtended. - :rtype: SettingsAccessTimeSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this SettingsAccessTimeExtended. - - - :param settings: The settings of this SettingsAccessTimeExtended. - :type: SettingsAccessTimeSettings - """ - self._settings = settings - @property def enabled(self): """ @@ -94,6 +70,7 @@ def enabled(self, enabled): :param enabled: The enabled of this SettingsAccessTimeExtended. :type: bool """ + self._enabled = enabled @property @@ -116,6 +93,14 @@ def precision(self, precision): :param precision: The precision of this SettingsAccessTimeExtended. :type: int """ + + if not precision: + raise ValueError("Invalid value for `precision`, must not be `None`") + if precision > 1.5768E9: + raise ValueError("Invalid value for `precision`, must be a value less than or equal to `1.5768E9`") + if precision < 0.0: + raise ValueError("Invalid value for `precision`, must be a value greater than or equal to `0.0`") + self._precision = precision def to_dict(self): @@ -133,6 +118,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +141,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_access_time_settings.py b/isi_sdk/models/settings_access_time_settings.py index 464261451..09a3f07d2 100644 --- a/isi_sdk/models/settings_access_time_settings.py +++ b/isi_sdk/models/settings_access_time_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsAccessTimeSettings(object): @@ -69,6 +70,7 @@ def enabled(self, enabled): :param enabled: The enabled of this SettingsAccessTimeSettings. :type: bool """ + self._enabled = enabled @property @@ -91,6 +93,7 @@ def precision(self, precision): :param precision: The precision of this SettingsAccessTimeSettings. :type: int """ + self._precision = precision def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_acls.py b/isi_sdk/models/settings_acls.py index 7ffecec0c..8041a2f28 100644 --- a/isi_sdk/models/settings_acls.py +++ b/isi_sdk/models/settings_acls.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsAcls(object): @@ -66,6 +67,7 @@ def acl_policy_settings(self, acl_policy_settings): :param acl_policy_settings: The acl_policy_settings of this SettingsAcls. :type: SettingsAclsAclPolicySettings """ + self._acl_policy_settings = acl_policy_settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_acls_acl_policy_settings.py b/isi_sdk/models/settings_acls_acl_policy_settings.py index fd24b6aa1..1f9bfd3f5 100644 --- a/isi_sdk/models/settings_acls_acl_policy_settings.py +++ b/isi_sdk/models/settings_acls_acl_policy_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsAclsAclPolicySettings(object): @@ -111,6 +112,7 @@ def access(self, access): "Invalid value for `access`, must be one of {0}" .format(allowed_values) ) + self._access = access @property @@ -139,6 +141,7 @@ def calcmode(self, calcmode): "Invalid value for `calcmode`, must be one of {0}" .format(allowed_values) ) + self._calcmode = calcmode @property @@ -167,6 +170,7 @@ def calcmode_group(self, calcmode_group): "Invalid value for `calcmode_group`, must be one of {0}" .format(allowed_values) ) + self._calcmode_group = calcmode_group @property @@ -195,6 +199,7 @@ def calcmode_owner(self, calcmode_owner): "Invalid value for `calcmode_owner`, must be one of {0}" .format(allowed_values) ) + self._calcmode_owner = calcmode_owner @property @@ -223,6 +228,7 @@ def chmod(self, chmod): "Invalid value for `chmod`, must be one of {0}" .format(allowed_values) ) + self._chmod = chmod @property @@ -251,6 +257,7 @@ def chmod_007(self, chmod_007): "Invalid value for `chmod_007`, must be one of {0}" .format(allowed_values) ) + self._chmod_007 = chmod_007 @property @@ -279,6 +286,7 @@ def chmod_inheritable(self, chmod_inheritable): "Invalid value for `chmod_inheritable`, must be one of {0}" .format(allowed_values) ) + self._chmod_inheritable = chmod_inheritable @property @@ -307,6 +315,7 @@ def chown(self, chown): "Invalid value for `chown`, must be one of {0}" .format(allowed_values) ) + self._chown = chown @property @@ -335,13 +344,14 @@ def create_over_smb(self, create_over_smb): "Invalid value for `create_over_smb`, must be one of {0}" .format(allowed_values) ) + self._create_over_smb = create_over_smb @property def dos_attr(self): """ Gets the dos_attr of this SettingsAclsAclPolicySettings. - Read only DOS attribute. + Read only DOS attribute. :return: The dos_attr of this SettingsAclsAclPolicySettings. :rtype: str @@ -352,7 +362,7 @@ def dos_attr(self): def dos_attr(self, dos_attr): """ Sets the dos_attr of this SettingsAclsAclPolicySettings. - Read only DOS attribute. + Read only DOS attribute. :param dos_attr: The dos_attr of this SettingsAclsAclPolicySettings. :type: str @@ -363,6 +373,7 @@ def dos_attr(self, dos_attr): "Invalid value for `dos_attr`, must be one of {0}" .format(allowed_values) ) + self._dos_attr = dos_attr @property @@ -391,6 +402,7 @@ def group_owner_inheritance(self, group_owner_inheritance): "Invalid value for `group_owner_inheritance`, must be one of {0}" .format(allowed_values) ) + self._group_owner_inheritance = group_owner_inheritance @property @@ -419,6 +431,7 @@ def rwx(self, rwx): "Invalid value for `rwx`, must be one of {0}" .format(allowed_values) ) + self._rwx = rwx @property @@ -447,6 +460,7 @@ def synthetic_denies(self, synthetic_denies): "Invalid value for `synthetic_denies`, must be one of {0}" .format(allowed_values) ) + self._synthetic_denies = synthetic_denies @property @@ -475,6 +489,7 @@ def utimes(self, utimes): "Invalid value for `utimes`, must be one of {0}" .format(allowed_values) ) + self._utimes = utimes def to_dict(self): @@ -492,6 +507,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -509,14 +530,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_global.py b/isi_sdk/models/settings_global.py index 749aafeb8..6b49bb677 100644 --- a/isi_sdk/models/settings_global.py +++ b/isi_sdk/models/settings_global.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsGlobal(object): @@ -66,6 +67,7 @@ def global_settings(self, global_settings): :param global_settings: The global_settings of this SettingsGlobal. :type: SettingsGlobalGlobalSettings """ + self._global_settings = global_settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_global_extended.py b/isi_sdk/models/settings_global_extended.py index 00a3bba05..ae0f710fc 100644 --- a/isi_sdk/models/settings_global_extended.py +++ b/isi_sdk/models/settings_global_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsGlobalExtended(object): @@ -37,17 +38,14 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'settings': 'SettingsGlobalSettings', - 'global_settings': 'SettingsGlobalGlobalSettings' + 'settings': 'SettingsGlobalSettings' } self.attribute_map = { - 'settings': 'settings', - 'global_settings': 'global_settings' + 'settings': 'settings' } self._settings = None - self._global_settings = None @property def settings(self): @@ -69,30 +67,9 @@ def settings(self, settings): :param settings: The settings of this SettingsGlobalExtended. :type: SettingsGlobalSettings """ + self._settings = settings - @property - def global_settings(self): - """ - Gets the global_settings of this SettingsGlobalExtended. - Specifies the properties for global authentication settings. - - :return: The global_settings of this SettingsGlobalExtended. - :rtype: SettingsGlobalGlobalSettings - """ - return self._global_settings - - @global_settings.setter - def global_settings(self, global_settings): - """ - Sets the global_settings of this SettingsGlobalExtended. - Specifies the properties for global authentication settings. - - :param global_settings: The global_settings of this SettingsGlobalExtended. - :type: SettingsGlobalGlobalSettings - """ - self._global_settings = global_settings - def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_global_global_settings.py b/isi_sdk/models/settings_global_global_settings.py index f8d8f9333..490842115 100644 --- a/isi_sdk/models/settings_global_global_settings.py +++ b/isi_sdk/models/settings_global_global_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsGlobalGlobalSettings(object): @@ -141,6 +142,7 @@ def alloc_retries(self, alloc_retries): :param alloc_retries: The alloc_retries of this SettingsGlobalGlobalSettings. :type: int """ + self._alloc_retries = alloc_retries @property @@ -163,6 +165,7 @@ def gid_range_enabled(self, gid_range_enabled): :param gid_range_enabled: The gid_range_enabled of this SettingsGlobalGlobalSettings. :type: bool """ + self._gid_range_enabled = gid_range_enabled @property @@ -185,6 +188,7 @@ def gid_range_max(self, gid_range_max): :param gid_range_max: The gid_range_max of this SettingsGlobalGlobalSettings. :type: int """ + self._gid_range_max = gid_range_max @property @@ -207,6 +211,7 @@ def gid_range_min(self, gid_range_min): :param gid_range_min: The gid_range_min of this SettingsGlobalGlobalSettings. :type: int """ + self._gid_range_min = gid_range_min @property @@ -229,6 +234,7 @@ def gid_range_next(self, gid_range_next): :param gid_range_next: The gid_range_next of this SettingsGlobalGlobalSettings. :type: int """ + self._gid_range_next = gid_range_next @property @@ -251,6 +257,7 @@ def group_uid(self, group_uid): :param group_uid: The group_uid of this SettingsGlobalGlobalSettings. :type: int """ + self._group_uid = group_uid @property @@ -273,6 +280,7 @@ def load_providers(self, load_providers): :param load_providers: The load_providers of this SettingsGlobalGlobalSettings. :type: list[str] """ + self._load_providers = load_providers @property @@ -295,6 +303,7 @@ def min_mapped_rid(self, min_mapped_rid): :param min_mapped_rid: The min_mapped_rid of this SettingsGlobalGlobalSettings. :type: int """ + self._min_mapped_rid = min_mapped_rid @property @@ -317,6 +326,7 @@ def null_gid(self, null_gid): :param null_gid: The null_gid of this SettingsGlobalGlobalSettings. :type: int """ + self._null_gid = null_gid @property @@ -339,6 +349,7 @@ def null_uid(self, null_uid): :param null_uid: The null_uid of this SettingsGlobalGlobalSettings. :type: int """ + self._null_uid = null_uid @property @@ -367,6 +378,7 @@ def on_disk_identity(self, on_disk_identity): "Invalid value for `on_disk_identity`, must be one of {0}" .format(allowed_values) ) + self._on_disk_identity = on_disk_identity @property @@ -389,6 +401,7 @@ def rpc_block_time(self, rpc_block_time): :param rpc_block_time: The rpc_block_time of this SettingsGlobalGlobalSettings. :type: int """ + self._rpc_block_time = rpc_block_time @property @@ -411,6 +424,7 @@ def rpc_max_requests(self, rpc_max_requests): :param rpc_max_requests: The rpc_max_requests of this SettingsGlobalGlobalSettings. :type: int """ + self._rpc_max_requests = rpc_max_requests @property @@ -433,6 +447,7 @@ def rpc_timeout(self, rpc_timeout): :param rpc_timeout: The rpc_timeout of this SettingsGlobalGlobalSettings. :type: int """ + self._rpc_timeout = rpc_timeout @property @@ -455,6 +470,7 @@ def send_ntlmv2(self, send_ntlmv2): :param send_ntlmv2: The send_ntlmv2 of this SettingsGlobalGlobalSettings. :type: bool """ + self._send_ntlmv2 = send_ntlmv2 @property @@ -477,6 +493,7 @@ def space_replacement(self, space_replacement): :param space_replacement: The space_replacement of this SettingsGlobalGlobalSettings. :type: str """ + self._space_replacement = space_replacement @property @@ -499,6 +516,7 @@ def system_gid_threshold(self, system_gid_threshold): :param system_gid_threshold: The system_gid_threshold of this SettingsGlobalGlobalSettings. :type: int """ + self._system_gid_threshold = system_gid_threshold @property @@ -521,6 +539,7 @@ def system_uid_threshold(self, system_uid_threshold): :param system_uid_threshold: The system_uid_threshold of this SettingsGlobalGlobalSettings. :type: int """ + self._system_uid_threshold = system_uid_threshold @property @@ -543,6 +562,7 @@ def uid_range_enabled(self, uid_range_enabled): :param uid_range_enabled: The uid_range_enabled of this SettingsGlobalGlobalSettings. :type: bool """ + self._uid_range_enabled = uid_range_enabled @property @@ -565,6 +585,7 @@ def uid_range_max(self, uid_range_max): :param uid_range_max: The uid_range_max of this SettingsGlobalGlobalSettings. :type: int """ + self._uid_range_max = uid_range_max @property @@ -587,6 +608,7 @@ def uid_range_min(self, uid_range_min): :param uid_range_min: The uid_range_min of this SettingsGlobalGlobalSettings. :type: int """ + self._uid_range_min = uid_range_min @property @@ -609,6 +631,7 @@ def uid_range_next(self, uid_range_next): :param uid_range_next: The uid_range_next of this SettingsGlobalGlobalSettings. :type: int """ + self._uid_range_next = uid_range_next @property @@ -631,6 +654,7 @@ def unknown_gid(self, unknown_gid): :param unknown_gid: The unknown_gid of this SettingsGlobalGlobalSettings. :type: int """ + self._unknown_gid = unknown_gid @property @@ -653,6 +677,7 @@ def unknown_uid(self, unknown_uid): :param unknown_uid: The unknown_uid of this SettingsGlobalGlobalSettings. :type: int """ + self._unknown_uid = unknown_uid @property @@ -675,6 +700,7 @@ def user_object_cache_size(self, user_object_cache_size): :param user_object_cache_size: The user_object_cache_size of this SettingsGlobalGlobalSettings. :type: int """ + self._user_object_cache_size = user_object_cache_size @property @@ -697,6 +723,7 @@ def workgroup(self, workgroup): :param workgroup: The workgroup of this SettingsGlobalGlobalSettings. :type: str """ + self._workgroup = workgroup def to_dict(self): @@ -714,6 +741,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -731,14 +764,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_global_settings.py b/isi_sdk/models/settings_global_settings.py index ff9a8deaf..45f2836e8 100644 --- a/isi_sdk/models/settings_global_settings.py +++ b/isi_sdk/models/settings_global_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsGlobalSettings(object): @@ -87,6 +88,7 @@ def audited_zones(self, audited_zones): :param audited_zones: The audited_zones of this SettingsGlobalSettings. :type: list[str] """ + self._audited_zones = audited_zones @property @@ -109,6 +111,7 @@ def cee_log_time(self, cee_log_time): :param cee_log_time: The cee_log_time of this SettingsGlobalSettings. :type: str """ + self._cee_log_time = cee_log_time @property @@ -131,6 +134,7 @@ def cee_server_uris(self, cee_server_uris): :param cee_server_uris: The cee_server_uris of this SettingsGlobalSettings. :type: list[str] """ + self._cee_server_uris = cee_server_uris @property @@ -153,6 +157,7 @@ def config_auditing_enabled(self, config_auditing_enabled): :param config_auditing_enabled: The config_auditing_enabled of this SettingsGlobalSettings. :type: bool """ + self._config_auditing_enabled = config_auditing_enabled @property @@ -175,6 +180,7 @@ def config_syslog_enabled(self, config_syslog_enabled): :param config_syslog_enabled: The config_syslog_enabled of this SettingsGlobalSettings. :type: bool """ + self._config_syslog_enabled = config_syslog_enabled @property @@ -197,6 +203,7 @@ def hostname(self, hostname): :param hostname: The hostname of this SettingsGlobalSettings. :type: str """ + self._hostname = hostname @property @@ -219,6 +226,7 @@ def protocol_auditing_enabled(self, protocol_auditing_enabled): :param protocol_auditing_enabled: The protocol_auditing_enabled of this SettingsGlobalSettings. :type: bool """ + self._protocol_auditing_enabled = protocol_auditing_enabled @property @@ -241,6 +249,7 @@ def syslog_log_time(self, syslog_log_time): :param syslog_log_time: The syslog_log_time of this SettingsGlobalSettings. :type: str """ + self._syslog_log_time = syslog_log_time def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_defaults.py b/isi_sdk/models/settings_krb5_defaults.py index fd6a7f92b..b84bbc3c2 100644 --- a/isi_sdk/models/settings_krb5_defaults.py +++ b/isi_sdk/models/settings_krb5_defaults.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5Defaults(object): @@ -66,6 +67,7 @@ def krb5_settings(self, krb5_settings): :param krb5_settings: The krb5_settings of this SettingsKrb5Defaults. :type: SettingsKrb5DefaultsKrb5Settings """ + self._krb5_settings = krb5_settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_defaults_krb5_settings.py b/isi_sdk/models/settings_krb5_defaults_krb5_settings.py index af6c13e3e..f2acab220 100644 --- a/isi_sdk/models/settings_krb5_defaults_krb5_settings.py +++ b/isi_sdk/models/settings_krb5_defaults_krb5_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5DefaultsKrb5Settings(object): @@ -75,6 +76,7 @@ def always_send_preauth(self, always_send_preauth): :param always_send_preauth: The always_send_preauth of this SettingsKrb5DefaultsKrb5Settings. :type: bool """ + self._always_send_preauth = always_send_preauth @property @@ -97,6 +99,7 @@ def default_realm(self, default_realm): :param default_realm: The default_realm of this SettingsKrb5DefaultsKrb5Settings. :type: str """ + self._default_realm = default_realm @property @@ -119,6 +122,7 @@ def dns_lookup_kdc(self, dns_lookup_kdc): :param dns_lookup_kdc: The dns_lookup_kdc of this SettingsKrb5DefaultsKrb5Settings. :type: bool """ + self._dns_lookup_kdc = dns_lookup_kdc @property @@ -141,6 +145,7 @@ def dns_lookup_realm(self, dns_lookup_realm): :param dns_lookup_realm: The dns_lookup_realm of this SettingsKrb5DefaultsKrb5Settings. :type: bool """ + self._dns_lookup_realm = dns_lookup_realm def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_domain.py b/isi_sdk/models/settings_krb5_domain.py index c32efd844..08ff5486f 100644 --- a/isi_sdk/models/settings_krb5_domain.py +++ b/isi_sdk/models/settings_krb5_domain.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5Domain(object): @@ -66,6 +67,7 @@ def realm(self, realm): :param realm: The realm of this SettingsKrb5Domain. :type: str """ + self._realm = realm def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_domain_create_params.py b/isi_sdk/models/settings_krb5_domain_create_params.py index 5aa5090a3..09ff695b9 100644 --- a/isi_sdk/models/settings_krb5_domain_create_params.py +++ b/isi_sdk/models/settings_krb5_domain_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5DomainCreateParams(object): @@ -69,6 +70,7 @@ def realm(self, realm): :param realm: The realm of this SettingsKrb5DomainCreateParams. :type: str """ + self._realm = realm @property @@ -91,6 +93,7 @@ def domain(self, domain): :param domain: The domain of this SettingsKrb5DomainCreateParams. :type: str """ + self._domain = domain def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_domains.py b/isi_sdk/models/settings_krb5_domains.py index f4f3fad44..1eb7ac250 100644 --- a/isi_sdk/models/settings_krb5_domains.py +++ b/isi_sdk/models/settings_krb5_domains.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5Domains(object): @@ -66,6 +67,7 @@ def domain(self, domain): :param domain: The domain of this SettingsKrb5Domains. :type: list[SettingsKrb5DomainsDomainItem] """ + self._domain = domain def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_domains_domain_item.py b/isi_sdk/models/settings_krb5_domains_domain_item.py index c7d158051..decfea41d 100644 --- a/isi_sdk/models/settings_krb5_domains_domain_item.py +++ b/isi_sdk/models/settings_krb5_domains_domain_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5DomainsDomainItem(object): @@ -72,6 +73,7 @@ def domain(self, domain): :param domain: The domain of this SettingsKrb5DomainsDomainItem. :type: str """ + self._domain = domain @property @@ -94,6 +96,7 @@ def id(self, id): :param id: The id of this SettingsKrb5DomainsDomainItem. :type: str """ + self._id = id @property @@ -116,6 +119,7 @@ def realm(self, realm): :param realm: The realm of this SettingsKrb5DomainsDomainItem. :type: str """ + self._realm = realm def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_realm.py b/isi_sdk/models/settings_krb5_realm.py index 02c5db3b0..20354e2b7 100644 --- a/isi_sdk/models/settings_krb5_realm.py +++ b/isi_sdk/models/settings_krb5_realm.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5Realm(object): @@ -75,6 +76,7 @@ def admin_server(self, admin_server): :param admin_server: The admin_server of this SettingsKrb5Realm. :type: str """ + self._admin_server = admin_server @property @@ -97,6 +99,7 @@ def default_domain(self, default_domain): :param default_domain: The default_domain of this SettingsKrb5Realm. :type: str """ + self._default_domain = default_domain @property @@ -119,6 +122,7 @@ def is_default_realm(self, is_default_realm): :param is_default_realm: The is_default_realm of this SettingsKrb5Realm. :type: bool """ + self._is_default_realm = is_default_realm @property @@ -141,6 +145,7 @@ def kdc(self, kdc): :param kdc: The kdc of this SettingsKrb5Realm. :type: list[str] """ + self._kdc = kdc def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_realm_create_params.py b/isi_sdk/models/settings_krb5_realm_create_params.py index e74798098..7057519e3 100644 --- a/isi_sdk/models/settings_krb5_realm_create_params.py +++ b/isi_sdk/models/settings_krb5_realm_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5RealmCreateParams(object): @@ -37,26 +38,72 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'admin_server': 'str', + 'default_domain': 'str', 'is_default_realm': 'bool', - 'realm': 'str', 'kdc': 'list[str]', - 'admin_server': 'str', - 'default_domain': 'str' + 'realm': 'str' } self.attribute_map = { + 'admin_server': 'admin_server', + 'default_domain': 'default_domain', 'is_default_realm': 'is_default_realm', - 'realm': 'realm', 'kdc': 'kdc', - 'admin_server': 'admin_server', - 'default_domain': 'default_domain' + 'realm': 'realm' } - self._is_default_realm = None - self._realm = None - self._kdc = None self._admin_server = None self._default_domain = None + self._is_default_realm = None + self._kdc = None + self._realm = None + + @property + def admin_server(self): + """ + Gets the admin_server of this SettingsKrb5RealmCreateParams. + Specifies the administrative server hostname. + + :return: The admin_server of this SettingsKrb5RealmCreateParams. + :rtype: str + """ + return self._admin_server + + @admin_server.setter + def admin_server(self, admin_server): + """ + Sets the admin_server of this SettingsKrb5RealmCreateParams. + Specifies the administrative server hostname. + + :param admin_server: The admin_server of this SettingsKrb5RealmCreateParams. + :type: str + """ + + self._admin_server = admin_server + + @property + def default_domain(self): + """ + Gets the default_domain of this SettingsKrb5RealmCreateParams. + Specifies the default domain mapped to the realm. + + :return: The default_domain of this SettingsKrb5RealmCreateParams. + :rtype: str + """ + return self._default_domain + + @default_domain.setter + def default_domain(self, default_domain): + """ + Sets the default_domain of this SettingsKrb5RealmCreateParams. + Specifies the default domain mapped to the realm. + + :param default_domain: The default_domain of this SettingsKrb5RealmCreateParams. + :type: str + """ + + self._default_domain = default_domain @property def is_default_realm(self): @@ -78,30 +125,9 @@ def is_default_realm(self, is_default_realm): :param is_default_realm: The is_default_realm of this SettingsKrb5RealmCreateParams. :type: bool """ + self._is_default_realm = is_default_realm - @property - def realm(self): - """ - Gets the realm of this SettingsKrb5RealmCreateParams. - Specifies the name of the realm. - - :return: The realm of this SettingsKrb5RealmCreateParams. - :rtype: str - """ - return self._realm - - @realm.setter - def realm(self, realm): - """ - Sets the realm of this SettingsKrb5RealmCreateParams. - Specifies the name of the realm. - - :param realm: The realm of this SettingsKrb5RealmCreateParams. - :type: str - """ - self._realm = realm - @property def kdc(self): """ @@ -122,51 +148,31 @@ def kdc(self, kdc): :param kdc: The kdc of this SettingsKrb5RealmCreateParams. :type: list[str] """ + self._kdc = kdc @property - def admin_server(self): - """ - Gets the admin_server of this SettingsKrb5RealmCreateParams. - Specifies the administrative server hostname. - - :return: The admin_server of this SettingsKrb5RealmCreateParams. - :rtype: str - """ - return self._admin_server - - @admin_server.setter - def admin_server(self, admin_server): - """ - Sets the admin_server of this SettingsKrb5RealmCreateParams. - Specifies the administrative server hostname. - - :param admin_server: The admin_server of this SettingsKrb5RealmCreateParams. - :type: str - """ - self._admin_server = admin_server - - @property - def default_domain(self): + def realm(self): """ - Gets the default_domain of this SettingsKrb5RealmCreateParams. - Specifies the default domain mapped to the realm. + Gets the realm of this SettingsKrb5RealmCreateParams. + Specifies the name of the realm. - :return: The default_domain of this SettingsKrb5RealmCreateParams. + :return: The realm of this SettingsKrb5RealmCreateParams. :rtype: str """ - return self._default_domain + return self._realm - @default_domain.setter - def default_domain(self, default_domain): + @realm.setter + def realm(self, realm): """ - Sets the default_domain of this SettingsKrb5RealmCreateParams. - Specifies the default domain mapped to the realm. + Sets the realm of this SettingsKrb5RealmCreateParams. + Specifies the name of the realm. - :param default_domain: The default_domain of this SettingsKrb5RealmCreateParams. + :param realm: The realm of this SettingsKrb5RealmCreateParams. :type: str """ - self._default_domain = default_domain + + self._realm = realm def to_dict(self): """ @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_realms.py b/isi_sdk/models/settings_krb5_realms.py index 091ba18e0..b82a0f90a 100644 --- a/isi_sdk/models/settings_krb5_realms.py +++ b/isi_sdk/models/settings_krb5_realms.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5Realms(object): @@ -66,6 +67,7 @@ def realm(self, realm): :param realm: The realm of this SettingsKrb5Realms. :type: list[SettingsKrb5RealmsRealmItem] """ + self._realm = realm def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_krb5_realms_realm_item.py b/isi_sdk/models/settings_krb5_realms_realm_item.py index bdb04abd6..20a072339 100644 --- a/isi_sdk/models/settings_krb5_realms_realm_item.py +++ b/isi_sdk/models/settings_krb5_realms_realm_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsKrb5RealmsRealmItem(object): @@ -84,6 +85,7 @@ def admin_server(self, admin_server): :param admin_server: The admin_server of this SettingsKrb5RealmsRealmItem. :type: str """ + self._admin_server = admin_server @property @@ -106,6 +108,7 @@ def default_domain(self, default_domain): :param default_domain: The default_domain of this SettingsKrb5RealmsRealmItem. :type: str """ + self._default_domain = default_domain @property @@ -128,6 +131,7 @@ def id(self, id): :param id: The id of this SettingsKrb5RealmsRealmItem. :type: str """ + self._id = id @property @@ -150,6 +154,7 @@ def is_default_realm(self, is_default_realm): :param is_default_realm: The is_default_realm of this SettingsKrb5RealmsRealmItem. :type: bool """ + self._is_default_realm = is_default_realm @property @@ -172,6 +177,7 @@ def is_joined(self, is_joined): :param is_joined: The is_joined of this SettingsKrb5RealmsRealmItem. :type: bool """ + self._is_joined = is_joined @property @@ -194,6 +200,7 @@ def kdc(self, kdc): :param kdc: The kdc of this SettingsKrb5RealmsRealmItem. :type: list[str] """ + self._kdc = kdc @property @@ -216,6 +223,7 @@ def realm(self, realm): :param realm: The realm of this SettingsKrb5RealmsRealmItem. :type: str """ + self._realm = realm def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_mapping.py b/isi_sdk/models/settings_mapping.py index c1a842a3d..c45e81757 100644 --- a/isi_sdk/models/settings_mapping.py +++ b/isi_sdk/models/settings_mapping.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsMapping(object): @@ -66,6 +67,7 @@ def mapping_settings(self, mapping_settings): :param mapping_settings: The mapping_settings of this SettingsMapping. :type: SettingsMappingMappingSettings """ + self._mapping_settings = mapping_settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_mapping_extended.py b/isi_sdk/models/settings_mapping_extended.py index 71a72fa95..92b567313 100644 --- a/isi_sdk/models/settings_mapping_extended.py +++ b/isi_sdk/models/settings_mapping_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsMappingExtended(object): @@ -37,23 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'domain': 'str', 'mapping': 'str', - 'mapping_settings': 'SettingsMappingMappingSettings', - 'type': 'str', - 'domain': 'str' + 'type': 'str' } self.attribute_map = { + 'domain': 'domain', 'mapping': 'mapping', - 'mapping_settings': 'mapping_settings', - 'type': 'type', - 'domain': 'domain' + 'type': 'type' } + self._domain = None self._mapping = None - self._mapping_settings = None self._type = None - self._domain = None + + @property + def domain(self): + """ + Gets the domain of this SettingsMappingExtended. + The FQDN of the source domain to map. + + :return: The domain of this SettingsMappingExtended. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """ + Sets the domain of this SettingsMappingExtended. + The FQDN of the source domain to map. + + :param domain: The domain of this SettingsMappingExtended. + :type: str + """ + + self._domain = domain @property def mapping(self): @@ -75,30 +96,9 @@ def mapping(self, mapping): :param mapping: The mapping of this SettingsMappingExtended. :type: str """ + self._mapping = mapping - @property - def mapping_settings(self): - """ - Gets the mapping_settings of this SettingsMappingExtended. - Specifies the properties for global authentication setting. - - :return: The mapping_settings of this SettingsMappingExtended. - :rtype: SettingsMappingMappingSettings - """ - return self._mapping_settings - - @mapping_settings.setter - def mapping_settings(self, mapping_settings): - """ - Sets the mapping_settings of this SettingsMappingExtended. - Specifies the properties for global authentication setting. - - :param mapping_settings: The mapping_settings of this SettingsMappingExtended. - :type: SettingsMappingMappingSettings - """ - self._mapping_settings = mapping_settings - @property def type(self): """ @@ -125,29 +125,8 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) - self._type = type - @property - def domain(self): - """ - Gets the domain of this SettingsMappingExtended. - The FQDN of the source domain to map. - - :return: The domain of this SettingsMappingExtended. - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """ - Sets the domain of this SettingsMappingExtended. - The FQDN of the source domain to map. - - :param domain: The domain of this SettingsMappingExtended. - :type: str - """ - self._domain = domain + self._type = type def to_dict(self): """ @@ -164,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -181,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_mapping_mapping_settings.py b/isi_sdk/models/settings_mapping_mapping_settings.py index d64c5ef4d..774e0b94f 100644 --- a/isi_sdk/models/settings_mapping_mapping_settings.py +++ b/isi_sdk/models/settings_mapping_mapping_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsMappingMappingSettings(object): @@ -90,6 +91,7 @@ def cache_entry_expiry(self, cache_entry_expiry): :param cache_entry_expiry: The cache_entry_expiry of this SettingsMappingMappingSettings. :type: int """ + self._cache_entry_expiry = cache_entry_expiry @property @@ -112,6 +114,7 @@ def gid_range_enabled(self, gid_range_enabled): :param gid_range_enabled: The gid_range_enabled of this SettingsMappingMappingSettings. :type: bool """ + self._gid_range_enabled = gid_range_enabled @property @@ -134,6 +137,7 @@ def gid_range_max(self, gid_range_max): :param gid_range_max: The gid_range_max of this SettingsMappingMappingSettings. :type: int """ + self._gid_range_max = gid_range_max @property @@ -156,6 +160,7 @@ def gid_range_min(self, gid_range_min): :param gid_range_min: The gid_range_min of this SettingsMappingMappingSettings. :type: int """ + self._gid_range_min = gid_range_min @property @@ -178,6 +183,7 @@ def gid_range_next(self, gid_range_next): :param gid_range_next: The gid_range_next of this SettingsMappingMappingSettings. :type: int """ + self._gid_range_next = gid_range_next @property @@ -200,6 +206,7 @@ def uid_range_enabled(self, uid_range_enabled): :param uid_range_enabled: The uid_range_enabled of this SettingsMappingMappingSettings. :type: bool """ + self._uid_range_enabled = uid_range_enabled @property @@ -222,6 +229,7 @@ def uid_range_max(self, uid_range_max): :param uid_range_max: The uid_range_max of this SettingsMappingMappingSettings. :type: int """ + self._uid_range_max = uid_range_max @property @@ -244,6 +252,7 @@ def uid_range_min(self, uid_range_min): :param uid_range_min: The uid_range_min of this SettingsMappingMappingSettings. :type: int """ + self._uid_range_min = uid_range_min @property @@ -266,6 +275,7 @@ def uid_range_next(self, uid_range_next): :param uid_range_next: The uid_range_next of this SettingsMappingMappingSettings. :type: int """ + self._uid_range_next = uid_range_next def to_dict(self): @@ -283,6 +293,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +316,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_mappings.py b/isi_sdk/models/settings_mappings.py index 6127a964c..e800aa842 100644 --- a/isi_sdk/models/settings_mappings.py +++ b/isi_sdk/models/settings_mappings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsMappings(object): @@ -66,6 +67,7 @@ def mappings(self, mappings): :param mappings: The mappings of this SettingsMappings. :type: list[SettingsMappingExtended] """ + self._mappings = mappings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_notification.py b/isi_sdk/models/settings_notification.py index 26b22a0f5..49393adf6 100644 --- a/isi_sdk/models/settings_notification.py +++ b/isi_sdk/models/settings_notification.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsNotification(object): @@ -43,6 +44,7 @@ def __init__(self): 'condition': 'str', 'email_template': 'str', 'holdoff': 'int', + 'id': 'str', 'schedule': 'str', 'threshold': 'str' } @@ -54,6 +56,7 @@ def __init__(self): 'condition': 'condition', 'email_template': 'email_template', 'holdoff': 'holdoff', + 'id': 'id', 'schedule': 'schedule', 'threshold': 'threshold' } @@ -64,6 +67,7 @@ def __init__(self): self._condition = None self._email_template = None self._holdoff = None + self._id = None self._schedule = None self._threshold = None @@ -87,6 +91,7 @@ def action_alert(self, action_alert): :param action_alert: The action_alert of this SettingsNotification. :type: bool """ + self._action_alert = action_alert @property @@ -109,6 +114,7 @@ def action_email_address(self, action_email_address): :param action_email_address: The action_email_address of this SettingsNotification. :type: str """ + self._action_email_address = action_email_address @property @@ -131,6 +137,7 @@ def action_email_owner(self, action_email_owner): :param action_email_owner: The action_email_owner of this SettingsNotification. :type: bool """ + self._action_email_owner = action_email_owner @property @@ -159,6 +166,7 @@ def condition(self, condition): "Invalid value for `condition`, must be one of {0}" .format(allowed_values) ) + self._condition = condition @property @@ -181,6 +189,7 @@ def email_template(self, email_template): :param email_template: The email_template of this SettingsNotification. :type: str """ + self._email_template = email_template @property @@ -203,8 +212,32 @@ def holdoff(self, holdoff): :param holdoff: The holdoff of this SettingsNotification. :type: int """ + self._holdoff = holdoff + @property + def id(self): + """ + Gets the id of this SettingsNotification. + The system ID given to the rule. + + :return: The id of this SettingsNotification. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SettingsNotification. + The system ID given to the rule. + + :param id: The id of this SettingsNotification. + :type: str + """ + + self._id = id + @property def schedule(self): """ @@ -225,6 +258,7 @@ def schedule(self, schedule): :param schedule: The schedule of this SettingsNotification. :type: str """ + self._schedule = schedule @property @@ -253,6 +287,7 @@ def threshold(self, threshold): "Invalid value for `threshold`, must be one of {0}" .format(allowed_values) ) + self._threshold = threshold def to_dict(self): @@ -270,6 +305,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -287,14 +328,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_notification_create_params.py b/isi_sdk/models/settings_notification_create_params.py new file mode 100644 index 000000000..55f76156f --- /dev/null +++ b/isi_sdk/models/settings_notification_create_params.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SettingsNotificationCreateParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SettingsNotificationCreateParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'action_alert': 'bool', + 'action_email_address': 'str', + 'action_email_owner': 'bool', + 'condition': 'str', + 'email_template': 'str', + 'holdoff': 'int', + 'schedule': 'str', + 'threshold': 'str' + } + + self.attribute_map = { + 'action_alert': 'action_alert', + 'action_email_address': 'action_email_address', + 'action_email_owner': 'action_email_owner', + 'condition': 'condition', + 'email_template': 'email_template', + 'holdoff': 'holdoff', + 'schedule': 'schedule', + 'threshold': 'threshold' + } + + self._action_alert = None + self._action_email_address = None + self._action_email_owner = None + self._condition = None + self._email_template = None + self._holdoff = None + self._schedule = None + self._threshold = None + + @property + def action_alert(self): + """ + Gets the action_alert of this SettingsNotificationCreateParams. + Send alert when rule matches. + + :return: The action_alert of this SettingsNotificationCreateParams. + :rtype: bool + """ + return self._action_alert + + @action_alert.setter + def action_alert(self, action_alert): + """ + Sets the action_alert of this SettingsNotificationCreateParams. + Send alert when rule matches. + + :param action_alert: The action_alert of this SettingsNotificationCreateParams. + :type: bool + """ + + self._action_alert = action_alert + + @property + def action_email_address(self): + """ + Gets the action_email_address of this SettingsNotificationCreateParams. + Email a specific email address when rule matches. + + :return: The action_email_address of this SettingsNotificationCreateParams. + :rtype: str + """ + return self._action_email_address + + @action_email_address.setter + def action_email_address(self, action_email_address): + """ + Sets the action_email_address of this SettingsNotificationCreateParams. + Email a specific email address when rule matches. + + :param action_email_address: The action_email_address of this SettingsNotificationCreateParams. + :type: str + """ + + self._action_email_address = action_email_address + + @property + def action_email_owner(self): + """ + Gets the action_email_owner of this SettingsNotificationCreateParams. + Email quota domain owner when rule matches. + + :return: The action_email_owner of this SettingsNotificationCreateParams. + :rtype: bool + """ + return self._action_email_owner + + @action_email_owner.setter + def action_email_owner(self, action_email_owner): + """ + Sets the action_email_owner of this SettingsNotificationCreateParams. + Email quota domain owner when rule matches. + + :param action_email_owner: The action_email_owner of this SettingsNotificationCreateParams. + :type: bool + """ + + self._action_email_owner = action_email_owner + + @property + def condition(self): + """ + Gets the condition of this SettingsNotificationCreateParams. + The condition detected. + + :return: The condition of this SettingsNotificationCreateParams. + :rtype: str + """ + return self._condition + + @condition.setter + def condition(self, condition): + """ + Sets the condition of this SettingsNotificationCreateParams. + The condition detected. + + :param condition: The condition of this SettingsNotificationCreateParams. + :type: str + """ + allowed_values = ["exceeded", "denied", "violated", "expired"] + if condition not in allowed_values: + raise ValueError( + "Invalid value for `condition`, must be one of {0}" + .format(allowed_values) + ) + + self._condition = condition + + @property + def email_template(self): + """ + Gets the email_template of this SettingsNotificationCreateParams. + Path of optional /ifs template file used for email actions. + + :return: The email_template of this SettingsNotificationCreateParams. + :rtype: str + """ + return self._email_template + + @email_template.setter + def email_template(self, email_template): + """ + Sets the email_template of this SettingsNotificationCreateParams. + Path of optional /ifs template file used for email actions. + + :param email_template: The email_template of this SettingsNotificationCreateParams. + :type: str + """ + + self._email_template = email_template + + @property + def holdoff(self): + """ + Gets the holdoff of this SettingsNotificationCreateParams. + Time to wait between detections for rules triggered by user actions. + + :return: The holdoff of this SettingsNotificationCreateParams. + :rtype: int + """ + return self._holdoff + + @holdoff.setter + def holdoff(self, holdoff): + """ + Sets the holdoff of this SettingsNotificationCreateParams. + Time to wait between detections for rules triggered by user actions. + + :param holdoff: The holdoff of this SettingsNotificationCreateParams. + :type: int + """ + + self._holdoff = holdoff + + @property + def schedule(self): + """ + Gets the schedule of this SettingsNotificationCreateParams. + Schedule for rules that repeatedly notify. + + :return: The schedule of this SettingsNotificationCreateParams. + :rtype: str + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this SettingsNotificationCreateParams. + Schedule for rules that repeatedly notify. + + :param schedule: The schedule of this SettingsNotificationCreateParams. + :type: str + """ + + self._schedule = schedule + + @property + def threshold(self): + """ + Gets the threshold of this SettingsNotificationCreateParams. + The quota threshold detected. + + :return: The threshold of this SettingsNotificationCreateParams. + :rtype: str + """ + return self._threshold + + @threshold.setter + def threshold(self, threshold): + """ + Sets the threshold of this SettingsNotificationCreateParams. + The quota threshold detected. + + :param threshold: The threshold of this SettingsNotificationCreateParams. + :type: str + """ + allowed_values = ["hard", "soft", "advisory"] + if threshold not in allowed_values: + raise ValueError( + "Invalid value for `threshold`, must be one of {0}" + .format(allowed_values) + ) + + self._threshold = threshold + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/settings_notifications.py b/isi_sdk/models/settings_notifications.py index 57297f2dc..49443a79a 100644 --- a/isi_sdk/models/settings_notifications.py +++ b/isi_sdk/models/settings_notifications.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsNotifications(object): @@ -37,17 +38,14 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'notifications': 'list[QuotasQidNotificationsNotification]', - 'total': 'int' + 'notifications': 'list[SettingsNotification]' } self.attribute_map = { - 'notifications': 'notifications', - 'total': 'total' + 'notifications': 'notifications' } self._notifications = None - self._total = None @property def notifications(self): @@ -56,7 +54,7 @@ def notifications(self): :return: The notifications of this SettingsNotifications. - :rtype: list[QuotasQidNotificationsNotification] + :rtype: list[SettingsNotification] """ return self._notifications @@ -67,32 +65,11 @@ def notifications(self, notifications): :param notifications: The notifications of this SettingsNotifications. - :type: list[QuotasQidNotificationsNotification] + :type: list[SettingsNotification] """ + self._notifications = notifications - @property - def total(self): - """ - Gets the total of this SettingsNotifications. - Total number of items available. - - :return: The total of this SettingsNotifications. - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """ - Sets the total of this SettingsNotifications. - Total number of items available. - - :param total: The total of this SettingsNotifications. - :type: int - """ - self._total = total - def to_dict(self): """ Returns the model properties as a dict @@ -108,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_notifications_extended.py b/isi_sdk/models/settings_notifications_extended.py new file mode 100644 index 000000000..a404a039f --- /dev/null +++ b/isi_sdk/models/settings_notifications_extended.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SettingsNotificationsExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SettingsNotificationsExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'notifications': 'list[SettingsNotification]', + 'total': 'int' + } + + self.attribute_map = { + 'notifications': 'notifications', + 'total': 'total' + } + + self._notifications = None + self._total = None + + @property + def notifications(self): + """ + Gets the notifications of this SettingsNotificationsExtended. + + + :return: The notifications of this SettingsNotificationsExtended. + :rtype: list[SettingsNotification] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """ + Sets the notifications of this SettingsNotificationsExtended. + + + :param notifications: The notifications of this SettingsNotificationsExtended. + :type: list[SettingsNotification] + """ + + self._notifications = notifications + + @property + def total(self): + """ + Gets the total of this SettingsNotificationsExtended. + Total number of items available. + + :return: The total of this SettingsNotificationsExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this SettingsNotificationsExtended. + Total number of items available. + + :param total: The total of this SettingsNotificationsExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/settings_reporting_eula_item.py b/isi_sdk/models/settings_reporting_eula_item.py index 273867a12..20714857a 100644 --- a/isi_sdk/models/settings_reporting_eula_item.py +++ b/isi_sdk/models/settings_reporting_eula_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsReportingEulaItem(object): @@ -69,6 +70,7 @@ def accepted(self, accepted): :param accepted: The accepted of this SettingsReportingEulaItem. :type: bool """ + self._accepted = accepted @property @@ -91,6 +93,7 @@ def body(self, body): :param body: The body of this SettingsReportingEulaItem. :type: str """ + self._body = body def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_reports.py b/isi_sdk/models/settings_reports.py index 336ac7d2c..8ca78c762 100644 --- a/isi_sdk/models/settings_reports.py +++ b/isi_sdk/models/settings_reports.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsReports(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this SettingsReports. :type: SettingsReportsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/settings_reports_settings.py b/isi_sdk/models/settings_reports_settings.py index a8a90a1aa..c1084cca2 100644 --- a/isi_sdk/models/settings_reports_settings.py +++ b/isi_sdk/models/settings_reports_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SettingsReportsSettings(object): @@ -78,6 +79,7 @@ def live_dir(self, live_dir): :param live_dir: The live_dir of this SettingsReportsSettings. :type: str """ + self._live_dir = live_dir @property @@ -100,6 +102,12 @@ def live_retain(self, live_retain): :param live_retain: The live_retain of this SettingsReportsSettings. :type: int """ + + if not live_retain: + raise ValueError("Invalid value for `live_retain`, must not be `None`") + if live_retain < 1.0: + raise ValueError("Invalid value for `live_retain`, must be a value greater than or equal to `1.0`") + self._live_retain = live_retain @property @@ -122,6 +130,7 @@ def schedule(self, schedule): :param schedule: The schedule of this SettingsReportsSettings. :type: str """ + self._schedule = schedule @property @@ -144,6 +153,7 @@ def scheduled_dir(self, scheduled_dir): :param scheduled_dir: The scheduled_dir of this SettingsReportsSettings. :type: str """ + self._scheduled_dir = scheduled_dir @property @@ -166,6 +176,12 @@ def scheduled_retain(self, scheduled_retain): :param scheduled_retain: The scheduled_retain of this SettingsReportsSettings. :type: int """ + + if not scheduled_retain: + raise ValueError("Invalid value for `scheduled_retain`, must not be `None`") + if scheduled_retain < 1.0: + raise ValueError("Invalid value for `scheduled_retain`, must be a value greater than or equal to `1.0`") + self._scheduled_retain = scheduled_retain def to_dict(self): @@ -183,6 +199,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +222,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_log_level.py b/isi_sdk/models/smb_log_level.py index 58e2813da..dee5f9731 100644 --- a/isi_sdk/models/smb_log_level.py +++ b/isi_sdk/models/smb_log_level.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbLogLevel(object): @@ -72,6 +73,7 @@ def level(self, level): "Invalid value for `level`, must be one of {0}" .format(allowed_values) ) + self._level = level def to_dict(self): @@ -89,6 +91,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -106,14 +114,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_log_level_filter.py b/isi_sdk/models/smb_log_level_filter.py index d296ce30e..32ea42271 100644 --- a/isi_sdk/models/smb_log_level_filter.py +++ b/isi_sdk/models/smb_log_level_filter.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbLogLevelFilter(object): @@ -72,6 +73,7 @@ def ip_addrs(self, ip_addrs): :param ip_addrs: The ip_addrs of this SmbLogLevelFilter. :type: list[str] """ + self._ip_addrs = ip_addrs @property @@ -100,6 +102,7 @@ def level(self, level): "Invalid value for `level`, must be one of {0}" .format(allowed_values) ) + self._level = level @property @@ -122,6 +125,7 @@ def ops(self, ops): :param ops: The ops of this SmbLogLevelFilter. :type: list[str] """ + self._ops = ops def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_log_level_filters.py b/isi_sdk/models/smb_log_level_filters.py index d55a30136..acac54ec7 100644 --- a/isi_sdk/models/smb_log_level_filters.py +++ b/isi_sdk/models/smb_log_level_filters.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbLogLevelFilters(object): @@ -66,6 +67,7 @@ def filters(self, filters): :param filters: The filters of this SmbLogLevelFilters. :type: list[SmbLogLevelFiltersFilter] """ + self._filters = filters def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_log_level_filters_extended.py b/isi_sdk/models/smb_log_level_filters_extended.py index 07cb94926..0092b6c95 100644 --- a/isi_sdk/models/smb_log_level_filters_extended.py +++ b/isi_sdk/models/smb_log_level_filters_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbLogLevelFiltersExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'filters': 'list[SmbLogLevelFiltersFilter]', 'resume': 'str', - 'total': 'int', - 'filters': 'list[SmbLogLevelFiltersFilter]' + 'total': 'int' } self.attribute_map = { + 'filters': 'filters', 'resume': 'resume', - 'total': 'total', - 'filters': 'filters' + 'total': 'total' } + self._filters = None self._resume = None self._total = None - self._filters = None + + @property + def filters(self): + """ + Gets the filters of this SmbLogLevelFiltersExtended. + + + :return: The filters of this SmbLogLevelFiltersExtended. + :rtype: list[SmbLogLevelFiltersFilter] + """ + return self._filters + + @filters.setter + def filters(self, filters): + """ + Sets the filters of this SmbLogLevelFiltersExtended. + + + :param filters: The filters of this SmbLogLevelFiltersExtended. + :type: list[SmbLogLevelFiltersFilter] + """ + + self._filters = filters @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SmbLogLevelFiltersExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this SmbLogLevelFiltersExtended. :type: int """ + self._total = total - @property - def filters(self): - """ - Gets the filters of this SmbLogLevelFiltersExtended. - - - :return: The filters of this SmbLogLevelFiltersExtended. - :rtype: list[SmbLogLevelFiltersFilter] - """ - return self._filters - - @filters.setter - def filters(self, filters): - """ - Sets the filters of this SmbLogLevelFiltersExtended. - - - :param filters: The filters of this SmbLogLevelFiltersExtended. - :type: list[SmbLogLevelFiltersFilter] - """ - self._filters = filters - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_log_level_filters_filter.py b/isi_sdk/models/smb_log_level_filters_filter.py index 8d4b89e75..9b956536d 100644 --- a/isi_sdk/models/smb_log_level_filters_filter.py +++ b/isi_sdk/models/smb_log_level_filters_filter.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbLogLevelFiltersFilter(object): @@ -75,6 +76,7 @@ def id(self, id): :param id: The id of this SmbLogLevelFiltersFilter. :type: int """ + self._id = id @property @@ -97,6 +99,7 @@ def ip_addrs(self, ip_addrs): :param ip_addrs: The ip_addrs of this SmbLogLevelFiltersFilter. :type: list[str] """ + self._ip_addrs = ip_addrs @property @@ -125,6 +128,7 @@ def level(self, level): "Invalid value for `level`, must be one of {0}" .format(allowed_values) ) + self._level = level @property @@ -147,6 +151,7 @@ def ops(self, ops): :param ops: The ops of this SmbLogLevelFiltersFilter. :type: list[str] """ + self._ops = ops def to_dict(self): @@ -164,6 +169,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -181,14 +192,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_openfile.py b/isi_sdk/models/smb_openfile.py index a85a894b5..e7d15b20a 100644 --- a/isi_sdk/models/smb_openfile.py +++ b/isi_sdk/models/smb_openfile.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbOpenfile(object): @@ -78,6 +79,7 @@ def file(self, file): :param file: The file of this SmbOpenfile. :type: str """ + self._file = file @property @@ -100,6 +102,7 @@ def id(self, id): :param id: The id of this SmbOpenfile. :type: int """ + self._id = id @property @@ -122,6 +125,7 @@ def locks(self, locks): :param locks: The locks of this SmbOpenfile. :type: int """ + self._locks = locks @property @@ -144,6 +148,7 @@ def permissions(self, permissions): :param permissions: The permissions of this SmbOpenfile. :type: list[str] """ + self._permissions = permissions @property @@ -166,6 +171,7 @@ def user(self, user): :param user: The user of this SmbOpenfile. :type: str """ + self._user = user def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_openfiles.py b/isi_sdk/models/smb_openfiles.py index 02a435497..474e93728 100644 --- a/isi_sdk/models/smb_openfiles.py +++ b/isi_sdk/models/smb_openfiles.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbOpenfiles(object): @@ -72,6 +73,7 @@ def openfiles(self, openfiles): :param openfiles: The openfiles of this SmbOpenfiles. :type: list[SmbOpenfile] """ + self._openfiles = openfiles @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SmbOpenfiles. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this SmbOpenfiles. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_session.py b/isi_sdk/models/smb_session.py index f470a84c7..cf51a1226 100644 --- a/isi_sdk/models/smb_session.py +++ b/isi_sdk/models/smb_session.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSession(object): @@ -90,6 +91,7 @@ def active_time(self, active_time): :param active_time: The active_time of this SmbSession. :type: int """ + self._active_time = active_time @property @@ -112,6 +114,7 @@ def client_type(self, client_type): :param client_type: The client_type of this SmbSession. :type: str """ + self._client_type = client_type @property @@ -134,6 +137,7 @@ def computer(self, computer): :param computer: The computer of this SmbSession. :type: str """ + self._computer = computer @property @@ -156,6 +160,7 @@ def encryption(self, encryption): :param encryption: The encryption of this SmbSession. :type: bool """ + self._encryption = encryption @property @@ -178,6 +183,7 @@ def guest_login(self, guest_login): :param guest_login: The guest_login of this SmbSession. :type: bool """ + self._guest_login = guest_login @property @@ -200,6 +206,7 @@ def id(self, id): :param id: The id of this SmbSession. :type: int """ + self._id = id @property @@ -222,6 +229,7 @@ def idle_time(self, idle_time): :param idle_time: The idle_time of this SmbSession. :type: int """ + self._idle_time = idle_time @property @@ -244,6 +252,7 @@ def openfiles(self, openfiles): :param openfiles: The openfiles of this SmbSession. :type: int """ + self._openfiles = openfiles @property @@ -266,6 +275,7 @@ def user(self, user): :param user: The user of this SmbSession. :type: str """ + self._user = user def to_dict(self): @@ -283,6 +293,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +316,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_sessions.py b/isi_sdk/models/smb_sessions.py index 484896811..eb82b90fa 100644 --- a/isi_sdk/models/smb_sessions.py +++ b/isi_sdk/models/smb_sessions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSessions(object): @@ -72,6 +73,7 @@ def resume(self, resume): :param resume: The resume of this SmbSessions. :type: str """ + self._resume = resume @property @@ -94,6 +96,7 @@ def sessions(self, sessions): :param sessions: The sessions of this SmbSessions. :type: list[SmbSession] """ + self._sessions = sessions @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this SmbSessions. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_settings_global.py b/isi_sdk/models/smb_settings_global.py index 4d62dde7e..3f12f2d04 100644 --- a/isi_sdk/models/smb_settings_global.py +++ b/isi_sdk/models/smb_settings_global.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSettingsGlobal(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this SmbSettingsGlobal. :type: SmbSettingsGlobalSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_settings_global_settings.py b/isi_sdk/models/smb_settings_global_settings.py index 592918a92..e693ecdd4 100644 --- a/isi_sdk/models/smb_settings_global_settings.py +++ b/isi_sdk/models/smb_settings_global_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSettingsGlobalSettings(object): @@ -129,6 +130,7 @@ def access_based_share_enum(self, access_based_share_enum): :param access_based_share_enum: The access_based_share_enum of this SmbSettingsGlobalSettings. :type: bool """ + self._access_based_share_enum = access_based_share_enum @property @@ -157,6 +159,7 @@ def audit_fileshare(self, audit_fileshare): "Invalid value for `audit_fileshare`, must be one of {0}" .format(allowed_values) ) + self._audit_fileshare = audit_fileshare @property @@ -179,6 +182,7 @@ def audit_global_sacl(self, audit_global_sacl): :param audit_global_sacl: The audit_global_sacl of this SmbSettingsGlobalSettings. :type: list[SmbSettingsGlobalSettingsAuditGlobalSaclItem] """ + self._audit_global_sacl = audit_global_sacl @property @@ -207,6 +211,7 @@ def audit_logon(self, audit_logon): "Invalid value for `audit_logon`, must be one of {0}" .format(allowed_values) ) + self._audit_logon = audit_logon @property @@ -229,6 +234,7 @@ def dot_snap_accessible_child(self, dot_snap_accessible_child): :param dot_snap_accessible_child: The dot_snap_accessible_child of this SmbSettingsGlobalSettings. :type: bool """ + self._dot_snap_accessible_child = dot_snap_accessible_child @property @@ -251,6 +257,7 @@ def dot_snap_accessible_root(self, dot_snap_accessible_root): :param dot_snap_accessible_root: The dot_snap_accessible_root of this SmbSettingsGlobalSettings. :type: bool """ + self._dot_snap_accessible_root = dot_snap_accessible_root @property @@ -273,6 +280,7 @@ def dot_snap_visible_child(self, dot_snap_visible_child): :param dot_snap_visible_child: The dot_snap_visible_child of this SmbSettingsGlobalSettings. :type: bool """ + self._dot_snap_visible_child = dot_snap_visible_child @property @@ -295,6 +303,7 @@ def dot_snap_visible_root(self, dot_snap_visible_root): :param dot_snap_visible_root: The dot_snap_visible_root of this SmbSettingsGlobalSettings. :type: bool """ + self._dot_snap_visible_root = dot_snap_visible_root @property @@ -317,6 +326,7 @@ def enable_security_signatures(self, enable_security_signatures): :param enable_security_signatures: The enable_security_signatures of this SmbSettingsGlobalSettings. :type: bool """ + self._enable_security_signatures = enable_security_signatures @property @@ -339,6 +349,7 @@ def guest_user(self, guest_user): :param guest_user: The guest_user of this SmbSettingsGlobalSettings. :type: str """ + self._guest_user = guest_user @property @@ -361,6 +372,7 @@ def ignore_eas(self, ignore_eas): :param ignore_eas: The ignore_eas of this SmbSettingsGlobalSettings. :type: bool """ + self._ignore_eas = ignore_eas @property @@ -383,6 +395,14 @@ def onefs_cpu_multiplier(self, onefs_cpu_multiplier): :param onefs_cpu_multiplier: The onefs_cpu_multiplier of this SmbSettingsGlobalSettings. :type: int """ + + if not onefs_cpu_multiplier: + raise ValueError("Invalid value for `onefs_cpu_multiplier`, must not be `None`") + if onefs_cpu_multiplier > 4.0: + raise ValueError("Invalid value for `onefs_cpu_multiplier`, must be a value less than or equal to `4.0`") + if onefs_cpu_multiplier < 1.0: + raise ValueError("Invalid value for `onefs_cpu_multiplier`, must be a value greater than or equal to `1.0`") + self._onefs_cpu_multiplier = onefs_cpu_multiplier @property @@ -405,6 +425,14 @@ def onefs_num_workers(self, onefs_num_workers): :param onefs_num_workers: The onefs_num_workers of this SmbSettingsGlobalSettings. :type: int """ + + if not onefs_num_workers: + raise ValueError("Invalid value for `onefs_num_workers`, must not be `None`") + if onefs_num_workers > 1024.0: + raise ValueError("Invalid value for `onefs_num_workers`, must be a value less than or equal to `1024.0`") + if onefs_num_workers < 0.0: + raise ValueError("Invalid value for `onefs_num_workers`, must be a value greater than or equal to `0.0`") + self._onefs_num_workers = onefs_num_workers @property @@ -427,6 +455,7 @@ def require_security_signatures(self, require_security_signatures): :param require_security_signatures: The require_security_signatures of this SmbSettingsGlobalSettings. :type: bool """ + self._require_security_signatures = require_security_signatures @property @@ -449,6 +478,7 @@ def server_side_copy(self, server_side_copy): :param server_side_copy: The server_side_copy of this SmbSettingsGlobalSettings. :type: bool """ + self._server_side_copy = server_side_copy @property @@ -471,6 +501,7 @@ def server_string(self, server_string): :param server_string: The server_string of this SmbSettingsGlobalSettings. :type: str """ + self._server_string = server_string @property @@ -493,6 +524,7 @@ def service(self, service): :param service: The service of this SmbSettingsGlobalSettings. :type: bool """ + self._service = service @property @@ -515,6 +547,14 @@ def srv_cpu_multiplier(self, srv_cpu_multiplier): :param srv_cpu_multiplier: The srv_cpu_multiplier of this SmbSettingsGlobalSettings. :type: int """ + + if not srv_cpu_multiplier: + raise ValueError("Invalid value for `srv_cpu_multiplier`, must not be `None`") + if srv_cpu_multiplier > 8.0: + raise ValueError("Invalid value for `srv_cpu_multiplier`, must be a value less than or equal to `8.0`") + if srv_cpu_multiplier < 1.0: + raise ValueError("Invalid value for `srv_cpu_multiplier`, must be a value greater than or equal to `1.0`") + self._srv_cpu_multiplier = srv_cpu_multiplier @property @@ -537,6 +577,14 @@ def srv_num_workers(self, srv_num_workers): :param srv_num_workers: The srv_num_workers of this SmbSettingsGlobalSettings. :type: int """ + + if not srv_num_workers: + raise ValueError("Invalid value for `srv_num_workers`, must not be `None`") + if srv_num_workers > 1024.0: + raise ValueError("Invalid value for `srv_num_workers`, must be a value less than or equal to `1024.0`") + if srv_num_workers < 0.0: + raise ValueError("Invalid value for `srv_num_workers`, must be a value greater than or equal to `0.0`") + self._srv_num_workers = srv_num_workers @property @@ -559,6 +607,7 @@ def support_multichannel(self, support_multichannel): :param support_multichannel: The support_multichannel of this SmbSettingsGlobalSettings. :type: bool """ + self._support_multichannel = support_multichannel @property @@ -581,6 +630,7 @@ def support_netbios(self, support_netbios): :param support_netbios: The support_netbios of this SmbSettingsGlobalSettings. :type: bool """ + self._support_netbios = support_netbios @property @@ -603,6 +653,7 @@ def support_smb2(self, support_smb2): :param support_smb2: The support_smb2 of this SmbSettingsGlobalSettings. :type: bool """ + self._support_smb2 = support_smb2 def to_dict(self): @@ -620,6 +671,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -637,14 +694,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_settings_global_settings_audit_global_sacl_item.py b/isi_sdk/models/smb_settings_global_settings_audit_global_sacl_item.py index 4c8cf9976..7cf935f57 100644 --- a/isi_sdk/models/smb_settings_global_settings_audit_global_sacl_item.py +++ b/isi_sdk/models/smb_settings_global_settings_audit_global_sacl_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSettingsGlobalSettingsAuditGlobalSaclItem(object): @@ -75,6 +76,7 @@ def flags(self, flags): "Invalid value for `flags`, must be one of {0}" .format(allowed_values) ) + self._flags = flags @property @@ -97,6 +99,7 @@ def permission(self, permission): :param permission: The permission of this SmbSettingsGlobalSettingsAuditGlobalSaclItem. :type: list[str] """ + self._permission = permission def to_dict(self): @@ -114,6 +117,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -131,14 +140,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_settings_share.py b/isi_sdk/models/smb_settings_share.py index d81086868..f8d7c4748 100644 --- a/isi_sdk/models/smb_settings_share.py +++ b/isi_sdk/models/smb_settings_share.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSettingsShare(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this SmbSettingsShare. :type: SmbSettingsShareSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_settings_share_settings.py b/isi_sdk/models/smb_settings_share_settings.py index 24f2e8874..63589684d 100644 --- a/isi_sdk/models/smb_settings_share_settings.py +++ b/isi_sdk/models/smb_settings_share_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSettingsShareSettings(object): @@ -147,6 +148,7 @@ def access_based_enumeration(self, access_based_enumeration): :param access_based_enumeration: The access_based_enumeration of this SmbSettingsShareSettings. :type: bool """ + self._access_based_enumeration = access_based_enumeration @property @@ -169,6 +171,7 @@ def access_based_enumeration_root_only(self, access_based_enumeration_root_only) :param access_based_enumeration_root_only: The access_based_enumeration_root_only of this SmbSettingsShareSettings. :type: bool """ + self._access_based_enumeration_root_only = access_based_enumeration_root_only @property @@ -191,6 +194,7 @@ def allow_delete_readonly(self, allow_delete_readonly): :param allow_delete_readonly: The allow_delete_readonly of this SmbSettingsShareSettings. :type: bool """ + self._allow_delete_readonly = allow_delete_readonly @property @@ -213,6 +217,7 @@ def allow_execute_always(self, allow_execute_always): :param allow_execute_always: The allow_execute_always of this SmbSettingsShareSettings. :type: bool """ + self._allow_execute_always = allow_execute_always @property @@ -235,6 +240,12 @@ def ca_timeout(self, ca_timeout): :param ca_timeout: The ca_timeout of this SmbSettingsShareSettings. :type: int """ + + if not ca_timeout: + raise ValueError("Invalid value for `ca_timeout`, must not be `None`") + if ca_timeout < 2.0: + raise ValueError("Invalid value for `ca_timeout`, must be a value greater than or equal to `2.0`") + self._ca_timeout = ca_timeout @property @@ -263,6 +274,7 @@ def ca_write_integrity(self, ca_write_integrity): "Invalid value for `ca_write_integrity`, must be one of {0}" .format(allowed_values) ) + self._ca_write_integrity = ca_write_integrity @property @@ -291,6 +303,7 @@ def change_notify(self, change_notify): "Invalid value for `change_notify`, must be one of {0}" .format(allowed_values) ) + self._change_notify = change_notify @property @@ -319,6 +332,7 @@ def create_permissions(self, create_permissions): "Invalid value for `create_permissions`, must be one of {0}" .format(allowed_values) ) + self._create_permissions = create_permissions @property @@ -347,6 +361,7 @@ def csc_policy(self, csc_policy): "Invalid value for `csc_policy`, must be one of {0}" .format(allowed_values) ) + self._csc_policy = csc_policy @property @@ -369,6 +384,14 @@ def directory_create_mask(self, directory_create_mask): :param directory_create_mask: The directory_create_mask of this SmbSettingsShareSettings. :type: int """ + + if not directory_create_mask: + raise ValueError("Invalid value for `directory_create_mask`, must not be `None`") + if directory_create_mask > 511.0: + raise ValueError("Invalid value for `directory_create_mask`, must be a value less than or equal to `511.0`") + if directory_create_mask < 0.0: + raise ValueError("Invalid value for `directory_create_mask`, must be a value greater than or equal to `0.0`") + self._directory_create_mask = directory_create_mask @property @@ -391,6 +414,14 @@ def directory_create_mode(self, directory_create_mode): :param directory_create_mode: The directory_create_mode of this SmbSettingsShareSettings. :type: int """ + + if not directory_create_mode: + raise ValueError("Invalid value for `directory_create_mode`, must not be `None`") + if directory_create_mode > 511.0: + raise ValueError("Invalid value for `directory_create_mode`, must be a value less than or equal to `511.0`") + if directory_create_mode < 0.0: + raise ValueError("Invalid value for `directory_create_mode`, must be a value greater than or equal to `0.0`") + self._directory_create_mode = directory_create_mode @property @@ -413,6 +444,14 @@ def file_create_mask(self, file_create_mask): :param file_create_mask: The file_create_mask of this SmbSettingsShareSettings. :type: int """ + + if not file_create_mask: + raise ValueError("Invalid value for `file_create_mask`, must not be `None`") + if file_create_mask > 511.0: + raise ValueError("Invalid value for `file_create_mask`, must be a value less than or equal to `511.0`") + if file_create_mask < 0.0: + raise ValueError("Invalid value for `file_create_mask`, must be a value greater than or equal to `0.0`") + self._file_create_mask = file_create_mask @property @@ -435,6 +474,14 @@ def file_create_mode(self, file_create_mode): :param file_create_mode: The file_create_mode of this SmbSettingsShareSettings. :type: int """ + + if not file_create_mode: + raise ValueError("Invalid value for `file_create_mode`, must not be `None`") + if file_create_mode > 511.0: + raise ValueError("Invalid value for `file_create_mode`, must be a value less than or equal to `511.0`") + if file_create_mode < 0.0: + raise ValueError("Invalid value for `file_create_mode`, must be a value greater than or equal to `0.0`") + self._file_create_mode = file_create_mode @property @@ -457,6 +504,7 @@ def file_filter_extensions(self, file_filter_extensions): :param file_filter_extensions: The file_filter_extensions of this SmbSettingsShareSettings. :type: list[str] """ + self._file_filter_extensions = file_filter_extensions @property @@ -485,6 +533,7 @@ def file_filter_type(self, file_filter_type): "Invalid value for `file_filter_type`, must be one of {0}" .format(allowed_values) ) + self._file_filter_type = file_filter_type @property @@ -507,6 +556,7 @@ def file_filtering_enabled(self, file_filtering_enabled): :param file_filtering_enabled: The file_filtering_enabled of this SmbSettingsShareSettings. :type: bool """ + self._file_filtering_enabled = file_filtering_enabled @property @@ -529,6 +579,7 @@ def hide_dot_files(self, hide_dot_files): :param hide_dot_files: The hide_dot_files of this SmbSettingsShareSettings. :type: bool """ + self._hide_dot_files = hide_dot_files @property @@ -551,6 +602,7 @@ def host_acl(self, host_acl): :param host_acl: The host_acl of this SmbSettingsShareSettings. :type: list[str] """ + self._host_acl = host_acl @property @@ -579,6 +631,7 @@ def impersonate_guest(self, impersonate_guest): "Invalid value for `impersonate_guest`, must be one of {0}" .format(allowed_values) ) + self._impersonate_guest = impersonate_guest @property @@ -601,6 +654,7 @@ def impersonate_user(self, impersonate_user): :param impersonate_user: The impersonate_user of this SmbSettingsShareSettings. :type: str """ + self._impersonate_user = impersonate_user @property @@ -623,6 +677,14 @@ def mangle_byte_start(self, mangle_byte_start): :param mangle_byte_start: The mangle_byte_start of this SmbSettingsShareSettings. :type: int """ + + if not mangle_byte_start: + raise ValueError("Invalid value for `mangle_byte_start`, must not be `None`") + if mangle_byte_start > 65535.0: + raise ValueError("Invalid value for `mangle_byte_start`, must be a value less than or equal to `65535.0`") + if mangle_byte_start < 256.0: + raise ValueError("Invalid value for `mangle_byte_start`, must be a value greater than or equal to `256.0`") + self._mangle_byte_start = mangle_byte_start @property @@ -645,6 +707,7 @@ def mangle_map(self, mangle_map): :param mangle_map: The mangle_map of this SmbSettingsShareSettings. :type: list[str] """ + self._mangle_map = mangle_map @property @@ -667,6 +730,7 @@ def ntfs_acl_support(self, ntfs_acl_support): :param ntfs_acl_support: The ntfs_acl_support of this SmbSettingsShareSettings. :type: bool """ + self._ntfs_acl_support = ntfs_acl_support @property @@ -689,6 +753,7 @@ def oplocks(self, oplocks): :param oplocks: The oplocks of this SmbSettingsShareSettings. :type: bool """ + self._oplocks = oplocks @property @@ -711,6 +776,7 @@ def strict_ca_lockout(self, strict_ca_lockout): :param strict_ca_lockout: The strict_ca_lockout of this SmbSettingsShareSettings. :type: bool """ + self._strict_ca_lockout = strict_ca_lockout @property @@ -733,6 +799,7 @@ def strict_flush(self, strict_flush): :param strict_flush: The strict_flush of this SmbSettingsShareSettings. :type: bool """ + self._strict_flush = strict_flush @property @@ -755,6 +822,7 @@ def strict_locking(self, strict_locking): :param strict_locking: The strict_locking of this SmbSettingsShareSettings. :type: bool """ + self._strict_locking = strict_locking @property @@ -777,6 +845,7 @@ def zone(self, zone): :param zone: The zone of this SmbSettingsShareSettings. :type: str """ + self._zone = zone def to_dict(self): @@ -794,6 +863,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -811,14 +886,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_share.py b/isi_sdk/models/smb_share.py index d2a2233f5..8afd6a000 100644 --- a/isi_sdk/models/smb_share.py +++ b/isi_sdk/models/smb_share.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbShare(object): @@ -69,7 +70,7 @@ def __init__(self): 'oplocks': 'bool', 'path': 'str', 'permissions': 'list[SmbSharePermission]', - 'run_as_root': 'list[GroupsGroupMember]', + 'run_as_root': 'list[GroupMember]', 'strict_ca_lockout': 'bool', 'strict_flush': 'bool', 'strict_locking': 'bool', @@ -174,6 +175,7 @@ def access_based_enumeration(self, access_based_enumeration): :param access_based_enumeration: The access_based_enumeration of this SmbShare. :type: bool """ + self._access_based_enumeration = access_based_enumeration @property @@ -196,6 +198,7 @@ def access_based_enumeration_root_only(self, access_based_enumeration_root_only) :param access_based_enumeration_root_only: The access_based_enumeration_root_only of this SmbShare. :type: bool """ + self._access_based_enumeration_root_only = access_based_enumeration_root_only @property @@ -218,6 +221,7 @@ def allow_delete_readonly(self, allow_delete_readonly): :param allow_delete_readonly: The allow_delete_readonly of this SmbShare. :type: bool """ + self._allow_delete_readonly = allow_delete_readonly @property @@ -240,6 +244,7 @@ def allow_execute_always(self, allow_execute_always): :param allow_execute_always: The allow_execute_always of this SmbShare. :type: bool """ + self._allow_execute_always = allow_execute_always @property @@ -262,6 +267,7 @@ def allow_variable_expansion(self, allow_variable_expansion): :param allow_variable_expansion: The allow_variable_expansion of this SmbShare. :type: bool """ + self._allow_variable_expansion = allow_variable_expansion @property @@ -284,6 +290,7 @@ def auto_create_directory(self, auto_create_directory): :param auto_create_directory: The auto_create_directory of this SmbShare. :type: bool """ + self._auto_create_directory = auto_create_directory @property @@ -306,6 +313,7 @@ def browsable(self, browsable): :param browsable: The browsable of this SmbShare. :type: bool """ + self._browsable = browsable @property @@ -328,6 +336,12 @@ def ca_timeout(self, ca_timeout): :param ca_timeout: The ca_timeout of this SmbShare. :type: int """ + + if not ca_timeout: + raise ValueError("Invalid value for `ca_timeout`, must not be `None`") + if ca_timeout < 2.0: + raise ValueError("Invalid value for `ca_timeout`, must be a value greater than or equal to `2.0`") + self._ca_timeout = ca_timeout @property @@ -356,6 +370,7 @@ def ca_write_integrity(self, ca_write_integrity): "Invalid value for `ca_write_integrity`, must be one of {0}" .format(allowed_values) ) + self._ca_write_integrity = ca_write_integrity @property @@ -384,6 +399,7 @@ def change_notify(self, change_notify): "Invalid value for `change_notify`, must be one of {0}" .format(allowed_values) ) + self._change_notify = change_notify @property @@ -412,6 +428,7 @@ def create_permissions(self, create_permissions): "Invalid value for `create_permissions`, must be one of {0}" .format(allowed_values) ) + self._create_permissions = create_permissions @property @@ -440,6 +457,7 @@ def csc_policy(self, csc_policy): "Invalid value for `csc_policy`, must be one of {0}" .format(allowed_values) ) + self._csc_policy = csc_policy @property @@ -462,6 +480,7 @@ def description(self, description): :param description: The description of this SmbShare. :type: str """ + self._description = description @property @@ -484,6 +503,7 @@ def directory_create_mask(self, directory_create_mask): :param directory_create_mask: The directory_create_mask of this SmbShare. :type: int """ + self._directory_create_mask = directory_create_mask @property @@ -506,6 +526,7 @@ def directory_create_mode(self, directory_create_mode): :param directory_create_mode: The directory_create_mode of this SmbShare. :type: int """ + self._directory_create_mode = directory_create_mode @property @@ -528,6 +549,7 @@ def file_create_mask(self, file_create_mask): :param file_create_mask: The file_create_mask of this SmbShare. :type: int """ + self._file_create_mask = file_create_mask @property @@ -550,6 +572,7 @@ def file_create_mode(self, file_create_mode): :param file_create_mode: The file_create_mode of this SmbShare. :type: int """ + self._file_create_mode = file_create_mode @property @@ -572,6 +595,7 @@ def file_filter_extensions(self, file_filter_extensions): :param file_filter_extensions: The file_filter_extensions of this SmbShare. :type: list[str] """ + self._file_filter_extensions = file_filter_extensions @property @@ -600,6 +624,7 @@ def file_filter_type(self, file_filter_type): "Invalid value for `file_filter_type`, must be one of {0}" .format(allowed_values) ) + self._file_filter_type = file_filter_type @property @@ -622,6 +647,7 @@ def file_filtering_enabled(self, file_filtering_enabled): :param file_filtering_enabled: The file_filtering_enabled of this SmbShare. :type: bool """ + self._file_filtering_enabled = file_filtering_enabled @property @@ -644,6 +670,7 @@ def hide_dot_files(self, hide_dot_files): :param hide_dot_files: The hide_dot_files of this SmbShare. :type: bool """ + self._hide_dot_files = hide_dot_files @property @@ -666,6 +693,7 @@ def host_acl(self, host_acl): :param host_acl: The host_acl of this SmbShare. :type: list[str] """ + self._host_acl = host_acl @property @@ -694,6 +722,7 @@ def impersonate_guest(self, impersonate_guest): "Invalid value for `impersonate_guest`, must be one of {0}" .format(allowed_values) ) + self._impersonate_guest = impersonate_guest @property @@ -716,6 +745,7 @@ def impersonate_user(self, impersonate_user): :param impersonate_user: The impersonate_user of this SmbShare. :type: str """ + self._impersonate_user = impersonate_user @property @@ -738,6 +768,7 @@ def inheritable_path_acl(self, inheritable_path_acl): :param inheritable_path_acl: The inheritable_path_acl of this SmbShare. :type: bool """ + self._inheritable_path_acl = inheritable_path_acl @property @@ -760,6 +791,7 @@ def mangle_byte_start(self, mangle_byte_start): :param mangle_byte_start: The mangle_byte_start of this SmbShare. :type: int """ + self._mangle_byte_start = mangle_byte_start @property @@ -782,6 +814,7 @@ def mangle_map(self, mangle_map): :param mangle_map: The mangle_map of this SmbShare. :type: list[str] """ + self._mangle_map = mangle_map @property @@ -804,6 +837,7 @@ def name(self, name): :param name: The name of this SmbShare. :type: str """ + self._name = name @property @@ -826,6 +860,7 @@ def ntfs_acl_support(self, ntfs_acl_support): :param ntfs_acl_support: The ntfs_acl_support of this SmbShare. :type: bool """ + self._ntfs_acl_support = ntfs_acl_support @property @@ -848,6 +883,7 @@ def oplocks(self, oplocks): :param oplocks: The oplocks of this SmbShare. :type: bool """ + self._oplocks = oplocks @property @@ -870,6 +906,7 @@ def path(self, path): :param path: The path of this SmbShare. :type: str """ + self._path = path @property @@ -892,6 +929,7 @@ def permissions(self, permissions): :param permissions: The permissions of this SmbShare. :type: list[SmbSharePermission] """ + self._permissions = permissions @property @@ -901,7 +939,7 @@ def run_as_root(self): Allow account to run as root. :return: The run_as_root of this SmbShare. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._run_as_root @@ -912,8 +950,9 @@ def run_as_root(self, run_as_root): Allow account to run as root. :param run_as_root: The run_as_root of this SmbShare. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._run_as_root = run_as_root @property @@ -936,6 +975,7 @@ def strict_ca_lockout(self, strict_ca_lockout): :param strict_ca_lockout: The strict_ca_lockout of this SmbShare. :type: bool """ + self._strict_ca_lockout = strict_ca_lockout @property @@ -958,6 +998,7 @@ def strict_flush(self, strict_flush): :param strict_flush: The strict_flush of this SmbShare. :type: bool """ + self._strict_flush = strict_flush @property @@ -980,6 +1021,7 @@ def strict_locking(self, strict_locking): :param strict_locking: The strict_locking of this SmbShare. :type: bool """ + self._strict_locking = strict_locking @property @@ -1002,6 +1044,7 @@ def zone(self, zone): :param zone: The zone of this SmbShare. :type: str """ + self._zone = zone def to_dict(self): @@ -1019,6 +1062,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1036,14 +1085,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_share_create_params.py b/isi_sdk/models/smb_share_create_params.py index 559724c33..6657dc799 100644 --- a/isi_sdk/models/smb_share_create_params.py +++ b/isi_sdk/models/smb_share_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbShareCreateParams(object): @@ -37,216 +38,151 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'ntfs_acl_support': 'bool', - 'allow_variable_expansion': 'bool', - 'strict_flush': 'bool', - 'continuously_available': 'bool', + 'access_based_enumeration': 'bool', 'access_based_enumeration_root_only': 'bool', - 'description': 'str', - 'browsable': 'bool', - 'ca_write_integrity': 'str', - 'impersonate_user': 'str', - 'file_create_mask': 'int', - 'path': 'str', - 'run_as_root': 'list[GroupsGroupMember]', + 'allow_delete_readonly': 'bool', 'allow_execute_always': 'bool', + 'allow_variable_expansion': 'bool', + 'auto_create_directory': 'bool', + 'browsable': 'bool', 'ca_timeout': 'int', - 'zone': 'str', - 'mangle_byte_start': 'int', - 'permissions': 'list[SmbSharePermission]', - 'directory_create_mask': 'int', - 'hide_dot_files': 'bool', - 'create_path': 'bool', + 'ca_write_integrity': 'str', 'change_notify': 'str', + 'create_permissions': 'str', + 'csc_policy': 'str', + 'description': 'str', + 'directory_create_mask': 'int', 'directory_create_mode': 'int', + 'file_create_mask': 'int', 'file_create_mode': 'int', + 'file_filter_extensions': 'list[str]', 'file_filter_type': 'str', 'file_filtering_enabled': 'bool', - 'access_based_enumeration': 'bool', - 'csc_policy': 'str', + 'hide_dot_files': 'bool', 'host_acl': 'list[str]', - 'strict_ca_lockout': 'bool', - 'create_permissions': 'str', - 'inheritable_path_acl': 'bool', - 'auto_create_directory': 'bool', - 'file_filter_extensions': 'list[str]', - 'strict_locking': 'bool', - 'name': 'str', 'impersonate_guest': 'str', - 'allow_delete_readonly': 'bool', + 'impersonate_user': 'str', + 'inheritable_path_acl': 'bool', + 'mangle_byte_start': 'int', 'mangle_map': 'list[str]', - 'oplocks': 'bool' + 'name': 'str', + 'ntfs_acl_support': 'bool', + 'oplocks': 'bool', + 'path': 'str', + 'permissions': 'list[SmbSharePermission]', + 'run_as_root': 'list[GroupMember]', + 'strict_ca_lockout': 'bool', + 'strict_flush': 'bool', + 'strict_locking': 'bool', + 'zone': 'str', + 'continuously_available': 'bool', + 'create_path': 'bool' } self.attribute_map = { - 'ntfs_acl_support': 'ntfs_acl_support', - 'allow_variable_expansion': 'allow_variable_expansion', - 'strict_flush': 'strict_flush', - 'continuously_available': 'continuously_available', + 'access_based_enumeration': 'access_based_enumeration', 'access_based_enumeration_root_only': 'access_based_enumeration_root_only', - 'description': 'description', - 'browsable': 'browsable', - 'ca_write_integrity': 'ca_write_integrity', - 'impersonate_user': 'impersonate_user', - 'file_create_mask': 'file_create_mask', - 'path': 'path', - 'run_as_root': 'run_as_root', + 'allow_delete_readonly': 'allow_delete_readonly', 'allow_execute_always': 'allow_execute_always', + 'allow_variable_expansion': 'allow_variable_expansion', + 'auto_create_directory': 'auto_create_directory', + 'browsable': 'browsable', 'ca_timeout': 'ca_timeout', - 'zone': 'zone', - 'mangle_byte_start': 'mangle_byte_start', - 'permissions': 'permissions', - 'directory_create_mask': 'directory_create_mask', - 'hide_dot_files': 'hide_dot_files', - 'create_path': 'create_path', + 'ca_write_integrity': 'ca_write_integrity', 'change_notify': 'change_notify', + 'create_permissions': 'create_permissions', + 'csc_policy': 'csc_policy', + 'description': 'description', + 'directory_create_mask': 'directory_create_mask', 'directory_create_mode': 'directory_create_mode', + 'file_create_mask': 'file_create_mask', 'file_create_mode': 'file_create_mode', + 'file_filter_extensions': 'file_filter_extensions', 'file_filter_type': 'file_filter_type', 'file_filtering_enabled': 'file_filtering_enabled', - 'access_based_enumeration': 'access_based_enumeration', - 'csc_policy': 'csc_policy', + 'hide_dot_files': 'hide_dot_files', 'host_acl': 'host_acl', - 'strict_ca_lockout': 'strict_ca_lockout', - 'create_permissions': 'create_permissions', - 'inheritable_path_acl': 'inheritable_path_acl', - 'auto_create_directory': 'auto_create_directory', - 'file_filter_extensions': 'file_filter_extensions', - 'strict_locking': 'strict_locking', - 'name': 'name', 'impersonate_guest': 'impersonate_guest', - 'allow_delete_readonly': 'allow_delete_readonly', + 'impersonate_user': 'impersonate_user', + 'inheritable_path_acl': 'inheritable_path_acl', + 'mangle_byte_start': 'mangle_byte_start', 'mangle_map': 'mangle_map', - 'oplocks': 'oplocks' + 'name': 'name', + 'ntfs_acl_support': 'ntfs_acl_support', + 'oplocks': 'oplocks', + 'path': 'path', + 'permissions': 'permissions', + 'run_as_root': 'run_as_root', + 'strict_ca_lockout': 'strict_ca_lockout', + 'strict_flush': 'strict_flush', + 'strict_locking': 'strict_locking', + 'zone': 'zone', + 'continuously_available': 'continuously_available', + 'create_path': 'create_path' } - self._ntfs_acl_support = None - self._allow_variable_expansion = None - self._strict_flush = None - self._continuously_available = None + self._access_based_enumeration = None self._access_based_enumeration_root_only = None - self._description = None - self._browsable = None - self._ca_write_integrity = None - self._impersonate_user = None - self._file_create_mask = None - self._path = None - self._run_as_root = None + self._allow_delete_readonly = None self._allow_execute_always = None + self._allow_variable_expansion = None + self._auto_create_directory = None + self._browsable = None self._ca_timeout = None - self._zone = None - self._mangle_byte_start = None - self._permissions = None - self._directory_create_mask = None - self._hide_dot_files = None - self._create_path = None + self._ca_write_integrity = None self._change_notify = None + self._create_permissions = None + self._csc_policy = None + self._description = None + self._directory_create_mask = None self._directory_create_mode = None + self._file_create_mask = None self._file_create_mode = None + self._file_filter_extensions = None self._file_filter_type = None self._file_filtering_enabled = None - self._access_based_enumeration = None - self._csc_policy = None + self._hide_dot_files = None self._host_acl = None - self._strict_ca_lockout = None - self._create_permissions = None - self._inheritable_path_acl = None - self._auto_create_directory = None - self._file_filter_extensions = None - self._strict_locking = None - self._name = None self._impersonate_guest = None - self._allow_delete_readonly = None + self._impersonate_user = None + self._inheritable_path_acl = None + self._mangle_byte_start = None self._mangle_map = None + self._name = None + self._ntfs_acl_support = None self._oplocks = None + self._path = None + self._permissions = None + self._run_as_root = None + self._strict_ca_lockout = None + self._strict_flush = None + self._strict_locking = None + self._zone = None + self._continuously_available = None + self._create_path = None @property - def ntfs_acl_support(self): - """ - Gets the ntfs_acl_support of this SmbShareCreateParams. - Support NTFS ACLs on files and directories. - - :return: The ntfs_acl_support of this SmbShareCreateParams. - :rtype: bool - """ - return self._ntfs_acl_support - - @ntfs_acl_support.setter - def ntfs_acl_support(self, ntfs_acl_support): - """ - Sets the ntfs_acl_support of this SmbShareCreateParams. - Support NTFS ACLs on files and directories. - - :param ntfs_acl_support: The ntfs_acl_support of this SmbShareCreateParams. - :type: bool - """ - self._ntfs_acl_support = ntfs_acl_support - - @property - def allow_variable_expansion(self): - """ - Gets the allow_variable_expansion of this SmbShareCreateParams. - Allow automatic expansion of variables for home directories. - - :return: The allow_variable_expansion of this SmbShareCreateParams. - :rtype: bool - """ - return self._allow_variable_expansion - - @allow_variable_expansion.setter - def allow_variable_expansion(self, allow_variable_expansion): - """ - Sets the allow_variable_expansion of this SmbShareCreateParams. - Allow automatic expansion of variables for home directories. - - :param allow_variable_expansion: The allow_variable_expansion of this SmbShareCreateParams. - :type: bool - """ - self._allow_variable_expansion = allow_variable_expansion - - @property - def strict_flush(self): - """ - Gets the strict_flush of this SmbShareCreateParams. - Handle SMB flush operations. - - :return: The strict_flush of this SmbShareCreateParams. - :rtype: bool - """ - return self._strict_flush - - @strict_flush.setter - def strict_flush(self, strict_flush): - """ - Sets the strict_flush of this SmbShareCreateParams. - Handle SMB flush operations. - - :param strict_flush: The strict_flush of this SmbShareCreateParams. - :type: bool - """ - self._strict_flush = strict_flush - - @property - def continuously_available(self): + def access_based_enumeration(self): """ - Gets the continuously_available of this SmbShareCreateParams. - Specify if persistent opens are allowed on the share. + Gets the access_based_enumeration of this SmbShareCreateParams. + Only enumerate files and folders the requesting user has access to. - :return: The continuously_available of this SmbShareCreateParams. + :return: The access_based_enumeration of this SmbShareCreateParams. :rtype: bool """ - return self._continuously_available + return self._access_based_enumeration - @continuously_available.setter - def continuously_available(self, continuously_available): + @access_based_enumeration.setter + def access_based_enumeration(self, access_based_enumeration): """ - Sets the continuously_available of this SmbShareCreateParams. - Specify if persistent opens are allowed on the share. + Sets the access_based_enumeration of this SmbShareCreateParams. + Only enumerate files and folders the requesting user has access to. - :param continuously_available: The continuously_available of this SmbShareCreateParams. + :param access_based_enumeration: The access_based_enumeration of this SmbShareCreateParams. :type: bool """ - self._continuously_available = continuously_available + + self._access_based_enumeration = access_based_enumeration @property def access_based_enumeration_root_only(self): @@ -268,189 +204,123 @@ def access_based_enumeration_root_only(self, access_based_enumeration_root_only) :param access_based_enumeration_root_only: The access_based_enumeration_root_only of this SmbShareCreateParams. :type: bool """ + self._access_based_enumeration_root_only = access_based_enumeration_root_only @property - def description(self): - """ - Gets the description of this SmbShareCreateParams. - Description for this SMB share. - - :return: The description of this SmbShareCreateParams. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """ - Sets the description of this SmbShareCreateParams. - Description for this SMB share. - - :param description: The description of this SmbShareCreateParams. - :type: str - """ - self._description = description - - @property - def browsable(self): + def allow_delete_readonly(self): """ - Gets the browsable of this SmbShareCreateParams. - Share is visible in net view and the browse list. + Gets the allow_delete_readonly of this SmbShareCreateParams. + Allow deletion of read-only files in the share. - :return: The browsable of this SmbShareCreateParams. + :return: The allow_delete_readonly of this SmbShareCreateParams. :rtype: bool """ - return self._browsable + return self._allow_delete_readonly - @browsable.setter - def browsable(self, browsable): + @allow_delete_readonly.setter + def allow_delete_readonly(self, allow_delete_readonly): """ - Sets the browsable of this SmbShareCreateParams. - Share is visible in net view and the browse list. + Sets the allow_delete_readonly of this SmbShareCreateParams. + Allow deletion of read-only files in the share. - :param browsable: The browsable of this SmbShareCreateParams. + :param allow_delete_readonly: The allow_delete_readonly of this SmbShareCreateParams. :type: bool """ - self._browsable = browsable - - @property - def ca_write_integrity(self): - """ - Gets the ca_write_integrity of this SmbShareCreateParams. - Specify the level of write-integrity on continuously available shares. - - :return: The ca_write_integrity of this SmbShareCreateParams. - :rtype: str - """ - return self._ca_write_integrity - - @ca_write_integrity.setter - def ca_write_integrity(self, ca_write_integrity): - """ - Sets the ca_write_integrity of this SmbShareCreateParams. - Specify the level of write-integrity on continuously available shares. - - :param ca_write_integrity: The ca_write_integrity of this SmbShareCreateParams. - :type: str - """ - allowed_values = ["none", "write-read-coherent", "full"] - if ca_write_integrity not in allowed_values: - raise ValueError( - "Invalid value for `ca_write_integrity`, must be one of {0}" - .format(allowed_values) - ) - self._ca_write_integrity = ca_write_integrity - - @property - def impersonate_user(self): - """ - Gets the impersonate_user of this SmbShareCreateParams. - User account to be used as guest account. - - :return: The impersonate_user of this SmbShareCreateParams. - :rtype: str - """ - return self._impersonate_user - - @impersonate_user.setter - def impersonate_user(self, impersonate_user): - """ - Sets the impersonate_user of this SmbShareCreateParams. - User account to be used as guest account. - - :param impersonate_user: The impersonate_user of this SmbShareCreateParams. - :type: str - """ - self._impersonate_user = impersonate_user + + self._allow_delete_readonly = allow_delete_readonly @property - def file_create_mask(self): + def allow_execute_always(self): """ - Gets the file_create_mask of this SmbShareCreateParams. - File create mask bits. + Gets the allow_execute_always of this SmbShareCreateParams. + Allows users to execute files they have read rights for. - :return: The file_create_mask of this SmbShareCreateParams. - :rtype: int + :return: The allow_execute_always of this SmbShareCreateParams. + :rtype: bool """ - return self._file_create_mask + return self._allow_execute_always - @file_create_mask.setter - def file_create_mask(self, file_create_mask): + @allow_execute_always.setter + def allow_execute_always(self, allow_execute_always): """ - Sets the file_create_mask of this SmbShareCreateParams. - File create mask bits. + Sets the allow_execute_always of this SmbShareCreateParams. + Allows users to execute files they have read rights for. - :param file_create_mask: The file_create_mask of this SmbShareCreateParams. - :type: int + :param allow_execute_always: The allow_execute_always of this SmbShareCreateParams. + :type: bool """ - self._file_create_mask = file_create_mask + + self._allow_execute_always = allow_execute_always @property - def path(self): + def allow_variable_expansion(self): """ - Gets the path of this SmbShareCreateParams. - Path of share within /ifs. + Gets the allow_variable_expansion of this SmbShareCreateParams. + Allow automatic expansion of variables for home directories. - :return: The path of this SmbShareCreateParams. - :rtype: str + :return: The allow_variable_expansion of this SmbShareCreateParams. + :rtype: bool """ - return self._path + return self._allow_variable_expansion - @path.setter - def path(self, path): + @allow_variable_expansion.setter + def allow_variable_expansion(self, allow_variable_expansion): """ - Sets the path of this SmbShareCreateParams. - Path of share within /ifs. + Sets the allow_variable_expansion of this SmbShareCreateParams. + Allow automatic expansion of variables for home directories. - :param path: The path of this SmbShareCreateParams. - :type: str + :param allow_variable_expansion: The allow_variable_expansion of this SmbShareCreateParams. + :type: bool """ - self._path = path + + self._allow_variable_expansion = allow_variable_expansion @property - def run_as_root(self): + def auto_create_directory(self): """ - Gets the run_as_root of this SmbShareCreateParams. - Allow account to run as root. + Gets the auto_create_directory of this SmbShareCreateParams. + Automatically create home directories. - :return: The run_as_root of this SmbShareCreateParams. - :rtype: list[GroupsGroupMember] + :return: The auto_create_directory of this SmbShareCreateParams. + :rtype: bool """ - return self._run_as_root + return self._auto_create_directory - @run_as_root.setter - def run_as_root(self, run_as_root): + @auto_create_directory.setter + def auto_create_directory(self, auto_create_directory): """ - Sets the run_as_root of this SmbShareCreateParams. - Allow account to run as root. + Sets the auto_create_directory of this SmbShareCreateParams. + Automatically create home directories. - :param run_as_root: The run_as_root of this SmbShareCreateParams. - :type: list[GroupsGroupMember] + :param auto_create_directory: The auto_create_directory of this SmbShareCreateParams. + :type: bool """ - self._run_as_root = run_as_root + + self._auto_create_directory = auto_create_directory @property - def allow_execute_always(self): + def browsable(self): """ - Gets the allow_execute_always of this SmbShareCreateParams. - Allows users to execute files they have read rights for. + Gets the browsable of this SmbShareCreateParams. + Share is visible in net view and the browse list. - :return: The allow_execute_always of this SmbShareCreateParams. + :return: The browsable of this SmbShareCreateParams. :rtype: bool """ - return self._allow_execute_always + return self._browsable - @allow_execute_always.setter - def allow_execute_always(self, allow_execute_always): + @browsable.setter + def browsable(self, browsable): """ - Sets the allow_execute_always of this SmbShareCreateParams. - Allows users to execute files they have read rights for. + Sets the browsable of this SmbShareCreateParams. + Share is visible in net view and the browse list. - :param allow_execute_always: The allow_execute_always of this SmbShareCreateParams. + :param browsable: The browsable of this SmbShareCreateParams. :type: bool """ - self._allow_execute_always = allow_execute_always + + self._browsable = browsable @property def ca_timeout(self): @@ -472,189 +342,221 @@ def ca_timeout(self, ca_timeout): :param ca_timeout: The ca_timeout of this SmbShareCreateParams. :type: int """ + + if not ca_timeout: + raise ValueError("Invalid value for `ca_timeout`, must not be `None`") + if ca_timeout < 2.0: + raise ValueError("Invalid value for `ca_timeout`, must be a value greater than or equal to `2.0`") + self._ca_timeout = ca_timeout @property - def zone(self): + def ca_write_integrity(self): """ - Gets the zone of this SmbShareCreateParams. - Name of the access zone to which to move this SMB share + Gets the ca_write_integrity of this SmbShareCreateParams. + Specify the level of write-integrity on continuously available shares. - :return: The zone of this SmbShareCreateParams. + :return: The ca_write_integrity of this SmbShareCreateParams. :rtype: str """ - return self._zone + return self._ca_write_integrity - @zone.setter - def zone(self, zone): + @ca_write_integrity.setter + def ca_write_integrity(self, ca_write_integrity): """ - Sets the zone of this SmbShareCreateParams. - Name of the access zone to which to move this SMB share + Sets the ca_write_integrity of this SmbShareCreateParams. + Specify the level of write-integrity on continuously available shares. - :param zone: The zone of this SmbShareCreateParams. + :param ca_write_integrity: The ca_write_integrity of this SmbShareCreateParams. :type: str """ - self._zone = zone + allowed_values = ["none", "write-read-coherent", "full"] + if ca_write_integrity not in allowed_values: + raise ValueError( + "Invalid value for `ca_write_integrity`, must be one of {0}" + .format(allowed_values) + ) + + self._ca_write_integrity = ca_write_integrity @property - def mangle_byte_start(self): + def change_notify(self): """ - Gets the mangle_byte_start of this SmbShareCreateParams. - Specifies the wchar_t starting point for automatic byte mangling. + Gets the change_notify of this SmbShareCreateParams. + Level of change notification alerts on the share. - :return: The mangle_byte_start of this SmbShareCreateParams. - :rtype: int + :return: The change_notify of this SmbShareCreateParams. + :rtype: str """ - return self._mangle_byte_start + return self._change_notify - @mangle_byte_start.setter - def mangle_byte_start(self, mangle_byte_start): + @change_notify.setter + def change_notify(self, change_notify): """ - Sets the mangle_byte_start of this SmbShareCreateParams. - Specifies the wchar_t starting point for automatic byte mangling. + Sets the change_notify of this SmbShareCreateParams. + Level of change notification alerts on the share. - :param mangle_byte_start: The mangle_byte_start of this SmbShareCreateParams. - :type: int + :param change_notify: The change_notify of this SmbShareCreateParams. + :type: str """ - self._mangle_byte_start = mangle_byte_start + allowed_values = ["all", "norecurse", "none"] + if change_notify not in allowed_values: + raise ValueError( + "Invalid value for `change_notify`, must be one of {0}" + .format(allowed_values) + ) + + self._change_notify = change_notify @property - def permissions(self): + def create_permissions(self): """ - Gets the permissions of this SmbShareCreateParams. - Specifies an ordered list of permission modifications. + Gets the create_permissions of this SmbShareCreateParams. + Create permissions for new files and directories in share. - :return: The permissions of this SmbShareCreateParams. - :rtype: list[SmbSharePermission] + :return: The create_permissions of this SmbShareCreateParams. + :rtype: str """ - return self._permissions + return self._create_permissions - @permissions.setter - def permissions(self, permissions): + @create_permissions.setter + def create_permissions(self, create_permissions): """ - Sets the permissions of this SmbShareCreateParams. - Specifies an ordered list of permission modifications. + Sets the create_permissions of this SmbShareCreateParams. + Create permissions for new files and directories in share. - :param permissions: The permissions of this SmbShareCreateParams. - :type: list[SmbSharePermission] + :param create_permissions: The create_permissions of this SmbShareCreateParams. + :type: str """ - self._permissions = permissions + allowed_values = ["default acl", "inherit mode bits", "use create mask and mode"] + if create_permissions not in allowed_values: + raise ValueError( + "Invalid value for `create_permissions`, must be one of {0}" + .format(allowed_values) + ) + + self._create_permissions = create_permissions @property - def directory_create_mask(self): + def csc_policy(self): """ - Gets the directory_create_mask of this SmbShareCreateParams. - Directory create mask bits. + Gets the csc_policy of this SmbShareCreateParams. + Client-side caching policy for the shares. - :return: The directory_create_mask of this SmbShareCreateParams. - :rtype: int + :return: The csc_policy of this SmbShareCreateParams. + :rtype: str """ - return self._directory_create_mask + return self._csc_policy - @directory_create_mask.setter - def directory_create_mask(self, directory_create_mask): + @csc_policy.setter + def csc_policy(self, csc_policy): """ - Sets the directory_create_mask of this SmbShareCreateParams. - Directory create mask bits. + Sets the csc_policy of this SmbShareCreateParams. + Client-side caching policy for the shares. - :param directory_create_mask: The directory_create_mask of this SmbShareCreateParams. - :type: int + :param csc_policy: The csc_policy of this SmbShareCreateParams. + :type: str """ - self._directory_create_mask = directory_create_mask + allowed_values = ["manual", "documents", "programs", "none"] + if csc_policy not in allowed_values: + raise ValueError( + "Invalid value for `csc_policy`, must be one of {0}" + .format(allowed_values) + ) + + self._csc_policy = csc_policy @property - def hide_dot_files(self): + def description(self): """ - Gets the hide_dot_files of this SmbShareCreateParams. - Hide files and directories that begin with a period '.'. + Gets the description of this SmbShareCreateParams. + Description for this SMB share. - :return: The hide_dot_files of this SmbShareCreateParams. - :rtype: bool + :return: The description of this SmbShareCreateParams. + :rtype: str """ - return self._hide_dot_files + return self._description - @hide_dot_files.setter - def hide_dot_files(self, hide_dot_files): + @description.setter + def description(self, description): """ - Sets the hide_dot_files of this SmbShareCreateParams. - Hide files and directories that begin with a period '.'. + Sets the description of this SmbShareCreateParams. + Description for this SMB share. - :param hide_dot_files: The hide_dot_files of this SmbShareCreateParams. - :type: bool + :param description: The description of this SmbShareCreateParams. + :type: str """ - self._hide_dot_files = hide_dot_files + + self._description = description @property - def create_path(self): + def directory_create_mask(self): """ - Gets the create_path of this SmbShareCreateParams. - Create path if does not exist. + Gets the directory_create_mask of this SmbShareCreateParams. + Directory create mask bits. - :return: The create_path of this SmbShareCreateParams. - :rtype: bool + :return: The directory_create_mask of this SmbShareCreateParams. + :rtype: int """ - return self._create_path + return self._directory_create_mask - @create_path.setter - def create_path(self, create_path): + @directory_create_mask.setter + def directory_create_mask(self, directory_create_mask): """ - Sets the create_path of this SmbShareCreateParams. - Create path if does not exist. + Sets the directory_create_mask of this SmbShareCreateParams. + Directory create mask bits. - :param create_path: The create_path of this SmbShareCreateParams. - :type: bool + :param directory_create_mask: The directory_create_mask of this SmbShareCreateParams. + :type: int """ - self._create_path = create_path + + self._directory_create_mask = directory_create_mask @property - def change_notify(self): + def directory_create_mode(self): """ - Gets the change_notify of this SmbShareCreateParams. - Level of change notification alerts on the share. + Gets the directory_create_mode of this SmbShareCreateParams. + Directory create mode bits. - :return: The change_notify of this SmbShareCreateParams. - :rtype: str + :return: The directory_create_mode of this SmbShareCreateParams. + :rtype: int """ - return self._change_notify + return self._directory_create_mode - @change_notify.setter - def change_notify(self, change_notify): + @directory_create_mode.setter + def directory_create_mode(self, directory_create_mode): """ - Sets the change_notify of this SmbShareCreateParams. - Level of change notification alerts on the share. + Sets the directory_create_mode of this SmbShareCreateParams. + Directory create mode bits. - :param change_notify: The change_notify of this SmbShareCreateParams. - :type: str + :param directory_create_mode: The directory_create_mode of this SmbShareCreateParams. + :type: int """ - allowed_values = ["all", "norecurse", "none"] - if change_notify not in allowed_values: - raise ValueError( - "Invalid value for `change_notify`, must be one of {0}" - .format(allowed_values) - ) - self._change_notify = change_notify + + self._directory_create_mode = directory_create_mode @property - def directory_create_mode(self): + def file_create_mask(self): """ - Gets the directory_create_mode of this SmbShareCreateParams. - Directory create mode bits. + Gets the file_create_mask of this SmbShareCreateParams. + File create mask bits. - :return: The directory_create_mode of this SmbShareCreateParams. + :return: The file_create_mask of this SmbShareCreateParams. :rtype: int """ - return self._directory_create_mode + return self._file_create_mask - @directory_create_mode.setter - def directory_create_mode(self, directory_create_mode): + @file_create_mask.setter + def file_create_mask(self, file_create_mask): """ - Sets the directory_create_mode of this SmbShareCreateParams. - Directory create mode bits. + Sets the file_create_mask of this SmbShareCreateParams. + File create mask bits. - :param directory_create_mode: The directory_create_mode of this SmbShareCreateParams. + :param file_create_mask: The file_create_mask of this SmbShareCreateParams. :type: int """ - self._directory_create_mode = directory_create_mode + + self._file_create_mask = file_create_mask @property def file_create_mode(self): @@ -676,8 +578,32 @@ def file_create_mode(self, file_create_mode): :param file_create_mode: The file_create_mode of this SmbShareCreateParams. :type: int """ + self._file_create_mode = file_create_mode + @property + def file_filter_extensions(self): + """ + Gets the file_filter_extensions of this SmbShareCreateParams. + Specifies the list of file extensions. + + :return: The file_filter_extensions of this SmbShareCreateParams. + :rtype: list[str] + """ + return self._file_filter_extensions + + @file_filter_extensions.setter + def file_filter_extensions(self, file_filter_extensions): + """ + Sets the file_filter_extensions of this SmbShareCreateParams. + Specifies the list of file extensions. + + :param file_filter_extensions: The file_filter_extensions of this SmbShareCreateParams. + :type: list[str] + """ + + self._file_filter_extensions = file_filter_extensions + @property def file_filter_type(self): """ @@ -704,6 +630,7 @@ def file_filter_type(self, file_filter_type): "Invalid value for `file_filter_type`, must be one of {0}" .format(allowed_values) ) + self._file_filter_type = file_filter_type @property @@ -726,195 +653,359 @@ def file_filtering_enabled(self, file_filtering_enabled): :param file_filtering_enabled: The file_filtering_enabled of this SmbShareCreateParams. :type: bool """ + self._file_filtering_enabled = file_filtering_enabled @property - def access_based_enumeration(self): + def hide_dot_files(self): """ - Gets the access_based_enumeration of this SmbShareCreateParams. - Only enumerate files and folders the requesting user has access to. + Gets the hide_dot_files of this SmbShareCreateParams. + Hide files and directories that begin with a period '.'. - :return: The access_based_enumeration of this SmbShareCreateParams. + :return: The hide_dot_files of this SmbShareCreateParams. :rtype: bool """ - return self._access_based_enumeration + return self._hide_dot_files - @access_based_enumeration.setter - def access_based_enumeration(self, access_based_enumeration): + @hide_dot_files.setter + def hide_dot_files(self, hide_dot_files): """ - Sets the access_based_enumeration of this SmbShareCreateParams. - Only enumerate files and folders the requesting user has access to. + Sets the hide_dot_files of this SmbShareCreateParams. + Hide files and directories that begin with a period '.'. - :param access_based_enumeration: The access_based_enumeration of this SmbShareCreateParams. + :param hide_dot_files: The hide_dot_files of this SmbShareCreateParams. :type: bool """ - self._access_based_enumeration = access_based_enumeration + + self._hide_dot_files = hide_dot_files @property - def csc_policy(self): + def host_acl(self): """ - Gets the csc_policy of this SmbShareCreateParams. - Client-side caching policy for the shares. + Gets the host_acl of this SmbShareCreateParams. + An ACL expressing which hosts are allowed access. A deny clause must be the final entry. - :return: The csc_policy of this SmbShareCreateParams. + :return: The host_acl of this SmbShareCreateParams. + :rtype: list[str] + """ + return self._host_acl + + @host_acl.setter + def host_acl(self, host_acl): + """ + Sets the host_acl of this SmbShareCreateParams. + An ACL expressing which hosts are allowed access. A deny clause must be the final entry. + + :param host_acl: The host_acl of this SmbShareCreateParams. + :type: list[str] + """ + + self._host_acl = host_acl + + @property + def impersonate_guest(self): + """ + Gets the impersonate_guest of this SmbShareCreateParams. + Specify the condition in which user access is done as the guest account. + + :return: The impersonate_guest of this SmbShareCreateParams. :rtype: str """ - return self._csc_policy + return self._impersonate_guest - @csc_policy.setter - def csc_policy(self, csc_policy): + @impersonate_guest.setter + def impersonate_guest(self, impersonate_guest): """ - Sets the csc_policy of this SmbShareCreateParams. - Client-side caching policy for the shares. + Sets the impersonate_guest of this SmbShareCreateParams. + Specify the condition in which user access is done as the guest account. - :param csc_policy: The csc_policy of this SmbShareCreateParams. + :param impersonate_guest: The impersonate_guest of this SmbShareCreateParams. :type: str """ - allowed_values = ["manual", "documents", "programs", "none"] - if csc_policy not in allowed_values: + allowed_values = ["always", "bad user", "never"] + if impersonate_guest not in allowed_values: raise ValueError( - "Invalid value for `csc_policy`, must be one of {0}" + "Invalid value for `impersonate_guest`, must be one of {0}" .format(allowed_values) ) - self._csc_policy = csc_policy + + self._impersonate_guest = impersonate_guest @property - def host_acl(self): + def impersonate_user(self): """ - Gets the host_acl of this SmbShareCreateParams. - An ACL expressing which hosts are allowed access. A deny clause must be the final entry. + Gets the impersonate_user of this SmbShareCreateParams. + User account to be used as guest account. - :return: The host_acl of this SmbShareCreateParams. + :return: The impersonate_user of this SmbShareCreateParams. + :rtype: str + """ + return self._impersonate_user + + @impersonate_user.setter + def impersonate_user(self, impersonate_user): + """ + Sets the impersonate_user of this SmbShareCreateParams. + User account to be used as guest account. + + :param impersonate_user: The impersonate_user of this SmbShareCreateParams. + :type: str + """ + + self._impersonate_user = impersonate_user + + @property + def inheritable_path_acl(self): + """ + Gets the inheritable_path_acl of this SmbShareCreateParams. + Set the inheritable ACL on the share path. + + :return: The inheritable_path_acl of this SmbShareCreateParams. + :rtype: bool + """ + return self._inheritable_path_acl + + @inheritable_path_acl.setter + def inheritable_path_acl(self, inheritable_path_acl): + """ + Sets the inheritable_path_acl of this SmbShareCreateParams. + Set the inheritable ACL on the share path. + + :param inheritable_path_acl: The inheritable_path_acl of this SmbShareCreateParams. + :type: bool + """ + + self._inheritable_path_acl = inheritable_path_acl + + @property + def mangle_byte_start(self): + """ + Gets the mangle_byte_start of this SmbShareCreateParams. + Specifies the wchar_t starting point for automatic byte mangling. + + :return: The mangle_byte_start of this SmbShareCreateParams. + :rtype: int + """ + return self._mangle_byte_start + + @mangle_byte_start.setter + def mangle_byte_start(self, mangle_byte_start): + """ + Sets the mangle_byte_start of this SmbShareCreateParams. + Specifies the wchar_t starting point for automatic byte mangling. + + :param mangle_byte_start: The mangle_byte_start of this SmbShareCreateParams. + :type: int + """ + + self._mangle_byte_start = mangle_byte_start + + @property + def mangle_map(self): + """ + Gets the mangle_map of this SmbShareCreateParams. + Character mangle map. + + :return: The mangle_map of this SmbShareCreateParams. :rtype: list[str] """ - return self._host_acl + return self._mangle_map - @host_acl.setter - def host_acl(self, host_acl): + @mangle_map.setter + def mangle_map(self, mangle_map): """ - Sets the host_acl of this SmbShareCreateParams. - An ACL expressing which hosts are allowed access. A deny clause must be the final entry. + Sets the mangle_map of this SmbShareCreateParams. + Character mangle map. + + :param mangle_map: The mangle_map of this SmbShareCreateParams. + :type: list[str] + """ + + self._mangle_map = mangle_map + + @property + def name(self): + """ + Gets the name of this SmbShareCreateParams. + Share name. + + :return: The name of this SmbShareCreateParams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this SmbShareCreateParams. + Share name. + + :param name: The name of this SmbShareCreateParams. + :type: str + """ + + self._name = name + + @property + def ntfs_acl_support(self): + """ + Gets the ntfs_acl_support of this SmbShareCreateParams. + Support NTFS ACLs on files and directories. + + :return: The ntfs_acl_support of this SmbShareCreateParams. + :rtype: bool + """ + return self._ntfs_acl_support + + @ntfs_acl_support.setter + def ntfs_acl_support(self, ntfs_acl_support): + """ + Sets the ntfs_acl_support of this SmbShareCreateParams. + Support NTFS ACLs on files and directories. + + :param ntfs_acl_support: The ntfs_acl_support of this SmbShareCreateParams. + :type: bool + """ + + self._ntfs_acl_support = ntfs_acl_support + + @property + def oplocks(self): + """ + Gets the oplocks of this SmbShareCreateParams. + Support oplocks. + + :return: The oplocks of this SmbShareCreateParams. + :rtype: bool + """ + return self._oplocks + + @oplocks.setter + def oplocks(self, oplocks): + """ + Sets the oplocks of this SmbShareCreateParams. + Support oplocks. - :param host_acl: The host_acl of this SmbShareCreateParams. - :type: list[str] + :param oplocks: The oplocks of this SmbShareCreateParams. + :type: bool """ - self._host_acl = host_acl + + self._oplocks = oplocks @property - def strict_ca_lockout(self): + def path(self): """ - Gets the strict_ca_lockout of this SmbShareCreateParams. - Specifies if persistent opens would do strict lockout on the share. + Gets the path of this SmbShareCreateParams. + Path of share within /ifs. - :return: The strict_ca_lockout of this SmbShareCreateParams. - :rtype: bool + :return: The path of this SmbShareCreateParams. + :rtype: str """ - return self._strict_ca_lockout + return self._path - @strict_ca_lockout.setter - def strict_ca_lockout(self, strict_ca_lockout): + @path.setter + def path(self, path): """ - Sets the strict_ca_lockout of this SmbShareCreateParams. - Specifies if persistent opens would do strict lockout on the share. + Sets the path of this SmbShareCreateParams. + Path of share within /ifs. - :param strict_ca_lockout: The strict_ca_lockout of this SmbShareCreateParams. - :type: bool + :param path: The path of this SmbShareCreateParams. + :type: str """ - self._strict_ca_lockout = strict_ca_lockout + + self._path = path @property - def create_permissions(self): + def permissions(self): """ - Gets the create_permissions of this SmbShareCreateParams. - Create permissions for new files and directories in share. + Gets the permissions of this SmbShareCreateParams. + Specifies an ordered list of permission modifications. - :return: The create_permissions of this SmbShareCreateParams. - :rtype: str + :return: The permissions of this SmbShareCreateParams. + :rtype: list[SmbSharePermission] """ - return self._create_permissions + return self._permissions - @create_permissions.setter - def create_permissions(self, create_permissions): + @permissions.setter + def permissions(self, permissions): """ - Sets the create_permissions of this SmbShareCreateParams. - Create permissions for new files and directories in share. + Sets the permissions of this SmbShareCreateParams. + Specifies an ordered list of permission modifications. - :param create_permissions: The create_permissions of this SmbShareCreateParams. - :type: str + :param permissions: The permissions of this SmbShareCreateParams. + :type: list[SmbSharePermission] """ - allowed_values = ["default acl", "inherit mode bits", "use create mask and mode"] - if create_permissions not in allowed_values: - raise ValueError( - "Invalid value for `create_permissions`, must be one of {0}" - .format(allowed_values) - ) - self._create_permissions = create_permissions + + self._permissions = permissions @property - def inheritable_path_acl(self): + def run_as_root(self): """ - Gets the inheritable_path_acl of this SmbShareCreateParams. - Set the inheritable ACL on the share path. + Gets the run_as_root of this SmbShareCreateParams. + Allow account to run as root. - :return: The inheritable_path_acl of this SmbShareCreateParams. - :rtype: bool + :return: The run_as_root of this SmbShareCreateParams. + :rtype: list[GroupMember] """ - return self._inheritable_path_acl + return self._run_as_root - @inheritable_path_acl.setter - def inheritable_path_acl(self, inheritable_path_acl): + @run_as_root.setter + def run_as_root(self, run_as_root): """ - Sets the inheritable_path_acl of this SmbShareCreateParams. - Set the inheritable ACL on the share path. + Sets the run_as_root of this SmbShareCreateParams. + Allow account to run as root. - :param inheritable_path_acl: The inheritable_path_acl of this SmbShareCreateParams. - :type: bool + :param run_as_root: The run_as_root of this SmbShareCreateParams. + :type: list[GroupMember] """ - self._inheritable_path_acl = inheritable_path_acl + + self._run_as_root = run_as_root @property - def auto_create_directory(self): + def strict_ca_lockout(self): """ - Gets the auto_create_directory of this SmbShareCreateParams. - Automatically create home directories. + Gets the strict_ca_lockout of this SmbShareCreateParams. + Specifies if persistent opens would do strict lockout on the share. - :return: The auto_create_directory of this SmbShareCreateParams. + :return: The strict_ca_lockout of this SmbShareCreateParams. :rtype: bool """ - return self._auto_create_directory + return self._strict_ca_lockout - @auto_create_directory.setter - def auto_create_directory(self, auto_create_directory): + @strict_ca_lockout.setter + def strict_ca_lockout(self, strict_ca_lockout): """ - Sets the auto_create_directory of this SmbShareCreateParams. - Automatically create home directories. + Sets the strict_ca_lockout of this SmbShareCreateParams. + Specifies if persistent opens would do strict lockout on the share. - :param auto_create_directory: The auto_create_directory of this SmbShareCreateParams. + :param strict_ca_lockout: The strict_ca_lockout of this SmbShareCreateParams. :type: bool """ - self._auto_create_directory = auto_create_directory + + self._strict_ca_lockout = strict_ca_lockout @property - def file_filter_extensions(self): + def strict_flush(self): """ - Gets the file_filter_extensions of this SmbShareCreateParams. - Specifies the list of file extensions. + Gets the strict_flush of this SmbShareCreateParams. + Handle SMB flush operations. - :return: The file_filter_extensions of this SmbShareCreateParams. - :rtype: list[str] + :return: The strict_flush of this SmbShareCreateParams. + :rtype: bool """ - return self._file_filter_extensions + return self._strict_flush - @file_filter_extensions.setter - def file_filter_extensions(self, file_filter_extensions): + @strict_flush.setter + def strict_flush(self, strict_flush): """ - Sets the file_filter_extensions of this SmbShareCreateParams. - Specifies the list of file extensions. + Sets the strict_flush of this SmbShareCreateParams. + Handle SMB flush operations. - :param file_filter_extensions: The file_filter_extensions of this SmbShareCreateParams. - :type: list[str] + :param strict_flush: The strict_flush of this SmbShareCreateParams. + :type: bool """ - self._file_filter_extensions = file_filter_extensions + + self._strict_flush = strict_flush @property def strict_locking(self): @@ -936,123 +1027,77 @@ def strict_locking(self, strict_locking): :param strict_locking: The strict_locking of this SmbShareCreateParams. :type: bool """ + self._strict_locking = strict_locking @property - def name(self): - """ - Gets the name of this SmbShareCreateParams. - Share name. - - :return: The name of this SmbShareCreateParams. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this SmbShareCreateParams. - Share name. - - :param name: The name of this SmbShareCreateParams. - :type: str - """ - self._name = name - - @property - def impersonate_guest(self): + def zone(self): """ - Gets the impersonate_guest of this SmbShareCreateParams. - Specify the condition in which user access is done as the guest account. + Gets the zone of this SmbShareCreateParams. + Name of the access zone to which to move this SMB share - :return: The impersonate_guest of this SmbShareCreateParams. + :return: The zone of this SmbShareCreateParams. :rtype: str """ - return self._impersonate_guest + return self._zone - @impersonate_guest.setter - def impersonate_guest(self, impersonate_guest): + @zone.setter + def zone(self, zone): """ - Sets the impersonate_guest of this SmbShareCreateParams. - Specify the condition in which user access is done as the guest account. + Sets the zone of this SmbShareCreateParams. + Name of the access zone to which to move this SMB share - :param impersonate_guest: The impersonate_guest of this SmbShareCreateParams. + :param zone: The zone of this SmbShareCreateParams. :type: str """ - allowed_values = ["always", "bad user", "never"] - if impersonate_guest not in allowed_values: - raise ValueError( - "Invalid value for `impersonate_guest`, must be one of {0}" - .format(allowed_values) - ) - self._impersonate_guest = impersonate_guest + + self._zone = zone @property - def allow_delete_readonly(self): + def continuously_available(self): """ - Gets the allow_delete_readonly of this SmbShareCreateParams. - Allow deletion of read-only files in the share. + Gets the continuously_available of this SmbShareCreateParams. + Specify if persistent opens are allowed on the share. - :return: The allow_delete_readonly of this SmbShareCreateParams. + :return: The continuously_available of this SmbShareCreateParams. :rtype: bool """ - return self._allow_delete_readonly + return self._continuously_available - @allow_delete_readonly.setter - def allow_delete_readonly(self, allow_delete_readonly): + @continuously_available.setter + def continuously_available(self, continuously_available): """ - Sets the allow_delete_readonly of this SmbShareCreateParams. - Allow deletion of read-only files in the share. + Sets the continuously_available of this SmbShareCreateParams. + Specify if persistent opens are allowed on the share. - :param allow_delete_readonly: The allow_delete_readonly of this SmbShareCreateParams. + :param continuously_available: The continuously_available of this SmbShareCreateParams. :type: bool """ - self._allow_delete_readonly = allow_delete_readonly - - @property - def mangle_map(self): - """ - Gets the mangle_map of this SmbShareCreateParams. - Character mangle map. - - :return: The mangle_map of this SmbShareCreateParams. - :rtype: list[str] - """ - return self._mangle_map - - @mangle_map.setter - def mangle_map(self, mangle_map): - """ - Sets the mangle_map of this SmbShareCreateParams. - Character mangle map. - - :param mangle_map: The mangle_map of this SmbShareCreateParams. - :type: list[str] - """ - self._mangle_map = mangle_map + + self._continuously_available = continuously_available @property - def oplocks(self): + def create_path(self): """ - Gets the oplocks of this SmbShareCreateParams. - Support oplocks. + Gets the create_path of this SmbShareCreateParams. + Create path if does not exist. - :return: The oplocks of this SmbShareCreateParams. + :return: The create_path of this SmbShareCreateParams. :rtype: bool """ - return self._oplocks + return self._create_path - @oplocks.setter - def oplocks(self, oplocks): + @create_path.setter + def create_path(self, create_path): """ - Sets the oplocks of this SmbShareCreateParams. - Support oplocks. + Sets the create_path of this SmbShareCreateParams. + Create path if does not exist. - :param oplocks: The oplocks of this SmbShareCreateParams. + :param create_path: The create_path of this SmbShareCreateParams. :type: bool """ - self._oplocks = oplocks + + self._create_path = create_path def to_dict(self): """ @@ -1069,6 +1114,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1086,14 +1137,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_share_extended.py b/isi_sdk/models/smb_share_extended.py index b341ebbb2..0a26451fe 100644 --- a/isi_sdk/models/smb_share_extended.py +++ b/isi_sdk/models/smb_share_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbShareExtended(object): @@ -37,219 +38,151 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'ntfs_acl_support': 'bool', - 'allow_variable_expansion': 'bool', - 'strict_flush': 'bool', - 'continuously_available': 'bool', + 'access_based_enumeration': 'bool', 'access_based_enumeration_root_only': 'bool', - 'description': 'str', - 'browsable': 'bool', - 'ca_write_integrity': 'str', - 'impersonate_user': 'str', - 'file_create_mask': 'int', - 'path': 'str', - 'run_as_root': 'list[GroupsGroupMember]', + 'allow_delete_readonly': 'bool', 'allow_execute_always': 'bool', + 'allow_variable_expansion': 'bool', + 'auto_create_directory': 'bool', + 'browsable': 'bool', 'ca_timeout': 'int', - 'zid': 'int', - 'zone': 'str', - 'mangle_byte_start': 'int', - 'permissions': 'list[SmbSharePermission]', - 'directory_create_mask': 'int', - 'hide_dot_files': 'bool', + 'ca_write_integrity': 'str', 'change_notify': 'str', - 'id': 'str', + 'continuously_available': 'bool', + 'create_permissions': 'str', + 'csc_policy': 'str', + 'description': 'str', + 'directory_create_mask': 'int', 'directory_create_mode': 'int', + 'file_create_mask': 'int', 'file_create_mode': 'int', + 'file_filter_extensions': 'list[str]', 'file_filter_type': 'str', 'file_filtering_enabled': 'bool', - 'access_based_enumeration': 'bool', - 'csc_policy': 'str', + 'hide_dot_files': 'bool', 'host_acl': 'list[str]', - 'strict_ca_lockout': 'bool', - 'create_permissions': 'str', - 'inheritable_path_acl': 'bool', - 'auto_create_directory': 'bool', - 'file_filter_extensions': 'list[str]', - 'strict_locking': 'bool', - 'name': 'str', + 'id': 'str', 'impersonate_guest': 'str', - 'allow_delete_readonly': 'bool', + 'impersonate_user': 'str', + 'inheritable_path_acl': 'bool', + 'mangle_byte_start': 'int', 'mangle_map': 'list[str]', - 'oplocks': 'bool' + 'name': 'str', + 'ntfs_acl_support': 'bool', + 'oplocks': 'bool', + 'path': 'str', + 'permissions': 'list[SmbSharePermission]', + 'run_as_root': 'list[GroupMember]', + 'strict_ca_lockout': 'bool', + 'strict_flush': 'bool', + 'strict_locking': 'bool', + 'zid': 'int' } self.attribute_map = { - 'ntfs_acl_support': 'ntfs_acl_support', - 'allow_variable_expansion': 'allow_variable_expansion', - 'strict_flush': 'strict_flush', - 'continuously_available': 'continuously_available', + 'access_based_enumeration': 'access_based_enumeration', 'access_based_enumeration_root_only': 'access_based_enumeration_root_only', - 'description': 'description', - 'browsable': 'browsable', - 'ca_write_integrity': 'ca_write_integrity', - 'impersonate_user': 'impersonate_user', - 'file_create_mask': 'file_create_mask', - 'path': 'path', - 'run_as_root': 'run_as_root', + 'allow_delete_readonly': 'allow_delete_readonly', 'allow_execute_always': 'allow_execute_always', + 'allow_variable_expansion': 'allow_variable_expansion', + 'auto_create_directory': 'auto_create_directory', + 'browsable': 'browsable', 'ca_timeout': 'ca_timeout', - 'zid': 'zid', - 'zone': 'zone', - 'mangle_byte_start': 'mangle_byte_start', - 'permissions': 'permissions', - 'directory_create_mask': 'directory_create_mask', - 'hide_dot_files': 'hide_dot_files', + 'ca_write_integrity': 'ca_write_integrity', 'change_notify': 'change_notify', - 'id': 'id', + 'continuously_available': 'continuously_available', + 'create_permissions': 'create_permissions', + 'csc_policy': 'csc_policy', + 'description': 'description', + 'directory_create_mask': 'directory_create_mask', 'directory_create_mode': 'directory_create_mode', + 'file_create_mask': 'file_create_mask', 'file_create_mode': 'file_create_mode', + 'file_filter_extensions': 'file_filter_extensions', 'file_filter_type': 'file_filter_type', 'file_filtering_enabled': 'file_filtering_enabled', - 'access_based_enumeration': 'access_based_enumeration', - 'csc_policy': 'csc_policy', + 'hide_dot_files': 'hide_dot_files', 'host_acl': 'host_acl', - 'strict_ca_lockout': 'strict_ca_lockout', - 'create_permissions': 'create_permissions', - 'inheritable_path_acl': 'inheritable_path_acl', - 'auto_create_directory': 'auto_create_directory', - 'file_filter_extensions': 'file_filter_extensions', - 'strict_locking': 'strict_locking', - 'name': 'name', + 'id': 'id', 'impersonate_guest': 'impersonate_guest', - 'allow_delete_readonly': 'allow_delete_readonly', + 'impersonate_user': 'impersonate_user', + 'inheritable_path_acl': 'inheritable_path_acl', + 'mangle_byte_start': 'mangle_byte_start', 'mangle_map': 'mangle_map', - 'oplocks': 'oplocks' + 'name': 'name', + 'ntfs_acl_support': 'ntfs_acl_support', + 'oplocks': 'oplocks', + 'path': 'path', + 'permissions': 'permissions', + 'run_as_root': 'run_as_root', + 'strict_ca_lockout': 'strict_ca_lockout', + 'strict_flush': 'strict_flush', + 'strict_locking': 'strict_locking', + 'zid': 'zid' } - self._ntfs_acl_support = None - self._allow_variable_expansion = None - self._strict_flush = None - self._continuously_available = None + self._access_based_enumeration = None self._access_based_enumeration_root_only = None - self._description = None - self._browsable = None - self._ca_write_integrity = None - self._impersonate_user = None - self._file_create_mask = None - self._path = None - self._run_as_root = None + self._allow_delete_readonly = None self._allow_execute_always = None + self._allow_variable_expansion = None + self._auto_create_directory = None + self._browsable = None self._ca_timeout = None - self._zid = None - self._zone = None - self._mangle_byte_start = None - self._permissions = None - self._directory_create_mask = None - self._hide_dot_files = None + self._ca_write_integrity = None self._change_notify = None - self._id = None + self._continuously_available = None + self._create_permissions = None + self._csc_policy = None + self._description = None + self._directory_create_mask = None self._directory_create_mode = None + self._file_create_mask = None self._file_create_mode = None + self._file_filter_extensions = None self._file_filter_type = None self._file_filtering_enabled = None - self._access_based_enumeration = None - self._csc_policy = None + self._hide_dot_files = None self._host_acl = None - self._strict_ca_lockout = None - self._create_permissions = None - self._inheritable_path_acl = None - self._auto_create_directory = None - self._file_filter_extensions = None - self._strict_locking = None - self._name = None + self._id = None self._impersonate_guest = None - self._allow_delete_readonly = None + self._impersonate_user = None + self._inheritable_path_acl = None + self._mangle_byte_start = None self._mangle_map = None + self._name = None + self._ntfs_acl_support = None self._oplocks = None + self._path = None + self._permissions = None + self._run_as_root = None + self._strict_ca_lockout = None + self._strict_flush = None + self._strict_locking = None + self._zid = None @property - def ntfs_acl_support(self): - """ - Gets the ntfs_acl_support of this SmbShareExtended. - Support NTFS ACLs on files and directories. - - :return: The ntfs_acl_support of this SmbShareExtended. - :rtype: bool - """ - return self._ntfs_acl_support - - @ntfs_acl_support.setter - def ntfs_acl_support(self, ntfs_acl_support): - """ - Sets the ntfs_acl_support of this SmbShareExtended. - Support NTFS ACLs on files and directories. - - :param ntfs_acl_support: The ntfs_acl_support of this SmbShareExtended. - :type: bool - """ - self._ntfs_acl_support = ntfs_acl_support - - @property - def allow_variable_expansion(self): - """ - Gets the allow_variable_expansion of this SmbShareExtended. - Allow automatic expansion of variables for home directories. - - :return: The allow_variable_expansion of this SmbShareExtended. - :rtype: bool - """ - return self._allow_variable_expansion - - @allow_variable_expansion.setter - def allow_variable_expansion(self, allow_variable_expansion): - """ - Sets the allow_variable_expansion of this SmbShareExtended. - Allow automatic expansion of variables for home directories. - - :param allow_variable_expansion: The allow_variable_expansion of this SmbShareExtended. - :type: bool - """ - self._allow_variable_expansion = allow_variable_expansion - - @property - def strict_flush(self): - """ - Gets the strict_flush of this SmbShareExtended. - Handle SMB flush operations. - - :return: The strict_flush of this SmbShareExtended. - :rtype: bool - """ - return self._strict_flush - - @strict_flush.setter - def strict_flush(self, strict_flush): - """ - Sets the strict_flush of this SmbShareExtended. - Handle SMB flush operations. - - :param strict_flush: The strict_flush of this SmbShareExtended. - :type: bool - """ - self._strict_flush = strict_flush - - @property - def continuously_available(self): + def access_based_enumeration(self): """ - Gets the continuously_available of this SmbShareExtended. - Specify if persistent opens are allowed on the share. + Gets the access_based_enumeration of this SmbShareExtended. + Only enumerate files and folders the requesting user has access to. - :return: The continuously_available of this SmbShareExtended. + :return: The access_based_enumeration of this SmbShareExtended. :rtype: bool """ - return self._continuously_available + return self._access_based_enumeration - @continuously_available.setter - def continuously_available(self, continuously_available): + @access_based_enumeration.setter + def access_based_enumeration(self, access_based_enumeration): """ - Sets the continuously_available of this SmbShareExtended. - Specify if persistent opens are allowed on the share. + Sets the access_based_enumeration of this SmbShareExtended. + Only enumerate files and folders the requesting user has access to. - :param continuously_available: The continuously_available of this SmbShareExtended. + :param access_based_enumeration: The access_based_enumeration of this SmbShareExtended. :type: bool """ - self._continuously_available = continuously_available + + self._access_based_enumeration = access_based_enumeration @property def access_based_enumeration_root_only(self): @@ -271,189 +204,123 @@ def access_based_enumeration_root_only(self, access_based_enumeration_root_only) :param access_based_enumeration_root_only: The access_based_enumeration_root_only of this SmbShareExtended. :type: bool """ + self._access_based_enumeration_root_only = access_based_enumeration_root_only @property - def description(self): - """ - Gets the description of this SmbShareExtended. - Description for this SMB share. - - :return: The description of this SmbShareExtended. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """ - Sets the description of this SmbShareExtended. - Description for this SMB share. - - :param description: The description of this SmbShareExtended. - :type: str - """ - self._description = description - - @property - def browsable(self): + def allow_delete_readonly(self): """ - Gets the browsable of this SmbShareExtended. - Share is visible in net view and the browse list. + Gets the allow_delete_readonly of this SmbShareExtended. + Allow deletion of read-only files in the share. - :return: The browsable of this SmbShareExtended. + :return: The allow_delete_readonly of this SmbShareExtended. :rtype: bool """ - return self._browsable + return self._allow_delete_readonly - @browsable.setter - def browsable(self, browsable): + @allow_delete_readonly.setter + def allow_delete_readonly(self, allow_delete_readonly): """ - Sets the browsable of this SmbShareExtended. - Share is visible in net view and the browse list. + Sets the allow_delete_readonly of this SmbShareExtended. + Allow deletion of read-only files in the share. - :param browsable: The browsable of this SmbShareExtended. + :param allow_delete_readonly: The allow_delete_readonly of this SmbShareExtended. :type: bool """ - self._browsable = browsable - - @property - def ca_write_integrity(self): - """ - Gets the ca_write_integrity of this SmbShareExtended. - Specify the level of write-integrity on continuously available shares. - - :return: The ca_write_integrity of this SmbShareExtended. - :rtype: str - """ - return self._ca_write_integrity - - @ca_write_integrity.setter - def ca_write_integrity(self, ca_write_integrity): - """ - Sets the ca_write_integrity of this SmbShareExtended. - Specify the level of write-integrity on continuously available shares. - - :param ca_write_integrity: The ca_write_integrity of this SmbShareExtended. - :type: str - """ - allowed_values = ["none", "write-read-coherent", "full"] - if ca_write_integrity not in allowed_values: - raise ValueError( - "Invalid value for `ca_write_integrity`, must be one of {0}" - .format(allowed_values) - ) - self._ca_write_integrity = ca_write_integrity - - @property - def impersonate_user(self): - """ - Gets the impersonate_user of this SmbShareExtended. - User account to be used as guest account. - - :return: The impersonate_user of this SmbShareExtended. - :rtype: str - """ - return self._impersonate_user - - @impersonate_user.setter - def impersonate_user(self, impersonate_user): - """ - Sets the impersonate_user of this SmbShareExtended. - User account to be used as guest account. - - :param impersonate_user: The impersonate_user of this SmbShareExtended. - :type: str - """ - self._impersonate_user = impersonate_user + + self._allow_delete_readonly = allow_delete_readonly @property - def file_create_mask(self): + def allow_execute_always(self): """ - Gets the file_create_mask of this SmbShareExtended. - File create mask bits. + Gets the allow_execute_always of this SmbShareExtended. + Allows users to execute files they have read rights for. - :return: The file_create_mask of this SmbShareExtended. - :rtype: int + :return: The allow_execute_always of this SmbShareExtended. + :rtype: bool """ - return self._file_create_mask + return self._allow_execute_always - @file_create_mask.setter - def file_create_mask(self, file_create_mask): + @allow_execute_always.setter + def allow_execute_always(self, allow_execute_always): """ - Sets the file_create_mask of this SmbShareExtended. - File create mask bits. + Sets the allow_execute_always of this SmbShareExtended. + Allows users to execute files they have read rights for. - :param file_create_mask: The file_create_mask of this SmbShareExtended. - :type: int + :param allow_execute_always: The allow_execute_always of this SmbShareExtended. + :type: bool """ - self._file_create_mask = file_create_mask + + self._allow_execute_always = allow_execute_always @property - def path(self): + def allow_variable_expansion(self): """ - Gets the path of this SmbShareExtended. - Path of share within /ifs. + Gets the allow_variable_expansion of this SmbShareExtended. + Allow automatic expansion of variables for home directories. - :return: The path of this SmbShareExtended. - :rtype: str + :return: The allow_variable_expansion of this SmbShareExtended. + :rtype: bool """ - return self._path + return self._allow_variable_expansion - @path.setter - def path(self, path): + @allow_variable_expansion.setter + def allow_variable_expansion(self, allow_variable_expansion): """ - Sets the path of this SmbShareExtended. - Path of share within /ifs. + Sets the allow_variable_expansion of this SmbShareExtended. + Allow automatic expansion of variables for home directories. - :param path: The path of this SmbShareExtended. - :type: str + :param allow_variable_expansion: The allow_variable_expansion of this SmbShareExtended. + :type: bool """ - self._path = path + + self._allow_variable_expansion = allow_variable_expansion @property - def run_as_root(self): + def auto_create_directory(self): """ - Gets the run_as_root of this SmbShareExtended. - Allow account to run as root. + Gets the auto_create_directory of this SmbShareExtended. + Automatically create home directories. - :return: The run_as_root of this SmbShareExtended. - :rtype: list[GroupsGroupMember] + :return: The auto_create_directory of this SmbShareExtended. + :rtype: bool """ - return self._run_as_root + return self._auto_create_directory - @run_as_root.setter - def run_as_root(self, run_as_root): + @auto_create_directory.setter + def auto_create_directory(self, auto_create_directory): """ - Sets the run_as_root of this SmbShareExtended. - Allow account to run as root. + Sets the auto_create_directory of this SmbShareExtended. + Automatically create home directories. - :param run_as_root: The run_as_root of this SmbShareExtended. - :type: list[GroupsGroupMember] + :param auto_create_directory: The auto_create_directory of this SmbShareExtended. + :type: bool """ - self._run_as_root = run_as_root + + self._auto_create_directory = auto_create_directory @property - def allow_execute_always(self): + def browsable(self): """ - Gets the allow_execute_always of this SmbShareExtended. - Allows users to execute files they have read rights for. + Gets the browsable of this SmbShareExtended. + Share is visible in net view and the browse list. - :return: The allow_execute_always of this SmbShareExtended. + :return: The browsable of this SmbShareExtended. :rtype: bool """ - return self._allow_execute_always + return self._browsable - @allow_execute_always.setter - def allow_execute_always(self, allow_execute_always): + @browsable.setter + def browsable(self, browsable): """ - Sets the allow_execute_always of this SmbShareExtended. - Allows users to execute files they have read rights for. + Sets the browsable of this SmbShareExtended. + Share is visible in net view and the browse list. - :param allow_execute_always: The allow_execute_always of this SmbShareExtended. + :param browsable: The browsable of this SmbShareExtended. :type: bool """ - self._allow_execute_always = allow_execute_always + + self._browsable = browsable @property def ca_timeout(self): @@ -475,189 +342,198 @@ def ca_timeout(self, ca_timeout): :param ca_timeout: The ca_timeout of this SmbShareExtended. :type: int """ + + if not ca_timeout: + raise ValueError("Invalid value for `ca_timeout`, must not be `None`") + if ca_timeout < 2.0: + raise ValueError("Invalid value for `ca_timeout`, must be a value greater than or equal to `2.0`") + self._ca_timeout = ca_timeout @property - def zid(self): + def ca_write_integrity(self): """ - Gets the zid of this SmbShareExtended. - Numeric ID of the access zone which contains this SMB share + Gets the ca_write_integrity of this SmbShareExtended. + Specify the level of write-integrity on continuously available shares. - :return: The zid of this SmbShareExtended. - :rtype: int + :return: The ca_write_integrity of this SmbShareExtended. + :rtype: str """ - return self._zid + return self._ca_write_integrity - @zid.setter - def zid(self, zid): + @ca_write_integrity.setter + def ca_write_integrity(self, ca_write_integrity): """ - Sets the zid of this SmbShareExtended. - Numeric ID of the access zone which contains this SMB share + Sets the ca_write_integrity of this SmbShareExtended. + Specify the level of write-integrity on continuously available shares. - :param zid: The zid of this SmbShareExtended. - :type: int + :param ca_write_integrity: The ca_write_integrity of this SmbShareExtended. + :type: str """ - self._zid = zid + allowed_values = ["none", "write-read-coherent", "full"] + if ca_write_integrity not in allowed_values: + raise ValueError( + "Invalid value for `ca_write_integrity`, must be one of {0}" + .format(allowed_values) + ) + + self._ca_write_integrity = ca_write_integrity @property - def zone(self): + def change_notify(self): """ - Gets the zone of this SmbShareExtended. - Name of the access zone to which to move this SMB share + Gets the change_notify of this SmbShareExtended. + Level of change notification alerts on the share. - :return: The zone of this SmbShareExtended. + :return: The change_notify of this SmbShareExtended. :rtype: str """ - return self._zone + return self._change_notify - @zone.setter - def zone(self, zone): + @change_notify.setter + def change_notify(self, change_notify): """ - Sets the zone of this SmbShareExtended. - Name of the access zone to which to move this SMB share + Sets the change_notify of this SmbShareExtended. + Level of change notification alerts on the share. - :param zone: The zone of this SmbShareExtended. + :param change_notify: The change_notify of this SmbShareExtended. :type: str """ - self._zone = zone - - @property - def mangle_byte_start(self): - """ - Gets the mangle_byte_start of this SmbShareExtended. - Specifies the wchar_t starting point for automatic byte mangling. - - :return: The mangle_byte_start of this SmbShareExtended. - :rtype: int - """ - return self._mangle_byte_start - - @mangle_byte_start.setter - def mangle_byte_start(self, mangle_byte_start): - """ - Sets the mangle_byte_start of this SmbShareExtended. - Specifies the wchar_t starting point for automatic byte mangling. + allowed_values = ["all", "norecurse", "none"] + if change_notify not in allowed_values: + raise ValueError( + "Invalid value for `change_notify`, must be one of {0}" + .format(allowed_values) + ) - :param mangle_byte_start: The mangle_byte_start of this SmbShareExtended. - :type: int - """ - self._mangle_byte_start = mangle_byte_start + self._change_notify = change_notify @property - def permissions(self): + def continuously_available(self): """ - Gets the permissions of this SmbShareExtended. - Specifies an ordered list of permission modifications. + Gets the continuously_available of this SmbShareExtended. + Specify if persistent opens are allowed on the share. - :return: The permissions of this SmbShareExtended. - :rtype: list[SmbSharePermission] + :return: The continuously_available of this SmbShareExtended. + :rtype: bool """ - return self._permissions + return self._continuously_available - @permissions.setter - def permissions(self, permissions): + @continuously_available.setter + def continuously_available(self, continuously_available): """ - Sets the permissions of this SmbShareExtended. - Specifies an ordered list of permission modifications. + Sets the continuously_available of this SmbShareExtended. + Specify if persistent opens are allowed on the share. - :param permissions: The permissions of this SmbShareExtended. - :type: list[SmbSharePermission] + :param continuously_available: The continuously_available of this SmbShareExtended. + :type: bool """ - self._permissions = permissions + + self._continuously_available = continuously_available @property - def directory_create_mask(self): + def create_permissions(self): """ - Gets the directory_create_mask of this SmbShareExtended. - Directory create mask bits. + Gets the create_permissions of this SmbShareExtended. + Create permissions for new files and directories in share. - :return: The directory_create_mask of this SmbShareExtended. - :rtype: int + :return: The create_permissions of this SmbShareExtended. + :rtype: str """ - return self._directory_create_mask + return self._create_permissions - @directory_create_mask.setter - def directory_create_mask(self, directory_create_mask): + @create_permissions.setter + def create_permissions(self, create_permissions): """ - Sets the directory_create_mask of this SmbShareExtended. - Directory create mask bits. + Sets the create_permissions of this SmbShareExtended. + Create permissions for new files and directories in share. - :param directory_create_mask: The directory_create_mask of this SmbShareExtended. - :type: int + :param create_permissions: The create_permissions of this SmbShareExtended. + :type: str """ - self._directory_create_mask = directory_create_mask + allowed_values = ["default acl", "inherit mode bits", "use create mask and mode"] + if create_permissions not in allowed_values: + raise ValueError( + "Invalid value for `create_permissions`, must be one of {0}" + .format(allowed_values) + ) + + self._create_permissions = create_permissions @property - def hide_dot_files(self): + def csc_policy(self): """ - Gets the hide_dot_files of this SmbShareExtended. - Hide files and directories that begin with a period '.'. + Gets the csc_policy of this SmbShareExtended. + Client-side caching policy for the shares. - :return: The hide_dot_files of this SmbShareExtended. - :rtype: bool + :return: The csc_policy of this SmbShareExtended. + :rtype: str """ - return self._hide_dot_files + return self._csc_policy - @hide_dot_files.setter - def hide_dot_files(self, hide_dot_files): + @csc_policy.setter + def csc_policy(self, csc_policy): """ - Sets the hide_dot_files of this SmbShareExtended. - Hide files and directories that begin with a period '.'. + Sets the csc_policy of this SmbShareExtended. + Client-side caching policy for the shares. - :param hide_dot_files: The hide_dot_files of this SmbShareExtended. - :type: bool + :param csc_policy: The csc_policy of this SmbShareExtended. + :type: str """ - self._hide_dot_files = hide_dot_files + allowed_values = ["manual", "documents", "programs", "none"] + if csc_policy not in allowed_values: + raise ValueError( + "Invalid value for `csc_policy`, must be one of {0}" + .format(allowed_values) + ) + + self._csc_policy = csc_policy @property - def change_notify(self): + def description(self): """ - Gets the change_notify of this SmbShareExtended. - Level of change notification alerts on the share. + Gets the description of this SmbShareExtended. + Description for this SMB share. - :return: The change_notify of this SmbShareExtended. + :return: The description of this SmbShareExtended. :rtype: str """ - return self._change_notify + return self._description - @change_notify.setter - def change_notify(self, change_notify): + @description.setter + def description(self, description): """ - Sets the change_notify of this SmbShareExtended. - Level of change notification alerts on the share. + Sets the description of this SmbShareExtended. + Description for this SMB share. - :param change_notify: The change_notify of this SmbShareExtended. + :param description: The description of this SmbShareExtended. :type: str """ - allowed_values = ["all", "norecurse", "none"] - if change_notify not in allowed_values: - raise ValueError( - "Invalid value for `change_notify`, must be one of {0}" - .format(allowed_values) - ) - self._change_notify = change_notify + + self._description = description @property - def id(self): + def directory_create_mask(self): """ - Gets the id of this SmbShareExtended. - Share ID. + Gets the directory_create_mask of this SmbShareExtended. + Directory create mask bits. - :return: The id of this SmbShareExtended. - :rtype: str + :return: The directory_create_mask of this SmbShareExtended. + :rtype: int """ - return self._id + return self._directory_create_mask - @id.setter - def id(self, id): + @directory_create_mask.setter + def directory_create_mask(self, directory_create_mask): """ - Sets the id of this SmbShareExtended. - Share ID. + Sets the directory_create_mask of this SmbShareExtended. + Directory create mask bits. - :param id: The id of this SmbShareExtended. - :type: str + :param directory_create_mask: The directory_create_mask of this SmbShareExtended. + :type: int """ - self._id = id + + self._directory_create_mask = directory_create_mask @property def directory_create_mode(self): @@ -679,8 +555,32 @@ def directory_create_mode(self, directory_create_mode): :param directory_create_mode: The directory_create_mode of this SmbShareExtended. :type: int """ + self._directory_create_mode = directory_create_mode + @property + def file_create_mask(self): + """ + Gets the file_create_mask of this SmbShareExtended. + File create mask bits. + + :return: The file_create_mask of this SmbShareExtended. + :rtype: int + """ + return self._file_create_mask + + @file_create_mask.setter + def file_create_mask(self, file_create_mask): + """ + Sets the file_create_mask of this SmbShareExtended. + File create mask bits. + + :param file_create_mask: The file_create_mask of this SmbShareExtended. + :type: int + """ + + self._file_create_mask = file_create_mask + @property def file_create_mode(self): """ @@ -701,8 +601,32 @@ def file_create_mode(self, file_create_mode): :param file_create_mode: The file_create_mode of this SmbShareExtended. :type: int """ + self._file_create_mode = file_create_mode + @property + def file_filter_extensions(self): + """ + Gets the file_filter_extensions of this SmbShareExtended. + Specifies the list of file extensions. + + :return: The file_filter_extensions of this SmbShareExtended. + :rtype: list[str] + """ + return self._file_filter_extensions + + @file_filter_extensions.setter + def file_filter_extensions(self, file_filter_extensions): + """ + Sets the file_filter_extensions of this SmbShareExtended. + Specifies the list of file extensions. + + :param file_filter_extensions: The file_filter_extensions of this SmbShareExtended. + :type: list[str] + """ + + self._file_filter_extensions = file_filter_extensions + @property def file_filter_type(self): """ @@ -729,6 +653,7 @@ def file_filter_type(self, file_filter_type): "Invalid value for `file_filter_type`, must be one of {0}" .format(allowed_values) ) + self._file_filter_type = file_filter_type @property @@ -751,333 +676,428 @@ def file_filtering_enabled(self, file_filtering_enabled): :param file_filtering_enabled: The file_filtering_enabled of this SmbShareExtended. :type: bool """ + self._file_filtering_enabled = file_filtering_enabled @property - def access_based_enumeration(self): + def hide_dot_files(self): """ - Gets the access_based_enumeration of this SmbShareExtended. - Only enumerate files and folders the requesting user has access to. + Gets the hide_dot_files of this SmbShareExtended. + Hide files and directories that begin with a period '.'. - :return: The access_based_enumeration of this SmbShareExtended. + :return: The hide_dot_files of this SmbShareExtended. :rtype: bool """ - return self._access_based_enumeration + return self._hide_dot_files - @access_based_enumeration.setter - def access_based_enumeration(self, access_based_enumeration): + @hide_dot_files.setter + def hide_dot_files(self, hide_dot_files): """ - Sets the access_based_enumeration of this SmbShareExtended. - Only enumerate files and folders the requesting user has access to. + Sets the hide_dot_files of this SmbShareExtended. + Hide files and directories that begin with a period '.'. - :param access_based_enumeration: The access_based_enumeration of this SmbShareExtended. + :param hide_dot_files: The hide_dot_files of this SmbShareExtended. :type: bool """ - self._access_based_enumeration = access_based_enumeration + + self._hide_dot_files = hide_dot_files @property - def csc_policy(self): + def host_acl(self): """ - Gets the csc_policy of this SmbShareExtended. - Client-side caching policy for the shares. + Gets the host_acl of this SmbShareExtended. + An ACL expressing which hosts are allowed access. A deny clause must be the final entry. - :return: The csc_policy of this SmbShareExtended. + :return: The host_acl of this SmbShareExtended. + :rtype: list[str] + """ + return self._host_acl + + @host_acl.setter + def host_acl(self, host_acl): + """ + Sets the host_acl of this SmbShareExtended. + An ACL expressing which hosts are allowed access. A deny clause must be the final entry. + + :param host_acl: The host_acl of this SmbShareExtended. + :type: list[str] + """ + + self._host_acl = host_acl + + @property + def id(self): + """ + Gets the id of this SmbShareExtended. + Share ID. + + :return: The id of this SmbShareExtended. :rtype: str """ - return self._csc_policy + return self._id - @csc_policy.setter - def csc_policy(self, csc_policy): + @id.setter + def id(self, id): """ - Sets the csc_policy of this SmbShareExtended. - Client-side caching policy for the shares. + Sets the id of this SmbShareExtended. + Share ID. - :param csc_policy: The csc_policy of this SmbShareExtended. + :param id: The id of this SmbShareExtended. :type: str """ - allowed_values = ["manual", "documents", "programs", "none"] - if csc_policy not in allowed_values: + + self._id = id + + @property + def impersonate_guest(self): + """ + Gets the impersonate_guest of this SmbShareExtended. + Specify the condition in which user access is done as the guest account. + + :return: The impersonate_guest of this SmbShareExtended. + :rtype: str + """ + return self._impersonate_guest + + @impersonate_guest.setter + def impersonate_guest(self, impersonate_guest): + """ + Sets the impersonate_guest of this SmbShareExtended. + Specify the condition in which user access is done as the guest account. + + :param impersonate_guest: The impersonate_guest of this SmbShareExtended. + :type: str + """ + allowed_values = ["always", "bad user", "never"] + if impersonate_guest not in allowed_values: raise ValueError( - "Invalid value for `csc_policy`, must be one of {0}" + "Invalid value for `impersonate_guest`, must be one of {0}" .format(allowed_values) ) - self._csc_policy = csc_policy + + self._impersonate_guest = impersonate_guest @property - def host_acl(self): + def impersonate_user(self): """ - Gets the host_acl of this SmbShareExtended. - An ACL expressing which hosts are allowed access. A deny clause must be the final entry. + Gets the impersonate_user of this SmbShareExtended. + User account to be used as guest account. - :return: The host_acl of this SmbShareExtended. - :rtype: list[str] + :return: The impersonate_user of this SmbShareExtended. + :rtype: str """ - return self._host_acl + return self._impersonate_user - @host_acl.setter - def host_acl(self, host_acl): + @impersonate_user.setter + def impersonate_user(self, impersonate_user): """ - Sets the host_acl of this SmbShareExtended. - An ACL expressing which hosts are allowed access. A deny clause must be the final entry. + Sets the impersonate_user of this SmbShareExtended. + User account to be used as guest account. - :param host_acl: The host_acl of this SmbShareExtended. - :type: list[str] + :param impersonate_user: The impersonate_user of this SmbShareExtended. + :type: str """ - self._host_acl = host_acl + + self._impersonate_user = impersonate_user @property - def strict_ca_lockout(self): + def inheritable_path_acl(self): """ - Gets the strict_ca_lockout of this SmbShareExtended. - Specifies if persistent opens would do strict lockout on the share. + Gets the inheritable_path_acl of this SmbShareExtended. + Set the inheritable ACL on the share path. - :return: The strict_ca_lockout of this SmbShareExtended. + :return: The inheritable_path_acl of this SmbShareExtended. :rtype: bool """ - return self._strict_ca_lockout + return self._inheritable_path_acl - @strict_ca_lockout.setter - def strict_ca_lockout(self, strict_ca_lockout): + @inheritable_path_acl.setter + def inheritable_path_acl(self, inheritable_path_acl): """ - Sets the strict_ca_lockout of this SmbShareExtended. - Specifies if persistent opens would do strict lockout on the share. + Sets the inheritable_path_acl of this SmbShareExtended. + Set the inheritable ACL on the share path. - :param strict_ca_lockout: The strict_ca_lockout of this SmbShareExtended. + :param inheritable_path_acl: The inheritable_path_acl of this SmbShareExtended. :type: bool """ - self._strict_ca_lockout = strict_ca_lockout + + self._inheritable_path_acl = inheritable_path_acl + + @property + def mangle_byte_start(self): + """ + Gets the mangle_byte_start of this SmbShareExtended. + Specifies the wchar_t starting point for automatic byte mangling. + + :return: The mangle_byte_start of this SmbShareExtended. + :rtype: int + """ + return self._mangle_byte_start + + @mangle_byte_start.setter + def mangle_byte_start(self, mangle_byte_start): + """ + Sets the mangle_byte_start of this SmbShareExtended. + Specifies the wchar_t starting point for automatic byte mangling. + + :param mangle_byte_start: The mangle_byte_start of this SmbShareExtended. + :type: int + """ + + self._mangle_byte_start = mangle_byte_start + + @property + def mangle_map(self): + """ + Gets the mangle_map of this SmbShareExtended. + Character mangle map. + + :return: The mangle_map of this SmbShareExtended. + :rtype: list[str] + """ + return self._mangle_map + + @mangle_map.setter + def mangle_map(self, mangle_map): + """ + Sets the mangle_map of this SmbShareExtended. + Character mangle map. + + :param mangle_map: The mangle_map of this SmbShareExtended. + :type: list[str] + """ + + self._mangle_map = mangle_map @property - def create_permissions(self): + def name(self): """ - Gets the create_permissions of this SmbShareExtended. - Create permissions for new files and directories in share. + Gets the name of this SmbShareExtended. + Share name. - :return: The create_permissions of this SmbShareExtended. + :return: The name of this SmbShareExtended. :rtype: str """ - return self._create_permissions + return self._name - @create_permissions.setter - def create_permissions(self, create_permissions): + @name.setter + def name(self, name): """ - Sets the create_permissions of this SmbShareExtended. - Create permissions for new files and directories in share. + Sets the name of this SmbShareExtended. + Share name. - :param create_permissions: The create_permissions of this SmbShareExtended. + :param name: The name of this SmbShareExtended. :type: str """ - allowed_values = ["default acl", "inherit mode bits", "use create mask and mode"] - if create_permissions not in allowed_values: - raise ValueError( - "Invalid value for `create_permissions`, must be one of {0}" - .format(allowed_values) - ) - self._create_permissions = create_permissions + + self._name = name @property - def inheritable_path_acl(self): + def ntfs_acl_support(self): """ - Gets the inheritable_path_acl of this SmbShareExtended. - Set the inheritable ACL on the share path. + Gets the ntfs_acl_support of this SmbShareExtended. + Support NTFS ACLs on files and directories. - :return: The inheritable_path_acl of this SmbShareExtended. + :return: The ntfs_acl_support of this SmbShareExtended. :rtype: bool """ - return self._inheritable_path_acl + return self._ntfs_acl_support - @inheritable_path_acl.setter - def inheritable_path_acl(self, inheritable_path_acl): + @ntfs_acl_support.setter + def ntfs_acl_support(self, ntfs_acl_support): """ - Sets the inheritable_path_acl of this SmbShareExtended. - Set the inheritable ACL on the share path. + Sets the ntfs_acl_support of this SmbShareExtended. + Support NTFS ACLs on files and directories. - :param inheritable_path_acl: The inheritable_path_acl of this SmbShareExtended. + :param ntfs_acl_support: The ntfs_acl_support of this SmbShareExtended. :type: bool """ - self._inheritable_path_acl = inheritable_path_acl + + self._ntfs_acl_support = ntfs_acl_support @property - def auto_create_directory(self): + def oplocks(self): """ - Gets the auto_create_directory of this SmbShareExtended. - Automatically create home directories. + Gets the oplocks of this SmbShareExtended. + Support oplocks. - :return: The auto_create_directory of this SmbShareExtended. + :return: The oplocks of this SmbShareExtended. :rtype: bool """ - return self._auto_create_directory + return self._oplocks - @auto_create_directory.setter - def auto_create_directory(self, auto_create_directory): + @oplocks.setter + def oplocks(self, oplocks): """ - Sets the auto_create_directory of this SmbShareExtended. - Automatically create home directories. + Sets the oplocks of this SmbShareExtended. + Support oplocks. - :param auto_create_directory: The auto_create_directory of this SmbShareExtended. + :param oplocks: The oplocks of this SmbShareExtended. :type: bool """ - self._auto_create_directory = auto_create_directory + + self._oplocks = oplocks @property - def file_filter_extensions(self): + def path(self): """ - Gets the file_filter_extensions of this SmbShareExtended. - Specifies the list of file extensions. + Gets the path of this SmbShareExtended. + Path of share within /ifs. - :return: The file_filter_extensions of this SmbShareExtended. - :rtype: list[str] + :return: The path of this SmbShareExtended. + :rtype: str """ - return self._file_filter_extensions + return self._path - @file_filter_extensions.setter - def file_filter_extensions(self, file_filter_extensions): + @path.setter + def path(self, path): """ - Sets the file_filter_extensions of this SmbShareExtended. - Specifies the list of file extensions. + Sets the path of this SmbShareExtended. + Path of share within /ifs. - :param file_filter_extensions: The file_filter_extensions of this SmbShareExtended. - :type: list[str] + :param path: The path of this SmbShareExtended. + :type: str """ - self._file_filter_extensions = file_filter_extensions + + self._path = path @property - def strict_locking(self): + def permissions(self): """ - Gets the strict_locking of this SmbShareExtended. - Specifies whether byte range locks contend against SMB I/O. + Gets the permissions of this SmbShareExtended. + Specifies an ordered list of permission modifications. - :return: The strict_locking of this SmbShareExtended. - :rtype: bool + :return: The permissions of this SmbShareExtended. + :rtype: list[SmbSharePermission] """ - return self._strict_locking + return self._permissions - @strict_locking.setter - def strict_locking(self, strict_locking): + @permissions.setter + def permissions(self, permissions): """ - Sets the strict_locking of this SmbShareExtended. - Specifies whether byte range locks contend against SMB I/O. + Sets the permissions of this SmbShareExtended. + Specifies an ordered list of permission modifications. - :param strict_locking: The strict_locking of this SmbShareExtended. - :type: bool + :param permissions: The permissions of this SmbShareExtended. + :type: list[SmbSharePermission] """ - self._strict_locking = strict_locking + + self._permissions = permissions @property - def name(self): + def run_as_root(self): """ - Gets the name of this SmbShareExtended. - Share name. + Gets the run_as_root of this SmbShareExtended. + Allow account to run as root. - :return: The name of this SmbShareExtended. - :rtype: str + :return: The run_as_root of this SmbShareExtended. + :rtype: list[GroupMember] """ - return self._name + return self._run_as_root - @name.setter - def name(self, name): + @run_as_root.setter + def run_as_root(self, run_as_root): """ - Sets the name of this SmbShareExtended. - Share name. + Sets the run_as_root of this SmbShareExtended. + Allow account to run as root. - :param name: The name of this SmbShareExtended. - :type: str + :param run_as_root: The run_as_root of this SmbShareExtended. + :type: list[GroupMember] """ - self._name = name + + self._run_as_root = run_as_root @property - def impersonate_guest(self): + def strict_ca_lockout(self): """ - Gets the impersonate_guest of this SmbShareExtended. - Specify the condition in which user access is done as the guest account. + Gets the strict_ca_lockout of this SmbShareExtended. + Specifies if persistent opens would do strict lockout on the share. - :return: The impersonate_guest of this SmbShareExtended. - :rtype: str + :return: The strict_ca_lockout of this SmbShareExtended. + :rtype: bool """ - return self._impersonate_guest + return self._strict_ca_lockout - @impersonate_guest.setter - def impersonate_guest(self, impersonate_guest): + @strict_ca_lockout.setter + def strict_ca_lockout(self, strict_ca_lockout): """ - Sets the impersonate_guest of this SmbShareExtended. - Specify the condition in which user access is done as the guest account. + Sets the strict_ca_lockout of this SmbShareExtended. + Specifies if persistent opens would do strict lockout on the share. - :param impersonate_guest: The impersonate_guest of this SmbShareExtended. - :type: str + :param strict_ca_lockout: The strict_ca_lockout of this SmbShareExtended. + :type: bool """ - allowed_values = ["always", "bad user", "never"] - if impersonate_guest not in allowed_values: - raise ValueError( - "Invalid value for `impersonate_guest`, must be one of {0}" - .format(allowed_values) - ) - self._impersonate_guest = impersonate_guest + + self._strict_ca_lockout = strict_ca_lockout @property - def allow_delete_readonly(self): + def strict_flush(self): """ - Gets the allow_delete_readonly of this SmbShareExtended. - Allow deletion of read-only files in the share. + Gets the strict_flush of this SmbShareExtended. + Handle SMB flush operations. - :return: The allow_delete_readonly of this SmbShareExtended. + :return: The strict_flush of this SmbShareExtended. :rtype: bool """ - return self._allow_delete_readonly + return self._strict_flush - @allow_delete_readonly.setter - def allow_delete_readonly(self, allow_delete_readonly): + @strict_flush.setter + def strict_flush(self, strict_flush): """ - Sets the allow_delete_readonly of this SmbShareExtended. - Allow deletion of read-only files in the share. + Sets the strict_flush of this SmbShareExtended. + Handle SMB flush operations. - :param allow_delete_readonly: The allow_delete_readonly of this SmbShareExtended. + :param strict_flush: The strict_flush of this SmbShareExtended. :type: bool """ - self._allow_delete_readonly = allow_delete_readonly + + self._strict_flush = strict_flush @property - def mangle_map(self): + def strict_locking(self): """ - Gets the mangle_map of this SmbShareExtended. - Character mangle map. + Gets the strict_locking of this SmbShareExtended. + Specifies whether byte range locks contend against SMB I/O. - :return: The mangle_map of this SmbShareExtended. - :rtype: list[str] + :return: The strict_locking of this SmbShareExtended. + :rtype: bool """ - return self._mangle_map + return self._strict_locking - @mangle_map.setter - def mangle_map(self, mangle_map): + @strict_locking.setter + def strict_locking(self, strict_locking): """ - Sets the mangle_map of this SmbShareExtended. - Character mangle map. + Sets the strict_locking of this SmbShareExtended. + Specifies whether byte range locks contend against SMB I/O. - :param mangle_map: The mangle_map of this SmbShareExtended. - :type: list[str] + :param strict_locking: The strict_locking of this SmbShareExtended. + :type: bool """ - self._mangle_map = mangle_map + + self._strict_locking = strict_locking @property - def oplocks(self): + def zid(self): """ - Gets the oplocks of this SmbShareExtended. - Support oplocks. + Gets the zid of this SmbShareExtended. + Numeric ID of the access zone which contains this SMB share - :return: The oplocks of this SmbShareExtended. - :rtype: bool + :return: The zid of this SmbShareExtended. + :rtype: int """ - return self._oplocks + return self._zid - @oplocks.setter - def oplocks(self, oplocks): + @zid.setter + def zid(self, zid): """ - Sets the oplocks of this SmbShareExtended. - Support oplocks. + Sets the zid of this SmbShareExtended. + Numeric ID of the access zone which contains this SMB share - :param oplocks: The oplocks of this SmbShareExtended. - :type: bool + :param zid: The zid of this SmbShareExtended. + :type: int """ - self._oplocks = oplocks + + self._zid = zid def to_dict(self): """ @@ -1094,6 +1114,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1111,14 +1137,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_share_permission.py b/isi_sdk/models/smb_share_permission.py index c43779147..cf870ebd2 100644 --- a/isi_sdk/models/smb_share_permission.py +++ b/isi_sdk/models/smb_share_permission.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSharePermission(object): @@ -39,7 +40,7 @@ def __init__(self): self.swagger_types = { 'permission': 'str', 'permission_type': 'str', - 'trustee': 'GroupsGroupMember' + 'trustee': 'GroupMember' } self.attribute_map = { @@ -78,6 +79,7 @@ def permission(self, permission): "Invalid value for `permission`, must be one of {0}" .format(allowed_values) ) + self._permission = permission @property @@ -106,6 +108,7 @@ def permission_type(self, permission_type): "Invalid value for `permission_type`, must be one of {0}" .format(allowed_values) ) + self._permission_type = permission_type @property @@ -115,7 +118,7 @@ def trustee(self): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :return: The trustee of this SmbSharePermission. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._trustee @@ -126,8 +129,9 @@ def trustee(self, trustee): Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'. :param trustee: The trustee of this SmbSharePermission. - :type: GroupsGroupMember + :type: GroupMember """ + self._trustee = trustee def to_dict(self): @@ -145,6 +149,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -162,14 +172,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_shares.py b/isi_sdk/models/smb_shares.py index 4e41b3cf1..733f210ca 100644 --- a/isi_sdk/models/smb_shares.py +++ b/isi_sdk/models/smb_shares.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbShares(object): @@ -66,6 +67,7 @@ def shares(self, shares): :param shares: The shares of this SmbShares. :type: list[SmbShareExtended] """ + self._shares = shares def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_shares_extended.py b/isi_sdk/models/smb_shares_extended.py index f8c648bc4..0e674a745 100644 --- a/isi_sdk/models/smb_shares_extended.py +++ b/isi_sdk/models/smb_shares_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSharesExtended(object): @@ -72,6 +73,7 @@ def shares(self, shares): :param shares: The shares of this SmbSharesExtended. :type: list[SmbShareExtended] """ + self._shares = shares @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SmbSharesExtended. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this SmbSharesExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_shares_summary.py b/isi_sdk/models/smb_shares_summary.py index 6eacb00af..96f0396cc 100644 --- a/isi_sdk/models/smb_shares_summary.py +++ b/isi_sdk/models/smb_shares_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSharesSummary(object): @@ -66,6 +67,7 @@ def summary(self, summary): :param summary: The summary of this SmbSharesSummary. :type: SmbSharesSummarySummary """ + self._summary = summary def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/smb_shares_summary_summary.py b/isi_sdk/models/smb_shares_summary_summary.py index 4e0f7d93e..097c234f6 100644 --- a/isi_sdk/models/smb_shares_summary_summary.py +++ b/isi_sdk/models/smb_shares_summary_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SmbSharesSummarySummary(object): @@ -66,6 +67,7 @@ def count(self, count): :param count: The count of this SmbSharesSummarySummary. :type: int """ + self._count = count def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_aliase.py b/isi_sdk/models/snapshot_aliase.py index 0361d9baa..8331f969f 100644 --- a/isi_sdk/models/snapshot_aliase.py +++ b/isi_sdk/models/snapshot_aliase.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotAliase(object): @@ -69,6 +70,7 @@ def name(self, name): :param name: The name of this SnapshotAliase. :type: str """ + self._name = name @property @@ -91,6 +93,7 @@ def target(self, target): :param target: The target of this SnapshotAliase. :type: str """ + self._target = target def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_aliase_create_params.py b/isi_sdk/models/snapshot_aliase_create_params.py index 6cc018c58..2700b0858 100644 --- a/isi_sdk/models/snapshot_aliase_create_params.py +++ b/isi_sdk/models/snapshot_aliase_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotAliaseCreateParams(object): @@ -69,6 +70,7 @@ def name(self, name): :param name: The name of this SnapshotAliaseCreateParams. :type: str """ + self._name = name @property @@ -91,6 +93,7 @@ def target(self, target): :param target: The target of this SnapshotAliaseCreateParams. :type: str """ + self._target = target def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_aliase_extended.py b/isi_sdk/models/snapshot_aliase_extended.py index 02ea50468..41c20468b 100644 --- a/isi_sdk/models/snapshot_aliase_extended.py +++ b/isi_sdk/models/snapshot_aliase_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotAliaseExtended(object): @@ -37,73 +38,49 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'created': 'int', + 'id': 'int', 'name': 'str', 'target_id': 'int', - 'id': 'int', - 'target_name': 'str', - 'created': 'int', - 'target': 'str' + 'target_name': 'str' } self.attribute_map = { + 'created': 'created', + 'id': 'id', 'name': 'name', 'target_id': 'target_id', - 'id': 'id', - 'target_name': 'target_name', - 'created': 'created', - 'target': 'target' + 'target_name': 'target_name' } + self._created = None + self._id = None self._name = None self._target_id = None - self._id = None self._target_name = None - self._created = None - self._target = None @property - def name(self): - """ - Gets the name of this SnapshotAliaseExtended. - The user or system supplied snapshot alias name. - - :return: The name of this SnapshotAliaseExtended. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this SnapshotAliaseExtended. - The user or system supplied snapshot alias name. - - :param name: The name of this SnapshotAliaseExtended. - :type: str - """ - self._name = name - - @property - def target_id(self): + def created(self): """ - Gets the target_id of this SnapshotAliaseExtended. - The ID of the snapshot pointed to. + Gets the created of this SnapshotAliaseExtended. + The Unix Epoch time the snapshot alias was created. - :return: The target_id of this SnapshotAliaseExtended. + :return: The created of this SnapshotAliaseExtended. :rtype: int """ - return self._target_id + return self._created - @target_id.setter - def target_id(self, target_id): + @created.setter + def created(self, created): """ - Sets the target_id of this SnapshotAliaseExtended. - The ID of the snapshot pointed to. + Sets the created of this SnapshotAliaseExtended. + The Unix Epoch time the snapshot alias was created. - :param target_id: The target_id of this SnapshotAliaseExtended. + :param created: The created of this SnapshotAliaseExtended. :type: int """ - self._target_id = target_id + + self._created = created @property def id(self): @@ -125,73 +102,77 @@ def id(self, id): :param id: The id of this SnapshotAliaseExtended. :type: int """ + self._id = id @property - def target_name(self): + def name(self): """ - Gets the target_name of this SnapshotAliaseExtended. - The name of the snapshot pointed to. + Gets the name of this SnapshotAliaseExtended. + The user or system supplied snapshot alias name. - :return: The target_name of this SnapshotAliaseExtended. + :return: The name of this SnapshotAliaseExtended. :rtype: str """ - return self._target_name + return self._name - @target_name.setter - def target_name(self, target_name): + @name.setter + def name(self, name): """ - Sets the target_name of this SnapshotAliaseExtended. - The name of the snapshot pointed to. + Sets the name of this SnapshotAliaseExtended. + The user or system supplied snapshot alias name. - :param target_name: The target_name of this SnapshotAliaseExtended. + :param name: The name of this SnapshotAliaseExtended. :type: str """ - self._target_name = target_name + + self._name = name @property - def created(self): + def target_id(self): """ - Gets the created of this SnapshotAliaseExtended. - The Unix Epoch time the snapshot alias was created. + Gets the target_id of this SnapshotAliaseExtended. + The ID of the snapshot pointed to. - :return: The created of this SnapshotAliaseExtended. + :return: The target_id of this SnapshotAliaseExtended. :rtype: int """ - return self._created + return self._target_id - @created.setter - def created(self, created): + @target_id.setter + def target_id(self, target_id): """ - Sets the created of this SnapshotAliaseExtended. - The Unix Epoch time the snapshot alias was created. + Sets the target_id of this SnapshotAliaseExtended. + The ID of the snapshot pointed to. - :param created: The created of this SnapshotAliaseExtended. + :param target_id: The target_id of this SnapshotAliaseExtended. :type: int """ - self._created = created + + self._target_id = target_id @property - def target(self): + def target_name(self): """ - Gets the target of this SnapshotAliaseExtended. - Target snapshot for this snapshot alias. + Gets the target_name of this SnapshotAliaseExtended. + The name of the snapshot pointed to. - :return: The target of this SnapshotAliaseExtended. + :return: The target_name of this SnapshotAliaseExtended. :rtype: str """ - return self._target + return self._target_name - @target.setter - def target(self, target): + @target_name.setter + def target_name(self, target_name): """ - Sets the target of this SnapshotAliaseExtended. - Target snapshot for this snapshot alias. + Sets the target_name of this SnapshotAliaseExtended. + The name of the snapshot pointed to. - :param target: The target of this SnapshotAliaseExtended. + :param target_name: The target_name of this SnapshotAliaseExtended. :type: str """ - self._target = target + + self._target_name = target_name def to_dict(self): """ @@ -208,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_aliases.py b/isi_sdk/models/snapshot_aliases.py index 221c8ef88..8e5db877e 100644 --- a/isi_sdk/models/snapshot_aliases.py +++ b/isi_sdk/models/snapshot_aliases.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotAliases(object): @@ -66,6 +67,7 @@ def aliases(self, aliases): :param aliases: The aliases of this SnapshotAliases. :type: list[SnapshotAliaseExtended] """ + self._aliases = aliases def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_aliases_extended.py b/isi_sdk/models/snapshot_aliases_extended.py index 6c9dd615f..a78e4fd46 100644 --- a/isi_sdk/models/snapshot_aliases_extended.py +++ b/isi_sdk/models/snapshot_aliases_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotAliasesExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'aliases': 'list[SnapshotAliaseExtended]', 'resume': 'str', - 'total': 'int', - 'aliases': 'list[SnapshotAliaseExtended]' + 'total': 'int' } self.attribute_map = { + 'aliases': 'aliases', 'resume': 'resume', - 'total': 'total', - 'aliases': 'aliases' + 'total': 'total' } + self._aliases = None self._resume = None self._total = None - self._aliases = None + + @property + def aliases(self): + """ + Gets the aliases of this SnapshotAliasesExtended. + + + :return: The aliases of this SnapshotAliasesExtended. + :rtype: list[SnapshotAliaseExtended] + """ + return self._aliases + + @aliases.setter + def aliases(self, aliases): + """ + Sets the aliases of this SnapshotAliasesExtended. + + + :param aliases: The aliases of this SnapshotAliasesExtended. + :type: list[SnapshotAliaseExtended] + """ + + self._aliases = aliases @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SnapshotAliasesExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this SnapshotAliasesExtended. :type: int """ + self._total = total - @property - def aliases(self): - """ - Gets the aliases of this SnapshotAliasesExtended. - - - :return: The aliases of this SnapshotAliasesExtended. - :rtype: list[SnapshotAliaseExtended] - """ - return self._aliases - - @aliases.setter - def aliases(self, aliases): - """ - Sets the aliases of this SnapshotAliasesExtended. - - - :param aliases: The aliases of this SnapshotAliasesExtended. - :type: list[SnapshotAliaseExtended] - """ - self._aliases = aliases - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_changelists.py b/isi_sdk/models/snapshot_changelists.py index 10d49c2f6..618a6221d 100644 --- a/isi_sdk/models/snapshot_changelists.py +++ b/isi_sdk/models/snapshot_changelists.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotChangelists(object): @@ -84,6 +85,7 @@ def id(self, id): :param id: The id of this SnapshotChangelists. :type: str """ + self._id = id @property @@ -106,6 +108,7 @@ def job_id(self, job_id): :param job_id: The job_id of this SnapshotChangelists. :type: int """ + self._job_id = job_id @property @@ -128,6 +131,7 @@ def num_entries(self, num_entries): :param num_entries: The num_entries of this SnapshotChangelists. :type: int """ + self._num_entries = num_entries @property @@ -150,6 +154,7 @@ def root_path(self, root_path): :param root_path: The root_path of this SnapshotChangelists. :type: str """ + self._root_path = root_path @property @@ -172,6 +177,7 @@ def snap1(self, snap1): :param snap1: The snap1 of this SnapshotChangelists. :type: int """ + self._snap1 = snap1 @property @@ -194,6 +200,7 @@ def snap2(self, snap2): :param snap2: The snap2 of this SnapshotChangelists. :type: int """ + self._snap2 = snap2 @property @@ -216,6 +223,7 @@ def status(self, status): :param status: The status of this SnapshotChangelists. :type: str """ + self._status = status def to_dict(self): @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_changelists_extended.py b/isi_sdk/models/snapshot_changelists_extended.py index 56f4505ff..4057aedcd 100644 --- a/isi_sdk/models/snapshot_changelists_extended.py +++ b/isi_sdk/models/snapshot_changelists_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotChangelistsExtended(object): @@ -37,63 +38,20 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'snap2': 'int', 'changelists': 'list[SnapshotChangelists]', 'resume': 'str', - 'root_path': 'str', - 'total': 'int', - 'job_id': 'int', - 'id': 'str', - 'num_entries': 'int', - 'snap1': 'int', - 'status': 'str' + 'total': 'int' } self.attribute_map = { - 'snap2': 'snap2', 'changelists': 'changelists', 'resume': 'resume', - 'root_path': 'root_path', - 'total': 'total', - 'job_id': 'job_id', - 'id': 'id', - 'num_entries': 'num_entries', - 'snap1': 'snap1', - 'status': 'status' + 'total': 'total' } - self._snap2 = None self._changelists = None self._resume = None - self._root_path = None self._total = None - self._job_id = None - self._id = None - self._num_entries = None - self._snap1 = None - self._status = None - - @property - def snap2(self): - """ - Gets the snap2 of this SnapshotChangelistsExtended. - The higher snapid used to compute the changelist. - - :return: The snap2 of this SnapshotChangelistsExtended. - :rtype: int - """ - return self._snap2 - - @snap2.setter - def snap2(self, snap2): - """ - Sets the snap2 of this SnapshotChangelistsExtended. - The higher snapid used to compute the changelist. - - :param snap2: The snap2 of this SnapshotChangelistsExtended. - :type: int - """ - self._snap2 = snap2 @property def changelists(self): @@ -115,6 +73,7 @@ def changelists(self, changelists): :param changelists: The changelists of this SnapshotChangelistsExtended. :type: list[SnapshotChangelists] """ + self._changelists = changelists @property @@ -137,30 +96,9 @@ def resume(self, resume): :param resume: The resume of this SnapshotChangelistsExtended. :type: str """ + self._resume = resume - @property - def root_path(self): - """ - Gets the root_path of this SnapshotChangelistsExtended. - Root path of all LINs in changelist. - - :return: The root_path of this SnapshotChangelistsExtended. - :rtype: str - """ - return self._root_path - - @root_path.setter - def root_path(self, root_path): - """ - Sets the root_path of this SnapshotChangelistsExtended. - Root path of all LINs in changelist. - - :param root_path: The root_path of this SnapshotChangelistsExtended. - :type: str - """ - self._root_path = root_path - @property def total(self): """ @@ -181,118 +119,9 @@ def total(self, total): :param total: The total of this SnapshotChangelistsExtended. :type: int """ + self._total = total - @property - def job_id(self): - """ - Gets the job_id of this SnapshotChangelistsExtended. - The ID of the job which created the changelist. - - :return: The job_id of this SnapshotChangelistsExtended. - :rtype: int - """ - return self._job_id - - @job_id.setter - def job_id(self, job_id): - """ - Sets the job_id of this SnapshotChangelistsExtended. - The ID of the job which created the changelist. - - :param job_id: The job_id of this SnapshotChangelistsExtended. - :type: int - """ - self._job_id = job_id - - @property - def id(self): - """ - Gets the id of this SnapshotChangelistsExtended. - The system ID given to the changelist. - - :return: The id of this SnapshotChangelistsExtended. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SnapshotChangelistsExtended. - The system ID given to the changelist. - - :param id: The id of this SnapshotChangelistsExtended. - :type: str - """ - self._id = id - - @property - def num_entries(self): - """ - Gets the num_entries of this SnapshotChangelistsExtended. - Number of LIN entries in changelist. - - :return: The num_entries of this SnapshotChangelistsExtended. - :rtype: int - """ - return self._num_entries - - @num_entries.setter - def num_entries(self, num_entries): - """ - Sets the num_entries of this SnapshotChangelistsExtended. - Number of LIN entries in changelist. - - :param num_entries: The num_entries of this SnapshotChangelistsExtended. - :type: int - """ - self._num_entries = num_entries - - @property - def snap1(self): - """ - Gets the snap1 of this SnapshotChangelistsExtended. - The lower snapid used to compute the changelist. - - :return: The snap1 of this SnapshotChangelistsExtended. - :rtype: int - """ - return self._snap1 - - @snap1.setter - def snap1(self, snap1): - """ - Sets the snap1 of this SnapshotChangelistsExtended. - The lower snapid used to compute the changelist. - - :param snap1: The snap1 of this SnapshotChangelistsExtended. - :type: int - """ - self._snap1 = snap1 - - @property - def status(self): - """ - Gets the status of this SnapshotChangelistsExtended. - Status of changelist. - - :return: The status of this SnapshotChangelistsExtended. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this SnapshotChangelistsExtended. - Status of changelist. - - :param status: The status of this SnapshotChangelistsExtended. - :type: str - """ - self._status = status - def to_dict(self): """ Returns the model properties as a dict @@ -308,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -325,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_lock.py b/isi_sdk/models/snapshot_lock.py new file mode 100644 index 000000000..a715a8174 --- /dev/null +++ b/isi_sdk/models/snapshot_lock.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SnapshotLock(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SnapshotLock - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'expires': 'int' + } + + self.attribute_map = { + 'expires': 'expires' + } + + self._expires = None + + @property + def expires(self): + """ + Gets the expires of this SnapshotLock. + The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. + + :return: The expires of this SnapshotLock. + :rtype: int + """ + return self._expires + + @expires.setter + def expires(self, expires): + """ + Sets the expires of this SnapshotLock. + The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. + + :param expires: The expires of this SnapshotLock. + :type: int + """ + + if not expires: + raise ValueError("Invalid value for `expires`, must not be `None`") + if expires > 2.147483647E9: + raise ValueError("Invalid value for `expires`, must be a value less than or equal to `2.147483647E9`") + if expires < 1.0: + raise ValueError("Invalid value for `expires`, must be a value greater than or equal to `1.0`") + + self._expires = expires + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/snapshot_lock_create_params.py b/isi_sdk/models/snapshot_lock_create_params.py new file mode 100644 index 000000000..0deeca42f --- /dev/null +++ b/isi_sdk/models/snapshot_lock_create_params.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SnapshotLockCreateParams(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SnapshotLockCreateParams - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'expires': 'int', + 'comment': 'str' + } + + self.attribute_map = { + 'expires': 'expires', + 'comment': 'comment' + } + + self._expires = None + self._comment = None + + @property + def expires(self): + """ + Gets the expires of this SnapshotLockCreateParams. + The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. + + :return: The expires of this SnapshotLockCreateParams. + :rtype: int + """ + return self._expires + + @expires.setter + def expires(self, expires): + """ + Sets the expires of this SnapshotLockCreateParams. + The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. + + :param expires: The expires of this SnapshotLockCreateParams. + :type: int + """ + + if not expires: + raise ValueError("Invalid value for `expires`, must not be `None`") + if expires > 2.147483647E9: + raise ValueError("Invalid value for `expires`, must be a value less than or equal to `2.147483647E9`") + if expires < 1.0: + raise ValueError("Invalid value for `expires`, must be a value greater than or equal to `1.0`") + + self._expires = expires + + @property + def comment(self): + """ + Gets the comment of this SnapshotLockCreateParams. + Free form comment. + + :return: The comment of this SnapshotLockCreateParams. + :rtype: str + """ + return self._comment + + @comment.setter + def comment(self, comment): + """ + Sets the comment of this SnapshotLockCreateParams. + Free form comment. + + :param comment: The comment of this SnapshotLockCreateParams. + :type: str + """ + + self._comment = comment + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/snapshot_lock_extended.py b/isi_sdk/models/snapshot_lock_extended.py new file mode 100644 index 000000000..8fe1a3f73 --- /dev/null +++ b/isi_sdk/models/snapshot_lock_extended.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SnapshotLockExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SnapshotLockExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'expires': 'int', + 'comment': 'str', + 'count': 'int', + 'id': 'int' + } + + self.attribute_map = { + 'expires': 'expires', + 'comment': 'comment', + 'count': 'count', + 'id': 'id' + } + + self._expires = None + self._comment = None + self._count = None + self._id = None + + @property + def expires(self): + """ + Gets the expires of this SnapshotLockExtended. + The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. + + :return: The expires of this SnapshotLockExtended. + :rtype: int + """ + return self._expires + + @expires.setter + def expires(self, expires): + """ + Sets the expires of this SnapshotLockExtended. + The Unix Epoch time the snapshot lock will expire and be eligible for automatic deletion. + + :param expires: The expires of this SnapshotLockExtended. + :type: int + """ + + if not expires: + raise ValueError("Invalid value for `expires`, must not be `None`") + if expires > 2.147483647E9: + raise ValueError("Invalid value for `expires`, must be a value less than or equal to `2.147483647E9`") + if expires < 1.0: + raise ValueError("Invalid value for `expires`, must be a value greater than or equal to `1.0`") + + self._expires = expires + + @property + def comment(self): + """ + Gets the comment of this SnapshotLockExtended. + User supplied lock comment. + + :return: The comment of this SnapshotLockExtended. + :rtype: str + """ + return self._comment + + @comment.setter + def comment(self, comment): + """ + Sets the comment of this SnapshotLockExtended. + User supplied lock comment. + + :param comment: The comment of this SnapshotLockExtended. + :type: str + """ + + self._comment = comment + + @property + def count(self): + """ + Gets the count of this SnapshotLockExtended. + Recursive lock count. + + :return: The count of this SnapshotLockExtended. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this SnapshotLockExtended. + Recursive lock count. + + :param count: The count of this SnapshotLockExtended. + :type: int + """ + + self._count = count + + @property + def id(self): + """ + Gets the id of this SnapshotLockExtended. + System generated lock ID. + + :return: The id of this SnapshotLockExtended. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SnapshotLockExtended. + System generated lock ID. + + :param id: The id of this SnapshotLockExtended. + :type: int + """ + + self._id = id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/snapshot_locks.py b/isi_sdk/models/snapshot_locks.py new file mode 100644 index 000000000..b7ec4d240 --- /dev/null +++ b/isi_sdk/models/snapshot_locks.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SnapshotLocks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SnapshotLocks - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'locks': 'list[SnapshotLockExtended]' + } + + self.attribute_map = { + 'locks': 'locks' + } + + self._locks = None + + @property + def locks(self): + """ + Gets the locks of this SnapshotLocks. + + + :return: The locks of this SnapshotLocks. + :rtype: list[SnapshotLockExtended] + """ + return self._locks + + @locks.setter + def locks(self, locks): + """ + Sets the locks of this SnapshotLocks. + + + :param locks: The locks of this SnapshotLocks. + :type: list[SnapshotLockExtended] + """ + + self._locks = locks + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/snapshot_locks_extended.py b/isi_sdk/models/snapshot_locks_extended.py new file mode 100644 index 000000000..981ef384a --- /dev/null +++ b/isi_sdk/models/snapshot_locks_extended.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SnapshotLocksExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SnapshotLocksExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'locks': 'list[SnapshotLockExtended]', + 'resume': 'str', + 'total': 'int' + } + + self.attribute_map = { + 'locks': 'locks', + 'resume': 'resume', + 'total': 'total' + } + + self._locks = None + self._resume = None + self._total = None + + @property + def locks(self): + """ + Gets the locks of this SnapshotLocksExtended. + + + :return: The locks of this SnapshotLocksExtended. + :rtype: list[SnapshotLockExtended] + """ + return self._locks + + @locks.setter + def locks(self, locks): + """ + Sets the locks of this SnapshotLocksExtended. + + + :param locks: The locks of this SnapshotLocksExtended. + :type: list[SnapshotLockExtended] + """ + + self._locks = locks + + @property + def resume(self): + """ + Gets the resume of this SnapshotLocksExtended. + Resume token value to use in subsequent calls for continuation. + + :return: The resume of this SnapshotLocksExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this SnapshotLocksExtended. + Resume token value to use in subsequent calls for continuation. + + :param resume: The resume of this SnapshotLocksExtended. + :type: str + """ + + self._resume = resume + + @property + def total(self): + """ + Gets the total of this SnapshotLocksExtended. + Total number of items available. + + :return: The total of this SnapshotLocksExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this SnapshotLocksExtended. + Total number of items available. + + :param total: The total of this SnapshotLocksExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/snapshot_pending.py b/isi_sdk/models/snapshot_pending.py index 559ac79e5..9ded07501 100644 --- a/isi_sdk/models/snapshot_pending.py +++ b/isi_sdk/models/snapshot_pending.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotPending(object): @@ -69,6 +70,7 @@ def pending(self, pending): :param pending: The pending of this SnapshotPending. :type: list[SnapshotPendingPendingItem] """ + self._pending = pending @property @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this SnapshotPending. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_pending_pending_item.py b/isi_sdk/models/snapshot_pending_pending_item.py index fa94cea72..b4a83b5cb 100644 --- a/isi_sdk/models/snapshot_pending_pending_item.py +++ b/isi_sdk/models/snapshot_pending_pending_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotPendingPendingItem(object): @@ -78,6 +79,7 @@ def id(self, id): :param id: The id of this SnapshotPendingPendingItem. :type: str """ + self._id = id @property @@ -100,6 +102,7 @@ def path(self, path): :param path: The path of this SnapshotPendingPendingItem. :type: str """ + self._path = path @property @@ -122,6 +125,7 @@ def schedule(self, schedule): :param schedule: The schedule of this SnapshotPendingPendingItem. :type: str """ + self._schedule = schedule @property @@ -144,6 +148,7 @@ def snapshot(self, snapshot): :param snapshot: The snapshot of this SnapshotPendingPendingItem. :type: str """ + self._snapshot = snapshot @property @@ -166,6 +171,7 @@ def time(self, time): :param time: The time of this SnapshotPendingPendingItem. :type: int """ + self._time = time def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_repstates.py b/isi_sdk/models/snapshot_repstates.py index d3569124c..413a1fc89 100644 --- a/isi_sdk/models/snapshot_repstates.py +++ b/isi_sdk/models/snapshot_repstates.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotRepstates(object): @@ -72,6 +73,7 @@ def id(self, id): :param id: The id of this SnapshotRepstates. :type: str """ + self._id = id @property @@ -94,6 +96,7 @@ def snap1(self, snap1): :param snap1: The snap1 of this SnapshotRepstates. :type: int """ + self._snap1 = snap1 @property @@ -116,6 +119,7 @@ def snap2(self, snap2): :param snap2: The snap2 of this SnapshotRepstates. :type: int """ + self._snap2 = snap2 def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_repstates_extended.py b/isi_sdk/models/snapshot_repstates_extended.py index b80e63ddb..fcc6e42b0 100644 --- a/isi_sdk/models/snapshot_repstates_extended.py +++ b/isi_sdk/models/snapshot_repstates_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotRepstatesExtended(object): @@ -37,51 +38,20 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'snap2': 'int', 'repstates': 'list[SnapshotRepstates]', 'resume': 'str', - 'total': 'int', - 'id': 'str', - 'snap1': 'int' + 'total': 'int' } self.attribute_map = { - 'snap2': 'snap2', 'repstates': 'repstates', 'resume': 'resume', - 'total': 'total', - 'id': 'id', - 'snap1': 'snap1' + 'total': 'total' } - self._snap2 = None self._repstates = None self._resume = None self._total = None - self._id = None - self._snap1 = None - - @property - def snap2(self): - """ - Gets the snap2 of this SnapshotRepstatesExtended. - The higher snapid used to compute the repstate. - - :return: The snap2 of this SnapshotRepstatesExtended. - :rtype: int - """ - return self._snap2 - - @snap2.setter - def snap2(self, snap2): - """ - Sets the snap2 of this SnapshotRepstatesExtended. - The higher snapid used to compute the repstate. - - :param snap2: The snap2 of this SnapshotRepstatesExtended. - :type: int - """ - self._snap2 = snap2 @property def repstates(self): @@ -103,6 +73,7 @@ def repstates(self, repstates): :param repstates: The repstates of this SnapshotRepstatesExtended. :type: list[SnapshotRepstates] """ + self._repstates = repstates @property @@ -125,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SnapshotRepstatesExtended. :type: str """ + self._resume = resume @property @@ -147,52 +119,9 @@ def total(self, total): :param total: The total of this SnapshotRepstatesExtended. :type: int """ + self._total = total - @property - def id(self): - """ - Gets the id of this SnapshotRepstatesExtended. - The system ID given to the repstate. - - :return: The id of this SnapshotRepstatesExtended. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SnapshotRepstatesExtended. - The system ID given to the repstate. - - :param id: The id of this SnapshotRepstatesExtended. - :type: str - """ - self._id = id - - @property - def snap1(self): - """ - Gets the snap1 of this SnapshotRepstatesExtended. - The lower snapid used to compute the repstate. - - :return: The snap1 of this SnapshotRepstatesExtended. - :rtype: int - """ - return self._snap1 - - @snap1.setter - def snap1(self, snap1): - """ - Sets the snap1 of this SnapshotRepstatesExtended. - The lower snapid used to compute the repstate. - - :param snap1: The snap1 of this SnapshotRepstatesExtended. - :type: int - """ - self._snap1 = snap1 - def to_dict(self): """ Returns the model properties as a dict @@ -208,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_schedule.py b/isi_sdk/models/snapshot_schedule.py index 61ad3997c..d7bac0db7 100644 --- a/isi_sdk/models/snapshot_schedule.py +++ b/isi_sdk/models/snapshot_schedule.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSchedule(object): @@ -81,6 +82,7 @@ def alias(self, alias): :param alias: The alias of this SnapshotSchedule. :type: str """ + self._alias = alias @property @@ -103,6 +105,12 @@ def duration(self, duration): :param duration: The duration of this SnapshotSchedule. :type: int """ + + if not duration: + raise ValueError("Invalid value for `duration`, must not be `None`") + if duration < 0.0: + raise ValueError("Invalid value for `duration`, must be a value greater than or equal to `0.0`") + self._duration = duration @property @@ -125,6 +133,7 @@ def name(self, name): :param name: The name of this SnapshotSchedule. :type: str """ + self._name = name @property @@ -147,6 +156,7 @@ def path(self, path): :param path: The path of this SnapshotSchedule. :type: str """ + self._path = path @property @@ -169,6 +179,7 @@ def pattern(self, pattern): :param pattern: The pattern of this SnapshotSchedule. :type: str """ + self._pattern = pattern @property @@ -191,6 +202,7 @@ def schedule(self, schedule): :param schedule: The schedule of this SnapshotSchedule. :type: str """ + self._schedule = schedule def to_dict(self): @@ -208,6 +220,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +243,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_schedule_extended.py b/isi_sdk/models/snapshot_schedule_extended.py index fe33762de..0adc6ac20 100644 --- a/isi_sdk/models/snapshot_schedule_extended.py +++ b/isi_sdk/models/snapshot_schedule_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotScheduleExtended(object): @@ -37,126 +38,89 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'alias': 'str', 'duration': 'int', - 'path': 'str', - 'schedule': 'str', - 'next_run': 'int', 'name': 'str', + 'path': 'str', 'pattern': 'str', - 'alias': 'str', + 'schedule': 'str', 'id': 'int', + 'next_run': 'int', 'next_snapshot': 'str' } self.attribute_map = { + 'alias': 'alias', 'duration': 'duration', - 'path': 'path', - 'schedule': 'schedule', - 'next_run': 'next_run', 'name': 'name', + 'path': 'path', 'pattern': 'pattern', - 'alias': 'alias', + 'schedule': 'schedule', 'id': 'id', + 'next_run': 'next_run', 'next_snapshot': 'next_snapshot' } + self._alias = None self._duration = None - self._path = None - self._schedule = None - self._next_run = None self._name = None + self._path = None self._pattern = None - self._alias = None + self._schedule = None self._id = None + self._next_run = None self._next_snapshot = None @property - def duration(self): - """ - Gets the duration of this SnapshotScheduleExtended. - Time in seconds added to creation time to construction expiration time. - - :return: The duration of this SnapshotScheduleExtended. - :rtype: int - """ - return self._duration - - @duration.setter - def duration(self, duration): - """ - Sets the duration of this SnapshotScheduleExtended. - Time in seconds added to creation time to construction expiration time. - - :param duration: The duration of this SnapshotScheduleExtended. - :type: int - """ - self._duration = duration - - @property - def path(self): - """ - Gets the path of this SnapshotScheduleExtended. - The /ifs path snapshotted. - - :return: The path of this SnapshotScheduleExtended. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """ - Sets the path of this SnapshotScheduleExtended. - The /ifs path snapshotted. - - :param path: The path of this SnapshotScheduleExtended. - :type: str - """ - self._path = path - - @property - def schedule(self): + def alias(self): """ - Gets the schedule of this SnapshotScheduleExtended. - The isidate compatible natural language description of the schedule. + Gets the alias of this SnapshotScheduleExtended. + Alias name to create for each snapshot. - :return: The schedule of this SnapshotScheduleExtended. + :return: The alias of this SnapshotScheduleExtended. :rtype: str """ - return self._schedule + return self._alias - @schedule.setter - def schedule(self, schedule): + @alias.setter + def alias(self, alias): """ - Sets the schedule of this SnapshotScheduleExtended. - The isidate compatible natural language description of the schedule. + Sets the alias of this SnapshotScheduleExtended. + Alias name to create for each snapshot. - :param schedule: The schedule of this SnapshotScheduleExtended. + :param alias: The alias of this SnapshotScheduleExtended. :type: str """ - self._schedule = schedule + + self._alias = alias @property - def next_run(self): + def duration(self): """ - Gets the next_run of this SnapshotScheduleExtended. - Unix Epoch time of next snapshot to be created. + Gets the duration of this SnapshotScheduleExtended. + Time in seconds added to creation time to construction expiration time. - :return: The next_run of this SnapshotScheduleExtended. + :return: The duration of this SnapshotScheduleExtended. :rtype: int """ - return self._next_run + return self._duration - @next_run.setter - def next_run(self, next_run): + @duration.setter + def duration(self, duration): """ - Sets the next_run of this SnapshotScheduleExtended. - Unix Epoch time of next snapshot to be created. + Sets the duration of this SnapshotScheduleExtended. + Time in seconds added to creation time to construction expiration time. - :param next_run: The next_run of this SnapshotScheduleExtended. + :param duration: The duration of this SnapshotScheduleExtended. :type: int """ - self._next_run = next_run + + if not duration: + raise ValueError("Invalid value for `duration`, must not be `None`") + if duration < 0.0: + raise ValueError("Invalid value for `duration`, must be a value greater than or equal to `0.0`") + + self._duration = duration @property def name(self): @@ -178,8 +142,32 @@ def name(self, name): :param name: The name of this SnapshotScheduleExtended. :type: str """ + self._name = name + @property + def path(self): + """ + Gets the path of this SnapshotScheduleExtended. + The /ifs path snapshotted. + + :return: The path of this SnapshotScheduleExtended. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this SnapshotScheduleExtended. + The /ifs path snapshotted. + + :param path: The path of this SnapshotScheduleExtended. + :type: str + """ + + self._path = path + @property def pattern(self): """ @@ -200,29 +188,31 @@ def pattern(self, pattern): :param pattern: The pattern of this SnapshotScheduleExtended. :type: str """ + self._pattern = pattern @property - def alias(self): + def schedule(self): """ - Gets the alias of this SnapshotScheduleExtended. - Alias name to create for each snapshot. + Gets the schedule of this SnapshotScheduleExtended. + The isidate compatible natural language description of the schedule. - :return: The alias of this SnapshotScheduleExtended. + :return: The schedule of this SnapshotScheduleExtended. :rtype: str """ - return self._alias + return self._schedule - @alias.setter - def alias(self, alias): + @schedule.setter + def schedule(self, schedule): """ - Sets the alias of this SnapshotScheduleExtended. - Alias name to create for each snapshot. + Sets the schedule of this SnapshotScheduleExtended. + The isidate compatible natural language description of the schedule. - :param alias: The alias of this SnapshotScheduleExtended. + :param schedule: The schedule of this SnapshotScheduleExtended. :type: str """ - self._alias = alias + + self._schedule = schedule @property def id(self): @@ -244,8 +234,32 @@ def id(self, id): :param id: The id of this SnapshotScheduleExtended. :type: int """ + self._id = id + @property + def next_run(self): + """ + Gets the next_run of this SnapshotScheduleExtended. + Unix Epoch time of next snapshot to be created. + + :return: The next_run of this SnapshotScheduleExtended. + :rtype: int + """ + return self._next_run + + @next_run.setter + def next_run(self, next_run): + """ + Sets the next_run of this SnapshotScheduleExtended. + Unix Epoch time of next snapshot to be created. + + :param next_run: The next_run of this SnapshotScheduleExtended. + :type: int + """ + + self._next_run = next_run + @property def next_snapshot(self): """ @@ -266,6 +280,7 @@ def next_snapshot(self, next_snapshot): :param next_snapshot: The next_snapshot of this SnapshotScheduleExtended. :type: str """ + self._next_snapshot = next_snapshot def to_dict(self): @@ -283,6 +298,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +321,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_schedules.py b/isi_sdk/models/snapshot_schedules.py index 24565e09f..2b28c1a7b 100644 --- a/isi_sdk/models/snapshot_schedules.py +++ b/isi_sdk/models/snapshot_schedules.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSchedules(object): @@ -66,6 +67,7 @@ def schedules(self, schedules): :param schedules: The schedules of this SnapshotSchedules. :type: list[SnapshotScheduleExtended] """ + self._schedules = schedules def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_schedules_extended.py b/isi_sdk/models/snapshot_schedules_extended.py index 7d0b7b778..b43d135e5 100644 --- a/isi_sdk/models/snapshot_schedules_extended.py +++ b/isi_sdk/models/snapshot_schedules_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSchedulesExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'schedules': 'list[SnapshotScheduleExtended]', 'resume': 'str', - 'total': 'int', - 'schedules': 'list[SnapshotScheduleExtended]' + 'total': 'int' } self.attribute_map = { + 'schedules': 'schedules', 'resume': 'resume', - 'total': 'total', - 'schedules': 'schedules' + 'total': 'total' } + self._schedules = None self._resume = None self._total = None - self._schedules = None + + @property + def schedules(self): + """ + Gets the schedules of this SnapshotSchedulesExtended. + + + :return: The schedules of this SnapshotSchedulesExtended. + :rtype: list[SnapshotScheduleExtended] + """ + return self._schedules + + @schedules.setter + def schedules(self, schedules): + """ + Sets the schedules of this SnapshotSchedulesExtended. + + + :param schedules: The schedules of this SnapshotSchedulesExtended. + :type: list[SnapshotScheduleExtended] + """ + + self._schedules = schedules @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SnapshotSchedulesExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this SnapshotSchedulesExtended. :type: int """ + self._total = total - @property - def schedules(self): - """ - Gets the schedules of this SnapshotSchedulesExtended. - - - :return: The schedules of this SnapshotSchedulesExtended. - :rtype: list[SnapshotScheduleExtended] - """ - return self._schedules - - @schedules.setter - def schedules(self, schedules): - """ - Sets the schedules of this SnapshotSchedulesExtended. - - - :param schedules: The schedules of this SnapshotSchedulesExtended. - :type: list[SnapshotScheduleExtended] - """ - self._schedules = schedules - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_settings.py b/isi_sdk/models/snapshot_settings.py index cd6f102be..f8405b9f7 100644 --- a/isi_sdk/models/snapshot_settings.py +++ b/isi_sdk/models/snapshot_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this SnapshotSettings. :type: SnapshotSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_settings_settings.py b/isi_sdk/models/snapshot_settings_settings.py index 1414a97c8..7083a4540 100644 --- a/isi_sdk/models/snapshot_settings_settings.py +++ b/isi_sdk/models/snapshot_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSettingsSettings(object): @@ -105,6 +106,7 @@ def autocreate(self, autocreate): :param autocreate: The autocreate of this SnapshotSettingsSettings. :type: bool """ + self._autocreate = autocreate @property @@ -127,6 +129,7 @@ def autodelete(self, autodelete): :param autodelete: The autodelete of this SnapshotSettingsSettings. :type: bool """ + self._autodelete = autodelete @property @@ -149,6 +152,7 @@ def global_visible_accessible(self, global_visible_accessible): :param global_visible_accessible: The global_visible_accessible of this SnapshotSettingsSettings. :type: bool """ + self._global_visible_accessible = global_visible_accessible @property @@ -171,6 +175,7 @@ def local_root_accessible(self, local_root_accessible): :param local_root_accessible: The local_root_accessible of this SnapshotSettingsSettings. :type: bool """ + self._local_root_accessible = local_root_accessible @property @@ -193,6 +198,7 @@ def local_root_visible(self, local_root_visible): :param local_root_visible: The local_root_visible of this SnapshotSettingsSettings. :type: bool """ + self._local_root_visible = local_root_visible @property @@ -215,6 +221,7 @@ def local_subdir_accessible(self, local_subdir_accessible): :param local_subdir_accessible: The local_subdir_accessible of this SnapshotSettingsSettings. :type: bool """ + self._local_subdir_accessible = local_subdir_accessible @property @@ -237,6 +244,7 @@ def nfs_root_accessible(self, nfs_root_accessible): :param nfs_root_accessible: The nfs_root_accessible of this SnapshotSettingsSettings. :type: bool """ + self._nfs_root_accessible = nfs_root_accessible @property @@ -259,6 +267,7 @@ def nfs_root_visible(self, nfs_root_visible): :param nfs_root_visible: The nfs_root_visible of this SnapshotSettingsSettings. :type: bool """ + self._nfs_root_visible = nfs_root_visible @property @@ -281,6 +290,7 @@ def nfs_subdir_accessible(self, nfs_subdir_accessible): :param nfs_subdir_accessible: The nfs_subdir_accessible of this SnapshotSettingsSettings. :type: bool """ + self._nfs_subdir_accessible = nfs_subdir_accessible @property @@ -303,6 +313,7 @@ def reserve(self, reserve): :param reserve: The reserve of this SnapshotSettingsSettings. :type: float """ + self._reserve = reserve @property @@ -325,6 +336,7 @@ def service(self, service): :param service: The service of this SnapshotSettingsSettings. :type: bool """ + self._service = service @property @@ -347,6 +359,7 @@ def smb_root_accessible(self, smb_root_accessible): :param smb_root_accessible: The smb_root_accessible of this SnapshotSettingsSettings. :type: bool """ + self._smb_root_accessible = smb_root_accessible @property @@ -369,6 +382,7 @@ def smb_root_visible(self, smb_root_visible): :param smb_root_visible: The smb_root_visible of this SnapshotSettingsSettings. :type: bool """ + self._smb_root_visible = smb_root_visible @property @@ -391,6 +405,7 @@ def smb_subdir_accessible(self, smb_subdir_accessible): :param smb_subdir_accessible: The smb_subdir_accessible of this SnapshotSettingsSettings. :type: bool """ + self._smb_subdir_accessible = smb_subdir_accessible def to_dict(self): @@ -408,6 +423,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -425,14 +446,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_snapshot.py b/isi_sdk/models/snapshot_snapshot.py index 28a7af36f..d88dac9dc 100644 --- a/isi_sdk/models/snapshot_snapshot.py +++ b/isi_sdk/models/snapshot_snapshot.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSnapshot(object): @@ -72,6 +73,7 @@ def alias(self, alias): :param alias: The alias of this SnapshotSnapshot. :type: str """ + self._alias = alias @property @@ -94,6 +96,7 @@ def expires(self, expires): :param expires: The expires of this SnapshotSnapshot. :type: int """ + self._expires = expires @property @@ -116,6 +119,7 @@ def name(self, name): :param name: The name of this SnapshotSnapshot. :type: str """ + self._name = name def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_snapshot_create_params.py b/isi_sdk/models/snapshot_snapshot_create_params.py index 5a0ec6593..e43330bb7 100644 --- a/isi_sdk/models/snapshot_snapshot_create_params.py +++ b/isi_sdk/models/snapshot_snapshot_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSnapshotCreateParams(object): @@ -37,45 +38,23 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'name': 'str', 'alias': 'str', - 'path': 'str', - 'expires': 'int' + 'expires': 'int', + 'name': 'str', + 'path': 'str' } self.attribute_map = { - 'name': 'name', 'alias': 'alias', - 'path': 'path', - 'expires': 'expires' + 'expires': 'expires', + 'name': 'name', + 'path': 'path' } - self._name = None self._alias = None - self._path = None self._expires = None - - @property - def name(self): - """ - Gets the name of this SnapshotSnapshotCreateParams. - The user or system supplied snapshot name. This will be null for snapshots pending delete. - - :return: The name of this SnapshotSnapshotCreateParams. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this SnapshotSnapshotCreateParams. - The user or system supplied snapshot name. This will be null for snapshots pending delete. - - :param name: The name of this SnapshotSnapshotCreateParams. - :type: str - """ - self._name = name + self._name = None + self._path = None @property def alias(self): @@ -97,30 +76,9 @@ def alias(self, alias): :param alias: The alias of this SnapshotSnapshotCreateParams. :type: str """ + self._alias = alias - @property - def path(self): - """ - Gets the path of this SnapshotSnapshotCreateParams. - The /ifs path snapshotted. - - :return: The path of this SnapshotSnapshotCreateParams. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """ - Sets the path of this SnapshotSnapshotCreateParams. - The /ifs path snapshotted. - - :param path: The path of this SnapshotSnapshotCreateParams. - :type: str - """ - self._path = path - @property def expires(self): """ @@ -141,8 +99,55 @@ def expires(self, expires): :param expires: The expires of this SnapshotSnapshotCreateParams. :type: int """ + self._expires = expires + @property + def name(self): + """ + Gets the name of this SnapshotSnapshotCreateParams. + The user or system supplied snapshot name. This will be null for snapshots pending delete. + + :return: The name of this SnapshotSnapshotCreateParams. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this SnapshotSnapshotCreateParams. + The user or system supplied snapshot name. This will be null for snapshots pending delete. + + :param name: The name of this SnapshotSnapshotCreateParams. + :type: str + """ + + self._name = name + + @property + def path(self): + """ + Gets the path of this SnapshotSnapshotCreateParams. + The /ifs path snapshotted. + + :return: The path of this SnapshotSnapshotCreateParams. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this SnapshotSnapshotCreateParams. + The /ifs path snapshotted. + + :param path: The path of this SnapshotSnapshotCreateParams. + :type: str + """ + + self._path = path + def to_dict(self): """ Returns the model properties as a dict @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_snapshot_extended.py b/isi_sdk/models/snapshot_snapshot_extended.py index 8a65ac7f6..fcf7e7824 100644 --- a/isi_sdk/models/snapshot_snapshot_extended.py +++ b/isi_sdk/models/snapshot_snapshot_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSnapshotExtended(object): @@ -37,56 +38,79 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'alias': 'str', 'expires': 'int', - 'target_name': 'str', + 'name': 'str', 'created': 'int', - 'target_id': 'int', - 'shadow_bytes': 'int', 'has_locks': 'bool', + 'id': 'int', 'path': 'str', - 'schedule': 'str', + 'pct_filesystem': 'float', 'pct_reserve': 'float', + 'schedule': 'str', + 'shadow_bytes': 'int', 'size': 'int', - 'name': 'str', - 'alias': 'str', - 'id': 'int', 'state': 'str', - 'pct_filesystem': 'float' + 'target_id': 'int', + 'target_name': 'str' } self.attribute_map = { + 'alias': 'alias', 'expires': 'expires', - 'target_name': 'target_name', + 'name': 'name', 'created': 'created', - 'target_id': 'target_id', - 'shadow_bytes': 'shadow_bytes', 'has_locks': 'has_locks', + 'id': 'id', 'path': 'path', - 'schedule': 'schedule', + 'pct_filesystem': 'pct_filesystem', 'pct_reserve': 'pct_reserve', + 'schedule': 'schedule', + 'shadow_bytes': 'shadow_bytes', 'size': 'size', - 'name': 'name', - 'alias': 'alias', - 'id': 'id', 'state': 'state', - 'pct_filesystem': 'pct_filesystem' + 'target_id': 'target_id', + 'target_name': 'target_name' } + self._alias = None self._expires = None - self._target_name = None + self._name = None self._created = None - self._target_id = None - self._shadow_bytes = None self._has_locks = None + self._id = None self._path = None - self._schedule = None + self._pct_filesystem = None self._pct_reserve = None + self._schedule = None + self._shadow_bytes = None self._size = None - self._name = None - self._alias = None - self._id = None self._state = None - self._pct_filesystem = None + self._target_id = None + self._target_name = None + + @property + def alias(self): + """ + Gets the alias of this SnapshotSnapshotExtended. + Alias name to create for this snapshot. If null, remove any alias. + + :return: The alias of this SnapshotSnapshotExtended. + :rtype: str + """ + return self._alias + + @alias.setter + def alias(self, alias): + """ + Sets the alias of this SnapshotSnapshotExtended. + Alias name to create for this snapshot. If null, remove any alias. + + :param alias: The alias of this SnapshotSnapshotExtended. + :type: str + """ + + self._alias = alias @property def expires(self): @@ -108,29 +132,31 @@ def expires(self, expires): :param expires: The expires of this SnapshotSnapshotExtended. :type: int """ + self._expires = expires @property - def target_name(self): + def name(self): """ - Gets the target_name of this SnapshotSnapshotExtended. - The name of the snapshot pointed to if this is an alias. + Gets the name of this SnapshotSnapshotExtended. + The user or system supplied snapshot name. This will be null for snapshots pending delete. - :return: The target_name of this SnapshotSnapshotExtended. + :return: The name of this SnapshotSnapshotExtended. :rtype: str """ - return self._target_name + return self._name - @target_name.setter - def target_name(self, target_name): + @name.setter + def name(self, name): """ - Sets the target_name of this SnapshotSnapshotExtended. - The name of the snapshot pointed to if this is an alias. + Sets the name of this SnapshotSnapshotExtended. + The user or system supplied snapshot name. This will be null for snapshots pending delete. - :param target_name: The target_name of this SnapshotSnapshotExtended. + :param name: The name of this SnapshotSnapshotExtended. :type: str """ - self._target_name = target_name + + self._name = name @property def created(self): @@ -152,52 +178,9 @@ def created(self, created): :param created: The created of this SnapshotSnapshotExtended. :type: int """ + self._created = created - @property - def target_id(self): - """ - Gets the target_id of this SnapshotSnapshotExtended. - The ID of the snapshot pointed to if this is an alias. - - :return: The target_id of this SnapshotSnapshotExtended. - :rtype: int - """ - return self._target_id - - @target_id.setter - def target_id(self, target_id): - """ - Sets the target_id of this SnapshotSnapshotExtended. - The ID of the snapshot pointed to if this is an alias. - - :param target_id: The target_id of this SnapshotSnapshotExtended. - :type: int - """ - self._target_id = target_id - - @property - def shadow_bytes(self): - """ - Gets the shadow_bytes of this SnapshotSnapshotExtended. - The amount of shadow bytes referred to by this snapshot. - - :return: The shadow_bytes of this SnapshotSnapshotExtended. - :rtype: int - """ - return self._shadow_bytes - - @shadow_bytes.setter - def shadow_bytes(self, shadow_bytes): - """ - Sets the shadow_bytes of this SnapshotSnapshotExtended. - The amount of shadow bytes referred to by this snapshot. - - :param shadow_bytes: The shadow_bytes of this SnapshotSnapshotExtended. - :type: int - """ - self._shadow_bytes = shadow_bytes - @property def has_locks(self): """ @@ -218,8 +201,32 @@ def has_locks(self, has_locks): :param has_locks: The has_locks of this SnapshotSnapshotExtended. :type: bool """ + self._has_locks = has_locks + @property + def id(self): + """ + Gets the id of this SnapshotSnapshotExtended. + The system ID given to the snapshot. This is useful for tracking the status of delete pending snapshots. + + :return: The id of this SnapshotSnapshotExtended. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SnapshotSnapshotExtended. + The system ID given to the snapshot. This is useful for tracking the status of delete pending snapshots. + + :param id: The id of this SnapshotSnapshotExtended. + :type: int + """ + + self._id = id + @property def path(self): """ @@ -240,29 +247,31 @@ def path(self, path): :param path: The path of this SnapshotSnapshotExtended. :type: str """ + self._path = path @property - def schedule(self): + def pct_filesystem(self): """ - Gets the schedule of this SnapshotSnapshotExtended. - The name of the schedule used to create this snapshot, if applicable. + Gets the pct_filesystem of this SnapshotSnapshotExtended. + Percentage of /ifs used for storing this snapshot. - :return: The schedule of this SnapshotSnapshotExtended. - :rtype: str + :return: The pct_filesystem of this SnapshotSnapshotExtended. + :rtype: float """ - return self._schedule + return self._pct_filesystem - @schedule.setter - def schedule(self, schedule): + @pct_filesystem.setter + def pct_filesystem(self, pct_filesystem): """ - Sets the schedule of this SnapshotSnapshotExtended. - The name of the schedule used to create this snapshot, if applicable. + Sets the pct_filesystem of this SnapshotSnapshotExtended. + Percentage of /ifs used for storing this snapshot. - :param schedule: The schedule of this SnapshotSnapshotExtended. - :type: str + :param pct_filesystem: The pct_filesystem of this SnapshotSnapshotExtended. + :type: float """ - self._schedule = schedule + + self._pct_filesystem = pct_filesystem @property def pct_reserve(self): @@ -284,95 +293,77 @@ def pct_reserve(self, pct_reserve): :param pct_reserve: The pct_reserve of this SnapshotSnapshotExtended. :type: float """ + self._pct_reserve = pct_reserve @property - def size(self): - """ - Gets the size of this SnapshotSnapshotExtended. - The amount of storage in bytes used to store this snapshot. - - :return: The size of this SnapshotSnapshotExtended. - :rtype: int - """ - return self._size - - @size.setter - def size(self, size): - """ - Sets the size of this SnapshotSnapshotExtended. - The amount of storage in bytes used to store this snapshot. - - :param size: The size of this SnapshotSnapshotExtended. - :type: int - """ - self._size = size - - @property - def name(self): + def schedule(self): """ - Gets the name of this SnapshotSnapshotExtended. - The user or system supplied snapshot name. This will be null for snapshots pending delete. + Gets the schedule of this SnapshotSnapshotExtended. + The name of the schedule used to create this snapshot, if applicable. - :return: The name of this SnapshotSnapshotExtended. + :return: The schedule of this SnapshotSnapshotExtended. :rtype: str """ - return self._name + return self._schedule - @name.setter - def name(self, name): + @schedule.setter + def schedule(self, schedule): """ - Sets the name of this SnapshotSnapshotExtended. - The user or system supplied snapshot name. This will be null for snapshots pending delete. + Sets the schedule of this SnapshotSnapshotExtended. + The name of the schedule used to create this snapshot, if applicable. - :param name: The name of this SnapshotSnapshotExtended. + :param schedule: The schedule of this SnapshotSnapshotExtended. :type: str """ - self._name = name + + self._schedule = schedule @property - def alias(self): + def shadow_bytes(self): """ - Gets the alias of this SnapshotSnapshotExtended. - Alias name to create for this snapshot. If null, remove any alias. + Gets the shadow_bytes of this SnapshotSnapshotExtended. + The amount of shadow bytes referred to by this snapshot. - :return: The alias of this SnapshotSnapshotExtended. - :rtype: str + :return: The shadow_bytes of this SnapshotSnapshotExtended. + :rtype: int """ - return self._alias + return self._shadow_bytes - @alias.setter - def alias(self, alias): + @shadow_bytes.setter + def shadow_bytes(self, shadow_bytes): """ - Sets the alias of this SnapshotSnapshotExtended. - Alias name to create for this snapshot. If null, remove any alias. + Sets the shadow_bytes of this SnapshotSnapshotExtended. + The amount of shadow bytes referred to by this snapshot. - :param alias: The alias of this SnapshotSnapshotExtended. - :type: str + :param shadow_bytes: The shadow_bytes of this SnapshotSnapshotExtended. + :type: int """ - self._alias = alias + + self._shadow_bytes = shadow_bytes @property - def id(self): + def size(self): """ - Gets the id of this SnapshotSnapshotExtended. - The system ID given to the snapshot. This is useful for tracking the status of delete pending snapshots. + Gets the size of this SnapshotSnapshotExtended. + The amount of storage in bytes used to store this snapshot. - :return: The id of this SnapshotSnapshotExtended. + :return: The size of this SnapshotSnapshotExtended. :rtype: int """ - return self._id + return self._size - @id.setter - def id(self, id): + @size.setter + def size(self, size): """ - Sets the id of this SnapshotSnapshotExtended. - The system ID given to the snapshot. This is useful for tracking the status of delete pending snapshots. + Sets the size of this SnapshotSnapshotExtended. + The amount of storage in bytes used to store this snapshot. - :param id: The id of this SnapshotSnapshotExtended. + :param size: The size of this SnapshotSnapshotExtended. :type: int """ - self._id = id + + self._size = size @property def state(self): @@ -400,29 +391,54 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property - def pct_filesystem(self): + def target_id(self): """ - Gets the pct_filesystem of this SnapshotSnapshotExtended. - Percentage of /ifs used for storing this snapshot. + Gets the target_id of this SnapshotSnapshotExtended. + The ID of the snapshot pointed to if this is an alias. - :return: The pct_filesystem of this SnapshotSnapshotExtended. - :rtype: float + :return: The target_id of this SnapshotSnapshotExtended. + :rtype: int """ - return self._pct_filesystem + return self._target_id - @pct_filesystem.setter - def pct_filesystem(self, pct_filesystem): + @target_id.setter + def target_id(self, target_id): """ - Sets the pct_filesystem of this SnapshotSnapshotExtended. - Percentage of /ifs used for storing this snapshot. + Sets the target_id of this SnapshotSnapshotExtended. + The ID of the snapshot pointed to if this is an alias. - :param pct_filesystem: The pct_filesystem of this SnapshotSnapshotExtended. - :type: float + :param target_id: The target_id of this SnapshotSnapshotExtended. + :type: int """ - self._pct_filesystem = pct_filesystem + + self._target_id = target_id + + @property + def target_name(self): + """ + Gets the target_name of this SnapshotSnapshotExtended. + The name of the snapshot pointed to if this is an alias. + + :return: The target_name of this SnapshotSnapshotExtended. + :rtype: str + """ + return self._target_name + + @target_name.setter + def target_name(self, target_name): + """ + Sets the target_name of this SnapshotSnapshotExtended. + The name of the snapshot pointed to if this is an alias. + + :param target_name: The target_name of this SnapshotSnapshotExtended. + :type: str + """ + + self._target_name = target_name def to_dict(self): """ @@ -439,6 +455,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -456,14 +478,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_snapshots.py b/isi_sdk/models/snapshot_snapshots.py index 1377d73d2..73a503f38 100644 --- a/isi_sdk/models/snapshot_snapshots.py +++ b/isi_sdk/models/snapshot_snapshots.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSnapshots(object): @@ -66,6 +67,7 @@ def snapshots(self, snapshots): :param snapshots: The snapshots of this SnapshotSnapshots. :type: list[SnapshotSnapshotExtended] """ + self._snapshots = snapshots def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_snapshots_extended.py b/isi_sdk/models/snapshot_snapshots_extended.py index 270a6bad7..ed0d7e91f 100644 --- a/isi_sdk/models/snapshot_snapshots_extended.py +++ b/isi_sdk/models/snapshot_snapshots_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSnapshotsExtended(object): @@ -72,6 +73,7 @@ def snapshots(self, snapshots): :param snapshots: The snapshots of this SnapshotSnapshotsExtended. :type: list[SnapshotSnapshotExtended] """ + self._snapshots = snapshots @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SnapshotSnapshotsExtended. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this SnapshotSnapshotsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_snapshots_summary.py b/isi_sdk/models/snapshot_snapshots_summary.py index b82ece477..f383761d6 100644 --- a/isi_sdk/models/snapshot_snapshots_summary.py +++ b/isi_sdk/models/snapshot_snapshots_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSnapshotsSummary(object): @@ -66,6 +67,7 @@ def summary(self, summary): :param summary: The summary of this SnapshotSnapshotsSummary. :type: SnapshotSnapshotsSummarySummary """ + self._summary = summary def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snapshot_snapshots_summary_summary.py b/isi_sdk/models/snapshot_snapshots_summary_summary.py index 70733c82d..b2cac3250 100644 --- a/isi_sdk/models/snapshot_snapshots_summary_summary.py +++ b/isi_sdk/models/snapshot_snapshots_summary_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnapshotSnapshotsSummarySummary(object): @@ -87,6 +88,7 @@ def active_count(self, active_count): :param active_count: The active_count of this SnapshotSnapshotsSummarySummary. :type: int """ + self._active_count = active_count @property @@ -109,6 +111,7 @@ def active_size(self, active_size): :param active_size: The active_size of this SnapshotSnapshotsSummarySummary. :type: int """ + self._active_size = active_size @property @@ -131,6 +134,7 @@ def aliases_count(self, aliases_count): :param aliases_count: The aliases_count of this SnapshotSnapshotsSummarySummary. :type: int """ + self._aliases_count = aliases_count @property @@ -153,6 +157,7 @@ def count(self, count): :param count: The count of this SnapshotSnapshotsSummarySummary. :type: int """ + self._count = count @property @@ -175,6 +180,7 @@ def deleting_count(self, deleting_count): :param deleting_count: The deleting_count of this SnapshotSnapshotsSummarySummary. :type: int """ + self._deleting_count = deleting_count @property @@ -197,6 +203,7 @@ def deleting_size(self, deleting_size): :param deleting_size: The deleting_size of this SnapshotSnapshotsSummarySummary. :type: int """ + self._deleting_size = deleting_size @property @@ -219,6 +226,7 @@ def shadow_bytes(self, shadow_bytes): :param shadow_bytes: The shadow_bytes of this SnapshotSnapshotsSummarySummary. :type: int """ + self._shadow_bytes = shadow_bytes @property @@ -241,6 +249,7 @@ def size(self, size): :param size: The size of this SnapshotSnapshotsSummarySummary. :type: int """ + self._size = size def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snmp_settings.py b/isi_sdk/models/snmp_settings.py index f008153c9..611150c8d 100644 --- a/isi_sdk/models/snmp_settings.py +++ b/isi_sdk/models/snmp_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnmpSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this SnmpSettings. :type: SnmpSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snmp_settings_extended.py b/isi_sdk/models/snmp_settings_extended.py index fb4aa5c99..128d7f9b5 100644 --- a/isi_sdk/models/snmp_settings_extended.py +++ b/isi_sdk/models/snmp_settings_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnmpSettingsExtended(object): @@ -37,104 +38,35 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'settings': 'SnmpSettingsSettings', - 'system_contact': 'str', - 'system_location': 'str', 'read_only_community': 'str', 'service': 'bool', - 'snmp_v3_read_only_user': 'str', 'snmp_v1_v2c_access': 'bool', 'snmp_v3_access': 'bool', - 'snmp_v3_password': 'str' + 'snmp_v3_password': 'str', + 'snmp_v3_read_only_user': 'str', + 'system_contact': 'str', + 'system_location': 'str' } self.attribute_map = { - 'settings': 'settings', - 'system_contact': 'system_contact', - 'system_location': 'system_location', 'read_only_community': 'read_only_community', 'service': 'service', - 'snmp_v3_read_only_user': 'snmp_v3_read_only_user', 'snmp_v1_v2c_access': 'snmp_v1_v2c_access', 'snmp_v3_access': 'snmp_v3_access', - 'snmp_v3_password': 'snmp_v3_password' + 'snmp_v3_password': 'snmp_v3_password', + 'snmp_v3_read_only_user': 'snmp_v3_read_only_user', + 'system_contact': 'system_contact', + 'system_location': 'system_location' } - self._settings = None - self._system_contact = None - self._system_location = None self._read_only_community = None self._service = None - self._snmp_v3_read_only_user = None self._snmp_v1_v2c_access = None self._snmp_v3_access = None self._snmp_v3_password = None - - @property - def settings(self): - """ - Gets the settings of this SnmpSettingsExtended. - SNMP settings. - - :return: The settings of this SnmpSettingsExtended. - :rtype: SnmpSettingsSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this SnmpSettingsExtended. - SNMP settings. - - :param settings: The settings of this SnmpSettingsExtended. - :type: SnmpSettingsSettings - """ - self._settings = settings - - @property - def system_contact(self): - """ - Gets the system_contact of this SnmpSettingsExtended. - Contact information for the system owner. This must be a valid email address. @DEFAULT reverts this field to its default value. - - :return: The system_contact of this SnmpSettingsExtended. - :rtype: str - """ - return self._system_contact - - @system_contact.setter - def system_contact(self, system_contact): - """ - Sets the system_contact of this SnmpSettingsExtended. - Contact information for the system owner. This must be a valid email address. @DEFAULT reverts this field to its default value. - - :param system_contact: The system_contact of this SnmpSettingsExtended. - :type: str - """ - self._system_contact = system_contact - - @property - def system_location(self): - """ - Gets the system_location of this SnmpSettingsExtended. - A location name for the SNMP system. @DEFAULT reverts this field to its default value. - - :return: The system_location of this SnmpSettingsExtended. - :rtype: str - """ - return self._system_location - - @system_location.setter - def system_location(self, system_location): - """ - Sets the system_location of this SnmpSettingsExtended. - A location name for the SNMP system. @DEFAULT reverts this field to its default value. - - :param system_location: The system_location of this SnmpSettingsExtended. - :type: str - """ - self._system_location = system_location + self._snmp_v3_read_only_user = None + self._system_contact = None + self._system_location = None @property def read_only_community(self): @@ -156,6 +88,12 @@ def read_only_community(self, read_only_community): :param read_only_community: The read_only_community of this SnmpSettingsExtended. :type: str """ + + if not read_only_community: + raise ValueError("Invalid value for `read_only_community`, must not be `None`") + if len(read_only_community) < 1: + raise ValueError("Invalid value for `read_only_community`, length must be greater than or equal to `1`") + self._read_only_community = read_only_community @property @@ -178,30 +116,9 @@ def service(self, service): :param service: The service of this SnmpSettingsExtended. :type: bool """ + self._service = service - @property - def snmp_v3_read_only_user(self): - """ - Gets the snmp_v3_read_only_user of this SnmpSettingsExtended. - The read-only user for SNMP v3 read requests. @DEFAULT reverts this field to its default value. - - :return: The snmp_v3_read_only_user of this SnmpSettingsExtended. - :rtype: str - """ - return self._snmp_v3_read_only_user - - @snmp_v3_read_only_user.setter - def snmp_v3_read_only_user(self, snmp_v3_read_only_user): - """ - Sets the snmp_v3_read_only_user of this SnmpSettingsExtended. - The read-only user for SNMP v3 read requests. @DEFAULT reverts this field to its default value. - - :param snmp_v3_read_only_user: The snmp_v3_read_only_user of this SnmpSettingsExtended. - :type: str - """ - self._snmp_v3_read_only_user = snmp_v3_read_only_user - @property def snmp_v1_v2c_access(self): """ @@ -222,6 +139,7 @@ def snmp_v1_v2c_access(self, snmp_v1_v2c_access): :param snmp_v1_v2c_access: The snmp_v1_v2c_access of this SnmpSettingsExtended. :type: bool """ + self._snmp_v1_v2c_access = snmp_v1_v2c_access @property @@ -244,6 +162,7 @@ def snmp_v3_access(self, snmp_v3_access): :param snmp_v3_access: The snmp_v3_access of this SnmpSettingsExtended. :type: bool """ + self._snmp_v3_access = snmp_v3_access @property @@ -266,8 +185,102 @@ def snmp_v3_password(self, snmp_v3_password): :param snmp_v3_password: The snmp_v3_password of this SnmpSettingsExtended. :type: str """ + + if not snmp_v3_password: + raise ValueError("Invalid value for `snmp_v3_password`, must not be `None`") + if len(snmp_v3_password) > 39: + raise ValueError("Invalid value for `snmp_v3_password`, length must be less than `39`") + if len(snmp_v3_password) < 8: + raise ValueError("Invalid value for `snmp_v3_password`, length must be greater than or equal to `8`") + self._snmp_v3_password = snmp_v3_password + @property + def snmp_v3_read_only_user(self): + """ + Gets the snmp_v3_read_only_user of this SnmpSettingsExtended. + The read-only user for SNMP v3 read requests. @DEFAULT reverts this field to its default value. + + :return: The snmp_v3_read_only_user of this SnmpSettingsExtended. + :rtype: str + """ + return self._snmp_v3_read_only_user + + @snmp_v3_read_only_user.setter + def snmp_v3_read_only_user(self, snmp_v3_read_only_user): + """ + Sets the snmp_v3_read_only_user of this SnmpSettingsExtended. + The read-only user for SNMP v3 read requests. @DEFAULT reverts this field to its default value. + + :param snmp_v3_read_only_user: The snmp_v3_read_only_user of this SnmpSettingsExtended. + :type: str + """ + + if not snmp_v3_read_only_user: + raise ValueError("Invalid value for `snmp_v3_read_only_user`, must not be `None`") + if len(snmp_v3_read_only_user) < 1: + raise ValueError("Invalid value for `snmp_v3_read_only_user`, length must be greater than or equal to `1`") + + self._snmp_v3_read_only_user = snmp_v3_read_only_user + + @property + def system_contact(self): + """ + Gets the system_contact of this SnmpSettingsExtended. + Contact information for the system owner. This must be a valid email address. @DEFAULT reverts this field to its default value. + + :return: The system_contact of this SnmpSettingsExtended. + :rtype: str + """ + return self._system_contact + + @system_contact.setter + def system_contact(self, system_contact): + """ + Sets the system_contact of this SnmpSettingsExtended. + Contact information for the system owner. This must be a valid email address. @DEFAULT reverts this field to its default value. + + :param system_contact: The system_contact of this SnmpSettingsExtended. + :type: str + """ + + if not system_contact: + raise ValueError("Invalid value for `system_contact`, must not be `None`") + if len(system_contact) < 1: + raise ValueError("Invalid value for `system_contact`, length must be greater than or equal to `1`") + if not re.search('^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$', system_contact): + raise ValueError("Invalid value for `system_contact`, must be a follow pattern or equal to `/^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$/`") + + self._system_contact = system_contact + + @property + def system_location(self): + """ + Gets the system_location of this SnmpSettingsExtended. + A location name for the SNMP system. @DEFAULT reverts this field to its default value. + + :return: The system_location of this SnmpSettingsExtended. + :rtype: str + """ + return self._system_location + + @system_location.setter + def system_location(self, system_location): + """ + Sets the system_location of this SnmpSettingsExtended. + A location name for the SNMP system. @DEFAULT reverts this field to its default value. + + :param system_location: The system_location of this SnmpSettingsExtended. + :type: str + """ + + if not system_location: + raise ValueError("Invalid value for `system_location`, must not be `None`") + if len(system_location) < 1: + raise ValueError("Invalid value for `system_location`, length must be greater than or equal to `1`") + + self._system_location = system_location + def to_dict(self): """ Returns the model properties as a dict @@ -283,6 +296,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +319,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/snmp_settings_settings.py b/isi_sdk/models/snmp_settings_settings.py index d04c5682f..0192299d5 100644 --- a/isi_sdk/models/snmp_settings_settings.py +++ b/isi_sdk/models/snmp_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SnmpSettingsSettings(object): @@ -84,6 +85,12 @@ def read_only_community(self, read_only_community): :param read_only_community: The read_only_community of this SnmpSettingsSettings. :type: str """ + + if not read_only_community: + raise ValueError("Invalid value for `read_only_community`, must not be `None`") + if len(read_only_community) < 1: + raise ValueError("Invalid value for `read_only_community`, length must be greater than or equal to `1`") + self._read_only_community = read_only_community @property @@ -106,6 +113,7 @@ def service(self, service): :param service: The service of this SnmpSettingsSettings. :type: bool """ + self._service = service @property @@ -128,6 +136,7 @@ def snmp_v1_v2c_access(self, snmp_v1_v2c_access): :param snmp_v1_v2c_access: The snmp_v1_v2c_access of this SnmpSettingsSettings. :type: bool """ + self._snmp_v1_v2c_access = snmp_v1_v2c_access @property @@ -150,6 +159,7 @@ def snmp_v3_access(self, snmp_v3_access): :param snmp_v3_access: The snmp_v3_access of this SnmpSettingsSettings. :type: bool """ + self._snmp_v3_access = snmp_v3_access @property @@ -172,6 +182,12 @@ def snmp_v3_read_only_user(self, snmp_v3_read_only_user): :param snmp_v3_read_only_user: The snmp_v3_read_only_user of this SnmpSettingsSettings. :type: str """ + + if not snmp_v3_read_only_user: + raise ValueError("Invalid value for `snmp_v3_read_only_user`, must not be `None`") + if len(snmp_v3_read_only_user) < 1: + raise ValueError("Invalid value for `snmp_v3_read_only_user`, length must be greater than or equal to `1`") + self._snmp_v3_read_only_user = snmp_v3_read_only_user @property @@ -194,6 +210,14 @@ def system_contact(self, system_contact): :param system_contact: The system_contact of this SnmpSettingsSettings. :type: str """ + + if not system_contact: + raise ValueError("Invalid value for `system_contact`, must not be `None`") + if len(system_contact) < 1: + raise ValueError("Invalid value for `system_contact`, length must be greater than or equal to `1`") + if not re.search('^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$', system_contact): + raise ValueError("Invalid value for `system_contact`, must be a follow pattern or equal to `/^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$/`") + self._system_contact = system_contact @property @@ -216,6 +240,12 @@ def system_location(self, system_location): :param system_location: The system_location of this SnmpSettingsSettings. :type: str """ + + if not system_location: + raise ValueError("Invalid value for `system_location`, must not be `None`") + if len(system_location) < 1: + raise ValueError("Invalid value for `system_location`, length must be greater than or equal to `1`") + self._system_location = system_location def to_dict(self): @@ -233,6 +263,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +286,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_current.py b/isi_sdk/models/statistics_current.py index 6f6c73f61..99b07ee42 100644 --- a/isi_sdk/models/statistics_current.py +++ b/isi_sdk/models/statistics_current.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsCurrent(object): @@ -66,6 +67,7 @@ def stats(self, stats): :param stats: The stats of this StatisticsCurrent. :type: list[StatisticsCurrentStat] """ + self._stats = stats def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_current_stat.py b/isi_sdk/models/statistics_current_stat.py index f7f4dfbb7..13b4b1d69 100644 --- a/isi_sdk/models/statistics_current_stat.py +++ b/isi_sdk/models/statistics_current_stat.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsCurrentStat(object): @@ -81,6 +82,7 @@ def devid(self, devid): :param devid: The devid of this StatisticsCurrentStat. :type: int """ + self._devid = devid @property @@ -103,6 +105,7 @@ def error(self, error): :param error: The error of this StatisticsCurrentStat. :type: str """ + self._error = error @property @@ -125,6 +128,7 @@ def error_code(self, error_code): :param error_code: The error_code of this StatisticsCurrentStat. :type: int """ + self._error_code = error_code @property @@ -147,6 +151,7 @@ def key(self, key): :param key: The key of this StatisticsCurrentStat. :type: str """ + self._key = key @property @@ -169,6 +174,7 @@ def time(self, time): :param time: The time of this StatisticsCurrentStat. :type: int """ + self._time = time @property @@ -191,6 +197,7 @@ def value(self, value): :param value: The value of this StatisticsCurrentStat. :type: str """ + self._value = value def to_dict(self): @@ -208,6 +215,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +238,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_history.py b/isi_sdk/models/statistics_history.py index 249041f94..12479dfe8 100644 --- a/isi_sdk/models/statistics_history.py +++ b/isi_sdk/models/statistics_history.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsHistory(object): @@ -66,6 +67,7 @@ def stats(self, stats): :param stats: The stats of this StatisticsHistory. :type: list[StatisticsHistoryStat] """ + self._stats = stats def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_history_stat.py b/isi_sdk/models/statistics_history_stat.py index 156ba83b5..97052067a 100644 --- a/isi_sdk/models/statistics_history_stat.py +++ b/isi_sdk/models/statistics_history_stat.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsHistoryStat(object): @@ -78,6 +79,7 @@ def devid(self, devid): :param devid: The devid of this StatisticsHistoryStat. :type: int """ + self._devid = devid @property @@ -100,6 +102,7 @@ def error(self, error): :param error: The error of this StatisticsHistoryStat. :type: str """ + self._error = error @property @@ -122,6 +125,7 @@ def error_code(self, error_code): :param error_code: The error_code of this StatisticsHistoryStat. :type: int """ + self._error_code = error_code @property @@ -144,6 +148,7 @@ def key(self, key): :param key: The key of this StatisticsHistoryStat. :type: str """ + self._key = key @property @@ -166,6 +171,7 @@ def values(self, values): :param values: The values of this StatisticsHistoryStat. :type: list[StatisticsHistoryStatValue] """ + self._values = values def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_history_stat_value.py b/isi_sdk/models/statistics_history_stat_value.py index ca9933e93..e62841a3c 100644 --- a/isi_sdk/models/statistics_history_stat_value.py +++ b/isi_sdk/models/statistics_history_stat_value.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsHistoryStatValue(object): @@ -69,6 +70,7 @@ def time(self, time): :param time: The time of this StatisticsHistoryStatValue. :type: int """ + self._time = time @property @@ -91,6 +93,7 @@ def value(self, value): :param value: The value of this StatisticsHistoryStatValue. :type: str """ + self._value = value def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_key.py b/isi_sdk/models/statistics_key.py index d28dd279d..709dbc75f 100644 --- a/isi_sdk/models/statistics_key.py +++ b/isi_sdk/models/statistics_key.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsKey(object): @@ -102,6 +103,7 @@ def aggregation_type(self, aggregation_type): "Invalid value for `aggregation_type`, must be one of {0}" .format(allowed_values) ) + self._aggregation_type = aggregation_type @property @@ -124,6 +126,7 @@ def base_name(self, base_name): :param base_name: The base_name of this StatisticsKey. :type: str """ + self._base_name = base_name @property @@ -146,6 +149,7 @@ def default_cache_time(self, default_cache_time): :param default_cache_time: The default_cache_time of this StatisticsKey. :type: int """ + self._default_cache_time = default_cache_time @property @@ -168,6 +172,7 @@ def description(self, description): :param description: The description of this StatisticsKey. :type: str """ + self._description = description @property @@ -190,6 +195,7 @@ def key(self, key): :param key: The key of this StatisticsKey. :type: str """ + self._key = key @property @@ -212,6 +218,7 @@ def policies(self, policies): :param policies: The policies of this StatisticsKey. :type: list[StatisticsKeyPolicy] """ + self._policies = policies @property @@ -234,6 +241,7 @@ def policy_cache_time(self, policy_cache_time): :param policy_cache_time: The policy_cache_time of this StatisticsKey. :type: int """ + self._policy_cache_time = policy_cache_time @property @@ -256,6 +264,7 @@ def real_name(self, real_name): :param real_name: The real_name of this StatisticsKey. :type: str """ + self._real_name = real_name @property @@ -284,6 +293,7 @@ def scope(self, scope): "Invalid value for `scope`, must be one of {0}" .format(allowed_values) ) + self._scope = scope @property @@ -306,6 +316,7 @@ def type(self, type): :param type: The type of this StatisticsKey. :type: str """ + self._type = type @property @@ -328,6 +339,7 @@ def units(self, units): :param units: The units of this StatisticsKey. :type: str """ + self._units = units def to_dict(self): @@ -345,6 +357,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -362,14 +380,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_key_policy.py b/isi_sdk/models/statistics_key_policy.py index c52849dfa..b11067ca3 100644 --- a/isi_sdk/models/statistics_key_policy.py +++ b/isi_sdk/models/statistics_key_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsKeyPolicy(object): @@ -72,6 +73,7 @@ def interval(self, interval): :param interval: The interval of this StatisticsKeyPolicy. :type: int """ + self._interval = interval @property @@ -94,6 +96,7 @@ def persistent(self, persistent): :param persistent: The persistent of this StatisticsKeyPolicy. :type: bool """ + self._persistent = persistent @property @@ -116,6 +119,7 @@ def retention(self, retention): :param retention: The retention of this StatisticsKeyPolicy. :type: int """ + self._retention = retention def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_keys.py b/isi_sdk/models/statistics_keys.py index 0a81bd01c..8b05f815b 100644 --- a/isi_sdk/models/statistics_keys.py +++ b/isi_sdk/models/statistics_keys.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsKeys(object): @@ -66,6 +67,7 @@ def keys(self, keys): :param keys: The keys of this StatisticsKeys. :type: list[StatisticsKey] """ + self._keys = keys def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_keys_extended.py b/isi_sdk/models/statistics_keys_extended.py index f1f43bb3f..fefe04c24 100644 --- a/isi_sdk/models/statistics_keys_extended.py +++ b/isi_sdk/models/statistics_keys_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsKeysExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'keys': 'list[StatisticsKey]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'keys': 'keys', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._keys = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this StatisticsKeysExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this StatisticsKeysExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this StatisticsKeysExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this StatisticsKeysExtended. - :type: str - """ - self._resume = resume - @property def keys(self): """ @@ -94,8 +73,32 @@ def keys(self, keys): :param keys: The keys of this StatisticsKeysExtended. :type: list[StatisticsKey] """ + self._keys = keys + @property + def resume(self): + """ + Gets the resume of this StatisticsKeysExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this StatisticsKeysExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this StatisticsKeysExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this StatisticsKeysExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this StatisticsKeysExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_operation.py b/isi_sdk/models/statistics_operation.py index a243401db..cfdaea6bb 100644 --- a/isi_sdk/models/statistics_operation.py +++ b/isi_sdk/models/statistics_operation.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsOperation(object): @@ -60,6 +61,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -77,14 +84,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_operations.py b/isi_sdk/models/statistics_operations.py index 27ec7e633..e814cc151 100644 --- a/isi_sdk/models/statistics_operations.py +++ b/isi_sdk/models/statistics_operations.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsOperations(object): @@ -66,6 +67,7 @@ def operations(self, operations): :param operations: The operations of this StatisticsOperations. :type: list[StatisticsOperation] """ + self._operations = operations def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_protocol.py b/isi_sdk/models/statistics_protocol.py index 5e8d6c423..bbbf5768d 100644 --- a/isi_sdk/models/statistics_protocol.py +++ b/isi_sdk/models/statistics_protocol.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsProtocol(object): @@ -69,6 +70,7 @@ def name(self, name): :param name: The name of this StatisticsProtocol. :type: str """ + self._name = name @property @@ -97,6 +99,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -114,6 +117,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -131,14 +140,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/statistics_protocols.py b/isi_sdk/models/statistics_protocols.py index d917dc74f..4eaf84916 100644 --- a/isi_sdk/models/statistics_protocols.py +++ b/isi_sdk/models/statistics_protocols.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StatisticsProtocols(object): @@ -66,6 +67,7 @@ def protocols(self, protocols): :param protocols: The protocols of this StatisticsProtocols. :type: list[StatisticsProtocol] """ + self._protocols = protocols def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_nodepool.py b/isi_sdk/models/storagepool_nodepool.py index 76ef11549..b1f805d37 100644 --- a/isi_sdk/models/storagepool_nodepool.py +++ b/isi_sdk/models/storagepool_nodepool.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolNodepool(object): @@ -78,6 +79,7 @@ def l3(self, l3): :param l3: The l3 of this StoragepoolNodepool. :type: bool """ + self._l3 = l3 @property @@ -100,6 +102,7 @@ def lnns(self, lnns): :param lnns: The lnns of this StoragepoolNodepool. :type: list[int] """ + self._lnns = lnns @property @@ -122,6 +125,7 @@ def name(self, name): :param name: The name of this StoragepoolNodepool. :type: str """ + self._name = name @property @@ -144,6 +148,7 @@ def protection_policy(self, protection_policy): :param protection_policy: The protection_policy of this StoragepoolNodepool. :type: str """ + self._protection_policy = protection_policy @property @@ -166,6 +171,7 @@ def tier(self, tier): :param tier: The tier of this StoragepoolNodepool. :type: str """ + self._tier = tier def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_nodepool_extended.py b/isi_sdk/models/storagepool_nodepool_extended.py index 5924e6fdf..3a8c94b68 100644 --- a/isi_sdk/models/storagepool_nodepool_extended.py +++ b/isi_sdk/models/storagepool_nodepool_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolNodepoolExtended(object): @@ -37,113 +38,64 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'protection_policy': 'str', - 'l3_status': 'str', - 'tier': 'str', - 'lnns': 'list[int]', 'l3': 'bool', - 'usage': 'StoragepoolTierUsage', + 'lnns': 'list[int]', 'name': 'str', + 'protection_policy': 'str', + 'tier': 'str', + 'can_enable_l3': 'bool', 'id': 'int', + 'l3_status': 'str', 'manual': 'bool', - 'can_enable_l3': 'bool' + 'usage': 'StoragepoolTierUsage' } self.attribute_map = { - 'protection_policy': 'protection_policy', - 'l3_status': 'l3_status', - 'tier': 'tier', - 'lnns': 'lnns', 'l3': 'l3', - 'usage': 'usage', + 'lnns': 'lnns', 'name': 'name', + 'protection_policy': 'protection_policy', + 'tier': 'tier', + 'can_enable_l3': 'can_enable_l3', 'id': 'id', + 'l3_status': 'l3_status', 'manual': 'manual', - 'can_enable_l3': 'can_enable_l3' + 'usage': 'usage' } - self._protection_policy = None - self._l3_status = None - self._tier = None - self._lnns = None self._l3 = None - self._usage = None + self._lnns = None self._name = None + self._protection_policy = None + self._tier = None + self._can_enable_l3 = None self._id = None + self._l3_status = None self._manual = None - self._can_enable_l3 = None - - @property - def protection_policy(self): - """ - Gets the protection_policy of this StoragepoolNodepoolExtended. - The node pool protection policy. - - :return: The protection_policy of this StoragepoolNodepoolExtended. - :rtype: str - """ - return self._protection_policy - - @protection_policy.setter - def protection_policy(self, protection_policy): - """ - Sets the protection_policy of this StoragepoolNodepoolExtended. - The node pool protection policy. - - :param protection_policy: The protection_policy of this StoragepoolNodepoolExtended. - :type: str - """ - self._protection_policy = protection_policy - - @property - def l3_status(self): - """ - Gets the l3_status of this StoragepoolNodepoolExtended. - 'storage' if the 'l3' option is disabled. If the l3 option is enabled, 'migrating' if any SSDs in this node pool have not yet been migrated to L3. If all SSDs have been migrated, 'l3'. - - :return: The l3_status of this StoragepoolNodepoolExtended. - :rtype: str - """ - return self._l3_status - - @l3_status.setter - def l3_status(self, l3_status): - """ - Sets the l3_status of this StoragepoolNodepoolExtended. - 'storage' if the 'l3' option is disabled. If the l3 option is enabled, 'migrating' if any SSDs in this node pool have not yet been migrated to L3. If all SSDs have been migrated, 'l3'. - - :param l3_status: The l3_status of this StoragepoolNodepoolExtended. - :type: str - """ - allowed_values = ["l3", "storage", "migrating"] - if l3_status not in allowed_values: - raise ValueError( - "Invalid value for `l3_status`, must be one of {0}" - .format(allowed_values) - ) - self._l3_status = l3_status + self._usage = None @property - def tier(self): + def l3(self): """ - Gets the tier of this StoragepoolNodepoolExtended. - The name or ID of the node pool's tier, if it is in a tier. + Gets the l3 of this StoragepoolNodepoolExtended. + Use SSDs in this node pool for L3 cache. - :return: The tier of this StoragepoolNodepoolExtended. - :rtype: str + :return: The l3 of this StoragepoolNodepoolExtended. + :rtype: bool """ - return self._tier + return self._l3 - @tier.setter - def tier(self, tier): + @l3.setter + def l3(self, l3): """ - Sets the tier of this StoragepoolNodepoolExtended. - The name or ID of the node pool's tier, if it is in a tier. + Sets the l3 of this StoragepoolNodepoolExtended. + Use SSDs in this node pool for L3 cache. - :param tier: The tier of this StoragepoolNodepoolExtended. - :type: str + :param l3: The l3 of this StoragepoolNodepoolExtended. + :type: bool """ - self._tier = tier + + self._l3 = l3 @property def lnns(self): @@ -165,73 +117,100 @@ def lnns(self, lnns): :param lnns: The lnns of this StoragepoolNodepoolExtended. :type: list[int] """ + self._lnns = lnns @property - def l3(self): + def name(self): """ - Gets the l3 of this StoragepoolNodepoolExtended. - Use SSDs in this node pool for L3 cache. + Gets the name of this StoragepoolNodepoolExtended. + The node pool name. - :return: The l3 of this StoragepoolNodepoolExtended. - :rtype: bool + :return: The name of this StoragepoolNodepoolExtended. + :rtype: str """ - return self._l3 + return self._name - @l3.setter - def l3(self, l3): + @name.setter + def name(self, name): """ - Sets the l3 of this StoragepoolNodepoolExtended. - Use SSDs in this node pool for L3 cache. + Sets the name of this StoragepoolNodepoolExtended. + The node pool name. - :param l3: The l3 of this StoragepoolNodepoolExtended. - :type: bool + :param name: The name of this StoragepoolNodepoolExtended. + :type: str """ - self._l3 = l3 + + self._name = name @property - def usage(self): + def protection_policy(self): """ - Gets the usage of this StoragepoolNodepoolExtended. - Total pool usage. + Gets the protection_policy of this StoragepoolNodepoolExtended. + The node pool protection policy. - :return: The usage of this StoragepoolNodepoolExtended. - :rtype: StoragepoolTierUsage + :return: The protection_policy of this StoragepoolNodepoolExtended. + :rtype: str """ - return self._usage + return self._protection_policy - @usage.setter - def usage(self, usage): + @protection_policy.setter + def protection_policy(self, protection_policy): """ - Sets the usage of this StoragepoolNodepoolExtended. - Total pool usage. + Sets the protection_policy of this StoragepoolNodepoolExtended. + The node pool protection policy. - :param usage: The usage of this StoragepoolNodepoolExtended. - :type: StoragepoolTierUsage + :param protection_policy: The protection_policy of this StoragepoolNodepoolExtended. + :type: str """ - self._usage = usage + + self._protection_policy = protection_policy @property - def name(self): + def tier(self): """ - Gets the name of this StoragepoolNodepoolExtended. - The node pool name. + Gets the tier of this StoragepoolNodepoolExtended. + The name or ID of the node pool's tier, if it is in a tier. - :return: The name of this StoragepoolNodepoolExtended. + :return: The tier of this StoragepoolNodepoolExtended. :rtype: str """ - return self._name + return self._tier - @name.setter - def name(self, name): + @tier.setter + def tier(self, tier): """ - Sets the name of this StoragepoolNodepoolExtended. - The node pool name. + Sets the tier of this StoragepoolNodepoolExtended. + The name or ID of the node pool's tier, if it is in a tier. - :param name: The name of this StoragepoolNodepoolExtended. + :param tier: The tier of this StoragepoolNodepoolExtended. :type: str """ - self._name = name + + self._tier = tier + + @property + def can_enable_l3(self): + """ + Gets the can_enable_l3 of this StoragepoolNodepoolExtended. + Indicates if enabling L3 is possible. L3 cannot be enabled if there are unprovisioned drives. + + :return: The can_enable_l3 of this StoragepoolNodepoolExtended. + :rtype: bool + """ + return self._can_enable_l3 + + @can_enable_l3.setter + def can_enable_l3(self, can_enable_l3): + """ + Sets the can_enable_l3 of this StoragepoolNodepoolExtended. + Indicates if enabling L3 is possible. L3 cannot be enabled if there are unprovisioned drives. + + :param can_enable_l3: The can_enable_l3 of this StoragepoolNodepoolExtended. + :type: bool + """ + + self._can_enable_l3 = can_enable_l3 @property def id(self): @@ -253,8 +232,38 @@ def id(self, id): :param id: The id of this StoragepoolNodepoolExtended. :type: int """ + self._id = id + @property + def l3_status(self): + """ + Gets the l3_status of this StoragepoolNodepoolExtended. + 'storage' if the 'l3' option is disabled. If the l3 option is enabled, 'migrating' if any SSDs in this node pool have not yet been migrated to L3. If all SSDs have been migrated, 'l3'. + + :return: The l3_status of this StoragepoolNodepoolExtended. + :rtype: str + """ + return self._l3_status + + @l3_status.setter + def l3_status(self, l3_status): + """ + Sets the l3_status of this StoragepoolNodepoolExtended. + 'storage' if the 'l3' option is disabled. If the l3 option is enabled, 'migrating' if any SSDs in this node pool have not yet been migrated to L3. If all SSDs have been migrated, 'l3'. + + :param l3_status: The l3_status of this StoragepoolNodepoolExtended. + :type: str + """ + allowed_values = ["l3", "storage", "migrating"] + if l3_status not in allowed_values: + raise ValueError( + "Invalid value for `l3_status`, must be one of {0}" + .format(allowed_values) + ) + + self._l3_status = l3_status + @property def manual(self): """ @@ -275,29 +284,31 @@ def manual(self, manual): :param manual: The manual of this StoragepoolNodepoolExtended. :type: bool """ + self._manual = manual @property - def can_enable_l3(self): + def usage(self): """ - Gets the can_enable_l3 of this StoragepoolNodepoolExtended. - Indicates if enabling L3 is possible. L3 cannot be enabled if there are unprovisioned drives. + Gets the usage of this StoragepoolNodepoolExtended. + Total pool usage. - :return: The can_enable_l3 of this StoragepoolNodepoolExtended. - :rtype: bool + :return: The usage of this StoragepoolNodepoolExtended. + :rtype: StoragepoolTierUsage """ - return self._can_enable_l3 + return self._usage - @can_enable_l3.setter - def can_enable_l3(self, can_enable_l3): + @usage.setter + def usage(self, usage): """ - Sets the can_enable_l3 of this StoragepoolNodepoolExtended. - Indicates if enabling L3 is possible. L3 cannot be enabled if there are unprovisioned drives. + Sets the usage of this StoragepoolNodepoolExtended. + Total pool usage. - :param can_enable_l3: The can_enable_l3 of this StoragepoolNodepoolExtended. - :type: bool + :param usage: The usage of this StoragepoolNodepoolExtended. + :type: StoragepoolTierUsage """ - self._can_enable_l3 = can_enable_l3 + + self._usage = usage def to_dict(self): """ @@ -314,6 +325,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -331,14 +348,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_nodepools.py b/isi_sdk/models/storagepool_nodepools.py index 2cb77cb89..c08243347 100644 --- a/isi_sdk/models/storagepool_nodepools.py +++ b/isi_sdk/models/storagepool_nodepools.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolNodepools(object): @@ -66,6 +67,7 @@ def nodepools(self, nodepools): :param nodepools: The nodepools of this StoragepoolNodepools. :type: list[StoragepoolNodepoolExtended] """ + self._nodepools = nodepools def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_nodepools_extended.py b/isi_sdk/models/storagepool_nodepools_extended.py index 9911a0ac9..3658ce107 100644 --- a/isi_sdk/models/storagepool_nodepools_extended.py +++ b/isi_sdk/models/storagepool_nodepools_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolNodepoolsExtended(object): @@ -69,6 +70,7 @@ def nodepools(self, nodepools): :param nodepools: The nodepools of this StoragepoolNodepoolsExtended. :type: list[StoragepoolNodepoolExtended] """ + self._nodepools = nodepools @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this StoragepoolNodepoolsExtended. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_settings.py b/isi_sdk/models/storagepool_settings.py index 8c6368a93..5e27d550c 100644 --- a/isi_sdk/models/storagepool_settings.py +++ b/isi_sdk/models/storagepool_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this StoragepoolSettings. :type: StoragepoolSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_settings_extended.py b/isi_sdk/models/storagepool_settings_extended.py index 7fb381d45..6535ebc2d 100644 --- a/isi_sdk/models/storagepool_settings_extended.py +++ b/isi_sdk/models/storagepool_settings_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolSettingsExtended(object): @@ -37,91 +38,73 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'settings': 'StoragepoolSettingsSettings', - 'virtual_hot_spare_hide_spare': 'bool', - 'automatically_manage_protection': 'str', 'automatically_manage_io_optimization': 'str', - 'ssd_l3_cache_default_enabled': 'bool', + 'automatically_manage_protection': 'str', 'global_namespace_acceleration_enabled': 'bool', - 'virtual_hot_spare_deny_writes': 'bool', - 'virtual_hot_spare_limit_drives': 'int', + 'protect_directories_one_level_higher': 'bool', 'spillover_enabled': 'bool', 'spillover_target': 'StoragepoolSettingsSpilloverTarget', - 'virtual_hot_spare_limit_percent': 'int', - 'protect_directories_one_level_higher': 'bool' + 'ssd_l3_cache_default_enabled': 'bool', + 'virtual_hot_spare_deny_writes': 'bool', + 'virtual_hot_spare_hide_spare': 'bool', + 'virtual_hot_spare_limit_drives': 'int', + 'virtual_hot_spare_limit_percent': 'int' } self.attribute_map = { - 'settings': 'settings', - 'virtual_hot_spare_hide_spare': 'virtual_hot_spare_hide_spare', - 'automatically_manage_protection': 'automatically_manage_protection', 'automatically_manage_io_optimization': 'automatically_manage_io_optimization', - 'ssd_l3_cache_default_enabled': 'ssd_l3_cache_default_enabled', + 'automatically_manage_protection': 'automatically_manage_protection', 'global_namespace_acceleration_enabled': 'global_namespace_acceleration_enabled', - 'virtual_hot_spare_deny_writes': 'virtual_hot_spare_deny_writes', - 'virtual_hot_spare_limit_drives': 'virtual_hot_spare_limit_drives', + 'protect_directories_one_level_higher': 'protect_directories_one_level_higher', 'spillover_enabled': 'spillover_enabled', 'spillover_target': 'spillover_target', - 'virtual_hot_spare_limit_percent': 'virtual_hot_spare_limit_percent', - 'protect_directories_one_level_higher': 'protect_directories_one_level_higher' + 'ssd_l3_cache_default_enabled': 'ssd_l3_cache_default_enabled', + 'virtual_hot_spare_deny_writes': 'virtual_hot_spare_deny_writes', + 'virtual_hot_spare_hide_spare': 'virtual_hot_spare_hide_spare', + 'virtual_hot_spare_limit_drives': 'virtual_hot_spare_limit_drives', + 'virtual_hot_spare_limit_percent': 'virtual_hot_spare_limit_percent' } - self._settings = None - self._virtual_hot_spare_hide_spare = None - self._automatically_manage_protection = None self._automatically_manage_io_optimization = None - self._ssd_l3_cache_default_enabled = None + self._automatically_manage_protection = None self._global_namespace_acceleration_enabled = None - self._virtual_hot_spare_deny_writes = None - self._virtual_hot_spare_limit_drives = None + self._protect_directories_one_level_higher = None self._spillover_enabled = None self._spillover_target = None + self._ssd_l3_cache_default_enabled = None + self._virtual_hot_spare_deny_writes = None + self._virtual_hot_spare_hide_spare = None + self._virtual_hot_spare_limit_drives = None self._virtual_hot_spare_limit_percent = None - self._protect_directories_one_level_higher = None @property - def settings(self): - """ - Gets the settings of this StoragepoolSettingsExtended. - - - :return: The settings of this StoragepoolSettingsExtended. - :rtype: StoragepoolSettingsSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this StoragepoolSettingsExtended. - - - :param settings: The settings of this StoragepoolSettingsExtended. - :type: StoragepoolSettingsSettings + def automatically_manage_io_optimization(self): """ - self._settings = settings + Gets the automatically_manage_io_optimization of this StoragepoolSettingsExtended. + Automatically manage IO optimization settings on files. - @property - def virtual_hot_spare_hide_spare(self): + :return: The automatically_manage_io_optimization of this StoragepoolSettingsExtended. + :rtype: str """ - Gets the virtual_hot_spare_hide_spare of this StoragepoolSettingsExtended. - Hide reserved virtual hot spare space from free space counts. + return self._automatically_manage_io_optimization - :return: The virtual_hot_spare_hide_spare of this StoragepoolSettingsExtended. - :rtype: bool + @automatically_manage_io_optimization.setter + def automatically_manage_io_optimization(self, automatically_manage_io_optimization): """ - return self._virtual_hot_spare_hide_spare + Sets the automatically_manage_io_optimization of this StoragepoolSettingsExtended. + Automatically manage IO optimization settings on files. - @virtual_hot_spare_hide_spare.setter - def virtual_hot_spare_hide_spare(self, virtual_hot_spare_hide_spare): + :param automatically_manage_io_optimization: The automatically_manage_io_optimization of this StoragepoolSettingsExtended. + :type: str """ - Sets the virtual_hot_spare_hide_spare of this StoragepoolSettingsExtended. - Hide reserved virtual hot spare space from free space counts. + allowed_values = ["all", "files_at_default", "none"] + if automatically_manage_io_optimization not in allowed_values: + raise ValueError( + "Invalid value for `automatically_manage_io_optimization`, must be one of {0}" + .format(allowed_values) + ) - :param virtual_hot_spare_hide_spare: The virtual_hot_spare_hide_spare of this StoragepoolSettingsExtended. - :type: bool - """ - self._virtual_hot_spare_hide_spare = virtual_hot_spare_hide_spare + self._automatically_manage_io_optimization = automatically_manage_io_optimization @property def automatically_manage_protection(self): @@ -149,57 +132,8 @@ def automatically_manage_protection(self, automatically_manage_protection): "Invalid value for `automatically_manage_protection`, must be one of {0}" .format(allowed_values) ) - self._automatically_manage_protection = automatically_manage_protection - - @property - def automatically_manage_io_optimization(self): - """ - Gets the automatically_manage_io_optimization of this StoragepoolSettingsExtended. - Automatically manage IO optimization settings on files. - - :return: The automatically_manage_io_optimization of this StoragepoolSettingsExtended. - :rtype: str - """ - return self._automatically_manage_io_optimization - - @automatically_manage_io_optimization.setter - def automatically_manage_io_optimization(self, automatically_manage_io_optimization): - """ - Sets the automatically_manage_io_optimization of this StoragepoolSettingsExtended. - Automatically manage IO optimization settings on files. - :param automatically_manage_io_optimization: The automatically_manage_io_optimization of this StoragepoolSettingsExtended. - :type: str - """ - allowed_values = ["all", "files_at_default", "none"] - if automatically_manage_io_optimization not in allowed_values: - raise ValueError( - "Invalid value for `automatically_manage_io_optimization`, must be one of {0}" - .format(allowed_values) - ) - self._automatically_manage_io_optimization = automatically_manage_io_optimization - - @property - def ssd_l3_cache_default_enabled(self): - """ - Gets the ssd_l3_cache_default_enabled of this StoragepoolSettingsExtended. - The L3 Cache default enabled state. This specifies whether L3 Cache should be enabled on new node pools - - :return: The ssd_l3_cache_default_enabled of this StoragepoolSettingsExtended. - :rtype: bool - """ - return self._ssd_l3_cache_default_enabled - - @ssd_l3_cache_default_enabled.setter - def ssd_l3_cache_default_enabled(self, ssd_l3_cache_default_enabled): - """ - Sets the ssd_l3_cache_default_enabled of this StoragepoolSettingsExtended. - The L3 Cache default enabled state. This specifies whether L3 Cache should be enabled on new node pools - - :param ssd_l3_cache_default_enabled: The ssd_l3_cache_default_enabled of this StoragepoolSettingsExtended. - :type: bool - """ - self._ssd_l3_cache_default_enabled = ssd_l3_cache_default_enabled + self._automatically_manage_protection = automatically_manage_protection @property def global_namespace_acceleration_enabled(self): @@ -221,51 +155,31 @@ def global_namespace_acceleration_enabled(self, global_namespace_acceleration_en :param global_namespace_acceleration_enabled: The global_namespace_acceleration_enabled of this StoragepoolSettingsExtended. :type: bool """ + self._global_namespace_acceleration_enabled = global_namespace_acceleration_enabled @property - def virtual_hot_spare_deny_writes(self): + def protect_directories_one_level_higher(self): """ - Gets the virtual_hot_spare_deny_writes of this StoragepoolSettingsExtended. - Deny writes into reserved virtual hot spare space. + Gets the protect_directories_one_level_higher of this StoragepoolSettingsExtended. + Automatically add additional protection level to all directories. - :return: The virtual_hot_spare_deny_writes of this StoragepoolSettingsExtended. + :return: The protect_directories_one_level_higher of this StoragepoolSettingsExtended. :rtype: bool """ - return self._virtual_hot_spare_deny_writes + return self._protect_directories_one_level_higher - @virtual_hot_spare_deny_writes.setter - def virtual_hot_spare_deny_writes(self, virtual_hot_spare_deny_writes): + @protect_directories_one_level_higher.setter + def protect_directories_one_level_higher(self, protect_directories_one_level_higher): """ - Sets the virtual_hot_spare_deny_writes of this StoragepoolSettingsExtended. - Deny writes into reserved virtual hot spare space. + Sets the protect_directories_one_level_higher of this StoragepoolSettingsExtended. + Automatically add additional protection level to all directories. - :param virtual_hot_spare_deny_writes: The virtual_hot_spare_deny_writes of this StoragepoolSettingsExtended. + :param protect_directories_one_level_higher: The protect_directories_one_level_higher of this StoragepoolSettingsExtended. :type: bool """ - self._virtual_hot_spare_deny_writes = virtual_hot_spare_deny_writes - - @property - def virtual_hot_spare_limit_drives(self): - """ - Gets the virtual_hot_spare_limit_drives of this StoragepoolSettingsExtended. - The number of drives to reserve for the virtual hot spare, from 0-4. - - :return: The virtual_hot_spare_limit_drives of this StoragepoolSettingsExtended. - :rtype: int - """ - return self._virtual_hot_spare_limit_drives - - @virtual_hot_spare_limit_drives.setter - def virtual_hot_spare_limit_drives(self, virtual_hot_spare_limit_drives): - """ - Sets the virtual_hot_spare_limit_drives of this StoragepoolSettingsExtended. - The number of drives to reserve for the virtual hot spare, from 0-4. - - :param virtual_hot_spare_limit_drives: The virtual_hot_spare_limit_drives of this StoragepoolSettingsExtended. - :type: int - """ - self._virtual_hot_spare_limit_drives = virtual_hot_spare_limit_drives + + self._protect_directories_one_level_higher = protect_directories_one_level_higher @property def spillover_enabled(self): @@ -287,6 +201,7 @@ def spillover_enabled(self, spillover_enabled): :param spillover_enabled: The spillover_enabled of this StoragepoolSettingsExtended. :type: bool """ + self._spillover_enabled = spillover_enabled @property @@ -309,8 +224,108 @@ def spillover_target(self, spillover_target): :param spillover_target: The spillover_target of this StoragepoolSettingsExtended. :type: StoragepoolSettingsSpilloverTarget """ + self._spillover_target = spillover_target + @property + def ssd_l3_cache_default_enabled(self): + """ + Gets the ssd_l3_cache_default_enabled of this StoragepoolSettingsExtended. + The L3 Cache default enabled state. This specifies whether L3 Cache should be enabled on new node pools + + :return: The ssd_l3_cache_default_enabled of this StoragepoolSettingsExtended. + :rtype: bool + """ + return self._ssd_l3_cache_default_enabled + + @ssd_l3_cache_default_enabled.setter + def ssd_l3_cache_default_enabled(self, ssd_l3_cache_default_enabled): + """ + Sets the ssd_l3_cache_default_enabled of this StoragepoolSettingsExtended. + The L3 Cache default enabled state. This specifies whether L3 Cache should be enabled on new node pools + + :param ssd_l3_cache_default_enabled: The ssd_l3_cache_default_enabled of this StoragepoolSettingsExtended. + :type: bool + """ + + self._ssd_l3_cache_default_enabled = ssd_l3_cache_default_enabled + + @property + def virtual_hot_spare_deny_writes(self): + """ + Gets the virtual_hot_spare_deny_writes of this StoragepoolSettingsExtended. + Deny writes into reserved virtual hot spare space. + + :return: The virtual_hot_spare_deny_writes of this StoragepoolSettingsExtended. + :rtype: bool + """ + return self._virtual_hot_spare_deny_writes + + @virtual_hot_spare_deny_writes.setter + def virtual_hot_spare_deny_writes(self, virtual_hot_spare_deny_writes): + """ + Sets the virtual_hot_spare_deny_writes of this StoragepoolSettingsExtended. + Deny writes into reserved virtual hot spare space. + + :param virtual_hot_spare_deny_writes: The virtual_hot_spare_deny_writes of this StoragepoolSettingsExtended. + :type: bool + """ + + self._virtual_hot_spare_deny_writes = virtual_hot_spare_deny_writes + + @property + def virtual_hot_spare_hide_spare(self): + """ + Gets the virtual_hot_spare_hide_spare of this StoragepoolSettingsExtended. + Hide reserved virtual hot spare space from free space counts. + + :return: The virtual_hot_spare_hide_spare of this StoragepoolSettingsExtended. + :rtype: bool + """ + return self._virtual_hot_spare_hide_spare + + @virtual_hot_spare_hide_spare.setter + def virtual_hot_spare_hide_spare(self, virtual_hot_spare_hide_spare): + """ + Sets the virtual_hot_spare_hide_spare of this StoragepoolSettingsExtended. + Hide reserved virtual hot spare space from free space counts. + + :param virtual_hot_spare_hide_spare: The virtual_hot_spare_hide_spare of this StoragepoolSettingsExtended. + :type: bool + """ + + self._virtual_hot_spare_hide_spare = virtual_hot_spare_hide_spare + + @property + def virtual_hot_spare_limit_drives(self): + """ + Gets the virtual_hot_spare_limit_drives of this StoragepoolSettingsExtended. + The number of drives to reserve for the virtual hot spare, from 0-4. + + :return: The virtual_hot_spare_limit_drives of this StoragepoolSettingsExtended. + :rtype: int + """ + return self._virtual_hot_spare_limit_drives + + @virtual_hot_spare_limit_drives.setter + def virtual_hot_spare_limit_drives(self, virtual_hot_spare_limit_drives): + """ + Sets the virtual_hot_spare_limit_drives of this StoragepoolSettingsExtended. + The number of drives to reserve for the virtual hot spare, from 0-4. + + :param virtual_hot_spare_limit_drives: The virtual_hot_spare_limit_drives of this StoragepoolSettingsExtended. + :type: int + """ + + if not virtual_hot_spare_limit_drives: + raise ValueError("Invalid value for `virtual_hot_spare_limit_drives`, must not be `None`") + if virtual_hot_spare_limit_drives > 4.0: + raise ValueError("Invalid value for `virtual_hot_spare_limit_drives`, must be a value less than or equal to `4.0`") + if virtual_hot_spare_limit_drives < 0.0: + raise ValueError("Invalid value for `virtual_hot_spare_limit_drives`, must be a value greater than or equal to `0.0`") + + self._virtual_hot_spare_limit_drives = virtual_hot_spare_limit_drives + @property def virtual_hot_spare_limit_percent(self): """ @@ -331,29 +346,15 @@ def virtual_hot_spare_limit_percent(self, virtual_hot_spare_limit_percent): :param virtual_hot_spare_limit_percent: The virtual_hot_spare_limit_percent of this StoragepoolSettingsExtended. :type: int """ - self._virtual_hot_spare_limit_percent = virtual_hot_spare_limit_percent - - @property - def protect_directories_one_level_higher(self): - """ - Gets the protect_directories_one_level_higher of this StoragepoolSettingsExtended. - Automatically add additional protection level to all directories. - - :return: The protect_directories_one_level_higher of this StoragepoolSettingsExtended. - :rtype: bool - """ - return self._protect_directories_one_level_higher - - @protect_directories_one_level_higher.setter - def protect_directories_one_level_higher(self, protect_directories_one_level_higher): - """ - Sets the protect_directories_one_level_higher of this StoragepoolSettingsExtended. - Automatically add additional protection level to all directories. + + if not virtual_hot_spare_limit_percent: + raise ValueError("Invalid value for `virtual_hot_spare_limit_percent`, must not be `None`") + if virtual_hot_spare_limit_percent > 20.0: + raise ValueError("Invalid value for `virtual_hot_spare_limit_percent`, must be a value less than or equal to `20.0`") + if virtual_hot_spare_limit_percent < 0.0: + raise ValueError("Invalid value for `virtual_hot_spare_limit_percent`, must be a value greater than or equal to `0.0`") - :param protect_directories_one_level_higher: The protect_directories_one_level_higher of this StoragepoolSettingsExtended. - :type: bool - """ - self._protect_directories_one_level_higher = protect_directories_one_level_higher + self._virtual_hot_spare_limit_percent = virtual_hot_spare_limit_percent def to_dict(self): """ @@ -370,6 +371,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -387,14 +394,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_settings_settings.py b/isi_sdk/models/storagepool_settings_settings.py index 7ade87109..c5e6b917b 100644 --- a/isi_sdk/models/storagepool_settings_settings.py +++ b/isi_sdk/models/storagepool_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolSettingsSettings(object): @@ -105,6 +106,7 @@ def automatically_manage_io_optimization(self, automatically_manage_io_optimizat "Invalid value for `automatically_manage_io_optimization`, must be one of {0}" .format(allowed_values) ) + self._automatically_manage_io_optimization = automatically_manage_io_optimization @property @@ -133,6 +135,7 @@ def automatically_manage_protection(self, automatically_manage_protection): "Invalid value for `automatically_manage_protection`, must be one of {0}" .format(allowed_values) ) + self._automatically_manage_protection = automatically_manage_protection @property @@ -155,6 +158,7 @@ def global_namespace_acceleration_enabled(self, global_namespace_acceleration_en :param global_namespace_acceleration_enabled: The global_namespace_acceleration_enabled of this StoragepoolSettingsSettings. :type: bool """ + self._global_namespace_acceleration_enabled = global_namespace_acceleration_enabled @property @@ -183,6 +187,7 @@ def global_namespace_acceleration_state(self, global_namespace_acceleration_stat "Invalid value for `global_namespace_acceleration_state`, must be one of {0}" .format(allowed_values) ) + self._global_namespace_acceleration_state = global_namespace_acceleration_state @property @@ -205,6 +210,7 @@ def protect_directories_one_level_higher(self, protect_directories_one_level_hig :param protect_directories_one_level_higher: The protect_directories_one_level_higher of this StoragepoolSettingsSettings. :type: bool """ + self._protect_directories_one_level_higher = protect_directories_one_level_higher @property @@ -227,6 +233,7 @@ def spillover_enabled(self, spillover_enabled): :param spillover_enabled: The spillover_enabled of this StoragepoolSettingsSettings. :type: bool """ + self._spillover_enabled = spillover_enabled @property @@ -249,6 +256,7 @@ def spillover_target(self, spillover_target): :param spillover_target: The spillover_target of this StoragepoolSettingsSettings. :type: StoragepoolSettingsSettingsSpilloverTarget """ + self._spillover_target = spillover_target @property @@ -271,6 +279,7 @@ def ssd_l3_cache_default_enabled(self, ssd_l3_cache_default_enabled): :param ssd_l3_cache_default_enabled: The ssd_l3_cache_default_enabled of this StoragepoolSettingsSettings. :type: bool """ + self._ssd_l3_cache_default_enabled = ssd_l3_cache_default_enabled @property @@ -293,6 +302,7 @@ def virtual_hot_spare_deny_writes(self, virtual_hot_spare_deny_writes): :param virtual_hot_spare_deny_writes: The virtual_hot_spare_deny_writes of this StoragepoolSettingsSettings. :type: bool """ + self._virtual_hot_spare_deny_writes = virtual_hot_spare_deny_writes @property @@ -315,6 +325,7 @@ def virtual_hot_spare_hide_spare(self, virtual_hot_spare_hide_spare): :param virtual_hot_spare_hide_spare: The virtual_hot_spare_hide_spare of this StoragepoolSettingsSettings. :type: bool """ + self._virtual_hot_spare_hide_spare = virtual_hot_spare_hide_spare @property @@ -337,6 +348,14 @@ def virtual_hot_spare_limit_drives(self, virtual_hot_spare_limit_drives): :param virtual_hot_spare_limit_drives: The virtual_hot_spare_limit_drives of this StoragepoolSettingsSettings. :type: int """ + + if not virtual_hot_spare_limit_drives: + raise ValueError("Invalid value for `virtual_hot_spare_limit_drives`, must not be `None`") + if virtual_hot_spare_limit_drives > 4.0: + raise ValueError("Invalid value for `virtual_hot_spare_limit_drives`, must be a value less than or equal to `4.0`") + if virtual_hot_spare_limit_drives < 0.0: + raise ValueError("Invalid value for `virtual_hot_spare_limit_drives`, must be a value greater than or equal to `0.0`") + self._virtual_hot_spare_limit_drives = virtual_hot_spare_limit_drives @property @@ -359,6 +378,14 @@ def virtual_hot_spare_limit_percent(self, virtual_hot_spare_limit_percent): :param virtual_hot_spare_limit_percent: The virtual_hot_spare_limit_percent of this StoragepoolSettingsSettings. :type: int """ + + if not virtual_hot_spare_limit_percent: + raise ValueError("Invalid value for `virtual_hot_spare_limit_percent`, must not be `None`") + if virtual_hot_spare_limit_percent > 20.0: + raise ValueError("Invalid value for `virtual_hot_spare_limit_percent`, must be a value less than or equal to `20.0`") + if virtual_hot_spare_limit_percent < 0.0: + raise ValueError("Invalid value for `virtual_hot_spare_limit_percent`, must be a value greater than or equal to `0.0`") + self._virtual_hot_spare_limit_percent = virtual_hot_spare_limit_percent def to_dict(self): @@ -376,6 +403,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -393,14 +426,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_settings_settings_spillover_target.py b/isi_sdk/models/storagepool_settings_settings_spillover_target.py index a38b1f971..14012f37d 100644 --- a/isi_sdk/models/storagepool_settings_settings_spillover_target.py +++ b/isi_sdk/models/storagepool_settings_settings_spillover_target.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolSettingsSettingsSpilloverTarget(object): @@ -72,6 +73,7 @@ def id(self, id): :param id: The id of this StoragepoolSettingsSettingsSpilloverTarget. :type: int """ + self._id = id @property @@ -94,6 +96,7 @@ def name(self, name): :param name: The name of this StoragepoolSettingsSettingsSpilloverTarget. :type: str """ + self._name = name @property @@ -122,6 +125,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -139,6 +143,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -156,14 +166,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_settings_spillover_target.py b/isi_sdk/models/storagepool_settings_spillover_target.py index 4b4e394f1..272b81472 100644 --- a/isi_sdk/models/storagepool_settings_spillover_target.py +++ b/isi_sdk/models/storagepool_settings_spillover_target.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolSettingsSpilloverTarget(object): @@ -69,6 +70,7 @@ def name_or_id(self, name_or_id): :param name_or_id: The name_or_id of this StoragepoolSettingsSpilloverTarget. :type: int """ + self._name_or_id = name_or_id @property @@ -97,6 +99,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -114,6 +117,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -131,14 +140,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_status.py b/isi_sdk/models/storagepool_status.py index e0463631b..bfe1c3be0 100644 --- a/isi_sdk/models/storagepool_status.py +++ b/isi_sdk/models/storagepool_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolStatus(object): @@ -69,6 +70,7 @@ def unhealthy(self, unhealthy): :param unhealthy: The unhealthy of this StoragepoolStatus. :type: list[StoragepoolStatusUnhealthyItem] """ + self._unhealthy = unhealthy @property @@ -91,6 +93,7 @@ def unprovisioned(self, unprovisioned): :param unprovisioned: The unprovisioned of this StoragepoolStatus. :type: list[StoragepoolStatusUnprovisionedItem] """ + self._unprovisioned = unprovisioned def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_status_unhealthy_item.py b/isi_sdk/models/storagepool_status_unhealthy_item.py index 961d4dfbc..0f13e245c 100644 --- a/isi_sdk/models/storagepool_status_unhealthy_item.py +++ b/isi_sdk/models/storagepool_status_unhealthy_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolStatusUnhealthyItem(object): @@ -72,6 +73,7 @@ def affected(self, affected): :param affected: The affected of this StoragepoolStatusUnhealthyItem. :type: list[StoragepoolStatusUnhealthyItemAffectedItem] """ + self._affected = affected @property @@ -94,6 +96,7 @@ def diskpool(self, diskpool): :param diskpool: The diskpool of this StoragepoolStatusUnhealthyItem. :type: StoragepoolStatusUnhealthyItemDiskpool """ + self._diskpool = diskpool @property @@ -116,6 +119,7 @@ def health_flags(self, health_flags): :param health_flags: The health_flags of this StoragepoolStatusUnhealthyItem. :type: list[str] """ + self._health_flags = health_flags def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_status_unhealthy_item_affected_item.py b/isi_sdk/models/storagepool_status_unhealthy_item_affected_item.py index 4f386b0c7..a78566564 100644 --- a/isi_sdk/models/storagepool_status_unhealthy_item_affected_item.py +++ b/isi_sdk/models/storagepool_status_unhealthy_item_affected_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolStatusUnhealthyItemAffectedItem(object): @@ -78,6 +79,7 @@ def device(self, device): :param device: The device of this StoragepoolStatusUnhealthyItemAffectedItem. :type: int """ + self._device = device @property @@ -100,6 +102,7 @@ def down(self, down): :param down: The down of this StoragepoolStatusUnhealthyItemAffectedItem. :type: bool """ + self._down = down @property @@ -122,6 +125,7 @@ def restriping(self, restriping): :param restriping: The restriping of this StoragepoolStatusUnhealthyItemAffectedItem. :type: bool """ + self._restriping = restriping @property @@ -144,6 +148,7 @@ def smartfailed(self, smartfailed): :param smartfailed: The smartfailed of this StoragepoolStatusUnhealthyItemAffectedItem. :type: bool """ + self._smartfailed = smartfailed @property @@ -172,6 +177,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -189,6 +195,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -206,14 +218,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_status_unhealthy_item_diskpool.py b/isi_sdk/models/storagepool_status_unhealthy_item_diskpool.py index e7fb0cdc2..2606fb3c8 100644 --- a/isi_sdk/models/storagepool_status_unhealthy_item_diskpool.py +++ b/isi_sdk/models/storagepool_status_unhealthy_item_diskpool.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolStatusUnhealthyItemDiskpool(object): @@ -81,6 +82,7 @@ def drives(self, drives): :param drives: The drives of this StoragepoolStatusUnhealthyItemDiskpool. :type: list[StoragepoolStatusUnprovisionedItem] """ + self._drives = drives @property @@ -103,6 +105,7 @@ def id(self, id): :param id: The id of this StoragepoolStatusUnhealthyItemDiskpool. :type: int """ + self._id = id @property @@ -125,6 +128,7 @@ def name(self, name): :param name: The name of this StoragepoolStatusUnhealthyItemDiskpool. :type: str """ + self._name = name @property @@ -147,6 +151,7 @@ def nodepool_id(self, nodepool_id): :param nodepool_id: The nodepool_id of this StoragepoolStatusUnhealthyItemDiskpool. :type: int """ + self._nodepool_id = nodepool_id @property @@ -169,6 +174,7 @@ def protection_policy(self, protection_policy): :param protection_policy: The protection_policy of this StoragepoolStatusUnhealthyItemDiskpool. :type: str """ + self._protection_policy = protection_policy @property @@ -191,6 +197,7 @@ def ssd_drives(self, ssd_drives): :param ssd_drives: The ssd_drives of this StoragepoolStatusUnhealthyItemDiskpool. :type: list[StoragepoolStatusUnprovisionedItem] """ + self._ssd_drives = ssd_drives def to_dict(self): @@ -208,6 +215,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +238,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_status_unprovisioned_item.py b/isi_sdk/models/storagepool_status_unprovisioned_item.py index 2ecc6b073..c6301949b 100644 --- a/isi_sdk/models/storagepool_status_unprovisioned_item.py +++ b/isi_sdk/models/storagepool_status_unprovisioned_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolStatusUnprovisionedItem(object): @@ -69,6 +70,7 @@ def bay(self, bay): :param bay: The bay of this StoragepoolStatusUnprovisionedItem. :type: int """ + self._bay = bay @property @@ -91,6 +93,7 @@ def lnn(self, lnn): :param lnn: The lnn of this StoragepoolStatusUnprovisionedItem. :type: int """ + self._lnn = lnn def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_storagepool.py b/isi_sdk/models/storagepool_storagepool.py index 310f644a5..5072ca62c 100644 --- a/isi_sdk/models/storagepool_storagepool.py +++ b/isi_sdk/models/storagepool_storagepool.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolStoragepool(object): @@ -96,6 +97,7 @@ def can_enable_l3(self, can_enable_l3): :param can_enable_l3: The can_enable_l3 of this StoragepoolStoragepool. :type: bool """ + self._can_enable_l3 = can_enable_l3 @property @@ -118,6 +120,7 @@ def children(self, children): :param children: The children of this StoragepoolStoragepool. :type: list[str] """ + self._children = children @property @@ -140,6 +143,7 @@ def id(self, id): :param id: The id of this StoragepoolStoragepool. :type: int """ + self._id = id @property @@ -162,6 +166,7 @@ def l3(self, l3): :param l3: The l3 of this StoragepoolStoragepool. :type: bool """ + self._l3 = l3 @property @@ -190,6 +195,7 @@ def l3_status(self, l3_status): "Invalid value for `l3_status`, must be one of {0}" .format(allowed_values) ) + self._l3_status = l3_status @property @@ -212,6 +218,7 @@ def lnns(self, lnns): :param lnns: The lnns of this StoragepoolStoragepool. :type: list[int] """ + self._lnns = lnns @property @@ -234,6 +241,7 @@ def manual(self, manual): :param manual: The manual of this StoragepoolStoragepool. :type: bool """ + self._manual = manual @property @@ -256,6 +264,7 @@ def name(self, name): :param name: The name of this StoragepoolStoragepool. :type: str """ + self._name = name @property @@ -278,6 +287,7 @@ def protection_policy(self, protection_policy): :param protection_policy: The protection_policy of this StoragepoolStoragepool. :type: str """ + self._protection_policy = protection_policy @property @@ -306,6 +316,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type @property @@ -328,6 +339,7 @@ def usage(self, usage): :param usage: The usage of this StoragepoolStoragepool. :type: StoragepoolTierUsage """ + self._usage = usage def to_dict(self): @@ -345,6 +357,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -362,14 +380,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_storagepools.py b/isi_sdk/models/storagepool_storagepools.py index 251a1a838..a8a05d592 100644 --- a/isi_sdk/models/storagepool_storagepools.py +++ b/isi_sdk/models/storagepool_storagepools.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolStoragepools(object): @@ -69,6 +70,7 @@ def storagepools(self, storagepools): :param storagepools: The storagepools of this StoragepoolStoragepools. :type: list[StoragepoolStoragepool] """ + self._storagepools = storagepools @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this StoragepoolStoragepools. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_suggested_protection.py b/isi_sdk/models/storagepool_suggested_protection.py index 32e4281c8..a3c68c162 100644 --- a/isi_sdk/models/storagepool_suggested_protection.py +++ b/isi_sdk/models/storagepool_suggested_protection.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolSuggestedProtection(object): @@ -66,6 +67,7 @@ def suggested_protection(self, suggested_protection): :param suggested_protection: The suggested_protection of this StoragepoolSuggestedProtection. :type: list[StoragepoolSuggestedProtectionSuggestedProtectionItem] """ + self._suggested_protection = suggested_protection def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_suggested_protection_suggested_protection_item.py b/isi_sdk/models/storagepool_suggested_protection_suggested_protection_item.py index 2d55c1238..9eee448f4 100644 --- a/isi_sdk/models/storagepool_suggested_protection_suggested_protection_item.py +++ b/isi_sdk/models/storagepool_suggested_protection_suggested_protection_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolSuggestedProtectionSuggestedProtectionItem(object): @@ -66,6 +67,7 @@ def suggested_protection(self, suggested_protection): :param suggested_protection: The suggested_protection of this StoragepoolSuggestedProtectionSuggestedProtectionItem. :type: str """ + self._suggested_protection = suggested_protection def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_tier.py b/isi_sdk/models/storagepool_tier.py index a44b87efd..3a53da90b 100644 --- a/isi_sdk/models/storagepool_tier.py +++ b/isi_sdk/models/storagepool_tier.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolTier(object): @@ -69,6 +70,7 @@ def children(self, children): :param children: The children of this StoragepoolTier. :type: list[str] """ + self._children = children @property @@ -91,6 +93,7 @@ def name(self, name): :param name: The name of this StoragepoolTier. :type: str """ + self._name = name def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_tier_extended.py b/isi_sdk/models/storagepool_tier_extended.py index 78665b53a..b1285a89d 100644 --- a/isi_sdk/models/storagepool_tier_extended.py +++ b/isi_sdk/models/storagepool_tier_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolTierExtended(object): @@ -37,27 +38,50 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'children': 'list[str]', 'name': 'str', 'id': 'int', - 'children': 'list[str]', 'lnns': 'list[int]', 'usage': 'StoragepoolTierUsage' } self.attribute_map = { + 'children': 'children', 'name': 'name', 'id': 'id', - 'children': 'children', 'lnns': 'lnns', 'usage': 'usage' } + self._children = None self._name = None self._id = None - self._children = None self._lnns = None self._usage = None + @property + def children(self): + """ + Gets the children of this StoragepoolTierExtended. + The names or IDs of the tier's children. + + :return: The children of this StoragepoolTierExtended. + :rtype: list[str] + """ + return self._children + + @children.setter + def children(self, children): + """ + Sets the children of this StoragepoolTierExtended. + The names or IDs of the tier's children. + + :param children: The children of this StoragepoolTierExtended. + :type: list[str] + """ + + self._children = children + @property def name(self): """ @@ -78,6 +102,7 @@ def name(self, name): :param name: The name of this StoragepoolTierExtended. :type: str """ + self._name = name @property @@ -100,30 +125,9 @@ def id(self, id): :param id: The id of this StoragepoolTierExtended. :type: int """ + self._id = id - @property - def children(self): - """ - Gets the children of this StoragepoolTierExtended. - The names or IDs of the tier's children. - - :return: The children of this StoragepoolTierExtended. - :rtype: list[str] - """ - return self._children - - @children.setter - def children(self, children): - """ - Sets the children of this StoragepoolTierExtended. - The names or IDs of the tier's children. - - :param children: The children of this StoragepoolTierExtended. - :type: list[str] - """ - self._children = children - @property def lnns(self): """ @@ -144,6 +148,7 @@ def lnns(self, lnns): :param lnns: The lnns of this StoragepoolTierExtended. :type: list[int] """ + self._lnns = lnns @property @@ -166,6 +171,7 @@ def usage(self, usage): :param usage: The usage of this StoragepoolTierExtended. :type: StoragepoolTierUsage """ + self._usage = usage def to_dict(self): @@ -183,6 +189,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -200,14 +212,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_tier_usage.py b/isi_sdk/models/storagepool_tier_usage.py index c35003a41..88466a47a 100644 --- a/isi_sdk/models/storagepool_tier_usage.py +++ b/isi_sdk/models/storagepool_tier_usage.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolTierUsage(object): @@ -87,6 +88,7 @@ def avail_bytes(self, avail_bytes): :param avail_bytes: The avail_bytes of this StoragepoolTierUsage. :type: str """ + self._avail_bytes = avail_bytes @property @@ -109,6 +111,7 @@ def avail_ssd_bytes(self, avail_ssd_bytes): :param avail_ssd_bytes: The avail_ssd_bytes of this StoragepoolTierUsage. :type: str """ + self._avail_ssd_bytes = avail_ssd_bytes @property @@ -131,6 +134,7 @@ def balanced(self, balanced): :param balanced: The balanced of this StoragepoolTierUsage. :type: bool """ + self._balanced = balanced @property @@ -153,6 +157,7 @@ def free_bytes(self, free_bytes): :param free_bytes: The free_bytes of this StoragepoolTierUsage. :type: str """ + self._free_bytes = free_bytes @property @@ -175,6 +180,7 @@ def free_ssd_bytes(self, free_ssd_bytes): :param free_ssd_bytes: The free_ssd_bytes of this StoragepoolTierUsage. :type: str """ + self._free_ssd_bytes = free_ssd_bytes @property @@ -197,6 +203,7 @@ def total_bytes(self, total_bytes): :param total_bytes: The total_bytes of this StoragepoolTierUsage. :type: str """ + self._total_bytes = total_bytes @property @@ -219,6 +226,7 @@ def total_ssd_bytes(self, total_ssd_bytes): :param total_ssd_bytes: The total_ssd_bytes of this StoragepoolTierUsage. :type: str """ + self._total_ssd_bytes = total_ssd_bytes @property @@ -241,6 +249,7 @@ def virtual_hot_spare_bytes(self, virtual_hot_spare_bytes): :param virtual_hot_spare_bytes: The virtual_hot_spare_bytes of this StoragepoolTierUsage. :type: str """ + self._virtual_hot_spare_bytes = virtual_hot_spare_bytes def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_tiers.py b/isi_sdk/models/storagepool_tiers.py index 9763093e4..39d49600d 100644 --- a/isi_sdk/models/storagepool_tiers.py +++ b/isi_sdk/models/storagepool_tiers.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolTiers(object): @@ -66,6 +67,7 @@ def tiers(self, tiers): :param tiers: The tiers of this StoragepoolTiers. :type: list[StoragepoolTierExtended] """ + self._tiers = tiers def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_tiers_extended.py b/isi_sdk/models/storagepool_tiers_extended.py index a6a037818..e274da4b9 100644 --- a/isi_sdk/models/storagepool_tiers_extended.py +++ b/isi_sdk/models/storagepool_tiers_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolTiersExtended(object): @@ -69,6 +70,7 @@ def tiers(self, tiers): :param tiers: The tiers of this StoragepoolTiersExtended. :type: list[StoragepoolTierExtended] """ + self._tiers = tiers @property @@ -91,6 +93,7 @@ def total(self, total): :param total: The total of this StoragepoolTiersExtended. :type: int """ + self._total = total def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_unprovisioned.py b/isi_sdk/models/storagepool_unprovisioned.py index 0d742d5ae..c4d87670b 100644 --- a/isi_sdk/models/storagepool_unprovisioned.py +++ b/isi_sdk/models/storagepool_unprovisioned.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolUnprovisioned(object): @@ -66,6 +67,7 @@ def unprovisioned(self, unprovisioned): :param unprovisioned: The unprovisioned of this StoragepoolUnprovisioned. :type: list[StoragepoolUnprovisionedUnprovisionedItem] """ + self._unprovisioned = unprovisioned def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/storagepool_unprovisioned_unprovisioned_item.py b/isi_sdk/models/storagepool_unprovisioned_unprovisioned_item.py index cd59933f9..098abcf64 100644 --- a/isi_sdk/models/storagepool_unprovisioned_unprovisioned_item.py +++ b/isi_sdk/models/storagepool_unprovisioned_unprovisioned_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class StoragepoolUnprovisionedUnprovisionedItem(object): @@ -69,6 +70,7 @@ def drives(self, drives): :param drives: The drives of this StoragepoolUnprovisionedUnprovisionedItem. :type: list[StoragepoolStatusUnprovisionedItem] """ + self._drives = drives @property @@ -91,6 +93,7 @@ def lnns(self, lnns): :param lnns: The lnns of this StoragepoolUnprovisionedUnprovisionedItem. :type: list[int] """ + self._lnns = lnns def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/subnets_subnet_pool.py b/isi_sdk/models/subnets_subnet_pool.py new file mode 100644 index 000000000..2e445fb71 --- /dev/null +++ b/isi_sdk/models/subnets_subnet_pool.py @@ -0,0 +1,571 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SubnetsSubnetPool(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SubnetsSubnetPool - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'access_zone': 'str', + 'aggregation_mode': 'str', + 'alloc_method': 'str', + 'description': 'str', + 'ifaces': 'list[SubnetsSubnetPoolIface]', + 'name': 'str', + 'ranges': 'list[SubnetsSubnetPoolRange]', + 'rebalance_policy': 'str', + 'sc_auto_unsuspend_delay': 'int', + 'sc_connect_policy': 'str', + 'sc_dns_zone': 'str', + 'sc_dns_zone_aliases': 'list[str]', + 'sc_failover_policy': 'str', + 'sc_subnet': 'str', + 'sc_ttl': 'int', + 'static_routes': 'list[SubnetsSubnetPoolStaticRoute]' + } + + self.attribute_map = { + 'access_zone': 'access_zone', + 'aggregation_mode': 'aggregation_mode', + 'alloc_method': 'alloc_method', + 'description': 'description', + 'ifaces': 'ifaces', + 'name': 'name', + 'ranges': 'ranges', + 'rebalance_policy': 'rebalance_policy', + 'sc_auto_unsuspend_delay': 'sc_auto_unsuspend_delay', + 'sc_connect_policy': 'sc_connect_policy', + 'sc_dns_zone': 'sc_dns_zone', + 'sc_dns_zone_aliases': 'sc_dns_zone_aliases', + 'sc_failover_policy': 'sc_failover_policy', + 'sc_subnet': 'sc_subnet', + 'sc_ttl': 'sc_ttl', + 'static_routes': 'static_routes' + } + + self._access_zone = None + self._aggregation_mode = None + self._alloc_method = None + self._description = None + self._ifaces = None + self._name = None + self._ranges = None + self._rebalance_policy = None + self._sc_auto_unsuspend_delay = None + self._sc_connect_policy = None + self._sc_dns_zone = None + self._sc_dns_zone_aliases = None + self._sc_failover_policy = None + self._sc_subnet = None + self._sc_ttl = None + self._static_routes = None + + @property + def access_zone(self): + """ + Gets the access_zone of this SubnetsSubnetPool. + Name of a valid access zone to map IP address pool to the zone. + + :return: The access_zone of this SubnetsSubnetPool. + :rtype: str + """ + return self._access_zone + + @access_zone.setter + def access_zone(self, access_zone): + """ + Sets the access_zone of this SubnetsSubnetPool. + Name of a valid access zone to map IP address pool to the zone. + + :param access_zone: The access_zone of this SubnetsSubnetPool. + :type: str + """ + + if not access_zone: + raise ValueError("Invalid value for `access_zone`, must not be `None`") + if len(access_zone) < 1: + raise ValueError("Invalid value for `access_zone`, length must be greater than or equal to `1`") + + self._access_zone = access_zone + + @property + def aggregation_mode(self): + """ + Gets the aggregation_mode of this SubnetsSubnetPool. + OneFS supports the following NIC aggregation modes. + + :return: The aggregation_mode of this SubnetsSubnetPool. + :rtype: str + """ + return self._aggregation_mode + + @aggregation_mode.setter + def aggregation_mode(self, aggregation_mode): + """ + Sets the aggregation_mode of this SubnetsSubnetPool. + OneFS supports the following NIC aggregation modes. + + :param aggregation_mode: The aggregation_mode of this SubnetsSubnetPool. + :type: str + """ + allowed_values = ["roundrobin", "failover", "lacp", "fec"] + if aggregation_mode not in allowed_values: + raise ValueError( + "Invalid value for `aggregation_mode`, must be one of {0}" + .format(allowed_values) + ) + + self._aggregation_mode = aggregation_mode + + @property + def alloc_method(self): + """ + Gets the alloc_method of this SubnetsSubnetPool. + Specifies how IP address allocation is done among pool members. + + :return: The alloc_method of this SubnetsSubnetPool. + :rtype: str + """ + return self._alloc_method + + @alloc_method.setter + def alloc_method(self, alloc_method): + """ + Sets the alloc_method of this SubnetsSubnetPool. + Specifies how IP address allocation is done among pool members. + + :param alloc_method: The alloc_method of this SubnetsSubnetPool. + :type: str + """ + allowed_values = ["dynamic", "static"] + if alloc_method not in allowed_values: + raise ValueError( + "Invalid value for `alloc_method`, must be one of {0}" + .format(allowed_values) + ) + + self._alloc_method = alloc_method + + @property + def description(self): + """ + Gets the description of this SubnetsSubnetPool. + A description of the pool. + + :return: The description of this SubnetsSubnetPool. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this SubnetsSubnetPool. + A description of the pool. + + :param description: The description of this SubnetsSubnetPool. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def ifaces(self): + """ + Gets the ifaces of this SubnetsSubnetPool. + List of interface members in this pool. + + :return: The ifaces of this SubnetsSubnetPool. + :rtype: list[SubnetsSubnetPoolIface] + """ + return self._ifaces + + @ifaces.setter + def ifaces(self, ifaces): + """ + Sets the ifaces of this SubnetsSubnetPool. + List of interface members in this pool. + + :param ifaces: The ifaces of this SubnetsSubnetPool. + :type: list[SubnetsSubnetPoolIface] + """ + + self._ifaces = ifaces + + @property + def name(self): + """ + Gets the name of this SubnetsSubnetPool. + The name of the pool. It must be unique throughout the given subnet.It's a required field with POST method. + + :return: The name of this SubnetsSubnetPool. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this SubnetsSubnetPool. + The name of the pool. It must be unique throughout the given subnet.It's a required field with POST method. + + :param name: The name of this SubnetsSubnetPool. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + + self._name = name + + @property + def ranges(self): + """ + Gets the ranges of this SubnetsSubnetPool. + List of IP address ranges in this pool. + + :return: The ranges of this SubnetsSubnetPool. + :rtype: list[SubnetsSubnetPoolRange] + """ + return self._ranges + + @ranges.setter + def ranges(self, ranges): + """ + Sets the ranges of this SubnetsSubnetPool. + List of IP address ranges in this pool. + + :param ranges: The ranges of this SubnetsSubnetPool. + :type: list[SubnetsSubnetPoolRange] + """ + + self._ranges = ranges + + @property + def rebalance_policy(self): + """ + Gets the rebalance_policy of this SubnetsSubnetPool. + Rebalance policy.. + + :return: The rebalance_policy of this SubnetsSubnetPool. + :rtype: str + """ + return self._rebalance_policy + + @rebalance_policy.setter + def rebalance_policy(self, rebalance_policy): + """ + Sets the rebalance_policy of this SubnetsSubnetPool. + Rebalance policy.. + + :param rebalance_policy: The rebalance_policy of this SubnetsSubnetPool. + :type: str + """ + allowed_values = ["auto", "manual"] + if rebalance_policy not in allowed_values: + raise ValueError( + "Invalid value for `rebalance_policy`, must be one of {0}" + .format(allowed_values) + ) + + self._rebalance_policy = rebalance_policy + + @property + def sc_auto_unsuspend_delay(self): + """ + Gets the sc_auto_unsuspend_delay of this SubnetsSubnetPool. + Time delay in seconds before a node which has been automatically unsuspended becomes usable in SmartConnect responses for pool zones. + + :return: The sc_auto_unsuspend_delay of this SubnetsSubnetPool. + :rtype: int + """ + return self._sc_auto_unsuspend_delay + + @sc_auto_unsuspend_delay.setter + def sc_auto_unsuspend_delay(self, sc_auto_unsuspend_delay): + """ + Sets the sc_auto_unsuspend_delay of this SubnetsSubnetPool. + Time delay in seconds before a node which has been automatically unsuspended becomes usable in SmartConnect responses for pool zones. + + :param sc_auto_unsuspend_delay: The sc_auto_unsuspend_delay of this SubnetsSubnetPool. + :type: int + """ + + if not sc_auto_unsuspend_delay: + raise ValueError("Invalid value for `sc_auto_unsuspend_delay`, must not be `None`") + if sc_auto_unsuspend_delay > 86400.0: + raise ValueError("Invalid value for `sc_auto_unsuspend_delay`, must be a value less than or equal to `86400.0`") + if sc_auto_unsuspend_delay < 0.0: + raise ValueError("Invalid value for `sc_auto_unsuspend_delay`, must be a value greater than or equal to `0.0`") + + self._sc_auto_unsuspend_delay = sc_auto_unsuspend_delay + + @property + def sc_connect_policy(self): + """ + Gets the sc_connect_policy of this SubnetsSubnetPool. + SmartConnect client connection balancing policy. + + :return: The sc_connect_policy of this SubnetsSubnetPool. + :rtype: str + """ + return self._sc_connect_policy + + @sc_connect_policy.setter + def sc_connect_policy(self, sc_connect_policy): + """ + Sets the sc_connect_policy of this SubnetsSubnetPool. + SmartConnect client connection balancing policy. + + :param sc_connect_policy: The sc_connect_policy of this SubnetsSubnetPool. + :type: str + """ + allowed_values = ["round_robin", "conn_count", "throughput", "cpu_usage"] + if sc_connect_policy not in allowed_values: + raise ValueError( + "Invalid value for `sc_connect_policy`, must be one of {0}" + .format(allowed_values) + ) + + self._sc_connect_policy = sc_connect_policy + + @property + def sc_dns_zone(self): + """ + Gets the sc_dns_zone of this SubnetsSubnetPool. + SmartConnect zone name for the pool. + + :return: The sc_dns_zone of this SubnetsSubnetPool. + :rtype: str + """ + return self._sc_dns_zone + + @sc_dns_zone.setter + def sc_dns_zone(self, sc_dns_zone): + """ + Sets the sc_dns_zone of this SubnetsSubnetPool. + SmartConnect zone name for the pool. + + :param sc_dns_zone: The sc_dns_zone of this SubnetsSubnetPool. + :type: str + """ + + self._sc_dns_zone = sc_dns_zone + + @property + def sc_dns_zone_aliases(self): + """ + Gets the sc_dns_zone_aliases of this SubnetsSubnetPool. + List of SmartConnect zone aliases (DNS names) to the pool. + + :return: The sc_dns_zone_aliases of this SubnetsSubnetPool. + :rtype: list[str] + """ + return self._sc_dns_zone_aliases + + @sc_dns_zone_aliases.setter + def sc_dns_zone_aliases(self, sc_dns_zone_aliases): + """ + Sets the sc_dns_zone_aliases of this SubnetsSubnetPool. + List of SmartConnect zone aliases (DNS names) to the pool. + + :param sc_dns_zone_aliases: The sc_dns_zone_aliases of this SubnetsSubnetPool. + :type: list[str] + """ + + self._sc_dns_zone_aliases = sc_dns_zone_aliases + + @property + def sc_failover_policy(self): + """ + Gets the sc_failover_policy of this SubnetsSubnetPool. + SmartConnect IP failover policy. + + :return: The sc_failover_policy of this SubnetsSubnetPool. + :rtype: str + """ + return self._sc_failover_policy + + @sc_failover_policy.setter + def sc_failover_policy(self, sc_failover_policy): + """ + Sets the sc_failover_policy of this SubnetsSubnetPool. + SmartConnect IP failover policy. + + :param sc_failover_policy: The sc_failover_policy of this SubnetsSubnetPool. + :type: str + """ + allowed_values = ["round_robin", "conn_count", "throughput", "cpu_usage"] + if sc_failover_policy not in allowed_values: + raise ValueError( + "Invalid value for `sc_failover_policy`, must be one of {0}" + .format(allowed_values) + ) + + self._sc_failover_policy = sc_failover_policy + + @property + def sc_subnet(self): + """ + Gets the sc_subnet of this SubnetsSubnetPool. + Name of SmartConnect service subnet for this pool. + + :return: The sc_subnet of this SubnetsSubnetPool. + :rtype: str + """ + return self._sc_subnet + + @sc_subnet.setter + def sc_subnet(self, sc_subnet): + """ + Sets the sc_subnet of this SubnetsSubnetPool. + Name of SmartConnect service subnet for this pool. + + :param sc_subnet: The sc_subnet of this SubnetsSubnetPool. + :type: str + """ + + self._sc_subnet = sc_subnet + + @property + def sc_ttl(self): + """ + Gets the sc_ttl of this SubnetsSubnetPool. + Time to live value for SmartConnect DNS query responses in seconds. + + :return: The sc_ttl of this SubnetsSubnetPool. + :rtype: int + """ + return self._sc_ttl + + @sc_ttl.setter + def sc_ttl(self, sc_ttl): + """ + Sets the sc_ttl of this SubnetsSubnetPool. + Time to live value for SmartConnect DNS query responses in seconds. + + :param sc_ttl: The sc_ttl of this SubnetsSubnetPool. + :type: int + """ + + if not sc_ttl: + raise ValueError("Invalid value for `sc_ttl`, must not be `None`") + if sc_ttl > 2.147483647E9: + raise ValueError("Invalid value for `sc_ttl`, must be a value less than or equal to `2.147483647E9`") + if sc_ttl < 0.0: + raise ValueError("Invalid value for `sc_ttl`, must be a value greater than or equal to `0.0`") + + self._sc_ttl = sc_ttl + + @property + def static_routes(self): + """ + Gets the static_routes of this SubnetsSubnetPool. + List of interface members in this pool. + + :return: The static_routes of this SubnetsSubnetPool. + :rtype: list[SubnetsSubnetPoolStaticRoute] + """ + return self._static_routes + + @static_routes.setter + def static_routes(self, static_routes): + """ + Sets the static_routes of this SubnetsSubnetPool. + List of interface members in this pool. + + :param static_routes: The static_routes of this SubnetsSubnetPool. + :type: list[SubnetsSubnetPoolStaticRoute] + """ + + self._static_routes = static_routes + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/subnets_subnet_pool_iface.py b/isi_sdk/models/subnets_subnet_pool_iface.py new file mode 100644 index 000000000..9505caa1c --- /dev/null +++ b/isi_sdk/models/subnets_subnet_pool_iface.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SubnetsSubnetPoolIface(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SubnetsSubnetPoolIface - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'iface': 'str', + 'lnn': 'int' + } + + self.attribute_map = { + 'iface': 'iface', + 'lnn': 'lnn' + } + + self._iface = None + self._lnn = None + + @property + def iface(self): + """ + Gets the iface of this SubnetsSubnetPoolIface. + A string that defines an interface name. + + :return: The iface of this SubnetsSubnetPoolIface. + :rtype: str + """ + return self._iface + + @iface.setter + def iface(self, iface): + """ + Sets the iface of this SubnetsSubnetPoolIface. + A string that defines an interface name. + + :param iface: The iface of this SubnetsSubnetPoolIface. + :type: str + """ + + self._iface = iface + + @property + def lnn(self): + """ + Gets the lnn of this SubnetsSubnetPoolIface. + Logical Node Number. + + :return: The lnn of this SubnetsSubnetPoolIface. + :rtype: int + """ + return self._lnn + + @lnn.setter + def lnn(self, lnn): + """ + Sets the lnn of this SubnetsSubnetPoolIface. + Logical Node Number. + + :param lnn: The lnn of this SubnetsSubnetPoolIface. + :type: int + """ + + self._lnn = lnn + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/subnets_subnet_pool_range.py b/isi_sdk/models/subnets_subnet_pool_range.py new file mode 100644 index 000000000..3cece642f --- /dev/null +++ b/isi_sdk/models/subnets_subnet_pool_range.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SubnetsSubnetPoolRange(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SubnetsSubnetPoolRange - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'high': 'str', + 'low': 'str' + } + + self.attribute_map = { + 'high': 'high', + 'low': 'low' + } + + self._high = None + self._low = None + + @property + def high(self): + """ + Gets the high of this SubnetsSubnetPoolRange. + High IP + + :return: The high of this SubnetsSubnetPoolRange. + :rtype: str + """ + return self._high + + @high.setter + def high(self, high): + """ + Sets the high of this SubnetsSubnetPoolRange. + High IP + + :param high: The high of this SubnetsSubnetPoolRange. + :type: str + """ + + self._high = high + + @property + def low(self): + """ + Gets the low of this SubnetsSubnetPoolRange. + Low IP + + :return: The low of this SubnetsSubnetPoolRange. + :rtype: str + """ + return self._low + + @low.setter + def low(self, low): + """ + Sets the low of this SubnetsSubnetPoolRange. + Low IP + + :param low: The low of this SubnetsSubnetPoolRange. + :type: str + """ + + self._low = low + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/subnets_subnet_pool_static_route.py b/isi_sdk/models/subnets_subnet_pool_static_route.py new file mode 100644 index 000000000..e0916450b --- /dev/null +++ b/isi_sdk/models/subnets_subnet_pool_static_route.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SubnetsSubnetPoolStaticRoute(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SubnetsSubnetPoolStaticRoute - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'gateway': 'str', + 'prefixlen': 'int', + 'subnet': 'str' + } + + self.attribute_map = { + 'gateway': 'gateway', + 'prefixlen': 'prefixlen', + 'subnet': 'subnet' + } + + self._gateway = None + self._prefixlen = None + self._subnet = None + + @property + def gateway(self): + """ + Gets the gateway of this SubnetsSubnetPoolStaticRoute. + Address of the gateway in the format: yyy.yyy.yyy.yyy + + :return: The gateway of this SubnetsSubnetPoolStaticRoute. + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """ + Sets the gateway of this SubnetsSubnetPoolStaticRoute. + Address of the gateway in the format: yyy.yyy.yyy.yyy + + :param gateway: The gateway of this SubnetsSubnetPoolStaticRoute. + :type: str + """ + + self._gateway = gateway + + @property + def prefixlen(self): + """ + Gets the prefixlen of this SubnetsSubnetPoolStaticRoute. + Prefix length in the format: nn. + + :return: The prefixlen of this SubnetsSubnetPoolStaticRoute. + :rtype: int + """ + return self._prefixlen + + @prefixlen.setter + def prefixlen(self, prefixlen): + """ + Sets the prefixlen of this SubnetsSubnetPoolStaticRoute. + Prefix length in the format: nn. + + :param prefixlen: The prefixlen of this SubnetsSubnetPoolStaticRoute. + :type: int + """ + + self._prefixlen = prefixlen + + @property + def subnet(self): + """ + Gets the subnet of this SubnetsSubnetPoolStaticRoute. + Network address in the format: xxx.xxx.xxx.xxx + + :return: The subnet of this SubnetsSubnetPoolStaticRoute. + :rtype: str + """ + return self._subnet + + @subnet.setter + def subnet(self, subnet): + """ + Sets the subnet of this SubnetsSubnetPoolStaticRoute. + Network address in the format: xxx.xxx.xxx.xxx + + :param subnet: The subnet of this SubnetsSubnetPoolStaticRoute. + :type: str + """ + + self._subnet = subnet + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/subnets_subnet_pools.py b/isi_sdk/models/subnets_subnet_pools.py new file mode 100644 index 000000000..3955cbdd6 --- /dev/null +++ b/isi_sdk/models/subnets_subnet_pools.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SubnetsSubnetPools(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SubnetsSubnetPools - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'pools': 'list[SubnetsSubnetPoolsPool]' + } + + self.attribute_map = { + 'pools': 'pools' + } + + self._pools = None + + @property + def pools(self): + """ + Gets the pools of this SubnetsSubnetPools. + + + :return: The pools of this SubnetsSubnetPools. + :rtype: list[SubnetsSubnetPoolsPool] + """ + return self._pools + + @pools.setter + def pools(self, pools): + """ + Sets the pools of this SubnetsSubnetPools. + + + :param pools: The pools of this SubnetsSubnetPools. + :type: list[SubnetsSubnetPoolsPool] + """ + + self._pools = pools + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/subnets_subnet_pools_extended.py b/isi_sdk/models/subnets_subnet_pools_extended.py new file mode 100644 index 000000000..bb9ea403a --- /dev/null +++ b/isi_sdk/models/subnets_subnet_pools_extended.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SubnetsSubnetPoolsExtended(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SubnetsSubnetPoolsExtended - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'pools': 'list[SubnetsSubnetPoolsPool]', + 'resume': 'str', + 'total': 'int' + } + + self.attribute_map = { + 'pools': 'pools', + 'resume': 'resume', + 'total': 'total' + } + + self._pools = None + self._resume = None + self._total = None + + @property + def pools(self): + """ + Gets the pools of this SubnetsSubnetPoolsExtended. + + + :return: The pools of this SubnetsSubnetPoolsExtended. + :rtype: list[SubnetsSubnetPoolsPool] + """ + return self._pools + + @pools.setter + def pools(self, pools): + """ + Sets the pools of this SubnetsSubnetPoolsExtended. + + + :param pools: The pools of this SubnetsSubnetPoolsExtended. + :type: list[SubnetsSubnetPoolsPool] + """ + + self._pools = pools + + @property + def resume(self): + """ + Gets the resume of this SubnetsSubnetPoolsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this SubnetsSubnetPoolsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this SubnetsSubnetPoolsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this SubnetsSubnetPoolsExtended. + :type: str + """ + + self._resume = resume + + @property + def total(self): + """ + Gets the total of this SubnetsSubnetPoolsExtended. + Total number of items available. + + :return: The total of this SubnetsSubnetPoolsExtended. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """ + Sets the total of this SubnetsSubnetPoolsExtended. + Total number of items available. + + :param total: The total of this SubnetsSubnetPoolsExtended. + :type: int + """ + + self._total = total + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/subnets_subnet_pools_pool.py b/isi_sdk/models/subnets_subnet_pools_pool.py new file mode 100644 index 000000000..7685ba80f --- /dev/null +++ b/isi_sdk/models/subnets_subnet_pools_pool.py @@ -0,0 +1,733 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class SubnetsSubnetPoolsPool(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + SubnetsSubnetPoolsPool - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'access_zone': 'str', + 'addr_family': 'str', + 'aggregation_mode': 'str', + 'alloc_method': 'str', + 'description': 'str', + 'groupnet': 'str', + 'id': 'str', + 'ifaces': 'list[SubnetsSubnetPoolIface]', + 'name': 'str', + 'ranges': 'list[SubnetsSubnetPoolRange]', + 'rebalance_policy': 'str', + 'rules': 'list[str]', + 'sc_auto_unsuspend_delay': 'int', + 'sc_connect_policy': 'str', + 'sc_dns_zone': 'str', + 'sc_dns_zone_aliases': 'list[str]', + 'sc_failover_policy': 'str', + 'sc_subnet': 'str', + 'sc_suspended_nodes': 'list[int]', + 'sc_ttl': 'int', + 'static_routes': 'list[SubnetsSubnetPoolStaticRoute]', + 'subnet': 'str' + } + + self.attribute_map = { + 'access_zone': 'access_zone', + 'addr_family': 'addr_family', + 'aggregation_mode': 'aggregation_mode', + 'alloc_method': 'alloc_method', + 'description': 'description', + 'groupnet': 'groupnet', + 'id': 'id', + 'ifaces': 'ifaces', + 'name': 'name', + 'ranges': 'ranges', + 'rebalance_policy': 'rebalance_policy', + 'rules': 'rules', + 'sc_auto_unsuspend_delay': 'sc_auto_unsuspend_delay', + 'sc_connect_policy': 'sc_connect_policy', + 'sc_dns_zone': 'sc_dns_zone', + 'sc_dns_zone_aliases': 'sc_dns_zone_aliases', + 'sc_failover_policy': 'sc_failover_policy', + 'sc_subnet': 'sc_subnet', + 'sc_suspended_nodes': 'sc_suspended_nodes', + 'sc_ttl': 'sc_ttl', + 'static_routes': 'static_routes', + 'subnet': 'subnet' + } + + self._access_zone = None + self._addr_family = None + self._aggregation_mode = None + self._alloc_method = None + self._description = None + self._groupnet = None + self._id = None + self._ifaces = None + self._name = None + self._ranges = None + self._rebalance_policy = None + self._rules = None + self._sc_auto_unsuspend_delay = None + self._sc_connect_policy = None + self._sc_dns_zone = None + self._sc_dns_zone_aliases = None + self._sc_failover_policy = None + self._sc_subnet = None + self._sc_suspended_nodes = None + self._sc_ttl = None + self._static_routes = None + self._subnet = None + + @property + def access_zone(self): + """ + Gets the access_zone of this SubnetsSubnetPoolsPool. + Name of a valid access zone to map IP address pool to the zone. + + :return: The access_zone of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._access_zone + + @access_zone.setter + def access_zone(self, access_zone): + """ + Sets the access_zone of this SubnetsSubnetPoolsPool. + Name of a valid access zone to map IP address pool to the zone. + + :param access_zone: The access_zone of this SubnetsSubnetPoolsPool. + :type: str + """ + + if not access_zone: + raise ValueError("Invalid value for `access_zone`, must not be `None`") + if len(access_zone) < 1: + raise ValueError("Invalid value for `access_zone`, length must be greater than or equal to `1`") + + self._access_zone = access_zone + + @property + def addr_family(self): + """ + Gets the addr_family of this SubnetsSubnetPoolsPool. + IP address format. + + :return: The addr_family of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._addr_family + + @addr_family.setter + def addr_family(self, addr_family): + """ + Sets the addr_family of this SubnetsSubnetPoolsPool. + IP address format. + + :param addr_family: The addr_family of this SubnetsSubnetPoolsPool. + :type: str + """ + allowed_values = ["ipv4", "ipv6"] + if addr_family not in allowed_values: + raise ValueError( + "Invalid value for `addr_family`, must be one of {0}" + .format(allowed_values) + ) + + self._addr_family = addr_family + + @property + def aggregation_mode(self): + """ + Gets the aggregation_mode of this SubnetsSubnetPoolsPool. + OneFS supports the following NIC aggregation modes. + + :return: The aggregation_mode of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._aggregation_mode + + @aggregation_mode.setter + def aggregation_mode(self, aggregation_mode): + """ + Sets the aggregation_mode of this SubnetsSubnetPoolsPool. + OneFS supports the following NIC aggregation modes. + + :param aggregation_mode: The aggregation_mode of this SubnetsSubnetPoolsPool. + :type: str + """ + allowed_values = ["roundrobin", "failover", "lacp", "fec"] + if aggregation_mode not in allowed_values: + raise ValueError( + "Invalid value for `aggregation_mode`, must be one of {0}" + .format(allowed_values) + ) + + self._aggregation_mode = aggregation_mode + + @property + def alloc_method(self): + """ + Gets the alloc_method of this SubnetsSubnetPoolsPool. + Specifies how IP address allocation is done among pool members. + + :return: The alloc_method of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._alloc_method + + @alloc_method.setter + def alloc_method(self, alloc_method): + """ + Sets the alloc_method of this SubnetsSubnetPoolsPool. + Specifies how IP address allocation is done among pool members. + + :param alloc_method: The alloc_method of this SubnetsSubnetPoolsPool. + :type: str + """ + allowed_values = ["dynamic", "static"] + if alloc_method not in allowed_values: + raise ValueError( + "Invalid value for `alloc_method`, must be one of {0}" + .format(allowed_values) + ) + + self._alloc_method = alloc_method + + @property + def description(self): + """ + Gets the description of this SubnetsSubnetPoolsPool. + A description of the pool. + + :return: The description of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this SubnetsSubnetPoolsPool. + A description of the pool. + + :param description: The description of this SubnetsSubnetPoolsPool. + :type: str + """ + + if not description: + raise ValueError("Invalid value for `description`, must not be `None`") + if len(description) > 128: + raise ValueError("Invalid value for `description`, length must be less than `128`") + + self._description = description + + @property + def groupnet(self): + """ + Gets the groupnet of this SubnetsSubnetPoolsPool. + Name of the groupnet this pool belongs to. + + :return: The groupnet of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._groupnet + + @groupnet.setter + def groupnet(self, groupnet): + """ + Sets the groupnet of this SubnetsSubnetPoolsPool. + Name of the groupnet this pool belongs to. + + :param groupnet: The groupnet of this SubnetsSubnetPoolsPool. + :type: str + """ + + self._groupnet = groupnet + + @property + def id(self): + """ + Gets the id of this SubnetsSubnetPoolsPool. + Unique Pool ID. + + :return: The id of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this SubnetsSubnetPoolsPool. + Unique Pool ID. + + :param id: The id of this SubnetsSubnetPoolsPool. + :type: str + """ + + self._id = id + + @property + def ifaces(self): + """ + Gets the ifaces of this SubnetsSubnetPoolsPool. + List of interface members in this pool. + + :return: The ifaces of this SubnetsSubnetPoolsPool. + :rtype: list[SubnetsSubnetPoolIface] + """ + return self._ifaces + + @ifaces.setter + def ifaces(self, ifaces): + """ + Sets the ifaces of this SubnetsSubnetPoolsPool. + List of interface members in this pool. + + :param ifaces: The ifaces of this SubnetsSubnetPoolsPool. + :type: list[SubnetsSubnetPoolIface] + """ + + self._ifaces = ifaces + + @property + def name(self): + """ + Gets the name of this SubnetsSubnetPoolsPool. + The name of the pool. It must be unique throughout the given subnet.It's a required field with POST method. + + :return: The name of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this SubnetsSubnetPoolsPool. + The name of the pool. It must be unique throughout the given subnet.It's a required field with POST method. + + :param name: The name of this SubnetsSubnetPoolsPool. + :type: str + """ + + if not name: + raise ValueError("Invalid value for `name`, must not be `None`") + if len(name) > 32: + raise ValueError("Invalid value for `name`, length must be less than `32`") + + self._name = name + + @property + def ranges(self): + """ + Gets the ranges of this SubnetsSubnetPoolsPool. + List of IP address ranges in this pool. + + :return: The ranges of this SubnetsSubnetPoolsPool. + :rtype: list[SubnetsSubnetPoolRange] + """ + return self._ranges + + @ranges.setter + def ranges(self, ranges): + """ + Sets the ranges of this SubnetsSubnetPoolsPool. + List of IP address ranges in this pool. + + :param ranges: The ranges of this SubnetsSubnetPoolsPool. + :type: list[SubnetsSubnetPoolRange] + """ + + self._ranges = ranges + + @property + def rebalance_policy(self): + """ + Gets the rebalance_policy of this SubnetsSubnetPoolsPool. + Rebalance policy.. + + :return: The rebalance_policy of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._rebalance_policy + + @rebalance_policy.setter + def rebalance_policy(self, rebalance_policy): + """ + Sets the rebalance_policy of this SubnetsSubnetPoolsPool. + Rebalance policy.. + + :param rebalance_policy: The rebalance_policy of this SubnetsSubnetPoolsPool. + :type: str + """ + allowed_values = ["auto", "manual"] + if rebalance_policy not in allowed_values: + raise ValueError( + "Invalid value for `rebalance_policy`, must be one of {0}" + .format(allowed_values) + ) + + self._rebalance_policy = rebalance_policy + + @property + def rules(self): + """ + Gets the rules of this SubnetsSubnetPoolsPool. + Names of the rules in this pool. + + :return: The rules of this SubnetsSubnetPoolsPool. + :rtype: list[str] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """ + Sets the rules of this SubnetsSubnetPoolsPool. + Names of the rules in this pool. + + :param rules: The rules of this SubnetsSubnetPoolsPool. + :type: list[str] + """ + + self._rules = rules + + @property + def sc_auto_unsuspend_delay(self): + """ + Gets the sc_auto_unsuspend_delay of this SubnetsSubnetPoolsPool. + Time delay in seconds before a node which has been automatically unsuspended becomes usable in SmartConnect responses for pool zones. + + :return: The sc_auto_unsuspend_delay of this SubnetsSubnetPoolsPool. + :rtype: int + """ + return self._sc_auto_unsuspend_delay + + @sc_auto_unsuspend_delay.setter + def sc_auto_unsuspend_delay(self, sc_auto_unsuspend_delay): + """ + Sets the sc_auto_unsuspend_delay of this SubnetsSubnetPoolsPool. + Time delay in seconds before a node which has been automatically unsuspended becomes usable in SmartConnect responses for pool zones. + + :param sc_auto_unsuspend_delay: The sc_auto_unsuspend_delay of this SubnetsSubnetPoolsPool. + :type: int + """ + + if not sc_auto_unsuspend_delay: + raise ValueError("Invalid value for `sc_auto_unsuspend_delay`, must not be `None`") + if sc_auto_unsuspend_delay > 86400.0: + raise ValueError("Invalid value for `sc_auto_unsuspend_delay`, must be a value less than or equal to `86400.0`") + if sc_auto_unsuspend_delay < 0.0: + raise ValueError("Invalid value for `sc_auto_unsuspend_delay`, must be a value greater than or equal to `0.0`") + + self._sc_auto_unsuspend_delay = sc_auto_unsuspend_delay + + @property + def sc_connect_policy(self): + """ + Gets the sc_connect_policy of this SubnetsSubnetPoolsPool. + SmartConnect client connection balancing policy. + + :return: The sc_connect_policy of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._sc_connect_policy + + @sc_connect_policy.setter + def sc_connect_policy(self, sc_connect_policy): + """ + Sets the sc_connect_policy of this SubnetsSubnetPoolsPool. + SmartConnect client connection balancing policy. + + :param sc_connect_policy: The sc_connect_policy of this SubnetsSubnetPoolsPool. + :type: str + """ + allowed_values = ["round_robin", "conn_count", "throughput", "cpu_usage"] + if sc_connect_policy not in allowed_values: + raise ValueError( + "Invalid value for `sc_connect_policy`, must be one of {0}" + .format(allowed_values) + ) + + self._sc_connect_policy = sc_connect_policy + + @property + def sc_dns_zone(self): + """ + Gets the sc_dns_zone of this SubnetsSubnetPoolsPool. + SmartConnect zone name for the pool. + + :return: The sc_dns_zone of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._sc_dns_zone + + @sc_dns_zone.setter + def sc_dns_zone(self, sc_dns_zone): + """ + Sets the sc_dns_zone of this SubnetsSubnetPoolsPool. + SmartConnect zone name for the pool. + + :param sc_dns_zone: The sc_dns_zone of this SubnetsSubnetPoolsPool. + :type: str + """ + + self._sc_dns_zone = sc_dns_zone + + @property + def sc_dns_zone_aliases(self): + """ + Gets the sc_dns_zone_aliases of this SubnetsSubnetPoolsPool. + List of SmartConnect zone aliases (DNS names) to the pool. + + :return: The sc_dns_zone_aliases of this SubnetsSubnetPoolsPool. + :rtype: list[str] + """ + return self._sc_dns_zone_aliases + + @sc_dns_zone_aliases.setter + def sc_dns_zone_aliases(self, sc_dns_zone_aliases): + """ + Sets the sc_dns_zone_aliases of this SubnetsSubnetPoolsPool. + List of SmartConnect zone aliases (DNS names) to the pool. + + :param sc_dns_zone_aliases: The sc_dns_zone_aliases of this SubnetsSubnetPoolsPool. + :type: list[str] + """ + + self._sc_dns_zone_aliases = sc_dns_zone_aliases + + @property + def sc_failover_policy(self): + """ + Gets the sc_failover_policy of this SubnetsSubnetPoolsPool. + SmartConnect IP failover policy. + + :return: The sc_failover_policy of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._sc_failover_policy + + @sc_failover_policy.setter + def sc_failover_policy(self, sc_failover_policy): + """ + Sets the sc_failover_policy of this SubnetsSubnetPoolsPool. + SmartConnect IP failover policy. + + :param sc_failover_policy: The sc_failover_policy of this SubnetsSubnetPoolsPool. + :type: str + """ + allowed_values = ["round_robin", "conn_count", "throughput", "cpu_usage"] + if sc_failover_policy not in allowed_values: + raise ValueError( + "Invalid value for `sc_failover_policy`, must be one of {0}" + .format(allowed_values) + ) + + self._sc_failover_policy = sc_failover_policy + + @property + def sc_subnet(self): + """ + Gets the sc_subnet of this SubnetsSubnetPoolsPool. + Name of SmartConnect service subnet for this pool. + + :return: The sc_subnet of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._sc_subnet + + @sc_subnet.setter + def sc_subnet(self, sc_subnet): + """ + Sets the sc_subnet of this SubnetsSubnetPoolsPool. + Name of SmartConnect service subnet for this pool. + + :param sc_subnet: The sc_subnet of this SubnetsSubnetPoolsPool. + :type: str + """ + + self._sc_subnet = sc_subnet + + @property + def sc_suspended_nodes(self): + """ + Gets the sc_suspended_nodes of this SubnetsSubnetPoolsPool. + List of LNNs showing currently suspended nodes in SmartConnect. + + :return: The sc_suspended_nodes of this SubnetsSubnetPoolsPool. + :rtype: list[int] + """ + return self._sc_suspended_nodes + + @sc_suspended_nodes.setter + def sc_suspended_nodes(self, sc_suspended_nodes): + """ + Sets the sc_suspended_nodes of this SubnetsSubnetPoolsPool. + List of LNNs showing currently suspended nodes in SmartConnect. + + :param sc_suspended_nodes: The sc_suspended_nodes of this SubnetsSubnetPoolsPool. + :type: list[int] + """ + + self._sc_suspended_nodes = sc_suspended_nodes + + @property + def sc_ttl(self): + """ + Gets the sc_ttl of this SubnetsSubnetPoolsPool. + Time to live value for SmartConnect DNS query responses in seconds. + + :return: The sc_ttl of this SubnetsSubnetPoolsPool. + :rtype: int + """ + return self._sc_ttl + + @sc_ttl.setter + def sc_ttl(self, sc_ttl): + """ + Sets the sc_ttl of this SubnetsSubnetPoolsPool. + Time to live value for SmartConnect DNS query responses in seconds. + + :param sc_ttl: The sc_ttl of this SubnetsSubnetPoolsPool. + :type: int + """ + + if not sc_ttl: + raise ValueError("Invalid value for `sc_ttl`, must not be `None`") + if sc_ttl > 2.147483647E9: + raise ValueError("Invalid value for `sc_ttl`, must be a value less than or equal to `2.147483647E9`") + if sc_ttl < 0.0: + raise ValueError("Invalid value for `sc_ttl`, must be a value greater than or equal to `0.0`") + + self._sc_ttl = sc_ttl + + @property + def static_routes(self): + """ + Gets the static_routes of this SubnetsSubnetPoolsPool. + List of interface members in this pool. + + :return: The static_routes of this SubnetsSubnetPoolsPool. + :rtype: list[SubnetsSubnetPoolStaticRoute] + """ + return self._static_routes + + @static_routes.setter + def static_routes(self, static_routes): + """ + Sets the static_routes of this SubnetsSubnetPoolsPool. + List of interface members in this pool. + + :param static_routes: The static_routes of this SubnetsSubnetPoolsPool. + :type: list[SubnetsSubnetPoolStaticRoute] + """ + + self._static_routes = static_routes + + @property + def subnet(self): + """ + Gets the subnet of this SubnetsSubnetPoolsPool. + The name of the subnet. + + :return: The subnet of this SubnetsSubnetPoolsPool. + :rtype: str + """ + return self._subnet + + @subnet.setter + def subnet(self, subnet): + """ + Sets the subnet of this SubnetsSubnetPoolsPool. + The name of the subnet. + + :param subnet: The subnet of this SubnetsSubnetPoolsPool. + :type: str + """ + + self._subnet = subnet + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/summary_client.py b/isi_sdk/models/summary_client.py index 63ef5af7d..f18c42317 100644 --- a/isi_sdk/models/summary_client.py +++ b/isi_sdk/models/summary_client.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummaryClient(object): @@ -66,6 +67,7 @@ def client(self, client): :param client: The client of this SummaryClient. :type: list[SummaryClientClientItem] """ + self._client = client def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_client_client_item.py b/isi_sdk/models/summary_client_client_item.py index d2115bb83..8590e38dc 100644 --- a/isi_sdk/models/summary_client_client_item.py +++ b/isi_sdk/models/summary_client_client_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummaryClientClientItem(object): @@ -58,7 +59,7 @@ def __init__(self): 'time_avg': 'float', 'time_max': 'float', 'time_min': 'float', - 'user': 'GroupsGroupMember' + 'user': 'GroupMember' } self.attribute_map = { @@ -129,6 +130,7 @@ def _class(self, _class): :param _class: The _class of this SummaryClientClientItem. :type: str """ + self.__class = _class @property @@ -151,6 +153,7 @@ def _in(self, _in): :param _in: The _in of this SummaryClientClientItem. :type: float """ + self.__in = _in @property @@ -173,6 +176,7 @@ def in_avg(self, in_avg): :param in_avg: The in_avg of this SummaryClientClientItem. :type: float """ + self._in_avg = in_avg @property @@ -195,6 +199,7 @@ def in_max(self, in_max): :param in_max: The in_max of this SummaryClientClientItem. :type: float """ + self._in_max = in_max @property @@ -217,6 +222,7 @@ def in_min(self, in_min): :param in_min: The in_min of this SummaryClientClientItem. :type: float """ + self._in_min = in_min @property @@ -239,6 +245,7 @@ def local_addr(self, local_addr): :param local_addr: The local_addr of this SummaryClientClientItem. :type: str """ + self._local_addr = local_addr @property @@ -261,6 +268,7 @@ def local_name(self, local_name): :param local_name: The local_name of this SummaryClientClientItem. :type: str """ + self._local_name = local_name @property @@ -283,6 +291,7 @@ def node(self, node): :param node: The node of this SummaryClientClientItem. :type: int """ + self._node = node @property @@ -305,6 +314,7 @@ def num_operations(self, num_operations): :param num_operations: The num_operations of this SummaryClientClientItem. :type: int """ + self._num_operations = num_operations @property @@ -327,6 +337,7 @@ def operation_rate(self, operation_rate): :param operation_rate: The operation_rate of this SummaryClientClientItem. :type: float """ + self._operation_rate = operation_rate @property @@ -349,6 +360,7 @@ def out(self, out): :param out: The out of this SummaryClientClientItem. :type: float """ + self._out = out @property @@ -371,6 +383,7 @@ def out_avg(self, out_avg): :param out_avg: The out_avg of this SummaryClientClientItem. :type: float """ + self._out_avg = out_avg @property @@ -393,6 +406,7 @@ def out_max(self, out_max): :param out_max: The out_max of this SummaryClientClientItem. :type: float """ + self._out_max = out_max @property @@ -415,6 +429,7 @@ def out_min(self, out_min): :param out_min: The out_min of this SummaryClientClientItem. :type: float """ + self._out_min = out_min @property @@ -437,6 +452,7 @@ def protocol(self, protocol): :param protocol: The protocol of this SummaryClientClientItem. :type: str """ + self._protocol = protocol @property @@ -459,6 +475,7 @@ def remote_addr(self, remote_addr): :param remote_addr: The remote_addr of this SummaryClientClientItem. :type: str """ + self._remote_addr = remote_addr @property @@ -481,6 +498,7 @@ def remote_name(self, remote_name): :param remote_name: The remote_name of this SummaryClientClientItem. :type: str """ + self._remote_name = remote_name @property @@ -503,6 +521,7 @@ def time(self, time): :param time: The time of this SummaryClientClientItem. :type: int """ + self._time = time @property @@ -525,6 +544,7 @@ def time_avg(self, time_avg): :param time_avg: The time_avg of this SummaryClientClientItem. :type: float """ + self._time_avg = time_avg @property @@ -547,6 +567,7 @@ def time_max(self, time_max): :param time_max: The time_max of this SummaryClientClientItem. :type: float """ + self._time_max = time_max @property @@ -569,6 +590,7 @@ def time_min(self, time_min): :param time_min: The time_min of this SummaryClientClientItem. :type: float """ + self._time_min = time_min @property @@ -578,7 +600,7 @@ def user(self): User issuing the operation. :return: The user of this SummaryClientClientItem. - :rtype: GroupsGroupMember + :rtype: GroupMember """ return self._user @@ -589,8 +611,9 @@ def user(self, user): User issuing the operation. :param user: The user of this SummaryClientClientItem. - :type: GroupsGroupMember + :type: GroupMember """ + self._user = user def to_dict(self): @@ -608,6 +631,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -625,14 +654,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_drive.py b/isi_sdk/models/summary_drive.py index 91c6cf85e..4a964dcea 100644 --- a/isi_sdk/models/summary_drive.py +++ b/isi_sdk/models/summary_drive.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummaryDrive(object): @@ -66,6 +67,7 @@ def drive(self, drive): :param drive: The drive of this SummaryDrive. :type: list[SummaryDriveDriveItem] """ + self._drive = drive def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_drive_drive_item.py b/isi_sdk/models/summary_drive_drive_item.py index d3cdf26a7..6354e835d 100644 --- a/isi_sdk/models/summary_drive_drive_item.py +++ b/isi_sdk/models/summary_drive_drive_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummaryDriveDriveItem(object): @@ -111,6 +112,7 @@ def access_latency(self, access_latency): :param access_latency: The access_latency of this SummaryDriveDriveItem. :type: float """ + self._access_latency = access_latency @property @@ -133,6 +135,7 @@ def access_slow(self, access_slow): :param access_slow: The access_slow of this SummaryDriveDriveItem. :type: float """ + self._access_slow = access_slow @property @@ -155,6 +158,7 @@ def busy(self, busy): :param busy: The busy of this SummaryDriveDriveItem. :type: float """ + self._busy = busy @property @@ -177,6 +181,7 @@ def bytes_in(self, bytes_in): :param bytes_in: The bytes_in of this SummaryDriveDriveItem. :type: float """ + self._bytes_in = bytes_in @property @@ -199,6 +204,7 @@ def bytes_out(self, bytes_out): :param bytes_out: The bytes_out of this SummaryDriveDriveItem. :type: float """ + self._bytes_out = bytes_out @property @@ -221,6 +227,7 @@ def drive_id(self, drive_id): :param drive_id: The drive_id of this SummaryDriveDriveItem. :type: str """ + self._drive_id = drive_id @property @@ -243,6 +250,7 @@ def iosched_latency(self, iosched_latency): :param iosched_latency: The iosched_latency of this SummaryDriveDriveItem. :type: float """ + self._iosched_latency = iosched_latency @property @@ -265,6 +273,7 @@ def iosched_queue(self, iosched_queue): :param iosched_queue: The iosched_queue of this SummaryDriveDriveItem. :type: float """ + self._iosched_queue = iosched_queue @property @@ -287,6 +296,7 @@ def time(self, time): :param time: The time of this SummaryDriveDriveItem. :type: int """ + self._time = time @property @@ -309,6 +319,7 @@ def type(self, type): :param type: The type of this SummaryDriveDriveItem. :type: str """ + self._type = type @property @@ -331,6 +342,7 @@ def used_bytes_percent(self, used_bytes_percent): :param used_bytes_percent: The used_bytes_percent of this SummaryDriveDriveItem. :type: float """ + self._used_bytes_percent = used_bytes_percent @property @@ -353,6 +365,7 @@ def used_inodes(self, used_inodes): :param used_inodes: The used_inodes of this SummaryDriveDriveItem. :type: float """ + self._used_inodes = used_inodes @property @@ -375,6 +388,7 @@ def xfer_size_in(self, xfer_size_in): :param xfer_size_in: The xfer_size_in of this SummaryDriveDriveItem. :type: float """ + self._xfer_size_in = xfer_size_in @property @@ -397,6 +411,7 @@ def xfer_size_out(self, xfer_size_out): :param xfer_size_out: The xfer_size_out of this SummaryDriveDriveItem. :type: float """ + self._xfer_size_out = xfer_size_out @property @@ -419,6 +434,7 @@ def xfers_in(self, xfers_in): :param xfers_in: The xfers_in of this SummaryDriveDriveItem. :type: float """ + self._xfers_in = xfers_in @property @@ -441,6 +457,7 @@ def xfers_out(self, xfers_out): :param xfers_out: The xfers_out of this SummaryDriveDriveItem. :type: float """ + self._xfers_out = xfers_out def to_dict(self): @@ -458,6 +475,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -475,14 +498,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_heat.py b/isi_sdk/models/summary_heat.py index c72de2aec..50a95136b 100644 --- a/isi_sdk/models/summary_heat.py +++ b/isi_sdk/models/summary_heat.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummaryHeat(object): @@ -66,6 +67,7 @@ def heat(self, heat): :param heat: The heat of this SummaryHeat. :type: list[SummaryHeatHeatItem] """ + self._heat = heat def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_heat_heat_item.py b/isi_sdk/models/summary_heat_heat_item.py index 961f942c4..1d10d6fb0 100644 --- a/isi_sdk/models/summary_heat_heat_item.py +++ b/isi_sdk/models/summary_heat_heat_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummaryHeatHeatItem(object): @@ -87,6 +88,7 @@ def class_name(self, class_name): :param class_name: The class_name of this SummaryHeatHeatItem. :type: str """ + self._class_name = class_name @property @@ -109,6 +111,7 @@ def event_name(self, event_name): :param event_name: The event_name of this SummaryHeatHeatItem. :type: str """ + self._event_name = event_name @property @@ -131,6 +134,7 @@ def event_type(self, event_type): :param event_type: The event_type of this SummaryHeatHeatItem. :type: int """ + self._event_type = event_type @property @@ -153,6 +157,7 @@ def lin(self, lin): :param lin: The lin of this SummaryHeatHeatItem. :type: str """ + self._lin = lin @property @@ -175,6 +180,7 @@ def node(self, node): :param node: The node of this SummaryHeatHeatItem. :type: int """ + self._node = node @property @@ -197,6 +203,7 @@ def operation_rate(self, operation_rate): :param operation_rate: The operation_rate of this SummaryHeatHeatItem. :type: float """ + self._operation_rate = operation_rate @property @@ -219,6 +226,7 @@ def path(self, path): :param path: The path of this SummaryHeatHeatItem. :type: str """ + self._path = path @property @@ -241,6 +249,7 @@ def time(self, time): :param time: The time of this SummaryHeatHeatItem. :type: int """ + self._time = time def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_protocol.py b/isi_sdk/models/summary_protocol.py index 02dd2543b..e1d1a72cf 100644 --- a/isi_sdk/models/summary_protocol.py +++ b/isi_sdk/models/summary_protocol.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummaryProtocol(object): @@ -66,6 +67,7 @@ def protocol(self, protocol): :param protocol: The protocol of this SummaryProtocol. :type: list[SummaryProtocolProtocolItem] """ + self._protocol = protocol def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_protocol_protocol_item.py b/isi_sdk/models/summary_protocol_protocol_item.py index 262b19f6d..c04b320f7 100644 --- a/isi_sdk/models/summary_protocol_protocol_item.py +++ b/isi_sdk/models/summary_protocol_protocol_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummaryProtocolProtocolItem(object): @@ -126,6 +127,7 @@ def _class(self, _class): :param _class: The _class of this SummaryProtocolProtocolItem. :type: str """ + self.__class = _class @property @@ -148,6 +150,7 @@ def _in(self, _in): :param _in: The _in of this SummaryProtocolProtocolItem. :type: float """ + self.__in = _in @property @@ -170,6 +173,7 @@ def in_avg(self, in_avg): :param in_avg: The in_avg of this SummaryProtocolProtocolItem. :type: float """ + self._in_avg = in_avg @property @@ -192,6 +196,7 @@ def in_max(self, in_max): :param in_max: The in_max of this SummaryProtocolProtocolItem. :type: float """ + self._in_max = in_max @property @@ -214,6 +219,7 @@ def in_min(self, in_min): :param in_min: The in_min of this SummaryProtocolProtocolItem. :type: float """ + self._in_min = in_min @property @@ -236,6 +242,7 @@ def in_standard_dev(self, in_standard_dev): :param in_standard_dev: The in_standard_dev of this SummaryProtocolProtocolItem. :type: float """ + self._in_standard_dev = in_standard_dev @property @@ -258,6 +265,7 @@ def node(self, node): :param node: The node of this SummaryProtocolProtocolItem. :type: int """ + self._node = node @property @@ -280,6 +288,7 @@ def operation(self, operation): :param operation: The operation of this SummaryProtocolProtocolItem. :type: str """ + self._operation = operation @property @@ -302,6 +311,7 @@ def operation_count(self, operation_count): :param operation_count: The operation_count of this SummaryProtocolProtocolItem. :type: int """ + self._operation_count = operation_count @property @@ -324,6 +334,7 @@ def operation_rate(self, operation_rate): :param operation_rate: The operation_rate of this SummaryProtocolProtocolItem. :type: float """ + self._operation_rate = operation_rate @property @@ -346,6 +357,7 @@ def out(self, out): :param out: The out of this SummaryProtocolProtocolItem. :type: float """ + self._out = out @property @@ -368,6 +380,7 @@ def out_avg(self, out_avg): :param out_avg: The out_avg of this SummaryProtocolProtocolItem. :type: float """ + self._out_avg = out_avg @property @@ -390,6 +403,7 @@ def out_max(self, out_max): :param out_max: The out_max of this SummaryProtocolProtocolItem. :type: float """ + self._out_max = out_max @property @@ -412,6 +426,7 @@ def out_min(self, out_min): :param out_min: The out_min of this SummaryProtocolProtocolItem. :type: float """ + self._out_min = out_min @property @@ -434,6 +449,7 @@ def out_standard_dev(self, out_standard_dev): :param out_standard_dev: The out_standard_dev of this SummaryProtocolProtocolItem. :type: float """ + self._out_standard_dev = out_standard_dev @property @@ -456,6 +472,7 @@ def protocol(self, protocol): :param protocol: The protocol of this SummaryProtocolProtocolItem. :type: str """ + self._protocol = protocol @property @@ -478,6 +495,7 @@ def time(self, time): :param time: The time of this SummaryProtocolProtocolItem. :type: int """ + self._time = time @property @@ -500,6 +518,7 @@ def time_avg(self, time_avg): :param time_avg: The time_avg of this SummaryProtocolProtocolItem. :type: float """ + self._time_avg = time_avg @property @@ -522,6 +541,7 @@ def time_max(self, time_max): :param time_max: The time_max of this SummaryProtocolProtocolItem. :type: float """ + self._time_max = time_max @property @@ -544,6 +564,7 @@ def time_min(self, time_min): :param time_min: The time_min of this SummaryProtocolProtocolItem. :type: float """ + self._time_min = time_min @property @@ -566,6 +587,7 @@ def time_standard_dev(self, time_standard_dev): :param time_standard_dev: The time_standard_dev of this SummaryProtocolProtocolItem. :type: float """ + self._time_standard_dev = time_standard_dev def to_dict(self): @@ -583,6 +605,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -600,14 +628,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_system.py b/isi_sdk/models/summary_system.py index 97e726bd9..53f250f95 100644 --- a/isi_sdk/models/summary_system.py +++ b/isi_sdk/models/summary_system.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummarySystem(object): @@ -66,6 +67,7 @@ def system(self, system): :param system: The system of this SummarySystem. :type: list[SummarySystemSystemItem] """ + self._system = system def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/summary_system_system_item.py b/isi_sdk/models/summary_system_system_item.py index 593c2c4be..84128d04d 100644 --- a/isi_sdk/models/summary_system_system_item.py +++ b/isi_sdk/models/summary_system_system_item.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SummarySystemSystemItem(object): @@ -105,6 +106,7 @@ def cpu(self, cpu): :param cpu: The cpu of this SummarySystemSystemItem. :type: float """ + self._cpu = cpu @property @@ -127,6 +129,7 @@ def disk_in(self, disk_in): :param disk_in: The disk_in of this SummarySystemSystemItem. :type: float """ + self._disk_in = disk_in @property @@ -149,6 +152,7 @@ def disk_out(self, disk_out): :param disk_out: The disk_out of this SummarySystemSystemItem. :type: float """ + self._disk_out = disk_out @property @@ -171,6 +175,7 @@ def ftp(self, ftp): :param ftp: The ftp of this SummarySystemSystemItem. :type: float """ + self._ftp = ftp @property @@ -193,6 +198,7 @@ def hdfs(self, hdfs): :param hdfs: The hdfs of this SummarySystemSystemItem. :type: float """ + self._hdfs = hdfs @property @@ -215,6 +221,7 @@ def http(self, http): :param http: The http of this SummarySystemSystemItem. :type: float """ + self._http = http @property @@ -237,6 +244,7 @@ def iscsi(self, iscsi): :param iscsi: The iscsi of this SummarySystemSystemItem. :type: float """ + self._iscsi = iscsi @property @@ -259,6 +267,7 @@ def net_in(self, net_in): :param net_in: The net_in of this SummarySystemSystemItem. :type: float """ + self._net_in = net_in @property @@ -281,6 +290,7 @@ def net_out(self, net_out): :param net_out: The net_out of this SummarySystemSystemItem. :type: float """ + self._net_out = net_out @property @@ -303,6 +313,7 @@ def nfs(self, nfs): :param nfs: The nfs of this SummarySystemSystemItem. :type: float """ + self._nfs = nfs @property @@ -325,6 +336,7 @@ def node(self, node): :param node: The node of this SummarySystemSystemItem. :type: str """ + self._node = node @property @@ -347,6 +359,7 @@ def smb(self, smb): :param smb: The smb of this SummarySystemSystemItem. :type: float """ + self._smb = smb @property @@ -369,6 +382,7 @@ def time(self, time): :param time: The time of this SummarySystemSystemItem. :type: int """ + self._time = time @property @@ -391,6 +405,7 @@ def total(self, total): :param total: The total of this SummarySystemSystemItem. :type: float """ + self._total = total def to_dict(self): @@ -408,6 +423,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -425,14 +446,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/swift_account.py b/isi_sdk/models/swift_account.py index 65efbaea8..dc2eb4ca1 100644 --- a/isi_sdk/models/swift_account.py +++ b/isi_sdk/models/swift_account.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SwiftAccount(object): @@ -81,6 +82,7 @@ def id(self, id): :param id: The id of this SwiftAccount. :type: str """ + self._id = id @property @@ -103,6 +105,7 @@ def name(self, name): :param name: The name of this SwiftAccount. :type: str """ + self._name = name @property @@ -125,6 +128,7 @@ def swiftgroup(self, swiftgroup): :param swiftgroup: The swiftgroup of this SwiftAccount. :type: str """ + self._swiftgroup = swiftgroup @property @@ -147,6 +151,7 @@ def swiftuser(self, swiftuser): :param swiftuser: The swiftuser of this SwiftAccount. :type: str """ + self._swiftuser = swiftuser @property @@ -169,6 +174,7 @@ def users(self, users): :param users: The users of this SwiftAccount. :type: list[str] """ + self._users = users @property @@ -191,6 +197,7 @@ def zone(self, zone): :param zone: The zone of this SwiftAccount. :type: str """ + self._zone = zone def to_dict(self): @@ -208,6 +215,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -225,14 +238,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/swift_account_extended.py b/isi_sdk/models/swift_account_extended.py index cde8957d7..b543eaa4f 100644 --- a/isi_sdk/models/swift_account_extended.py +++ b/isi_sdk/models/swift_account_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SwiftAccountExtended(object): @@ -37,98 +38,55 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'swiftuser': 'str', - 'path': 'str', - 'zone': 'str', - 'name': 'str', 'id': 'str', + 'name': 'str', 'swiftgroup': 'str', - 'users': 'list[str]' + 'swiftuser': 'str', + 'users': 'list[str]', + 'zone': 'str', + 'path': 'str' } self.attribute_map = { - 'swiftuser': 'swiftuser', - 'path': 'path', - 'zone': 'zone', - 'name': 'name', 'id': 'id', + 'name': 'name', 'swiftgroup': 'swiftgroup', - 'users': 'users' + 'swiftuser': 'swiftuser', + 'users': 'users', + 'zone': 'zone', + 'path': 'path' } - self._swiftuser = None - self._path = None - self._zone = None - self._name = None self._id = None + self._name = None self._swiftgroup = None + self._swiftuser = None self._users = None + self._zone = None + self._path = None @property - def swiftuser(self): - """ - Gets the swiftuser of this SwiftAccountExtended. - User with filesystem ownership of this account - - :return: The swiftuser of this SwiftAccountExtended. - :rtype: str - """ - return self._swiftuser - - @swiftuser.setter - def swiftuser(self, swiftuser): - """ - Sets the swiftuser of this SwiftAccountExtended. - User with filesystem ownership of this account - - :param swiftuser: The swiftuser of this SwiftAccountExtended. - :type: str - """ - self._swiftuser = swiftuser - - @property - def path(self): - """ - Gets the path of this SwiftAccountExtended. - Path to root of Swift account - - :return: The path of this SwiftAccountExtended. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """ - Sets the path of this SwiftAccountExtended. - Path to root of Swift account - - :param path: The path of this SwiftAccountExtended. - :type: str - """ - self._path = path - - @property - def zone(self): + def id(self): """ - Gets the zone of this SwiftAccountExtended. - Name of access zone for account + Gets the id of this SwiftAccountExtended. + Unique id of swift account - :return: The zone of this SwiftAccountExtended. + :return: The id of this SwiftAccountExtended. :rtype: str """ - return self._zone + return self._id - @zone.setter - def zone(self, zone): + @id.setter + def id(self, id): """ - Sets the zone of this SwiftAccountExtended. - Name of access zone for account + Sets the id of this SwiftAccountExtended. + Unique id of swift account - :param zone: The zone of this SwiftAccountExtended. + :param id: The id of this SwiftAccountExtended. :type: str """ - self._zone = zone + + self._id = id @property def name(self): @@ -150,30 +108,9 @@ def name(self, name): :param name: The name of this SwiftAccountExtended. :type: str """ + self._name = name - @property - def id(self): - """ - Gets the id of this SwiftAccountExtended. - Unique id of swift account - - :return: The id of this SwiftAccountExtended. - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this SwiftAccountExtended. - Unique id of swift account - - :param id: The id of this SwiftAccountExtended. - :type: str - """ - self._id = id - @property def swiftgroup(self): """ @@ -194,8 +131,32 @@ def swiftgroup(self, swiftgroup): :param swiftgroup: The swiftgroup of this SwiftAccountExtended. :type: str """ + self._swiftgroup = swiftgroup + @property + def swiftuser(self): + """ + Gets the swiftuser of this SwiftAccountExtended. + User with filesystem ownership of this account + + :return: The swiftuser of this SwiftAccountExtended. + :rtype: str + """ + return self._swiftuser + + @swiftuser.setter + def swiftuser(self, swiftuser): + """ + Sets the swiftuser of this SwiftAccountExtended. + User with filesystem ownership of this account + + :param swiftuser: The swiftuser of this SwiftAccountExtended. + :type: str + """ + + self._swiftuser = swiftuser + @property def users(self): """ @@ -216,8 +177,55 @@ def users(self, users): :param users: The users of this SwiftAccountExtended. :type: list[str] """ + self._users = users + @property + def zone(self): + """ + Gets the zone of this SwiftAccountExtended. + Name of access zone for account + + :return: The zone of this SwiftAccountExtended. + :rtype: str + """ + return self._zone + + @zone.setter + def zone(self, zone): + """ + Sets the zone of this SwiftAccountExtended. + Name of access zone for account + + :param zone: The zone of this SwiftAccountExtended. + :type: str + """ + + self._zone = zone + + @property + def path(self): + """ + Gets the path of this SwiftAccountExtended. + Path to root of Swift account + + :return: The path of this SwiftAccountExtended. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this SwiftAccountExtended. + Path to root of Swift account + + :param path: The path of this SwiftAccountExtended. + :type: str + """ + + self._path = path + def to_dict(self): """ Returns the model properties as a dict @@ -233,6 +241,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -250,14 +264,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/swift_accounts.py b/isi_sdk/models/swift_accounts.py index 8603cbb02..0ee86a299 100644 --- a/isi_sdk/models/swift_accounts.py +++ b/isi_sdk/models/swift_accounts.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SwiftAccounts(object): @@ -69,6 +70,7 @@ def accounts(self, accounts): :param accounts: The accounts of this SwiftAccounts. :type: list[SwiftAccountExtended] """ + self._accounts = accounts @property @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this SwiftAccounts. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_job.py b/isi_sdk/models/sync_job.py index e55f1b8fe..7ef41e508 100644 --- a/isi_sdk/models/sync_job.py +++ b/isi_sdk/models/sync_job.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncJob(object): @@ -72,6 +73,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state def to_dict(self): @@ -89,6 +91,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -106,14 +114,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_job_create_params.py b/isi_sdk/models/sync_job_create_params.py index 7563c435c..5b7bd3ab7 100644 --- a/isi_sdk/models/sync_job_create_params.py +++ b/isi_sdk/models/sync_job_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncJobCreateParams(object): @@ -37,58 +38,27 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'log_level': 'str', 'action': 'str', - 'state': 'str', 'id': 'str', + 'log_level': 'str', 'source_snapshot': 'str', 'workers_per_node': 'int' } self.attribute_map = { - 'log_level': 'log_level', 'action': 'action', - 'state': 'state', 'id': 'id', + 'log_level': 'log_level', 'source_snapshot': 'source_snapshot', 'workers_per_node': 'workers_per_node' } - self._log_level = None self._action = None - self._state = None self._id = None + self._log_level = None self._source_snapshot = None self._workers_per_node = None - @property - def log_level(self): - """ - Gets the log_level of this SyncJobCreateParams. - Only valid for allow_write, and allow_write_revert; specify the desired logging level, will be stored in the logs for isi_migrate, defaults to 'info'. - - :return: The log_level of this SyncJobCreateParams. - :rtype: str - """ - return self._log_level - - @log_level.setter - def log_level(self, log_level): - """ - Sets the log_level of this SyncJobCreateParams. - Only valid for allow_write, and allow_write_revert; specify the desired logging level, will be stored in the logs for isi_migrate, defaults to 'info'. - - :param log_level: The log_level of this SyncJobCreateParams. - :type: str - """ - allowed_values = ["fatal", "error", "notice", "info", "copy", "debug", "trace"] - if log_level not in allowed_values: - raise ValueError( - "Invalid value for `log_level`, must be one of {0}" - .format(allowed_values) - ) - self._log_level = log_level - @property def action(self): """ @@ -115,35 +85,8 @@ def action(self, action): "Invalid value for `action`, must be one of {0}" .format(allowed_values) ) - self._action = action - - @property - def state(self): - """ - Gets the state of this SyncJobCreateParams. - The state of the job. - - :return: The state of this SyncJobCreateParams. - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """ - Sets the state of this SyncJobCreateParams. - The state of the job. - :param state: The state of this SyncJobCreateParams. - :type: str - """ - allowed_values = ["canceled", "running", "paused"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state`, must be one of {0}" - .format(allowed_values) - ) - self._state = state + self._action = action @property def id(self): @@ -165,8 +108,38 @@ def id(self, id): :param id: The id of this SyncJobCreateParams. :type: str """ + self._id = id + @property + def log_level(self): + """ + Gets the log_level of this SyncJobCreateParams. + Only valid for allow_write, and allow_write_revert; specify the desired logging level, will be stored in the logs for isi_migrate, defaults to 'info'. + + :return: The log_level of this SyncJobCreateParams. + :rtype: str + """ + return self._log_level + + @log_level.setter + def log_level(self, log_level): + """ + Sets the log_level of this SyncJobCreateParams. + Only valid for allow_write, and allow_write_revert; specify the desired logging level, will be stored in the logs for isi_migrate, defaults to 'info'. + + :param log_level: The log_level of this SyncJobCreateParams. + :type: str + """ + allowed_values = ["fatal", "error", "notice", "info", "copy", "debug", "trace"] + if log_level not in allowed_values: + raise ValueError( + "Invalid value for `log_level`, must be one of {0}" + .format(allowed_values) + ) + + self._log_level = log_level + @property def source_snapshot(self): """ @@ -187,6 +160,7 @@ def source_snapshot(self, source_snapshot): :param source_snapshot: The source_snapshot of this SyncJobCreateParams. :type: str """ + self._source_snapshot = source_snapshot @property @@ -209,6 +183,7 @@ def workers_per_node(self, workers_per_node): :param workers_per_node: The workers_per_node of this SyncJobCreateParams. :type: int """ + self._workers_per_node = workers_per_node def to_dict(self): @@ -226,6 +201,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -243,14 +224,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_job_extended.py b/isi_sdk/models/sync_job_extended.py index 0800eeeed..b03a1d435 100644 --- a/isi_sdk/models/sync_job_extended.py +++ b/isi_sdk/models/sync_job_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncJobExtended(object): @@ -37,1242 +38,1325 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'state': 'str', + 'action': 'str', + 'ads_streams_replicated': 'int', + 'block_specs_replicated': 'int', + 'bytes_recoverable': 'int', 'bytes_transferred': 'int', - 'file_data_bytes': 'int', - 'network_bytes_to_source': 'int', - 'source_bytes_recovered': 'int', - 'target_directories_linked': 'int', - 'running_chunks': 'int', + 'char_specs_replicated': 'int', + 'corrected_lins': 'int', + 'dead_node': 'bool', + 'directories_replicated': 'int', + 'dirs_changed': 'int', + 'dirs_deleted': 'int', + 'dirs_moved': 'int', 'dirs_new': 'int', - 'target_bytes_recovered': 'int', - 'files_with_ads_replicated': 'int', + 'duration': 'int', + 'end_time': 'int', + 'error': 'str', + 'error_checksum_files_skipped': 'int', 'error_io_files_skipped': 'int', - 'target_directories_created': 'int', - 'target_snapshots': 'list[str]', + 'error_net_files_skipped': 'int', + 'errors': 'list[str]', + 'failed_chunks': 'int', + 'fifos_replicated': 'int', + 'file_data_bytes': 'int', + 'files_changed': 'int', 'files_linked': 'int', - 'corrected_lins': 'int', - 'target_directories_deleted': 'int', - 'ads_streams_replicated': 'int', - 'target_files_deleted': 'int', - 'action': 'str', - 'state': 'str', - 'block_specs_replicated': 'int', - 'id': 'str', - 'policy_action': 'str', - 'dead_node': 'bool', - 'network_bytes_to_target': 'int', - 'num_retransmitted_files': 'int', + 'files_new': 'int', + 'files_selected': 'int', + 'files_transferred': 'int', + 'files_unlinked': 'int', + 'files_with_ads_replicated': 'int', 'flipped_lins': 'int', - 'target_files_linked': 'int', - 'sync_type': 'str', + 'hard_links_replicated': 'int', + 'hash_exceptions_fixed': 'int', + 'hash_exceptions_found': 'int', + 'id': 'str', + 'job_id': 'int', 'lins_total': 'int', - 'source_directories_unlinked': 'int', - 'target_files_unlinked': 'int', - 'total_chunks': 'int', - 'unchanged_data_bytes': 'int', + 'network_bytes_to_source': 'int', + 'network_bytes_to_target': 'int', 'new_files_replicated': 'int', - 'source_directories_visited': 'int', - 'hard_links_replicated': 'int', - 'start_time': 'int', - 'files_changed': 'int', - 'total_data_bytes': 'int', - 'errors': 'list[str]', - 'succeeded_chunks': 'int', - 'files_new': 'int', - 'dirs_changed': 'int', + 'num_retransmitted_files': 'int', + 'phases': 'list[ReportSubreportPhase]', + 'policy': 'ReportSubreportPolicy', + 'policy_action': 'str', 'policy_id': 'str', - 'source_files_deleted': 'int', - 'updated_files_replicated': 'int', - 'error': 'str', - 'error_net_files_skipped': 'int', - 'source_directories_linked': 'int', - 'source_files_linked': 'int', - 'duration': 'int', + 'policy_name': 'str', + 'regular_files_replicated': 'int', 'resynced_lins': 'int', - 'files_selected': 'int', - 'char_specs_replicated': 'int', - 'source_directories_deleted': 'int', - 'symlinks_replicated': 'int', - 'up_to_date_files_skipped': 'int', - 'user_conflict_files_skipped': 'int', - 'directories_replicated': 'int', 'retransmitted_files': 'list[str]', - 'workers': 'list[SyncJobWorker]', - 'files_transferred': 'int', - 'phases': 'list[ReportsRidSubreportsSubreportPhase]', 'retry': 'int', - 'policy': 'ReportsRidSubreportsSubreportPolicy', - 'sparse_data_bytes': 'int', - 'total_phases': 'int', - 'hash_exceptions_fixed': 'int', + 'running_chunks': 'int', 'sockets_replicated': 'int', - 'total_files': 'int', - 'regular_files_replicated': 'int', - 'warnings': 'list[str]', - 'end_time': 'int', - 'policy_name': 'str', + 'source_bytes_recovered': 'int', 'source_directories_created': 'int', - 'fifos_replicated': 'int', - 'bytes_recoverable': 'int', - 'files_unlinked': 'int', - 'hash_exceptions_found': 'int', + 'source_directories_deleted': 'int', + 'source_directories_linked': 'int', + 'source_directories_unlinked': 'int', + 'source_directories_visited': 'int', + 'source_files_deleted': 'int', + 'source_files_linked': 'int', 'source_files_unlinked': 'int', - 'job_id': 'int', - 'error_checksum_files_skipped': 'int', - 'failed_chunks': 'int', - 'dirs_deleted': 'int', + 'sparse_data_bytes': 'int', + 'start_time': 'int', + 'succeeded_chunks': 'int', + 'symlinks_replicated': 'int', + 'sync_type': 'str', + 'target_bytes_recovered': 'int', + 'target_directories_created': 'int', + 'target_directories_deleted': 'int', + 'target_directories_linked': 'int', 'target_directories_unlinked': 'int', - 'dirs_moved': 'int', - 'total_network_bytes': 'int' + 'target_files_deleted': 'int', + 'target_files_linked': 'int', + 'target_files_unlinked': 'int', + 'target_snapshots': 'list[str]', + 'total_chunks': 'int', + 'total_data_bytes': 'int', + 'total_files': 'int', + 'total_network_bytes': 'int', + 'total_phases': 'int', + 'unchanged_data_bytes': 'int', + 'up_to_date_files_skipped': 'int', + 'updated_files_replicated': 'int', + 'user_conflict_files_skipped': 'int', + 'warnings': 'list[str]', + 'workers': 'list[SyncJobWorker]' } self.attribute_map = { + 'state': 'state', + 'action': 'action', + 'ads_streams_replicated': 'ads_streams_replicated', + 'block_specs_replicated': 'block_specs_replicated', + 'bytes_recoverable': 'bytes_recoverable', 'bytes_transferred': 'bytes_transferred', - 'file_data_bytes': 'file_data_bytes', - 'network_bytes_to_source': 'network_bytes_to_source', - 'source_bytes_recovered': 'source_bytes_recovered', - 'target_directories_linked': 'target_directories_linked', - 'running_chunks': 'running_chunks', + 'char_specs_replicated': 'char_specs_replicated', + 'corrected_lins': 'corrected_lins', + 'dead_node': 'dead_node', + 'directories_replicated': 'directories_replicated', + 'dirs_changed': 'dirs_changed', + 'dirs_deleted': 'dirs_deleted', + 'dirs_moved': 'dirs_moved', 'dirs_new': 'dirs_new', - 'target_bytes_recovered': 'target_bytes_recovered', - 'files_with_ads_replicated': 'files_with_ads_replicated', + 'duration': 'duration', + 'end_time': 'end_time', + 'error': 'error', + 'error_checksum_files_skipped': 'error_checksum_files_skipped', 'error_io_files_skipped': 'error_io_files_skipped', - 'target_directories_created': 'target_directories_created', - 'target_snapshots': 'target_snapshots', + 'error_net_files_skipped': 'error_net_files_skipped', + 'errors': 'errors', + 'failed_chunks': 'failed_chunks', + 'fifos_replicated': 'fifos_replicated', + 'file_data_bytes': 'file_data_bytes', + 'files_changed': 'files_changed', 'files_linked': 'files_linked', - 'corrected_lins': 'corrected_lins', - 'target_directories_deleted': 'target_directories_deleted', - 'ads_streams_replicated': 'ads_streams_replicated', - 'target_files_deleted': 'target_files_deleted', - 'action': 'action', - 'state': 'state', - 'block_specs_replicated': 'block_specs_replicated', - 'id': 'id', - 'policy_action': 'policy_action', - 'dead_node': 'dead_node', - 'network_bytes_to_target': 'network_bytes_to_target', - 'num_retransmitted_files': 'num_retransmitted_files', + 'files_new': 'files_new', + 'files_selected': 'files_selected', + 'files_transferred': 'files_transferred', + 'files_unlinked': 'files_unlinked', + 'files_with_ads_replicated': 'files_with_ads_replicated', 'flipped_lins': 'flipped_lins', - 'target_files_linked': 'target_files_linked', - 'sync_type': 'sync_type', + 'hard_links_replicated': 'hard_links_replicated', + 'hash_exceptions_fixed': 'hash_exceptions_fixed', + 'hash_exceptions_found': 'hash_exceptions_found', + 'id': 'id', + 'job_id': 'job_id', 'lins_total': 'lins_total', - 'source_directories_unlinked': 'source_directories_unlinked', - 'target_files_unlinked': 'target_files_unlinked', - 'total_chunks': 'total_chunks', - 'unchanged_data_bytes': 'unchanged_data_bytes', + 'network_bytes_to_source': 'network_bytes_to_source', + 'network_bytes_to_target': 'network_bytes_to_target', 'new_files_replicated': 'new_files_replicated', - 'source_directories_visited': 'source_directories_visited', - 'hard_links_replicated': 'hard_links_replicated', - 'start_time': 'start_time', - 'files_changed': 'files_changed', - 'total_data_bytes': 'total_data_bytes', - 'errors': 'errors', - 'succeeded_chunks': 'succeeded_chunks', - 'files_new': 'files_new', - 'dirs_changed': 'dirs_changed', + 'num_retransmitted_files': 'num_retransmitted_files', + 'phases': 'phases', + 'policy': 'policy', + 'policy_action': 'policy_action', 'policy_id': 'policy_id', - 'source_files_deleted': 'source_files_deleted', - 'updated_files_replicated': 'updated_files_replicated', - 'error': 'error', - 'error_net_files_skipped': 'error_net_files_skipped', - 'source_directories_linked': 'source_directories_linked', - 'source_files_linked': 'source_files_linked', - 'duration': 'duration', + 'policy_name': 'policy_name', + 'regular_files_replicated': 'regular_files_replicated', 'resynced_lins': 'resynced_lins', - 'files_selected': 'files_selected', - 'char_specs_replicated': 'char_specs_replicated', - 'source_directories_deleted': 'source_directories_deleted', - 'symlinks_replicated': 'symlinks_replicated', - 'up_to_date_files_skipped': 'up_to_date_files_skipped', - 'user_conflict_files_skipped': 'user_conflict_files_skipped', - 'directories_replicated': 'directories_replicated', 'retransmitted_files': 'retransmitted_files', - 'workers': 'workers', - 'files_transferred': 'files_transferred', - 'phases': 'phases', 'retry': 'retry', - 'policy': 'policy', - 'sparse_data_bytes': 'sparse_data_bytes', - 'total_phases': 'total_phases', - 'hash_exceptions_fixed': 'hash_exceptions_fixed', + 'running_chunks': 'running_chunks', 'sockets_replicated': 'sockets_replicated', - 'total_files': 'total_files', - 'regular_files_replicated': 'regular_files_replicated', - 'warnings': 'warnings', - 'end_time': 'end_time', - 'policy_name': 'policy_name', + 'source_bytes_recovered': 'source_bytes_recovered', 'source_directories_created': 'source_directories_created', - 'fifos_replicated': 'fifos_replicated', - 'bytes_recoverable': 'bytes_recoverable', - 'files_unlinked': 'files_unlinked', - 'hash_exceptions_found': 'hash_exceptions_found', + 'source_directories_deleted': 'source_directories_deleted', + 'source_directories_linked': 'source_directories_linked', + 'source_directories_unlinked': 'source_directories_unlinked', + 'source_directories_visited': 'source_directories_visited', + 'source_files_deleted': 'source_files_deleted', + 'source_files_linked': 'source_files_linked', 'source_files_unlinked': 'source_files_unlinked', - 'job_id': 'job_id', - 'error_checksum_files_skipped': 'error_checksum_files_skipped', - 'failed_chunks': 'failed_chunks', - 'dirs_deleted': 'dirs_deleted', + 'sparse_data_bytes': 'sparse_data_bytes', + 'start_time': 'start_time', + 'succeeded_chunks': 'succeeded_chunks', + 'symlinks_replicated': 'symlinks_replicated', + 'sync_type': 'sync_type', + 'target_bytes_recovered': 'target_bytes_recovered', + 'target_directories_created': 'target_directories_created', + 'target_directories_deleted': 'target_directories_deleted', + 'target_directories_linked': 'target_directories_linked', 'target_directories_unlinked': 'target_directories_unlinked', - 'dirs_moved': 'dirs_moved', - 'total_network_bytes': 'total_network_bytes' + 'target_files_deleted': 'target_files_deleted', + 'target_files_linked': 'target_files_linked', + 'target_files_unlinked': 'target_files_unlinked', + 'target_snapshots': 'target_snapshots', + 'total_chunks': 'total_chunks', + 'total_data_bytes': 'total_data_bytes', + 'total_files': 'total_files', + 'total_network_bytes': 'total_network_bytes', + 'total_phases': 'total_phases', + 'unchanged_data_bytes': 'unchanged_data_bytes', + 'up_to_date_files_skipped': 'up_to_date_files_skipped', + 'updated_files_replicated': 'updated_files_replicated', + 'user_conflict_files_skipped': 'user_conflict_files_skipped', + 'warnings': 'warnings', + 'workers': 'workers' } + self._state = None + self._action = None + self._ads_streams_replicated = None + self._block_specs_replicated = None + self._bytes_recoverable = None self._bytes_transferred = None - self._file_data_bytes = None - self._network_bytes_to_source = None - self._source_bytes_recovered = None - self._target_directories_linked = None - self._running_chunks = None + self._char_specs_replicated = None + self._corrected_lins = None + self._dead_node = None + self._directories_replicated = None + self._dirs_changed = None + self._dirs_deleted = None + self._dirs_moved = None self._dirs_new = None - self._target_bytes_recovered = None - self._files_with_ads_replicated = None + self._duration = None + self._end_time = None + self._error = None + self._error_checksum_files_skipped = None self._error_io_files_skipped = None - self._target_directories_created = None - self._target_snapshots = None + self._error_net_files_skipped = None + self._errors = None + self._failed_chunks = None + self._fifos_replicated = None + self._file_data_bytes = None + self._files_changed = None self._files_linked = None - self._corrected_lins = None - self._target_directories_deleted = None - self._ads_streams_replicated = None - self._target_files_deleted = None - self._action = None - self._state = None - self._block_specs_replicated = None - self._id = None - self._policy_action = None - self._dead_node = None - self._network_bytes_to_target = None - self._num_retransmitted_files = None + self._files_new = None + self._files_selected = None + self._files_transferred = None + self._files_unlinked = None + self._files_with_ads_replicated = None self._flipped_lins = None - self._target_files_linked = None - self._sync_type = None + self._hard_links_replicated = None + self._hash_exceptions_fixed = None + self._hash_exceptions_found = None + self._id = None + self._job_id = None self._lins_total = None - self._source_directories_unlinked = None - self._target_files_unlinked = None - self._total_chunks = None - self._unchanged_data_bytes = None + self._network_bytes_to_source = None + self._network_bytes_to_target = None self._new_files_replicated = None - self._source_directories_visited = None - self._hard_links_replicated = None - self._start_time = None - self._files_changed = None - self._total_data_bytes = None - self._errors = None - self._succeeded_chunks = None - self._files_new = None - self._dirs_changed = None + self._num_retransmitted_files = None + self._phases = None + self._policy = None + self._policy_action = None self._policy_id = None - self._source_files_deleted = None - self._updated_files_replicated = None - self._error = None - self._error_net_files_skipped = None - self._source_directories_linked = None - self._source_files_linked = None - self._duration = None + self._policy_name = None + self._regular_files_replicated = None self._resynced_lins = None - self._files_selected = None - self._char_specs_replicated = None - self._source_directories_deleted = None - self._symlinks_replicated = None - self._up_to_date_files_skipped = None - self._user_conflict_files_skipped = None - self._directories_replicated = None self._retransmitted_files = None - self._workers = None - self._files_transferred = None - self._phases = None self._retry = None - self._policy = None - self._sparse_data_bytes = None - self._total_phases = None - self._hash_exceptions_fixed = None + self._running_chunks = None self._sockets_replicated = None - self._total_files = None - self._regular_files_replicated = None - self._warnings = None - self._end_time = None - self._policy_name = None + self._source_bytes_recovered = None self._source_directories_created = None - self._fifos_replicated = None - self._bytes_recoverable = None - self._files_unlinked = None - self._hash_exceptions_found = None + self._source_directories_deleted = None + self._source_directories_linked = None + self._source_directories_unlinked = None + self._source_directories_visited = None + self._source_files_deleted = None + self._source_files_linked = None self._source_files_unlinked = None - self._job_id = None - self._error_checksum_files_skipped = None - self._failed_chunks = None - self._dirs_deleted = None + self._sparse_data_bytes = None + self._start_time = None + self._succeeded_chunks = None + self._symlinks_replicated = None + self._sync_type = None + self._target_bytes_recovered = None + self._target_directories_created = None + self._target_directories_deleted = None + self._target_directories_linked = None self._target_directories_unlinked = None - self._dirs_moved = None + self._target_files_deleted = None + self._target_files_linked = None + self._target_files_unlinked = None + self._target_snapshots = None + self._total_chunks = None + self._total_data_bytes = None + self._total_files = None self._total_network_bytes = None + self._total_phases = None + self._unchanged_data_bytes = None + self._up_to_date_files_skipped = None + self._updated_files_replicated = None + self._user_conflict_files_skipped = None + self._warnings = None + self._workers = None + + @property + def state(self): + """ + Gets the state of this SyncJobExtended. + The state of the job. + + :return: The state of this SyncJobExtended. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this SyncJobExtended. + The state of the job. + + :param state: The state of this SyncJobExtended. + :type: str + """ + allowed_values = ["canceled", "running", "paused"] + if state not in allowed_values: + raise ValueError( + "Invalid value for `state`, must be one of {0}" + .format(allowed_values) + ) + + self._state = state @property - def bytes_transferred(self): + def action(self): """ - Gets the bytes_transferred of this SyncJobExtended. - The number of bytes that have been transferred by this job. + Gets the action of this SyncJobExtended. + The action to be taken by this job. - :return: The bytes_transferred of this SyncJobExtended. - :rtype: int + :return: The action of this SyncJobExtended. + :rtype: str """ - return self._bytes_transferred + return self._action - @bytes_transferred.setter - def bytes_transferred(self, bytes_transferred): + @action.setter + def action(self, action): """ - Sets the bytes_transferred of this SyncJobExtended. - The number of bytes that have been transferred by this job. + Sets the action of this SyncJobExtended. + The action to be taken by this job. - :param bytes_transferred: The bytes_transferred of this SyncJobExtended. - :type: int + :param action: The action of this SyncJobExtended. + :type: str """ - self._bytes_transferred = bytes_transferred + allowed_values = ["resync_prep", "allow_write", "allow_write_revert", "test", "run"] + if action not in allowed_values: + raise ValueError( + "Invalid value for `action`, must be one of {0}" + .format(allowed_values) + ) + + self._action = action @property - def file_data_bytes(self): + def ads_streams_replicated(self): """ - Gets the file_data_bytes of this SyncJobExtended. - The number of bytes transferred that belong to files. + Gets the ads_streams_replicated of this SyncJobExtended. + The number of ads streams replicated by this job. - :return: The file_data_bytes of this SyncJobExtended. + :return: The ads_streams_replicated of this SyncJobExtended. :rtype: int """ - return self._file_data_bytes + return self._ads_streams_replicated - @file_data_bytes.setter - def file_data_bytes(self, file_data_bytes): + @ads_streams_replicated.setter + def ads_streams_replicated(self, ads_streams_replicated): """ - Sets the file_data_bytes of this SyncJobExtended. - The number of bytes transferred that belong to files. + Sets the ads_streams_replicated of this SyncJobExtended. + The number of ads streams replicated by this job. - :param file_data_bytes: The file_data_bytes of this SyncJobExtended. + :param ads_streams_replicated: The ads_streams_replicated of this SyncJobExtended. :type: int """ - self._file_data_bytes = file_data_bytes + + self._ads_streams_replicated = ads_streams_replicated @property - def network_bytes_to_source(self): + def block_specs_replicated(self): """ - Gets the network_bytes_to_source of this SyncJobExtended. - The total number of bytes sent to the source by this job. + Gets the block_specs_replicated of this SyncJobExtended. + The number of block specs replicated by this job. - :return: The network_bytes_to_source of this SyncJobExtended. + :return: The block_specs_replicated of this SyncJobExtended. :rtype: int """ - return self._network_bytes_to_source + return self._block_specs_replicated - @network_bytes_to_source.setter - def network_bytes_to_source(self, network_bytes_to_source): + @block_specs_replicated.setter + def block_specs_replicated(self, block_specs_replicated): """ - Sets the network_bytes_to_source of this SyncJobExtended. - The total number of bytes sent to the source by this job. + Sets the block_specs_replicated of this SyncJobExtended. + The number of block specs replicated by this job. - :param network_bytes_to_source: The network_bytes_to_source of this SyncJobExtended. + :param block_specs_replicated: The block_specs_replicated of this SyncJobExtended. :type: int """ - self._network_bytes_to_source = network_bytes_to_source + + self._block_specs_replicated = block_specs_replicated @property - def source_bytes_recovered(self): + def bytes_recoverable(self): """ - Gets the source_bytes_recovered of this SyncJobExtended. - The number of bytes recovered on the source. + Gets the bytes_recoverable of this SyncJobExtended. + The number of bytes recoverable by this job. - :return: The source_bytes_recovered of this SyncJobExtended. + :return: The bytes_recoverable of this SyncJobExtended. :rtype: int """ - return self._source_bytes_recovered + return self._bytes_recoverable - @source_bytes_recovered.setter - def source_bytes_recovered(self, source_bytes_recovered): + @bytes_recoverable.setter + def bytes_recoverable(self, bytes_recoverable): """ - Sets the source_bytes_recovered of this SyncJobExtended. - The number of bytes recovered on the source. + Sets the bytes_recoverable of this SyncJobExtended. + The number of bytes recoverable by this job. - :param source_bytes_recovered: The source_bytes_recovered of this SyncJobExtended. + :param bytes_recoverable: The bytes_recoverable of this SyncJobExtended. :type: int """ - self._source_bytes_recovered = source_bytes_recovered + + self._bytes_recoverable = bytes_recoverable @property - def target_directories_linked(self): + def bytes_transferred(self): """ - Gets the target_directories_linked of this SyncJobExtended. - The number of directories linked on the target. + Gets the bytes_transferred of this SyncJobExtended. + The number of bytes that have been transferred by this job. - :return: The target_directories_linked of this SyncJobExtended. + :return: The bytes_transferred of this SyncJobExtended. :rtype: int """ - return self._target_directories_linked + return self._bytes_transferred - @target_directories_linked.setter - def target_directories_linked(self, target_directories_linked): + @bytes_transferred.setter + def bytes_transferred(self, bytes_transferred): """ - Sets the target_directories_linked of this SyncJobExtended. - The number of directories linked on the target. + Sets the bytes_transferred of this SyncJobExtended. + The number of bytes that have been transferred by this job. - :param target_directories_linked: The target_directories_linked of this SyncJobExtended. + :param bytes_transferred: The bytes_transferred of this SyncJobExtended. :type: int """ - self._target_directories_linked = target_directories_linked + + self._bytes_transferred = bytes_transferred @property - def running_chunks(self): + def char_specs_replicated(self): """ - Gets the running_chunks of this SyncJobExtended. - The number of data chunks currently being transmitted. + Gets the char_specs_replicated of this SyncJobExtended. + The number of char specs replicated by this job. - :return: The running_chunks of this SyncJobExtended. + :return: The char_specs_replicated of this SyncJobExtended. :rtype: int """ - return self._running_chunks + return self._char_specs_replicated - @running_chunks.setter - def running_chunks(self, running_chunks): + @char_specs_replicated.setter + def char_specs_replicated(self, char_specs_replicated): """ - Sets the running_chunks of this SyncJobExtended. - The number of data chunks currently being transmitted. + Sets the char_specs_replicated of this SyncJobExtended. + The number of char specs replicated by this job. - :param running_chunks: The running_chunks of this SyncJobExtended. + :param char_specs_replicated: The char_specs_replicated of this SyncJobExtended. :type: int """ - self._running_chunks = running_chunks + + self._char_specs_replicated = char_specs_replicated @property - def dirs_new(self): + def corrected_lins(self): """ - Gets the dirs_new of this SyncJobExtended. - The number of directories created by this job. + Gets the corrected_lins of this SyncJobExtended. + The number of LINs corrected by this job. - :return: The dirs_new of this SyncJobExtended. + :return: The corrected_lins of this SyncJobExtended. :rtype: int """ - return self._dirs_new + return self._corrected_lins - @dirs_new.setter - def dirs_new(self, dirs_new): + @corrected_lins.setter + def corrected_lins(self, corrected_lins): """ - Sets the dirs_new of this SyncJobExtended. - The number of directories created by this job. + Sets the corrected_lins of this SyncJobExtended. + The number of LINs corrected by this job. - :param dirs_new: The dirs_new of this SyncJobExtended. + :param corrected_lins: The corrected_lins of this SyncJobExtended. :type: int """ - self._dirs_new = dirs_new + + self._corrected_lins = corrected_lins @property - def target_bytes_recovered(self): + def dead_node(self): """ - Gets the target_bytes_recovered of this SyncJobExtended. - The number of bytes recovered on the target. + Gets the dead_node of this SyncJobExtended. + This field is true if the node running this job is dead. - :return: The target_bytes_recovered of this SyncJobExtended. + :return: The dead_node of this SyncJobExtended. + :rtype: bool + """ + return self._dead_node + + @dead_node.setter + def dead_node(self, dead_node): + """ + Sets the dead_node of this SyncJobExtended. + This field is true if the node running this job is dead. + + :param dead_node: The dead_node of this SyncJobExtended. + :type: bool + """ + + self._dead_node = dead_node + + @property + def directories_replicated(self): + """ + Gets the directories_replicated of this SyncJobExtended. + The number of directories replicated. + + :return: The directories_replicated of this SyncJobExtended. :rtype: int """ - return self._target_bytes_recovered + return self._directories_replicated - @target_bytes_recovered.setter - def target_bytes_recovered(self, target_bytes_recovered): + @directories_replicated.setter + def directories_replicated(self, directories_replicated): """ - Sets the target_bytes_recovered of this SyncJobExtended. - The number of bytes recovered on the target. + Sets the directories_replicated of this SyncJobExtended. + The number of directories replicated. - :param target_bytes_recovered: The target_bytes_recovered of this SyncJobExtended. + :param directories_replicated: The directories_replicated of this SyncJobExtended. :type: int """ - self._target_bytes_recovered = target_bytes_recovered + + self._directories_replicated = directories_replicated @property - def files_with_ads_replicated(self): + def dirs_changed(self): """ - Gets the files_with_ads_replicated of this SyncJobExtended. - The number of files with ads replicated by this job. + Gets the dirs_changed of this SyncJobExtended. + The number of directories changed by this job. - :return: The files_with_ads_replicated of this SyncJobExtended. + :return: The dirs_changed of this SyncJobExtended. :rtype: int """ - return self._files_with_ads_replicated + return self._dirs_changed - @files_with_ads_replicated.setter - def files_with_ads_replicated(self, files_with_ads_replicated): + @dirs_changed.setter + def dirs_changed(self, dirs_changed): """ - Sets the files_with_ads_replicated of this SyncJobExtended. - The number of files with ads replicated by this job. + Sets the dirs_changed of this SyncJobExtended. + The number of directories changed by this job. - :param files_with_ads_replicated: The files_with_ads_replicated of this SyncJobExtended. + :param dirs_changed: The dirs_changed of this SyncJobExtended. :type: int """ - self._files_with_ads_replicated = files_with_ads_replicated + + self._dirs_changed = dirs_changed @property - def error_io_files_skipped(self): + def dirs_deleted(self): """ - Gets the error_io_files_skipped of this SyncJobExtended. - The number of files with io errors skipped by this job. + Gets the dirs_deleted of this SyncJobExtended. + The number of directories deleted by this job. - :return: The error_io_files_skipped of this SyncJobExtended. + :return: The dirs_deleted of this SyncJobExtended. :rtype: int """ - return self._error_io_files_skipped + return self._dirs_deleted - @error_io_files_skipped.setter - def error_io_files_skipped(self, error_io_files_skipped): + @dirs_deleted.setter + def dirs_deleted(self, dirs_deleted): """ - Sets the error_io_files_skipped of this SyncJobExtended. - The number of files with io errors skipped by this job. + Sets the dirs_deleted of this SyncJobExtended. + The number of directories deleted by this job. - :param error_io_files_skipped: The error_io_files_skipped of this SyncJobExtended. + :param dirs_deleted: The dirs_deleted of this SyncJobExtended. :type: int """ - self._error_io_files_skipped = error_io_files_skipped + + self._dirs_deleted = dirs_deleted @property - def target_directories_created(self): + def dirs_moved(self): """ - Gets the target_directories_created of this SyncJobExtended. - The number of directories created on the target. + Gets the dirs_moved of this SyncJobExtended. + The number of directories moved by this job. - :return: The target_directories_created of this SyncJobExtended. + :return: The dirs_moved of this SyncJobExtended. :rtype: int """ - return self._target_directories_created + return self._dirs_moved - @target_directories_created.setter - def target_directories_created(self, target_directories_created): + @dirs_moved.setter + def dirs_moved(self, dirs_moved): """ - Sets the target_directories_created of this SyncJobExtended. - The number of directories created on the target. + Sets the dirs_moved of this SyncJobExtended. + The number of directories moved by this job. - :param target_directories_created: The target_directories_created of this SyncJobExtended. + :param dirs_moved: The dirs_moved of this SyncJobExtended. :type: int """ - self._target_directories_created = target_directories_created + + self._dirs_moved = dirs_moved @property - def target_snapshots(self): + def dirs_new(self): """ - Gets the target_snapshots of this SyncJobExtended. - The target snapshots created by this job. + Gets the dirs_new of this SyncJobExtended. + The number of directories created by this job. - :return: The target_snapshots of this SyncJobExtended. - :rtype: list[str] + :return: The dirs_new of this SyncJobExtended. + :rtype: int """ - return self._target_snapshots + return self._dirs_new - @target_snapshots.setter - def target_snapshots(self, target_snapshots): + @dirs_new.setter + def dirs_new(self, dirs_new): """ - Sets the target_snapshots of this SyncJobExtended. - The target snapshots created by this job. + Sets the dirs_new of this SyncJobExtended. + The number of directories created by this job. - :param target_snapshots: The target_snapshots of this SyncJobExtended. - :type: list[str] + :param dirs_new: The dirs_new of this SyncJobExtended. + :type: int """ - self._target_snapshots = target_snapshots + + self._dirs_new = dirs_new @property - def files_linked(self): + def duration(self): """ - Gets the files_linked of this SyncJobExtended. - The number of files linked by this job. + Gets the duration of this SyncJobExtended. + The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. - :return: The files_linked of this SyncJobExtended. + :return: The duration of this SyncJobExtended. :rtype: int """ - return self._files_linked + return self._duration - @files_linked.setter - def files_linked(self, files_linked): + @duration.setter + def duration(self, duration): """ - Sets the files_linked of this SyncJobExtended. - The number of files linked by this job. + Sets the duration of this SyncJobExtended. + The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. - :param files_linked: The files_linked of this SyncJobExtended. + :param duration: The duration of this SyncJobExtended. :type: int """ - self._files_linked = files_linked + + self._duration = duration @property - def corrected_lins(self): + def end_time(self): """ - Gets the corrected_lins of this SyncJobExtended. - The number of LINs corrected by this job. + Gets the end_time of this SyncJobExtended. + The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. - :return: The corrected_lins of this SyncJobExtended. + :return: The end_time of this SyncJobExtended. :rtype: int """ - return self._corrected_lins + return self._end_time - @corrected_lins.setter - def corrected_lins(self, corrected_lins): + @end_time.setter + def end_time(self, end_time): """ - Sets the corrected_lins of this SyncJobExtended. - The number of LINs corrected by this job. + Sets the end_time of this SyncJobExtended. + The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. - :param corrected_lins: The corrected_lins of this SyncJobExtended. + :param end_time: The end_time of this SyncJobExtended. :type: int """ - self._corrected_lins = corrected_lins + + self._end_time = end_time @property - def target_directories_deleted(self): + def error(self): """ - Gets the target_directories_deleted of this SyncJobExtended. - The number of directories deleted on the target. + Gets the error of this SyncJobExtended. + The primary error message for this job. - :return: The target_directories_deleted of this SyncJobExtended. - :rtype: int + :return: The error of this SyncJobExtended. + :rtype: str """ - return self._target_directories_deleted + return self._error - @target_directories_deleted.setter - def target_directories_deleted(self, target_directories_deleted): + @error.setter + def error(self, error): """ - Sets the target_directories_deleted of this SyncJobExtended. - The number of directories deleted on the target. + Sets the error of this SyncJobExtended. + The primary error message for this job. - :param target_directories_deleted: The target_directories_deleted of this SyncJobExtended. - :type: int + :param error: The error of this SyncJobExtended. + :type: str """ - self._target_directories_deleted = target_directories_deleted + + self._error = error @property - def ads_streams_replicated(self): + def error_checksum_files_skipped(self): """ - Gets the ads_streams_replicated of this SyncJobExtended. - The number of ads streams replicated by this job. + Gets the error_checksum_files_skipped of this SyncJobExtended. + The number of files with checksum errors skipped by this job. - :return: The ads_streams_replicated of this SyncJobExtended. + :return: The error_checksum_files_skipped of this SyncJobExtended. :rtype: int """ - return self._ads_streams_replicated + return self._error_checksum_files_skipped - @ads_streams_replicated.setter - def ads_streams_replicated(self, ads_streams_replicated): + @error_checksum_files_skipped.setter + def error_checksum_files_skipped(self, error_checksum_files_skipped): """ - Sets the ads_streams_replicated of this SyncJobExtended. - The number of ads streams replicated by this job. + Sets the error_checksum_files_skipped of this SyncJobExtended. + The number of files with checksum errors skipped by this job. - :param ads_streams_replicated: The ads_streams_replicated of this SyncJobExtended. + :param error_checksum_files_skipped: The error_checksum_files_skipped of this SyncJobExtended. :type: int """ - self._ads_streams_replicated = ads_streams_replicated + + self._error_checksum_files_skipped = error_checksum_files_skipped @property - def target_files_deleted(self): + def error_io_files_skipped(self): """ - Gets the target_files_deleted of this SyncJobExtended. - The number of files deleted on the target. + Gets the error_io_files_skipped of this SyncJobExtended. + The number of files with io errors skipped by this job. - :return: The target_files_deleted of this SyncJobExtended. + :return: The error_io_files_skipped of this SyncJobExtended. :rtype: int """ - return self._target_files_deleted + return self._error_io_files_skipped - @target_files_deleted.setter - def target_files_deleted(self, target_files_deleted): + @error_io_files_skipped.setter + def error_io_files_skipped(self, error_io_files_skipped): """ - Sets the target_files_deleted of this SyncJobExtended. - The number of files deleted on the target. + Sets the error_io_files_skipped of this SyncJobExtended. + The number of files with io errors skipped by this job. - :param target_files_deleted: The target_files_deleted of this SyncJobExtended. + :param error_io_files_skipped: The error_io_files_skipped of this SyncJobExtended. :type: int """ - self._target_files_deleted = target_files_deleted + + self._error_io_files_skipped = error_io_files_skipped @property - def action(self): + def error_net_files_skipped(self): """ - Gets the action of this SyncJobExtended. - The action to be taken by this job. + Gets the error_net_files_skipped of this SyncJobExtended. + The number of files with network errors skipped by this job. - :return: The action of this SyncJobExtended. - :rtype: str + :return: The error_net_files_skipped of this SyncJobExtended. + :rtype: int """ - return self._action + return self._error_net_files_skipped - @action.setter - def action(self, action): + @error_net_files_skipped.setter + def error_net_files_skipped(self, error_net_files_skipped): """ - Sets the action of this SyncJobExtended. - The action to be taken by this job. + Sets the error_net_files_skipped of this SyncJobExtended. + The number of files with network errors skipped by this job. - :param action: The action of this SyncJobExtended. - :type: str + :param error_net_files_skipped: The error_net_files_skipped of this SyncJobExtended. + :type: int """ - allowed_values = ["resync_prep", "allow_write", "allow_write_revert", "test", "run"] - if action not in allowed_values: - raise ValueError( - "Invalid value for `action`, must be one of {0}" - .format(allowed_values) - ) - self._action = action + + self._error_net_files_skipped = error_net_files_skipped @property - def state(self): + def errors(self): """ - Gets the state of this SyncJobExtended. - The state of the job. + Gets the errors of this SyncJobExtended. + A list of error messages for this job. - :return: The state of this SyncJobExtended. - :rtype: str + :return: The errors of this SyncJobExtended. + :rtype: list[str] """ - return self._state + return self._errors - @state.setter - def state(self, state): + @errors.setter + def errors(self, errors): """ - Sets the state of this SyncJobExtended. - The state of the job. + Sets the errors of this SyncJobExtended. + A list of error messages for this job. - :param state: The state of this SyncJobExtended. - :type: str + :param errors: The errors of this SyncJobExtended. + :type: list[str] """ - allowed_values = ["canceled", "running", "paused"] - if state not in allowed_values: - raise ValueError( - "Invalid value for `state`, must be one of {0}" - .format(allowed_values) - ) - self._state = state + + self._errors = errors @property - def block_specs_replicated(self): + def failed_chunks(self): """ - Gets the block_specs_replicated of this SyncJobExtended. - The number of block specs replicated by this job. + Gets the failed_chunks of this SyncJobExtended. + Tyhe number of data chunks that failed transmission. - :return: The block_specs_replicated of this SyncJobExtended. + :return: The failed_chunks of this SyncJobExtended. :rtype: int """ - return self._block_specs_replicated + return self._failed_chunks - @block_specs_replicated.setter - def block_specs_replicated(self, block_specs_replicated): + @failed_chunks.setter + def failed_chunks(self, failed_chunks): """ - Sets the block_specs_replicated of this SyncJobExtended. - The number of block specs replicated by this job. + Sets the failed_chunks of this SyncJobExtended. + Tyhe number of data chunks that failed transmission. - :param block_specs_replicated: The block_specs_replicated of this SyncJobExtended. + :param failed_chunks: The failed_chunks of this SyncJobExtended. :type: int """ - self._block_specs_replicated = block_specs_replicated + + self._failed_chunks = failed_chunks @property - def id(self): + def fifos_replicated(self): """ - Gets the id of this SyncJobExtended. - A unique identifier for this object. + Gets the fifos_replicated of this SyncJobExtended. + The number of fifos replicated by this job. - :return: The id of this SyncJobExtended. - :rtype: str + :return: The fifos_replicated of this SyncJobExtended. + :rtype: int """ - return self._id + return self._fifos_replicated - @id.setter - def id(self, id): + @fifos_replicated.setter + def fifos_replicated(self, fifos_replicated): """ - Sets the id of this SyncJobExtended. - A unique identifier for this object. + Sets the fifos_replicated of this SyncJobExtended. + The number of fifos replicated by this job. - :param id: The id of this SyncJobExtended. - :type: str + :param fifos_replicated: The fifos_replicated of this SyncJobExtended. + :type: int """ - self._id = id + + self._fifos_replicated = fifos_replicated @property - def policy_action(self): + def file_data_bytes(self): """ - Gets the policy_action of this SyncJobExtended. - This is the action the policy is configured to perform. + Gets the file_data_bytes of this SyncJobExtended. + The number of bytes transferred that belong to files. - :return: The policy_action of this SyncJobExtended. - :rtype: str + :return: The file_data_bytes of this SyncJobExtended. + :rtype: int """ - return self._policy_action + return self._file_data_bytes - @policy_action.setter - def policy_action(self, policy_action): + @file_data_bytes.setter + def file_data_bytes(self, file_data_bytes): """ - Sets the policy_action of this SyncJobExtended. - This is the action the policy is configured to perform. + Sets the file_data_bytes of this SyncJobExtended. + The number of bytes transferred that belong to files. - :param policy_action: The policy_action of this SyncJobExtended. - :type: str + :param file_data_bytes: The file_data_bytes of this SyncJobExtended. + :type: int """ - allowed_values = ["copy", "sync"] - if policy_action not in allowed_values: - raise ValueError( - "Invalid value for `policy_action`, must be one of {0}" - .format(allowed_values) - ) - self._policy_action = policy_action + + self._file_data_bytes = file_data_bytes @property - def dead_node(self): + def files_changed(self): """ - Gets the dead_node of this SyncJobExtended. - This field is true if the node running this job is dead. + Gets the files_changed of this SyncJobExtended. + The number of files changed by this job. - :return: The dead_node of this SyncJobExtended. - :rtype: bool + :return: The files_changed of this SyncJobExtended. + :rtype: int """ - return self._dead_node + return self._files_changed - @dead_node.setter - def dead_node(self, dead_node): + @files_changed.setter + def files_changed(self, files_changed): """ - Sets the dead_node of this SyncJobExtended. - This field is true if the node running this job is dead. + Sets the files_changed of this SyncJobExtended. + The number of files changed by this job. - :param dead_node: The dead_node of this SyncJobExtended. - :type: bool + :param files_changed: The files_changed of this SyncJobExtended. + :type: int """ - self._dead_node = dead_node + + self._files_changed = files_changed @property - def network_bytes_to_target(self): + def files_linked(self): """ - Gets the network_bytes_to_target of this SyncJobExtended. - The total number of bytes sent to the target by this job. + Gets the files_linked of this SyncJobExtended. + The number of files linked by this job. - :return: The network_bytes_to_target of this SyncJobExtended. + :return: The files_linked of this SyncJobExtended. :rtype: int """ - return self._network_bytes_to_target + return self._files_linked - @network_bytes_to_target.setter - def network_bytes_to_target(self, network_bytes_to_target): + @files_linked.setter + def files_linked(self, files_linked): """ - Sets the network_bytes_to_target of this SyncJobExtended. - The total number of bytes sent to the target by this job. + Sets the files_linked of this SyncJobExtended. + The number of files linked by this job. - :param network_bytes_to_target: The network_bytes_to_target of this SyncJobExtended. + :param files_linked: The files_linked of this SyncJobExtended. :type: int """ - self._network_bytes_to_target = network_bytes_to_target + + self._files_linked = files_linked @property - def num_retransmitted_files(self): + def files_new(self): """ - Gets the num_retransmitted_files of this SyncJobExtended. - The number of files that have been retransmitted by this job. + Gets the files_new of this SyncJobExtended. + The number of files created by this job. - :return: The num_retransmitted_files of this SyncJobExtended. + :return: The files_new of this SyncJobExtended. :rtype: int """ - return self._num_retransmitted_files + return self._files_new - @num_retransmitted_files.setter - def num_retransmitted_files(self, num_retransmitted_files): + @files_new.setter + def files_new(self, files_new): """ - Sets the num_retransmitted_files of this SyncJobExtended. - The number of files that have been retransmitted by this job. + Sets the files_new of this SyncJobExtended. + The number of files created by this job. - :param num_retransmitted_files: The num_retransmitted_files of this SyncJobExtended. + :param files_new: The files_new of this SyncJobExtended. :type: int """ - self._num_retransmitted_files = num_retransmitted_files + + self._files_new = files_new @property - def flipped_lins(self): + def files_selected(self): """ - Gets the flipped_lins of this SyncJobExtended. - The number of LINs flipped by this job. + Gets the files_selected of this SyncJobExtended. + The number of files selected by this job. - :return: The flipped_lins of this SyncJobExtended. + :return: The files_selected of this SyncJobExtended. :rtype: int """ - return self._flipped_lins + return self._files_selected - @flipped_lins.setter - def flipped_lins(self, flipped_lins): + @files_selected.setter + def files_selected(self, files_selected): """ - Sets the flipped_lins of this SyncJobExtended. - The number of LINs flipped by this job. + Sets the files_selected of this SyncJobExtended. + The number of files selected by this job. - :param flipped_lins: The flipped_lins of this SyncJobExtended. + :param files_selected: The files_selected of this SyncJobExtended. :type: int """ - self._flipped_lins = flipped_lins + + self._files_selected = files_selected @property - def target_files_linked(self): + def files_transferred(self): """ - Gets the target_files_linked of this SyncJobExtended. - The number of files linked on the target. + Gets the files_transferred of this SyncJobExtended. + The number of files transferred by this job. - :return: The target_files_linked of this SyncJobExtended. + :return: The files_transferred of this SyncJobExtended. :rtype: int """ - return self._target_files_linked + return self._files_transferred - @target_files_linked.setter - def target_files_linked(self, target_files_linked): + @files_transferred.setter + def files_transferred(self, files_transferred): """ - Sets the target_files_linked of this SyncJobExtended. - The number of files linked on the target. + Sets the files_transferred of this SyncJobExtended. + The number of files transferred by this job. - :param target_files_linked: The target_files_linked of this SyncJobExtended. + :param files_transferred: The files_transferred of this SyncJobExtended. :type: int """ - self._target_files_linked = target_files_linked + + self._files_transferred = files_transferred @property - def sync_type(self): + def files_unlinked(self): """ - Gets the sync_type of this SyncJobExtended. - The type of sync being performed by this job. + Gets the files_unlinked of this SyncJobExtended. + The number of files unlinked by this job. - :return: The sync_type of this SyncJobExtended. - :rtype: str + :return: The files_unlinked of this SyncJobExtended. + :rtype: int """ - return self._sync_type + return self._files_unlinked - @sync_type.setter - def sync_type(self, sync_type): + @files_unlinked.setter + def files_unlinked(self, files_unlinked): """ - Sets the sync_type of this SyncJobExtended. - The type of sync being performed by this job. + Sets the files_unlinked of this SyncJobExtended. + The number of files unlinked by this job. - :param sync_type: The sync_type of this SyncJobExtended. - :type: str + :param files_unlinked: The files_unlinked of this SyncJobExtended. + :type: int """ - allowed_values = ["invalid", "legacy", "initial", "incremental", "upgrade", "fofb", "domainmark"] - if sync_type not in allowed_values: - raise ValueError( - "Invalid value for `sync_type`, must be one of {0}" - .format(allowed_values) - ) - self._sync_type = sync_type + + self._files_unlinked = files_unlinked @property - def lins_total(self): + def files_with_ads_replicated(self): """ - Gets the lins_total of this SyncJobExtended. - The number of LINs transferred by this job. + Gets the files_with_ads_replicated of this SyncJobExtended. + The number of files with ads replicated by this job. - :return: The lins_total of this SyncJobExtended. + :return: The files_with_ads_replicated of this SyncJobExtended. :rtype: int """ - return self._lins_total + return self._files_with_ads_replicated - @lins_total.setter - def lins_total(self, lins_total): + @files_with_ads_replicated.setter + def files_with_ads_replicated(self, files_with_ads_replicated): """ - Sets the lins_total of this SyncJobExtended. - The number of LINs transferred by this job. + Sets the files_with_ads_replicated of this SyncJobExtended. + The number of files with ads replicated by this job. - :param lins_total: The lins_total of this SyncJobExtended. + :param files_with_ads_replicated: The files_with_ads_replicated of this SyncJobExtended. :type: int """ - self._lins_total = lins_total + + self._files_with_ads_replicated = files_with_ads_replicated @property - def source_directories_unlinked(self): + def flipped_lins(self): """ - Gets the source_directories_unlinked of this SyncJobExtended. - The number of directories unlinked on the source. + Gets the flipped_lins of this SyncJobExtended. + The number of LINs flipped by this job. - :return: The source_directories_unlinked of this SyncJobExtended. + :return: The flipped_lins of this SyncJobExtended. :rtype: int """ - return self._source_directories_unlinked + return self._flipped_lins - @source_directories_unlinked.setter - def source_directories_unlinked(self, source_directories_unlinked): + @flipped_lins.setter + def flipped_lins(self, flipped_lins): """ - Sets the source_directories_unlinked of this SyncJobExtended. - The number of directories unlinked on the source. + Sets the flipped_lins of this SyncJobExtended. + The number of LINs flipped by this job. - :param source_directories_unlinked: The source_directories_unlinked of this SyncJobExtended. + :param flipped_lins: The flipped_lins of this SyncJobExtended. :type: int """ - self._source_directories_unlinked = source_directories_unlinked + + self._flipped_lins = flipped_lins @property - def target_files_unlinked(self): + def hard_links_replicated(self): """ - Gets the target_files_unlinked of this SyncJobExtended. - The number of files unlinked on the target. + Gets the hard_links_replicated of this SyncJobExtended. + The number of hard links replicated by this job. - :return: The target_files_unlinked of this SyncJobExtended. + :return: The hard_links_replicated of this SyncJobExtended. :rtype: int """ - return self._target_files_unlinked + return self._hard_links_replicated - @target_files_unlinked.setter - def target_files_unlinked(self, target_files_unlinked): + @hard_links_replicated.setter + def hard_links_replicated(self, hard_links_replicated): """ - Sets the target_files_unlinked of this SyncJobExtended. - The number of files unlinked on the target. + Sets the hard_links_replicated of this SyncJobExtended. + The number of hard links replicated by this job. - :param target_files_unlinked: The target_files_unlinked of this SyncJobExtended. + :param hard_links_replicated: The hard_links_replicated of this SyncJobExtended. :type: int """ - self._target_files_unlinked = target_files_unlinked + + self._hard_links_replicated = hard_links_replicated @property - def total_chunks(self): + def hash_exceptions_fixed(self): """ - Gets the total_chunks of this SyncJobExtended. - The total number of data chunks transmitted by this job. + Gets the hash_exceptions_fixed of this SyncJobExtended. + The number of hash exceptions fixed by this job. - :return: The total_chunks of this SyncJobExtended. + :return: The hash_exceptions_fixed of this SyncJobExtended. :rtype: int """ - return self._total_chunks + return self._hash_exceptions_fixed - @total_chunks.setter - def total_chunks(self, total_chunks): + @hash_exceptions_fixed.setter + def hash_exceptions_fixed(self, hash_exceptions_fixed): """ - Sets the total_chunks of this SyncJobExtended. - The total number of data chunks transmitted by this job. + Sets the hash_exceptions_fixed of this SyncJobExtended. + The number of hash exceptions fixed by this job. - :param total_chunks: The total_chunks of this SyncJobExtended. + :param hash_exceptions_fixed: The hash_exceptions_fixed of this SyncJobExtended. :type: int """ - self._total_chunks = total_chunks + + self._hash_exceptions_fixed = hash_exceptions_fixed @property - def unchanged_data_bytes(self): + def hash_exceptions_found(self): """ - Gets the unchanged_data_bytes of this SyncJobExtended. - The number of bytes unchanged by this job. + Gets the hash_exceptions_found of this SyncJobExtended. + The number of hash exceptions found by this job. - :return: The unchanged_data_bytes of this SyncJobExtended. + :return: The hash_exceptions_found of this SyncJobExtended. :rtype: int """ - return self._unchanged_data_bytes + return self._hash_exceptions_found - @unchanged_data_bytes.setter - def unchanged_data_bytes(self, unchanged_data_bytes): + @hash_exceptions_found.setter + def hash_exceptions_found(self, hash_exceptions_found): """ - Sets the unchanged_data_bytes of this SyncJobExtended. - The number of bytes unchanged by this job. + Sets the hash_exceptions_found of this SyncJobExtended. + The number of hash exceptions found by this job. - :param unchanged_data_bytes: The unchanged_data_bytes of this SyncJobExtended. + :param hash_exceptions_found: The hash_exceptions_found of this SyncJobExtended. :type: int """ - self._unchanged_data_bytes = unchanged_data_bytes + + self._hash_exceptions_found = hash_exceptions_found @property - def new_files_replicated(self): + def id(self): """ - Gets the new_files_replicated of this SyncJobExtended. - The number of new files replicated by this job. + Gets the id of this SyncJobExtended. + A unique identifier for this object. - :return: The new_files_replicated of this SyncJobExtended. - :rtype: int + :return: The id of this SyncJobExtended. + :rtype: str """ - return self._new_files_replicated + return self._id - @new_files_replicated.setter - def new_files_replicated(self, new_files_replicated): + @id.setter + def id(self, id): """ - Sets the new_files_replicated of this SyncJobExtended. - The number of new files replicated by this job. + Sets the id of this SyncJobExtended. + A unique identifier for this object. - :param new_files_replicated: The new_files_replicated of this SyncJobExtended. - :type: int + :param id: The id of this SyncJobExtended. + :type: str """ - self._new_files_replicated = new_files_replicated + + self._id = id @property - def source_directories_visited(self): + def job_id(self): """ - Gets the source_directories_visited of this SyncJobExtended. - The number of directories visited on the source. + Gets the job_id of this SyncJobExtended. + The ID of the job. - :return: The source_directories_visited of this SyncJobExtended. + :return: The job_id of this SyncJobExtended. :rtype: int """ - return self._source_directories_visited + return self._job_id - @source_directories_visited.setter - def source_directories_visited(self, source_directories_visited): + @job_id.setter + def job_id(self, job_id): """ - Sets the source_directories_visited of this SyncJobExtended. - The number of directories visited on the source. + Sets the job_id of this SyncJobExtended. + The ID of the job. - :param source_directories_visited: The source_directories_visited of this SyncJobExtended. + :param job_id: The job_id of this SyncJobExtended. :type: int """ - self._source_directories_visited = source_directories_visited + + self._job_id = job_id @property - def hard_links_replicated(self): + def lins_total(self): """ - Gets the hard_links_replicated of this SyncJobExtended. - The number of hard links replicated by this job. + Gets the lins_total of this SyncJobExtended. + The number of LINs transferred by this job. - :return: The hard_links_replicated of this SyncJobExtended. + :return: The lins_total of this SyncJobExtended. :rtype: int """ - return self._hard_links_replicated + return self._lins_total - @hard_links_replicated.setter - def hard_links_replicated(self, hard_links_replicated): + @lins_total.setter + def lins_total(self, lins_total): """ - Sets the hard_links_replicated of this SyncJobExtended. - The number of hard links replicated by this job. + Sets the lins_total of this SyncJobExtended. + The number of LINs transferred by this job. - :param hard_links_replicated: The hard_links_replicated of this SyncJobExtended. + :param lins_total: The lins_total of this SyncJobExtended. :type: int """ - self._hard_links_replicated = hard_links_replicated + + self._lins_total = lins_total @property - def start_time(self): + def network_bytes_to_source(self): """ - Gets the start_time of this SyncJobExtended. - The time the job started in unix epoch seconds. The field is null if the job hasn't started. + Gets the network_bytes_to_source of this SyncJobExtended. + The total number of bytes sent to the source by this job. - :return: The start_time of this SyncJobExtended. + :return: The network_bytes_to_source of this SyncJobExtended. :rtype: int """ - return self._start_time + return self._network_bytes_to_source - @start_time.setter - def start_time(self, start_time): + @network_bytes_to_source.setter + def network_bytes_to_source(self, network_bytes_to_source): """ - Sets the start_time of this SyncJobExtended. - The time the job started in unix epoch seconds. The field is null if the job hasn't started. + Sets the network_bytes_to_source of this SyncJobExtended. + The total number of bytes sent to the source by this job. - :param start_time: The start_time of this SyncJobExtended. + :param network_bytes_to_source: The network_bytes_to_source of this SyncJobExtended. :type: int """ - self._start_time = start_time + + self._network_bytes_to_source = network_bytes_to_source @property - def files_changed(self): + def network_bytes_to_target(self): """ - Gets the files_changed of this SyncJobExtended. - The number of files changed by this job. + Gets the network_bytes_to_target of this SyncJobExtended. + The total number of bytes sent to the target by this job. - :return: The files_changed of this SyncJobExtended. + :return: The network_bytes_to_target of this SyncJobExtended. :rtype: int """ - return self._files_changed + return self._network_bytes_to_target - @files_changed.setter - def files_changed(self, files_changed): + @network_bytes_to_target.setter + def network_bytes_to_target(self, network_bytes_to_target): """ - Sets the files_changed of this SyncJobExtended. - The number of files changed by this job. + Sets the network_bytes_to_target of this SyncJobExtended. + The total number of bytes sent to the target by this job. - :param files_changed: The files_changed of this SyncJobExtended. + :param network_bytes_to_target: The network_bytes_to_target of this SyncJobExtended. :type: int """ - self._files_changed = files_changed + + self._network_bytes_to_target = network_bytes_to_target @property - def total_data_bytes(self): + def new_files_replicated(self): """ - Gets the total_data_bytes of this SyncJobExtended. - The total number of bytes transferred by this job. + Gets the new_files_replicated of this SyncJobExtended. + The number of new files replicated by this job. - :return: The total_data_bytes of this SyncJobExtended. + :return: The new_files_replicated of this SyncJobExtended. :rtype: int """ - return self._total_data_bytes + return self._new_files_replicated - @total_data_bytes.setter - def total_data_bytes(self, total_data_bytes): + @new_files_replicated.setter + def new_files_replicated(self, new_files_replicated): """ - Sets the total_data_bytes of this SyncJobExtended. - The total number of bytes transferred by this job. + Sets the new_files_replicated of this SyncJobExtended. + The number of new files replicated by this job. - :param total_data_bytes: The total_data_bytes of this SyncJobExtended. + :param new_files_replicated: The new_files_replicated of this SyncJobExtended. :type: int """ - self._total_data_bytes = total_data_bytes + + self._new_files_replicated = new_files_replicated @property - def errors(self): + def num_retransmitted_files(self): """ - Gets the errors of this SyncJobExtended. - A list of error messages for this job. + Gets the num_retransmitted_files of this SyncJobExtended. + The number of files that have been retransmitted by this job. - :return: The errors of this SyncJobExtended. - :rtype: list[str] + :return: The num_retransmitted_files of this SyncJobExtended. + :rtype: int """ - return self._errors + return self._num_retransmitted_files - @errors.setter - def errors(self, errors): + @num_retransmitted_files.setter + def num_retransmitted_files(self, num_retransmitted_files): """ - Sets the errors of this SyncJobExtended. - A list of error messages for this job. + Sets the num_retransmitted_files of this SyncJobExtended. + The number of files that have been retransmitted by this job. - :param errors: The errors of this SyncJobExtended. - :type: list[str] + :param num_retransmitted_files: The num_retransmitted_files of this SyncJobExtended. + :type: int """ - self._errors = errors + + self._num_retransmitted_files = num_retransmitted_files @property - def succeeded_chunks(self): + def phases(self): """ - Gets the succeeded_chunks of this SyncJobExtended. - The number of data chunks that have been transmitted successfully. + Gets the phases of this SyncJobExtended. + Data for each phase of this job. - :return: The succeeded_chunks of this SyncJobExtended. - :rtype: int + :return: The phases of this SyncJobExtended. + :rtype: list[ReportSubreportPhase] """ - return self._succeeded_chunks + return self._phases - @succeeded_chunks.setter - def succeeded_chunks(self, succeeded_chunks): + @phases.setter + def phases(self, phases): """ - Sets the succeeded_chunks of this SyncJobExtended. - The number of data chunks that have been transmitted successfully. + Sets the phases of this SyncJobExtended. + Data for each phase of this job. - :param succeeded_chunks: The succeeded_chunks of this SyncJobExtended. - :type: int + :param phases: The phases of this SyncJobExtended. + :type: list[ReportSubreportPhase] """ - self._succeeded_chunks = succeeded_chunks + + self._phases = phases @property - def files_new(self): + def policy(self): """ - Gets the files_new of this SyncJobExtended. - The number of files created by this job. + Gets the policy of this SyncJobExtended. + The policy associated with this job, or null if there is currently no policy associated with this job (this can happen if the job is newly created and not yet fully populated in the underlying database). - :return: The files_new of this SyncJobExtended. - :rtype: int + :return: The policy of this SyncJobExtended. + :rtype: ReportSubreportPolicy """ - return self._files_new + return self._policy - @files_new.setter - def files_new(self, files_new): + @policy.setter + def policy(self, policy): """ - Sets the files_new of this SyncJobExtended. - The number of files created by this job. + Sets the policy of this SyncJobExtended. + The policy associated with this job, or null if there is currently no policy associated with this job (this can happen if the job is newly created and not yet fully populated in the underlying database). - :param files_new: The files_new of this SyncJobExtended. - :type: int + :param policy: The policy of this SyncJobExtended. + :type: ReportSubreportPolicy """ - self._files_new = files_new + + self._policy = policy @property - def dirs_changed(self): + def policy_action(self): """ - Gets the dirs_changed of this SyncJobExtended. - The number of directories changed by this job. + Gets the policy_action of this SyncJobExtended. + This is the action the policy is configured to perform. - :return: The dirs_changed of this SyncJobExtended. - :rtype: int + :return: The policy_action of this SyncJobExtended. + :rtype: str """ - return self._dirs_changed + return self._policy_action - @dirs_changed.setter - def dirs_changed(self, dirs_changed): + @policy_action.setter + def policy_action(self, policy_action): """ - Sets the dirs_changed of this SyncJobExtended. - The number of directories changed by this job. + Sets the policy_action of this SyncJobExtended. + This is the action the policy is configured to perform. - :param dirs_changed: The dirs_changed of this SyncJobExtended. - :type: int + :param policy_action: The policy_action of this SyncJobExtended. + :type: str """ - self._dirs_changed = dirs_changed + allowed_values = ["copy", "sync"] + if policy_action not in allowed_values: + raise ValueError( + "Invalid value for `policy_action`, must be one of {0}" + .format(allowed_values) + ) + + self._policy_action = policy_action @property def policy_id(self): @@ -1294,227 +1378,215 @@ def policy_id(self, policy_id): :param policy_id: The policy_id of this SyncJobExtended. :type: str """ + self._policy_id = policy_id @property - def source_files_deleted(self): + def policy_name(self): """ - Gets the source_files_deleted of this SyncJobExtended. - The number of files deleted on the source. + Gets the policy_name of this SyncJobExtended. + The name of the policy. - :return: The source_files_deleted of this SyncJobExtended. - :rtype: int + :return: The policy_name of this SyncJobExtended. + :rtype: str """ - return self._source_files_deleted + return self._policy_name - @source_files_deleted.setter - def source_files_deleted(self, source_files_deleted): + @policy_name.setter + def policy_name(self, policy_name): """ - Sets the source_files_deleted of this SyncJobExtended. - The number of files deleted on the source. + Sets the policy_name of this SyncJobExtended. + The name of the policy. - :param source_files_deleted: The source_files_deleted of this SyncJobExtended. - :type: int + :param policy_name: The policy_name of this SyncJobExtended. + :type: str """ - self._source_files_deleted = source_files_deleted + + self._policy_name = policy_name @property - def updated_files_replicated(self): + def regular_files_replicated(self): """ - Gets the updated_files_replicated of this SyncJobExtended. - The number of updated files replicated by this job. + Gets the regular_files_replicated of this SyncJobExtended. + The number of regular files replicated by this job. - :return: The updated_files_replicated of this SyncJobExtended. + :return: The regular_files_replicated of this SyncJobExtended. :rtype: int """ - return self._updated_files_replicated + return self._regular_files_replicated - @updated_files_replicated.setter - def updated_files_replicated(self, updated_files_replicated): + @regular_files_replicated.setter + def regular_files_replicated(self, regular_files_replicated): """ - Sets the updated_files_replicated of this SyncJobExtended. - The number of updated files replicated by this job. + Sets the regular_files_replicated of this SyncJobExtended. + The number of regular files replicated by this job. - :param updated_files_replicated: The updated_files_replicated of this SyncJobExtended. + :param regular_files_replicated: The regular_files_replicated of this SyncJobExtended. :type: int """ - self._updated_files_replicated = updated_files_replicated - - @property - def error(self): - """ - Gets the error of this SyncJobExtended. - The primary error message for this job. - - :return: The error of this SyncJobExtended. - :rtype: str - """ - return self._error - - @error.setter - def error(self, error): - """ - Sets the error of this SyncJobExtended. - The primary error message for this job. - - :param error: The error of this SyncJobExtended. - :type: str - """ - self._error = error + + self._regular_files_replicated = regular_files_replicated @property - def error_net_files_skipped(self): + def resynced_lins(self): """ - Gets the error_net_files_skipped of this SyncJobExtended. - The number of files with network errors skipped by this job. + Gets the resynced_lins of this SyncJobExtended. + The number of LINs resynched by this job. - :return: The error_net_files_skipped of this SyncJobExtended. + :return: The resynced_lins of this SyncJobExtended. :rtype: int """ - return self._error_net_files_skipped + return self._resynced_lins - @error_net_files_skipped.setter - def error_net_files_skipped(self, error_net_files_skipped): + @resynced_lins.setter + def resynced_lins(self, resynced_lins): """ - Sets the error_net_files_skipped of this SyncJobExtended. - The number of files with network errors skipped by this job. + Sets the resynced_lins of this SyncJobExtended. + The number of LINs resynched by this job. - :param error_net_files_skipped: The error_net_files_skipped of this SyncJobExtended. + :param resynced_lins: The resynced_lins of this SyncJobExtended. :type: int """ - self._error_net_files_skipped = error_net_files_skipped + + self._resynced_lins = resynced_lins @property - def source_directories_linked(self): + def retransmitted_files(self): """ - Gets the source_directories_linked of this SyncJobExtended. - The number of directories linked on the source. + Gets the retransmitted_files of this SyncJobExtended. + The files that have been retransmitted by this job. - :return: The source_directories_linked of this SyncJobExtended. - :rtype: int + :return: The retransmitted_files of this SyncJobExtended. + :rtype: list[str] """ - return self._source_directories_linked + return self._retransmitted_files - @source_directories_linked.setter - def source_directories_linked(self, source_directories_linked): + @retransmitted_files.setter + def retransmitted_files(self, retransmitted_files): """ - Sets the source_directories_linked of this SyncJobExtended. - The number of directories linked on the source. + Sets the retransmitted_files of this SyncJobExtended. + The files that have been retransmitted by this job. - :param source_directories_linked: The source_directories_linked of this SyncJobExtended. - :type: int + :param retransmitted_files: The retransmitted_files of this SyncJobExtended. + :type: list[str] """ - self._source_directories_linked = source_directories_linked + + self._retransmitted_files = retransmitted_files @property - def source_files_linked(self): + def retry(self): """ - Gets the source_files_linked of this SyncJobExtended. - The number of files linked on the source. + Gets the retry of this SyncJobExtended. + The number of times the job has been retried. - :return: The source_files_linked of this SyncJobExtended. + :return: The retry of this SyncJobExtended. :rtype: int """ - return self._source_files_linked + return self._retry - @source_files_linked.setter - def source_files_linked(self, source_files_linked): + @retry.setter + def retry(self, retry): """ - Sets the source_files_linked of this SyncJobExtended. - The number of files linked on the source. + Sets the retry of this SyncJobExtended. + The number of times the job has been retried. - :param source_files_linked: The source_files_linked of this SyncJobExtended. + :param retry: The retry of this SyncJobExtended. :type: int """ - self._source_files_linked = source_files_linked + + self._retry = retry @property - def duration(self): + def running_chunks(self): """ - Gets the duration of this SyncJobExtended. - The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. + Gets the running_chunks of this SyncJobExtended. + The number of data chunks currently being transmitted. - :return: The duration of this SyncJobExtended. + :return: The running_chunks of this SyncJobExtended. :rtype: int """ - return self._duration + return self._running_chunks - @duration.setter - def duration(self, duration): + @running_chunks.setter + def running_chunks(self, running_chunks): """ - Sets the duration of this SyncJobExtended. - The amount of time in seconds between when the job was started and when it ended. If the job has not yet ended, this is the amount of time since the job started. This field is null if the job has not yet started. + Sets the running_chunks of this SyncJobExtended. + The number of data chunks currently being transmitted. - :param duration: The duration of this SyncJobExtended. + :param running_chunks: The running_chunks of this SyncJobExtended. :type: int """ - self._duration = duration + + self._running_chunks = running_chunks @property - def resynced_lins(self): + def sockets_replicated(self): """ - Gets the resynced_lins of this SyncJobExtended. - The number of LINs resynched by this job. + Gets the sockets_replicated of this SyncJobExtended. + The number of sockets replicated by this job. - :return: The resynced_lins of this SyncJobExtended. + :return: The sockets_replicated of this SyncJobExtended. :rtype: int """ - return self._resynced_lins + return self._sockets_replicated - @resynced_lins.setter - def resynced_lins(self, resynced_lins): + @sockets_replicated.setter + def sockets_replicated(self, sockets_replicated): """ - Sets the resynced_lins of this SyncJobExtended. - The number of LINs resynched by this job. + Sets the sockets_replicated of this SyncJobExtended. + The number of sockets replicated by this job. - :param resynced_lins: The resynced_lins of this SyncJobExtended. + :param sockets_replicated: The sockets_replicated of this SyncJobExtended. :type: int """ - self._resynced_lins = resynced_lins + + self._sockets_replicated = sockets_replicated @property - def files_selected(self): + def source_bytes_recovered(self): """ - Gets the files_selected of this SyncJobExtended. - The number of files selected by this job. + Gets the source_bytes_recovered of this SyncJobExtended. + The number of bytes recovered on the source. - :return: The files_selected of this SyncJobExtended. + :return: The source_bytes_recovered of this SyncJobExtended. :rtype: int """ - return self._files_selected + return self._source_bytes_recovered - @files_selected.setter - def files_selected(self, files_selected): + @source_bytes_recovered.setter + def source_bytes_recovered(self, source_bytes_recovered): """ - Sets the files_selected of this SyncJobExtended. - The number of files selected by this job. + Sets the source_bytes_recovered of this SyncJobExtended. + The number of bytes recovered on the source. - :param files_selected: The files_selected of this SyncJobExtended. + :param source_bytes_recovered: The source_bytes_recovered of this SyncJobExtended. :type: int """ - self._files_selected = files_selected + + self._source_bytes_recovered = source_bytes_recovered @property - def char_specs_replicated(self): + def source_directories_created(self): """ - Gets the char_specs_replicated of this SyncJobExtended. - The number of char specs replicated by this job. + Gets the source_directories_created of this SyncJobExtended. + The number of directories created on the source. - :return: The char_specs_replicated of this SyncJobExtended. + :return: The source_directories_created of this SyncJobExtended. :rtype: int """ - return self._char_specs_replicated + return self._source_directories_created - @char_specs_replicated.setter - def char_specs_replicated(self, char_specs_replicated): + @source_directories_created.setter + def source_directories_created(self, source_directories_created): """ - Sets the char_specs_replicated of this SyncJobExtended. - The number of char specs replicated by this job. + Sets the source_directories_created of this SyncJobExtended. + The number of directories created on the source. - :param char_specs_replicated: The char_specs_replicated of this SyncJobExtended. + :param source_directories_created: The source_directories_created of this SyncJobExtended. :type: int """ - self._char_specs_replicated = char_specs_replicated + + self._source_directories_created = source_directories_created @property def source_directories_deleted(self): @@ -1536,711 +1608,727 @@ def source_directories_deleted(self, source_directories_deleted): :param source_directories_deleted: The source_directories_deleted of this SyncJobExtended. :type: int """ + self._source_directories_deleted = source_directories_deleted @property - def symlinks_replicated(self): + def source_directories_linked(self): """ - Gets the symlinks_replicated of this SyncJobExtended. - The number of symlinks replicated by this job. + Gets the source_directories_linked of this SyncJobExtended. + The number of directories linked on the source. - :return: The symlinks_replicated of this SyncJobExtended. + :return: The source_directories_linked of this SyncJobExtended. :rtype: int """ - return self._symlinks_replicated + return self._source_directories_linked - @symlinks_replicated.setter - def symlinks_replicated(self, symlinks_replicated): + @source_directories_linked.setter + def source_directories_linked(self, source_directories_linked): """ - Sets the symlinks_replicated of this SyncJobExtended. - The number of symlinks replicated by this job. + Sets the source_directories_linked of this SyncJobExtended. + The number of directories linked on the source. - :param symlinks_replicated: The symlinks_replicated of this SyncJobExtended. + :param source_directories_linked: The source_directories_linked of this SyncJobExtended. :type: int """ - self._symlinks_replicated = symlinks_replicated + + self._source_directories_linked = source_directories_linked @property - def up_to_date_files_skipped(self): + def source_directories_unlinked(self): """ - Gets the up_to_date_files_skipped of this SyncJobExtended. - The number of up-to-date files skipped by this job. + Gets the source_directories_unlinked of this SyncJobExtended. + The number of directories unlinked on the source. - :return: The up_to_date_files_skipped of this SyncJobExtended. + :return: The source_directories_unlinked of this SyncJobExtended. :rtype: int """ - return self._up_to_date_files_skipped + return self._source_directories_unlinked - @up_to_date_files_skipped.setter - def up_to_date_files_skipped(self, up_to_date_files_skipped): + @source_directories_unlinked.setter + def source_directories_unlinked(self, source_directories_unlinked): """ - Sets the up_to_date_files_skipped of this SyncJobExtended. - The number of up-to-date files skipped by this job. + Sets the source_directories_unlinked of this SyncJobExtended. + The number of directories unlinked on the source. - :param up_to_date_files_skipped: The up_to_date_files_skipped of this SyncJobExtended. + :param source_directories_unlinked: The source_directories_unlinked of this SyncJobExtended. :type: int """ - self._up_to_date_files_skipped = up_to_date_files_skipped + + self._source_directories_unlinked = source_directories_unlinked @property - def user_conflict_files_skipped(self): + def source_directories_visited(self): """ - Gets the user_conflict_files_skipped of this SyncJobExtended. - The number of files with user conflicts skipped by this job. + Gets the source_directories_visited of this SyncJobExtended. + The number of directories visited on the source. - :return: The user_conflict_files_skipped of this SyncJobExtended. + :return: The source_directories_visited of this SyncJobExtended. :rtype: int """ - return self._user_conflict_files_skipped + return self._source_directories_visited - @user_conflict_files_skipped.setter - def user_conflict_files_skipped(self, user_conflict_files_skipped): + @source_directories_visited.setter + def source_directories_visited(self, source_directories_visited): """ - Sets the user_conflict_files_skipped of this SyncJobExtended. - The number of files with user conflicts skipped by this job. + Sets the source_directories_visited of this SyncJobExtended. + The number of directories visited on the source. - :param user_conflict_files_skipped: The user_conflict_files_skipped of this SyncJobExtended. + :param source_directories_visited: The source_directories_visited of this SyncJobExtended. :type: int """ - self._user_conflict_files_skipped = user_conflict_files_skipped + + self._source_directories_visited = source_directories_visited @property - def directories_replicated(self): + def source_files_deleted(self): """ - Gets the directories_replicated of this SyncJobExtended. - The number of directories replicated. + Gets the source_files_deleted of this SyncJobExtended. + The number of files deleted on the source. - :return: The directories_replicated of this SyncJobExtended. + :return: The source_files_deleted of this SyncJobExtended. :rtype: int """ - return self._directories_replicated + return self._source_files_deleted - @directories_replicated.setter - def directories_replicated(self, directories_replicated): + @source_files_deleted.setter + def source_files_deleted(self, source_files_deleted): """ - Sets the directories_replicated of this SyncJobExtended. - The number of directories replicated. + Sets the source_files_deleted of this SyncJobExtended. + The number of files deleted on the source. - :param directories_replicated: The directories_replicated of this SyncJobExtended. + :param source_files_deleted: The source_files_deleted of this SyncJobExtended. :type: int """ - self._directories_replicated = directories_replicated - - @property - def retransmitted_files(self): - """ - Gets the retransmitted_files of this SyncJobExtended. - The files that have been retransmitted by this job. - - :return: The retransmitted_files of this SyncJobExtended. - :rtype: list[str] - """ - return self._retransmitted_files - - @retransmitted_files.setter - def retransmitted_files(self, retransmitted_files): - """ - Sets the retransmitted_files of this SyncJobExtended. - The files that have been retransmitted by this job. - - :param retransmitted_files: The retransmitted_files of this SyncJobExtended. - :type: list[str] - """ - self._retransmitted_files = retransmitted_files + + self._source_files_deleted = source_files_deleted @property - def workers(self): + def source_files_linked(self): """ - Gets the workers of this SyncJobExtended. - A list of workers for this job. + Gets the source_files_linked of this SyncJobExtended. + The number of files linked on the source. - :return: The workers of this SyncJobExtended. - :rtype: list[SyncJobWorker] + :return: The source_files_linked of this SyncJobExtended. + :rtype: int """ - return self._workers + return self._source_files_linked - @workers.setter - def workers(self, workers): + @source_files_linked.setter + def source_files_linked(self, source_files_linked): """ - Sets the workers of this SyncJobExtended. - A list of workers for this job. + Sets the source_files_linked of this SyncJobExtended. + The number of files linked on the source. - :param workers: The workers of this SyncJobExtended. - :type: list[SyncJobWorker] + :param source_files_linked: The source_files_linked of this SyncJobExtended. + :type: int """ - self._workers = workers + + self._source_files_linked = source_files_linked @property - def files_transferred(self): + def source_files_unlinked(self): """ - Gets the files_transferred of this SyncJobExtended. - The number of files transferred by this job. + Gets the source_files_unlinked of this SyncJobExtended. + The number of files unlinked on the source. - :return: The files_transferred of this SyncJobExtended. + :return: The source_files_unlinked of this SyncJobExtended. :rtype: int """ - return self._files_transferred + return self._source_files_unlinked - @files_transferred.setter - def files_transferred(self, files_transferred): + @source_files_unlinked.setter + def source_files_unlinked(self, source_files_unlinked): """ - Sets the files_transferred of this SyncJobExtended. - The number of files transferred by this job. + Sets the source_files_unlinked of this SyncJobExtended. + The number of files unlinked on the source. - :param files_transferred: The files_transferred of this SyncJobExtended. + :param source_files_unlinked: The source_files_unlinked of this SyncJobExtended. :type: int """ - self._files_transferred = files_transferred + + self._source_files_unlinked = source_files_unlinked @property - def phases(self): + def sparse_data_bytes(self): """ - Gets the phases of this SyncJobExtended. - Data for each phase of this job. + Gets the sparse_data_bytes of this SyncJobExtended. + The number of sparse data bytes transferred by this job. - :return: The phases of this SyncJobExtended. - :rtype: list[ReportsRidSubreportsSubreportPhase] + :return: The sparse_data_bytes of this SyncJobExtended. + :rtype: int """ - return self._phases + return self._sparse_data_bytes - @phases.setter - def phases(self, phases): + @sparse_data_bytes.setter + def sparse_data_bytes(self, sparse_data_bytes): """ - Sets the phases of this SyncJobExtended. - Data for each phase of this job. + Sets the sparse_data_bytes of this SyncJobExtended. + The number of sparse data bytes transferred by this job. - :param phases: The phases of this SyncJobExtended. - :type: list[ReportsRidSubreportsSubreportPhase] + :param sparse_data_bytes: The sparse_data_bytes of this SyncJobExtended. + :type: int """ - self._phases = phases + + self._sparse_data_bytes = sparse_data_bytes @property - def retry(self): + def start_time(self): """ - Gets the retry of this SyncJobExtended. - The number of times the job has been retried. + Gets the start_time of this SyncJobExtended. + The time the job started in unix epoch seconds. The field is null if the job hasn't started. - :return: The retry of this SyncJobExtended. + :return: The start_time of this SyncJobExtended. :rtype: int """ - return self._retry + return self._start_time - @retry.setter - def retry(self, retry): + @start_time.setter + def start_time(self, start_time): """ - Sets the retry of this SyncJobExtended. - The number of times the job has been retried. + Sets the start_time of this SyncJobExtended. + The time the job started in unix epoch seconds. The field is null if the job hasn't started. - :param retry: The retry of this SyncJobExtended. + :param start_time: The start_time of this SyncJobExtended. :type: int """ - self._retry = retry + + self._start_time = start_time @property - def policy(self): + def succeeded_chunks(self): """ - Gets the policy of this SyncJobExtended. - The policy associated with this job, or null if there is currently no policy associated with this job (this can happen if the job is newly created and not yet fully populated in the underlying database). + Gets the succeeded_chunks of this SyncJobExtended. + The number of data chunks that have been transmitted successfully. - :return: The policy of this SyncJobExtended. - :rtype: ReportsRidSubreportsSubreportPolicy + :return: The succeeded_chunks of this SyncJobExtended. + :rtype: int """ - return self._policy + return self._succeeded_chunks - @policy.setter - def policy(self, policy): + @succeeded_chunks.setter + def succeeded_chunks(self, succeeded_chunks): """ - Sets the policy of this SyncJobExtended. - The policy associated with this job, or null if there is currently no policy associated with this job (this can happen if the job is newly created and not yet fully populated in the underlying database). + Sets the succeeded_chunks of this SyncJobExtended. + The number of data chunks that have been transmitted successfully. - :param policy: The policy of this SyncJobExtended. - :type: ReportsRidSubreportsSubreportPolicy + :param succeeded_chunks: The succeeded_chunks of this SyncJobExtended. + :type: int """ - self._policy = policy + + self._succeeded_chunks = succeeded_chunks @property - def sparse_data_bytes(self): + def symlinks_replicated(self): """ - Gets the sparse_data_bytes of this SyncJobExtended. - The number of sparse data bytes transferred by this job. + Gets the symlinks_replicated of this SyncJobExtended. + The number of symlinks replicated by this job. - :return: The sparse_data_bytes of this SyncJobExtended. + :return: The symlinks_replicated of this SyncJobExtended. :rtype: int """ - return self._sparse_data_bytes + return self._symlinks_replicated - @sparse_data_bytes.setter - def sparse_data_bytes(self, sparse_data_bytes): + @symlinks_replicated.setter + def symlinks_replicated(self, symlinks_replicated): """ - Sets the sparse_data_bytes of this SyncJobExtended. - The number of sparse data bytes transferred by this job. + Sets the symlinks_replicated of this SyncJobExtended. + The number of symlinks replicated by this job. - :param sparse_data_bytes: The sparse_data_bytes of this SyncJobExtended. + :param symlinks_replicated: The symlinks_replicated of this SyncJobExtended. :type: int """ - self._sparse_data_bytes = sparse_data_bytes + + self._symlinks_replicated = symlinks_replicated @property - def total_phases(self): + def sync_type(self): """ - Gets the total_phases of this SyncJobExtended. - The total number of phases for this job. + Gets the sync_type of this SyncJobExtended. + The type of sync being performed by this job. - :return: The total_phases of this SyncJobExtended. - :rtype: int + :return: The sync_type of this SyncJobExtended. + :rtype: str """ - return self._total_phases + return self._sync_type - @total_phases.setter - def total_phases(self, total_phases): + @sync_type.setter + def sync_type(self, sync_type): """ - Sets the total_phases of this SyncJobExtended. - The total number of phases for this job. + Sets the sync_type of this SyncJobExtended. + The type of sync being performed by this job. - :param total_phases: The total_phases of this SyncJobExtended. - :type: int + :param sync_type: The sync_type of this SyncJobExtended. + :type: str """ - self._total_phases = total_phases + allowed_values = ["invalid", "legacy", "initial", "incremental", "upgrade", "fofb", "domainmark"] + if sync_type not in allowed_values: + raise ValueError( + "Invalid value for `sync_type`, must be one of {0}" + .format(allowed_values) + ) + + self._sync_type = sync_type @property - def hash_exceptions_fixed(self): + def target_bytes_recovered(self): """ - Gets the hash_exceptions_fixed of this SyncJobExtended. - The number of hash exceptions fixed by this job. + Gets the target_bytes_recovered of this SyncJobExtended. + The number of bytes recovered on the target. - :return: The hash_exceptions_fixed of this SyncJobExtended. + :return: The target_bytes_recovered of this SyncJobExtended. :rtype: int """ - return self._hash_exceptions_fixed + return self._target_bytes_recovered - @hash_exceptions_fixed.setter - def hash_exceptions_fixed(self, hash_exceptions_fixed): + @target_bytes_recovered.setter + def target_bytes_recovered(self, target_bytes_recovered): """ - Sets the hash_exceptions_fixed of this SyncJobExtended. - The number of hash exceptions fixed by this job. + Sets the target_bytes_recovered of this SyncJobExtended. + The number of bytes recovered on the target. - :param hash_exceptions_fixed: The hash_exceptions_fixed of this SyncJobExtended. + :param target_bytes_recovered: The target_bytes_recovered of this SyncJobExtended. :type: int """ - self._hash_exceptions_fixed = hash_exceptions_fixed + + self._target_bytes_recovered = target_bytes_recovered @property - def sockets_replicated(self): + def target_directories_created(self): """ - Gets the sockets_replicated of this SyncJobExtended. - The number of sockets replicated by this job. + Gets the target_directories_created of this SyncJobExtended. + The number of directories created on the target. - :return: The sockets_replicated of this SyncJobExtended. + :return: The target_directories_created of this SyncJobExtended. :rtype: int """ - return self._sockets_replicated + return self._target_directories_created - @sockets_replicated.setter - def sockets_replicated(self, sockets_replicated): + @target_directories_created.setter + def target_directories_created(self, target_directories_created): """ - Sets the sockets_replicated of this SyncJobExtended. - The number of sockets replicated by this job. + Sets the target_directories_created of this SyncJobExtended. + The number of directories created on the target. - :param sockets_replicated: The sockets_replicated of this SyncJobExtended. + :param target_directories_created: The target_directories_created of this SyncJobExtended. :type: int """ - self._sockets_replicated = sockets_replicated + + self._target_directories_created = target_directories_created @property - def total_files(self): + def target_directories_deleted(self): """ - Gets the total_files of this SyncJobExtended. - The number of files affected by this job. + Gets the target_directories_deleted of this SyncJobExtended. + The number of directories deleted on the target. - :return: The total_files of this SyncJobExtended. + :return: The target_directories_deleted of this SyncJobExtended. :rtype: int """ - return self._total_files + return self._target_directories_deleted - @total_files.setter - def total_files(self, total_files): + @target_directories_deleted.setter + def target_directories_deleted(self, target_directories_deleted): """ - Sets the total_files of this SyncJobExtended. - The number of files affected by this job. + Sets the target_directories_deleted of this SyncJobExtended. + The number of directories deleted on the target. - :param total_files: The total_files of this SyncJobExtended. + :param target_directories_deleted: The target_directories_deleted of this SyncJobExtended. :type: int """ - self._total_files = total_files + + self._target_directories_deleted = target_directories_deleted @property - def regular_files_replicated(self): + def target_directories_linked(self): """ - Gets the regular_files_replicated of this SyncJobExtended. - The number of regular files replicated by this job. + Gets the target_directories_linked of this SyncJobExtended. + The number of directories linked on the target. - :return: The regular_files_replicated of this SyncJobExtended. + :return: The target_directories_linked of this SyncJobExtended. :rtype: int """ - return self._regular_files_replicated + return self._target_directories_linked - @regular_files_replicated.setter - def regular_files_replicated(self, regular_files_replicated): + @target_directories_linked.setter + def target_directories_linked(self, target_directories_linked): """ - Sets the regular_files_replicated of this SyncJobExtended. - The number of regular files replicated by this job. + Sets the target_directories_linked of this SyncJobExtended. + The number of directories linked on the target. - :param regular_files_replicated: The regular_files_replicated of this SyncJobExtended. + :param target_directories_linked: The target_directories_linked of this SyncJobExtended. :type: int """ - self._regular_files_replicated = regular_files_replicated + + self._target_directories_linked = target_directories_linked @property - def warnings(self): + def target_directories_unlinked(self): """ - Gets the warnings of this SyncJobExtended. - A list of warning messages for this job. + Gets the target_directories_unlinked of this SyncJobExtended. + The number of directories unlinked on the target. - :return: The warnings of this SyncJobExtended. - :rtype: list[str] + :return: The target_directories_unlinked of this SyncJobExtended. + :rtype: int """ - return self._warnings + return self._target_directories_unlinked - @warnings.setter - def warnings(self, warnings): + @target_directories_unlinked.setter + def target_directories_unlinked(self, target_directories_unlinked): """ - Sets the warnings of this SyncJobExtended. - A list of warning messages for this job. + Sets the target_directories_unlinked of this SyncJobExtended. + The number of directories unlinked on the target. - :param warnings: The warnings of this SyncJobExtended. - :type: list[str] + :param target_directories_unlinked: The target_directories_unlinked of this SyncJobExtended. + :type: int """ - self._warnings = warnings + + self._target_directories_unlinked = target_directories_unlinked @property - def end_time(self): + def target_files_deleted(self): """ - Gets the end_time of this SyncJobExtended. - The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. + Gets the target_files_deleted of this SyncJobExtended. + The number of files deleted on the target. - :return: The end_time of this SyncJobExtended. + :return: The target_files_deleted of this SyncJobExtended. :rtype: int """ - return self._end_time + return self._target_files_deleted - @end_time.setter - def end_time(self, end_time): + @target_files_deleted.setter + def target_files_deleted(self, target_files_deleted): """ - Sets the end_time of this SyncJobExtended. - The time the job ended in unix epoch seconds. The field is null if the job hasn't ended. + Sets the target_files_deleted of this SyncJobExtended. + The number of files deleted on the target. - :param end_time: The end_time of this SyncJobExtended. + :param target_files_deleted: The target_files_deleted of this SyncJobExtended. :type: int """ - self._end_time = end_time + + self._target_files_deleted = target_files_deleted @property - def policy_name(self): + def target_files_linked(self): """ - Gets the policy_name of this SyncJobExtended. - The name of the policy. + Gets the target_files_linked of this SyncJobExtended. + The number of files linked on the target. - :return: The policy_name of this SyncJobExtended. - :rtype: str + :return: The target_files_linked of this SyncJobExtended. + :rtype: int """ - return self._policy_name + return self._target_files_linked - @policy_name.setter - def policy_name(self, policy_name): + @target_files_linked.setter + def target_files_linked(self, target_files_linked): """ - Sets the policy_name of this SyncJobExtended. - The name of the policy. + Sets the target_files_linked of this SyncJobExtended. + The number of files linked on the target. - :param policy_name: The policy_name of this SyncJobExtended. - :type: str + :param target_files_linked: The target_files_linked of this SyncJobExtended. + :type: int """ - self._policy_name = policy_name + + self._target_files_linked = target_files_linked @property - def source_directories_created(self): + def target_files_unlinked(self): """ - Gets the source_directories_created of this SyncJobExtended. - The number of directories created on the source. + Gets the target_files_unlinked of this SyncJobExtended. + The number of files unlinked on the target. - :return: The source_directories_created of this SyncJobExtended. + :return: The target_files_unlinked of this SyncJobExtended. :rtype: int """ - return self._source_directories_created + return self._target_files_unlinked - @source_directories_created.setter - def source_directories_created(self, source_directories_created): + @target_files_unlinked.setter + def target_files_unlinked(self, target_files_unlinked): """ - Sets the source_directories_created of this SyncJobExtended. - The number of directories created on the source. + Sets the target_files_unlinked of this SyncJobExtended. + The number of files unlinked on the target. - :param source_directories_created: The source_directories_created of this SyncJobExtended. + :param target_files_unlinked: The target_files_unlinked of this SyncJobExtended. :type: int """ - self._source_directories_created = source_directories_created + + self._target_files_unlinked = target_files_unlinked @property - def fifos_replicated(self): + def target_snapshots(self): """ - Gets the fifos_replicated of this SyncJobExtended. - The number of fifos replicated by this job. + Gets the target_snapshots of this SyncJobExtended. + The target snapshots created by this job. - :return: The fifos_replicated of this SyncJobExtended. - :rtype: int + :return: The target_snapshots of this SyncJobExtended. + :rtype: list[str] """ - return self._fifos_replicated + return self._target_snapshots - @fifos_replicated.setter - def fifos_replicated(self, fifos_replicated): + @target_snapshots.setter + def target_snapshots(self, target_snapshots): """ - Sets the fifos_replicated of this SyncJobExtended. - The number of fifos replicated by this job. + Sets the target_snapshots of this SyncJobExtended. + The target snapshots created by this job. - :param fifos_replicated: The fifos_replicated of this SyncJobExtended. - :type: int + :param target_snapshots: The target_snapshots of this SyncJobExtended. + :type: list[str] """ - self._fifos_replicated = fifos_replicated + + self._target_snapshots = target_snapshots @property - def bytes_recoverable(self): + def total_chunks(self): """ - Gets the bytes_recoverable of this SyncJobExtended. - The number of bytes recoverable by this job. + Gets the total_chunks of this SyncJobExtended. + The total number of data chunks transmitted by this job. - :return: The bytes_recoverable of this SyncJobExtended. + :return: The total_chunks of this SyncJobExtended. :rtype: int """ - return self._bytes_recoverable + return self._total_chunks - @bytes_recoverable.setter - def bytes_recoverable(self, bytes_recoverable): + @total_chunks.setter + def total_chunks(self, total_chunks): """ - Sets the bytes_recoverable of this SyncJobExtended. - The number of bytes recoverable by this job. + Sets the total_chunks of this SyncJobExtended. + The total number of data chunks transmitted by this job. - :param bytes_recoverable: The bytes_recoverable of this SyncJobExtended. + :param total_chunks: The total_chunks of this SyncJobExtended. :type: int """ - self._bytes_recoverable = bytes_recoverable + + self._total_chunks = total_chunks @property - def files_unlinked(self): + def total_data_bytes(self): """ - Gets the files_unlinked of this SyncJobExtended. - The number of files unlinked by this job. + Gets the total_data_bytes of this SyncJobExtended. + The total number of bytes transferred by this job. - :return: The files_unlinked of this SyncJobExtended. + :return: The total_data_bytes of this SyncJobExtended. :rtype: int """ - return self._files_unlinked + return self._total_data_bytes - @files_unlinked.setter - def files_unlinked(self, files_unlinked): + @total_data_bytes.setter + def total_data_bytes(self, total_data_bytes): """ - Sets the files_unlinked of this SyncJobExtended. - The number of files unlinked by this job. + Sets the total_data_bytes of this SyncJobExtended. + The total number of bytes transferred by this job. - :param files_unlinked: The files_unlinked of this SyncJobExtended. + :param total_data_bytes: The total_data_bytes of this SyncJobExtended. :type: int """ - self._files_unlinked = files_unlinked + + self._total_data_bytes = total_data_bytes @property - def hash_exceptions_found(self): + def total_files(self): """ - Gets the hash_exceptions_found of this SyncJobExtended. - The number of hash exceptions found by this job. + Gets the total_files of this SyncJobExtended. + The number of files affected by this job. - :return: The hash_exceptions_found of this SyncJobExtended. + :return: The total_files of this SyncJobExtended. :rtype: int """ - return self._hash_exceptions_found + return self._total_files - @hash_exceptions_found.setter - def hash_exceptions_found(self, hash_exceptions_found): + @total_files.setter + def total_files(self, total_files): """ - Sets the hash_exceptions_found of this SyncJobExtended. - The number of hash exceptions found by this job. + Sets the total_files of this SyncJobExtended. + The number of files affected by this job. - :param hash_exceptions_found: The hash_exceptions_found of this SyncJobExtended. + :param total_files: The total_files of this SyncJobExtended. :type: int """ - self._hash_exceptions_found = hash_exceptions_found + + self._total_files = total_files @property - def source_files_unlinked(self): + def total_network_bytes(self): """ - Gets the source_files_unlinked of this SyncJobExtended. - The number of files unlinked on the source. + Gets the total_network_bytes of this SyncJobExtended. + The total number of bytes sent over the network by this job. - :return: The source_files_unlinked of this SyncJobExtended. + :return: The total_network_bytes of this SyncJobExtended. :rtype: int """ - return self._source_files_unlinked + return self._total_network_bytes - @source_files_unlinked.setter - def source_files_unlinked(self, source_files_unlinked): + @total_network_bytes.setter + def total_network_bytes(self, total_network_bytes): """ - Sets the source_files_unlinked of this SyncJobExtended. - The number of files unlinked on the source. + Sets the total_network_bytes of this SyncJobExtended. + The total number of bytes sent over the network by this job. - :param source_files_unlinked: The source_files_unlinked of this SyncJobExtended. + :param total_network_bytes: The total_network_bytes of this SyncJobExtended. :type: int """ - self._source_files_unlinked = source_files_unlinked + + self._total_network_bytes = total_network_bytes @property - def job_id(self): + def total_phases(self): """ - Gets the job_id of this SyncJobExtended. - The ID of the job. + Gets the total_phases of this SyncJobExtended. + The total number of phases for this job. - :return: The job_id of this SyncJobExtended. + :return: The total_phases of this SyncJobExtended. :rtype: int """ - return self._job_id + return self._total_phases - @job_id.setter - def job_id(self, job_id): + @total_phases.setter + def total_phases(self, total_phases): """ - Sets the job_id of this SyncJobExtended. - The ID of the job. + Sets the total_phases of this SyncJobExtended. + The total number of phases for this job. - :param job_id: The job_id of this SyncJobExtended. + :param total_phases: The total_phases of this SyncJobExtended. :type: int """ - self._job_id = job_id + + self._total_phases = total_phases @property - def error_checksum_files_skipped(self): + def unchanged_data_bytes(self): """ - Gets the error_checksum_files_skipped of this SyncJobExtended. - The number of files with checksum errors skipped by this job. + Gets the unchanged_data_bytes of this SyncJobExtended. + The number of bytes unchanged by this job. - :return: The error_checksum_files_skipped of this SyncJobExtended. + :return: The unchanged_data_bytes of this SyncJobExtended. :rtype: int """ - return self._error_checksum_files_skipped + return self._unchanged_data_bytes - @error_checksum_files_skipped.setter - def error_checksum_files_skipped(self, error_checksum_files_skipped): + @unchanged_data_bytes.setter + def unchanged_data_bytes(self, unchanged_data_bytes): """ - Sets the error_checksum_files_skipped of this SyncJobExtended. - The number of files with checksum errors skipped by this job. + Sets the unchanged_data_bytes of this SyncJobExtended. + The number of bytes unchanged by this job. - :param error_checksum_files_skipped: The error_checksum_files_skipped of this SyncJobExtended. + :param unchanged_data_bytes: The unchanged_data_bytes of this SyncJobExtended. :type: int """ - self._error_checksum_files_skipped = error_checksum_files_skipped + + self._unchanged_data_bytes = unchanged_data_bytes @property - def failed_chunks(self): + def up_to_date_files_skipped(self): """ - Gets the failed_chunks of this SyncJobExtended. - Tyhe number of data chunks that failed transmission. + Gets the up_to_date_files_skipped of this SyncJobExtended. + The number of up-to-date files skipped by this job. - :return: The failed_chunks of this SyncJobExtended. + :return: The up_to_date_files_skipped of this SyncJobExtended. :rtype: int """ - return self._failed_chunks + return self._up_to_date_files_skipped - @failed_chunks.setter - def failed_chunks(self, failed_chunks): + @up_to_date_files_skipped.setter + def up_to_date_files_skipped(self, up_to_date_files_skipped): """ - Sets the failed_chunks of this SyncJobExtended. - Tyhe number of data chunks that failed transmission. + Sets the up_to_date_files_skipped of this SyncJobExtended. + The number of up-to-date files skipped by this job. - :param failed_chunks: The failed_chunks of this SyncJobExtended. + :param up_to_date_files_skipped: The up_to_date_files_skipped of this SyncJobExtended. :type: int """ - self._failed_chunks = failed_chunks + + self._up_to_date_files_skipped = up_to_date_files_skipped @property - def dirs_deleted(self): + def updated_files_replicated(self): """ - Gets the dirs_deleted of this SyncJobExtended. - The number of directories deleted by this job. + Gets the updated_files_replicated of this SyncJobExtended. + The number of updated files replicated by this job. - :return: The dirs_deleted of this SyncJobExtended. + :return: The updated_files_replicated of this SyncJobExtended. :rtype: int """ - return self._dirs_deleted + return self._updated_files_replicated - @dirs_deleted.setter - def dirs_deleted(self, dirs_deleted): + @updated_files_replicated.setter + def updated_files_replicated(self, updated_files_replicated): """ - Sets the dirs_deleted of this SyncJobExtended. - The number of directories deleted by this job. + Sets the updated_files_replicated of this SyncJobExtended. + The number of updated files replicated by this job. - :param dirs_deleted: The dirs_deleted of this SyncJobExtended. + :param updated_files_replicated: The updated_files_replicated of this SyncJobExtended. :type: int """ - self._dirs_deleted = dirs_deleted + + self._updated_files_replicated = updated_files_replicated @property - def target_directories_unlinked(self): + def user_conflict_files_skipped(self): """ - Gets the target_directories_unlinked of this SyncJobExtended. - The number of directories unlinked on the target. + Gets the user_conflict_files_skipped of this SyncJobExtended. + The number of files with user conflicts skipped by this job. - :return: The target_directories_unlinked of this SyncJobExtended. + :return: The user_conflict_files_skipped of this SyncJobExtended. :rtype: int """ - return self._target_directories_unlinked + return self._user_conflict_files_skipped - @target_directories_unlinked.setter - def target_directories_unlinked(self, target_directories_unlinked): + @user_conflict_files_skipped.setter + def user_conflict_files_skipped(self, user_conflict_files_skipped): """ - Sets the target_directories_unlinked of this SyncJobExtended. - The number of directories unlinked on the target. + Sets the user_conflict_files_skipped of this SyncJobExtended. + The number of files with user conflicts skipped by this job. - :param target_directories_unlinked: The target_directories_unlinked of this SyncJobExtended. + :param user_conflict_files_skipped: The user_conflict_files_skipped of this SyncJobExtended. :type: int """ - self._target_directories_unlinked = target_directories_unlinked + + self._user_conflict_files_skipped = user_conflict_files_skipped @property - def dirs_moved(self): + def warnings(self): """ - Gets the dirs_moved of this SyncJobExtended. - The number of directories moved by this job. + Gets the warnings of this SyncJobExtended. + A list of warning messages for this job. - :return: The dirs_moved of this SyncJobExtended. - :rtype: int + :return: The warnings of this SyncJobExtended. + :rtype: list[str] """ - return self._dirs_moved + return self._warnings - @dirs_moved.setter - def dirs_moved(self, dirs_moved): + @warnings.setter + def warnings(self, warnings): """ - Sets the dirs_moved of this SyncJobExtended. - The number of directories moved by this job. + Sets the warnings of this SyncJobExtended. + A list of warning messages for this job. - :param dirs_moved: The dirs_moved of this SyncJobExtended. - :type: int + :param warnings: The warnings of this SyncJobExtended. + :type: list[str] """ - self._dirs_moved = dirs_moved + + self._warnings = warnings @property - def total_network_bytes(self): + def workers(self): """ - Gets the total_network_bytes of this SyncJobExtended. - The total number of bytes sent over the network by this job. + Gets the workers of this SyncJobExtended. + A list of workers for this job. - :return: The total_network_bytes of this SyncJobExtended. - :rtype: int + :return: The workers of this SyncJobExtended. + :rtype: list[SyncJobWorker] """ - return self._total_network_bytes + return self._workers - @total_network_bytes.setter - def total_network_bytes(self, total_network_bytes): + @workers.setter + def workers(self, workers): """ - Sets the total_network_bytes of this SyncJobExtended. - The total number of bytes sent over the network by this job. + Sets the workers of this SyncJobExtended. + A list of workers for this job. - :param total_network_bytes: The total_network_bytes of this SyncJobExtended. - :type: int + :param workers: The workers of this SyncJobExtended. + :type: list[SyncJobWorker] """ - self._total_network_bytes = total_network_bytes + + self._workers = workers def to_dict(self): """ @@ -2257,6 +2345,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -2274,14 +2368,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_job_worker.py b/isi_sdk/models/sync_job_worker.py index 4d862a578..36dc08dec 100644 --- a/isi_sdk/models/sync_job_worker.py +++ b/isi_sdk/models/sync_job_worker.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncJobWorker(object): @@ -90,6 +91,7 @@ def connected(self, connected): :param connected: The connected of this SyncJobWorker. :type: bool """ + self._connected = connected @property @@ -112,6 +114,7 @@ def last_split(self, last_split): :param last_split: The last_split of this SyncJobWorker. :type: int """ + self._last_split = last_split @property @@ -134,6 +137,7 @@ def last_work(self, last_work): :param last_work: The last_work of this SyncJobWorker. :type: int """ + self._last_work = last_work @property @@ -156,6 +160,7 @@ def lin(self, lin): :param lin: The lin of this SyncJobWorker. :type: int """ + self._lin = lin @property @@ -178,6 +183,7 @@ def lnn(self, lnn): :param lnn: The lnn of this SyncJobWorker. :type: int """ + self._lnn = lnn @property @@ -200,6 +206,7 @@ def process_id(self, process_id): :param process_id: The process_id of this SyncJobWorker. :type: int """ + self._process_id = process_id @property @@ -222,6 +229,7 @@ def source_host(self, source_host): :param source_host: The source_host of this SyncJobWorker. :type: str """ + self._source_host = source_host @property @@ -244,6 +252,7 @@ def target_host(self, target_host): :param target_host: The target_host of this SyncJobWorker. :type: str """ + self._target_host = target_host @property @@ -266,6 +275,7 @@ def worker_id(self, worker_id): :param worker_id: The worker_id of this SyncJobWorker. :type: int """ + self._worker_id = worker_id def to_dict(self): @@ -283,6 +293,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +316,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_jobs.py b/isi_sdk/models/sync_jobs.py index 269d44268..884dcccef 100644 --- a/isi_sdk/models/sync_jobs.py +++ b/isi_sdk/models/sync_jobs.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncJobs(object): @@ -66,6 +67,7 @@ def jobs(self, jobs): :param jobs: The jobs of this SyncJobs. :type: list[SyncJobExtended] """ + self._jobs = jobs def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_jobs_extended.py b/isi_sdk/models/sync_jobs_extended.py index 3001822a0..4bda08744 100644 --- a/isi_sdk/models/sync_jobs_extended.py +++ b/isi_sdk/models/sync_jobs_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncJobsExtended(object): @@ -37,20 +38,43 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { + 'jobs': 'list[SyncJobExtended]', 'resume': 'str', - 'total': 'int', - 'jobs': 'list[SyncJobExtended]' + 'total': 'int' } self.attribute_map = { + 'jobs': 'jobs', 'resume': 'resume', - 'total': 'total', - 'jobs': 'jobs' + 'total': 'total' } + self._jobs = None self._resume = None self._total = None - self._jobs = None + + @property + def jobs(self): + """ + Gets the jobs of this SyncJobsExtended. + + + :return: The jobs of this SyncJobsExtended. + :rtype: list[SyncJobExtended] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """ + Sets the jobs of this SyncJobsExtended. + + + :param jobs: The jobs of this SyncJobsExtended. + :type: list[SyncJobExtended] + """ + + self._jobs = jobs @property def resume(self): @@ -72,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SyncJobsExtended. :type: str """ + self._resume = resume @property @@ -94,30 +119,9 @@ def total(self, total): :param total: The total of this SyncJobsExtended. :type: int """ + self._total = total - @property - def jobs(self): - """ - Gets the jobs of this SyncJobsExtended. - - - :return: The jobs of this SyncJobsExtended. - :rtype: list[SyncJobExtended] - """ - return self._jobs - - @jobs.setter - def jobs(self, jobs): - """ - Sets the jobs of this SyncJobsExtended. - - - :param jobs: The jobs of this SyncJobsExtended. - :type: list[SyncJobExtended] - """ - self._jobs = jobs - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_policies.py b/isi_sdk/models/sync_policies.py index 3d0879dc2..cac2a2b31 100644 --- a/isi_sdk/models/sync_policies.py +++ b/isi_sdk/models/sync_policies.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncPolicies(object): @@ -66,6 +67,7 @@ def policies(self, policies): :param policies: The policies of this SyncPolicies. :type: list[SyncPolicyExtended] """ + self._policies = policies def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_policies_extended.py b/isi_sdk/models/sync_policies_extended.py index 2542fb0d0..841d95124 100644 --- a/isi_sdk/models/sync_policies_extended.py +++ b/isi_sdk/models/sync_policies_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncPoliciesExtended(object): @@ -72,6 +73,7 @@ def policies(self, policies): :param policies: The policies of this SyncPoliciesExtended. :type: list[SyncPolicyExtended] """ + self._policies = policies @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this SyncPoliciesExtended. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this SyncPoliciesExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_policy.py b/isi_sdk/models/sync_policy.py index 8b178851e..61a07d91a 100644 --- a/isi_sdk/models/sync_policy.py +++ b/isi_sdk/models/sync_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncPolicy(object): @@ -50,7 +51,7 @@ def __init__(self): 'disable_stf': 'bool', 'enabled': 'bool', 'expected_dataloss': 'bool', - 'file_matching_pattern': 'ReportsRidSubreportsSubreportPolicyFileMatchingPattern', + 'file_matching_pattern': 'ReportSubreportPolicyFileMatchingPattern', 'force_interface': 'bool', 'job_delay': 'int', 'log_level': 'str', @@ -201,6 +202,7 @@ def accelerated_failback(self, accelerated_failback): :param accelerated_failback: The accelerated_failback of this SyncPolicy. :type: bool """ + self._accelerated_failback = accelerated_failback @property @@ -229,6 +231,7 @@ def action(self, action): "Invalid value for `action`, must be one of {0}" .format(allowed_values) ) + self._action = action @property @@ -251,6 +254,7 @@ def burst_mode(self, burst_mode): :param burst_mode: The burst_mode of this SyncPolicy. :type: bool """ + self._burst_mode = burst_mode @property @@ -273,6 +277,7 @@ def changelist(self, changelist): :param changelist: The changelist of this SyncPolicy. :type: bool """ + self._changelist = changelist @property @@ -295,6 +300,7 @@ def check_integrity(self, check_integrity): :param check_integrity: The check_integrity of this SyncPolicy. :type: bool """ + self._check_integrity = check_integrity @property @@ -323,6 +329,7 @@ def cloud_deep_copy(self, cloud_deep_copy): "Invalid value for `cloud_deep_copy`, must be one of {0}" .format(allowed_values) ) + self._cloud_deep_copy = cloud_deep_copy @property @@ -345,6 +352,7 @@ def conflicted(self, conflicted): :param conflicted: The conflicted of this SyncPolicy. :type: bool """ + self._conflicted = conflicted @property @@ -367,6 +375,7 @@ def description(self, description): :param description: The description of this SyncPolicy. :type: str """ + self._description = description @property @@ -389,6 +398,7 @@ def disable_file_split(self, disable_file_split): :param disable_file_split: The disable_file_split of this SyncPolicy. :type: bool """ + self._disable_file_split = disable_file_split @property @@ -411,6 +421,7 @@ def disable_fofb(self, disable_fofb): :param disable_fofb: The disable_fofb of this SyncPolicy. :type: bool """ + self._disable_fofb = disable_fofb @property @@ -433,6 +444,7 @@ def disable_stf(self, disable_stf): :param disable_stf: The disable_stf of this SyncPolicy. :type: bool """ + self._disable_stf = disable_stf @property @@ -455,6 +467,7 @@ def enabled(self, enabled): :param enabled: The enabled of this SyncPolicy. :type: bool """ + self._enabled = enabled @property @@ -477,6 +490,7 @@ def expected_dataloss(self, expected_dataloss): :param expected_dataloss: The expected_dataloss of this SyncPolicy. :type: bool """ + self._expected_dataloss = expected_dataloss @property @@ -486,7 +500,7 @@ def file_matching_pattern(self): A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. :return: The file_matching_pattern of this SyncPolicy. - :rtype: ReportsRidSubreportsSubreportPolicyFileMatchingPattern + :rtype: ReportSubreportPolicyFileMatchingPattern """ return self._file_matching_pattern @@ -497,8 +511,9 @@ def file_matching_pattern(self, file_matching_pattern): A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. :param file_matching_pattern: The file_matching_pattern of this SyncPolicy. - :type: ReportsRidSubreportsSubreportPolicyFileMatchingPattern + :type: ReportSubreportPolicyFileMatchingPattern """ + self._file_matching_pattern = file_matching_pattern @property @@ -521,6 +536,7 @@ def force_interface(self, force_interface): :param force_interface: The force_interface of this SyncPolicy. :type: bool """ + self._force_interface = force_interface @property @@ -543,6 +559,12 @@ def job_delay(self, job_delay): :param job_delay: The job_delay of this SyncPolicy. :type: int """ + + if not job_delay: + raise ValueError("Invalid value for `job_delay`, must not be `None`") + if job_delay < 0.0: + raise ValueError("Invalid value for `job_delay`, must be a value greater than or equal to `0.0`") + self._job_delay = job_delay @property @@ -571,6 +593,7 @@ def log_level(self, log_level): "Invalid value for `log_level`, must be one of {0}" .format(allowed_values) ) + self._log_level = log_level @property @@ -593,6 +616,7 @@ def log_removed_files(self, log_removed_files): :param log_removed_files: The log_removed_files of this SyncPolicy. :type: bool """ + self._log_removed_files = log_removed_files @property @@ -615,6 +639,7 @@ def name(self, name): :param name: The name of this SyncPolicy. :type: str """ + self._name = name @property @@ -637,6 +662,7 @@ def password(self, password): :param password: The password of this SyncPolicy. :type: str """ + self._password = password @property @@ -659,6 +685,7 @@ def priority(self, priority): :param priority: The priority of this SyncPolicy. :type: int """ + self._priority = priority @property @@ -681,6 +708,12 @@ def report_max_age(self, report_max_age): :param report_max_age: The report_max_age of this SyncPolicy. :type: int """ + + if not report_max_age: + raise ValueError("Invalid value for `report_max_age`, must not be `None`") + if report_max_age < 0.0: + raise ValueError("Invalid value for `report_max_age`, must be a value greater than or equal to `0.0`") + self._report_max_age = report_max_age @property @@ -703,6 +736,14 @@ def report_max_count(self, report_max_count): :param report_max_count: The report_max_count of this SyncPolicy. :type: int """ + + if not report_max_count: + raise ValueError("Invalid value for `report_max_count`, must not be `None`") + if report_max_count > 2000.0: + raise ValueError("Invalid value for `report_max_count`, must be a value less than or equal to `2000.0`") + if report_max_count < 1.0: + raise ValueError("Invalid value for `report_max_count`, must be a value greater than or equal to `1.0`") + self._report_max_count = report_max_count @property @@ -725,6 +766,7 @@ def restrict_target_network(self, restrict_target_network): :param restrict_target_network: The restrict_target_network of this SyncPolicy. :type: bool """ + self._restrict_target_network = restrict_target_network @property @@ -747,6 +789,12 @@ def rpo_alert(self, rpo_alert): :param rpo_alert: The rpo_alert of this SyncPolicy. :type: int """ + + if not rpo_alert: + raise ValueError("Invalid value for `rpo_alert`, must not be `None`") + if rpo_alert < 0.0: + raise ValueError("Invalid value for `rpo_alert`, must be a value greater than or equal to `0.0`") + self._rpo_alert = rpo_alert @property @@ -769,6 +817,7 @@ def schedule(self, schedule): :param schedule: The schedule of this SyncPolicy. :type: str """ + self._schedule = schedule @property @@ -791,6 +840,7 @@ def skip_lookup(self, skip_lookup): :param skip_lookup: The skip_lookup of this SyncPolicy. :type: bool """ + self._skip_lookup = skip_lookup @property @@ -813,6 +863,7 @@ def skip_when_source_unmodified(self, skip_when_source_unmodified): :param skip_when_source_unmodified: The skip_when_source_unmodified of this SyncPolicy. :type: bool """ + self._skip_when_source_unmodified = skip_when_source_unmodified @property @@ -835,6 +886,7 @@ def snapshot_sync_existing(self, snapshot_sync_existing): :param snapshot_sync_existing: The snapshot_sync_existing of this SyncPolicy. :type: bool """ + self._snapshot_sync_existing = snapshot_sync_existing @property @@ -857,6 +909,7 @@ def snapshot_sync_pattern(self, snapshot_sync_pattern): :param snapshot_sync_pattern: The snapshot_sync_pattern of this SyncPolicy. :type: str """ + self._snapshot_sync_pattern = snapshot_sync_pattern @property @@ -879,6 +932,7 @@ def source_exclude_directories(self, source_exclude_directories): :param source_exclude_directories: The source_exclude_directories of this SyncPolicy. :type: list[str] """ + self._source_exclude_directories = source_exclude_directories @property @@ -901,6 +955,7 @@ def source_include_directories(self, source_include_directories): :param source_include_directories: The source_include_directories of this SyncPolicy. :type: list[str] """ + self._source_include_directories = source_include_directories @property @@ -923,6 +978,7 @@ def source_network(self, source_network): :param source_network: The source_network of this SyncPolicy. :type: SyncPolicySourceNetwork """ + self._source_network = source_network @property @@ -945,6 +1001,7 @@ def source_root_path(self, source_root_path): :param source_root_path: The source_root_path of this SyncPolicy. :type: str """ + self._source_root_path = source_root_path @property @@ -967,6 +1024,7 @@ def source_snapshot_archive(self, source_snapshot_archive): :param source_snapshot_archive: The source_snapshot_archive of this SyncPolicy. :type: bool """ + self._source_snapshot_archive = source_snapshot_archive @property @@ -989,6 +1047,12 @@ def source_snapshot_expiration(self, source_snapshot_expiration): :param source_snapshot_expiration: The source_snapshot_expiration of this SyncPolicy. :type: int """ + + if not source_snapshot_expiration: + raise ValueError("Invalid value for `source_snapshot_expiration`, must not be `None`") + if source_snapshot_expiration < 0.0: + raise ValueError("Invalid value for `source_snapshot_expiration`, must be a value greater than or equal to `0.0`") + self._source_snapshot_expiration = source_snapshot_expiration @property @@ -1011,6 +1075,7 @@ def source_snapshot_pattern(self, source_snapshot_pattern): :param source_snapshot_pattern: The source_snapshot_pattern of this SyncPolicy. :type: str """ + self._source_snapshot_pattern = source_snapshot_pattern @property @@ -1033,6 +1098,7 @@ def target_compare_initial_sync(self, target_compare_initial_sync): :param target_compare_initial_sync: The target_compare_initial_sync of this SyncPolicy. :type: bool """ + self._target_compare_initial_sync = target_compare_initial_sync @property @@ -1055,6 +1121,7 @@ def target_detect_modifications(self, target_detect_modifications): :param target_detect_modifications: The target_detect_modifications of this SyncPolicy. :type: bool """ + self._target_detect_modifications = target_detect_modifications @property @@ -1077,6 +1144,7 @@ def target_host(self, target_host): :param target_host: The target_host of this SyncPolicy. :type: str """ + self._target_host = target_host @property @@ -1099,6 +1167,7 @@ def target_path(self, target_path): :param target_path: The target_path of this SyncPolicy. :type: str """ + self._target_path = target_path @property @@ -1121,6 +1190,7 @@ def target_snapshot_alias(self, target_snapshot_alias): :param target_snapshot_alias: The target_snapshot_alias of this SyncPolicy. :type: str """ + self._target_snapshot_alias = target_snapshot_alias @property @@ -1143,6 +1213,7 @@ def target_snapshot_archive(self, target_snapshot_archive): :param target_snapshot_archive: The target_snapshot_archive of this SyncPolicy. :type: bool """ + self._target_snapshot_archive = target_snapshot_archive @property @@ -1165,6 +1236,12 @@ def target_snapshot_expiration(self, target_snapshot_expiration): :param target_snapshot_expiration: The target_snapshot_expiration of this SyncPolicy. :type: int """ + + if not target_snapshot_expiration: + raise ValueError("Invalid value for `target_snapshot_expiration`, must not be `None`") + if target_snapshot_expiration < 0.0: + raise ValueError("Invalid value for `target_snapshot_expiration`, must be a value greater than or equal to `0.0`") + self._target_snapshot_expiration = target_snapshot_expiration @property @@ -1187,6 +1264,7 @@ def target_snapshot_pattern(self, target_snapshot_pattern): :param target_snapshot_pattern: The target_snapshot_pattern of this SyncPolicy. :type: str """ + self._target_snapshot_pattern = target_snapshot_pattern @property @@ -1209,6 +1287,14 @@ def workers_per_node(self, workers_per_node): :param workers_per_node: The workers_per_node of this SyncPolicy. :type: int """ + + if not workers_per_node: + raise ValueError("Invalid value for `workers_per_node`, must not be `None`") + if workers_per_node > 20.0: + raise ValueError("Invalid value for `workers_per_node`, must be a value less than or equal to `20.0`") + if workers_per_node < 1.0: + raise ValueError("Invalid value for `workers_per_node`, must be a value greater than or equal to `1.0`") + self._workers_per_node = workers_per_node def to_dict(self): @@ -1226,6 +1312,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1243,14 +1335,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_policy_create_params.py b/isi_sdk/models/sync_policy_create_params.py index e410e2f8a..f2ee3e214 100644 --- a/isi_sdk/models/sync_policy_create_params.py +++ b/isi_sdk/models/sync_policy_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncPolicyCreateParams(object): @@ -37,171 +38,244 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'target_compare_initial_sync': 'bool', + 'accelerated_failback': 'bool', + 'action': 'str', + 'burst_mode': 'bool', + 'changelist': 'bool', 'check_integrity': 'bool', - 'source_snapshot_archive': 'bool', + 'cloud_deep_copy': 'str', 'description': 'str', - 'disable_fofb': 'bool', 'disable_file_split': 'bool', + 'disable_fofb': 'bool', + 'disable_stf': 'bool', 'enabled': 'bool', - 'snapshot_sync_pattern': 'str', + 'expected_dataloss': 'bool', + 'file_matching_pattern': 'ReportSubreportPolicyFileMatchingPattern', + 'force_interface': 'bool', + 'job_delay': 'int', + 'log_level': 'str', + 'log_removed_files': 'bool', + 'name': 'str', 'password': 'str', - 'burst_mode': 'bool', - 'action': 'str', - 'target_snapshot_archive': 'bool', - 'source_network': 'SyncPolicySourceNetwork', - 'file_matching_pattern': 'ReportsRidSubreportsSubreportPolicyFileMatchingPattern', - 'target_snapshot_pattern': 'str', - 'conflicted': 'bool', - 'disable_stf': 'bool', - 'source_root_path': 'str', + 'priority': 'int', + 'report_max_age': 'int', + 'report_max_count': 'int', 'restrict_target_network': 'bool', - 'accelerated_failback': 'bool', - 'source_snapshot_pattern': 'str', + 'rpo_alert': 'int', + 'schedule': 'str', + 'skip_lookup': 'bool', 'skip_when_source_unmodified': 'bool', - 'log_level': 'str', - 'job_delay': 'int', - 'report_max_count': 'int', - 'report_max_age': 'int', - 'priority': 'int', - 'target_host': 'str', - 'target_snapshot_alias': 'str', + 'snapshot_sync_existing': 'bool', + 'snapshot_sync_pattern': 'str', 'source_exclude_directories': 'list[str]', - 'target_path': 'str', - 'cloud_deep_copy': 'str', - 'schedule': 'str', 'source_include_directories': 'list[str]', - 'skip_lookup': 'bool', - 'changelist': 'bool', - 'force_interface': 'bool', + 'source_network': 'SyncPolicySourceNetwork', + 'source_root_path': 'str', + 'source_snapshot_archive': 'bool', 'source_snapshot_expiration': 'int', + 'source_snapshot_pattern': 'str', + 'target_compare_initial_sync': 'bool', 'target_detect_modifications': 'bool', - 'workers_per_node': 'int', - 'name': 'str', - 'rpo_alert': 'int', - 'log_removed_files': 'bool', + 'target_host': 'str', + 'target_path': 'str', + 'target_snapshot_alias': 'str', + 'target_snapshot_archive': 'bool', 'target_snapshot_expiration': 'int', - 'expected_dataloss': 'bool', - 'snapshot_sync_existing': 'bool' + 'target_snapshot_pattern': 'str', + 'workers_per_node': 'int' } self.attribute_map = { - 'target_compare_initial_sync': 'target_compare_initial_sync', + 'accelerated_failback': 'accelerated_failback', + 'action': 'action', + 'burst_mode': 'burst_mode', + 'changelist': 'changelist', 'check_integrity': 'check_integrity', - 'source_snapshot_archive': 'source_snapshot_archive', + 'cloud_deep_copy': 'cloud_deep_copy', 'description': 'description', - 'disable_fofb': 'disable_fofb', 'disable_file_split': 'disable_file_split', + 'disable_fofb': 'disable_fofb', + 'disable_stf': 'disable_stf', 'enabled': 'enabled', - 'snapshot_sync_pattern': 'snapshot_sync_pattern', - 'password': 'password', - 'burst_mode': 'burst_mode', - 'action': 'action', - 'target_snapshot_archive': 'target_snapshot_archive', - 'source_network': 'source_network', + 'expected_dataloss': 'expected_dataloss', 'file_matching_pattern': 'file_matching_pattern', - 'target_snapshot_pattern': 'target_snapshot_pattern', - 'conflicted': 'conflicted', - 'disable_stf': 'disable_stf', - 'source_root_path': 'source_root_path', - 'restrict_target_network': 'restrict_target_network', - 'accelerated_failback': 'accelerated_failback', - 'source_snapshot_pattern': 'source_snapshot_pattern', - 'skip_when_source_unmodified': 'skip_when_source_unmodified', - 'log_level': 'log_level', + 'force_interface': 'force_interface', 'job_delay': 'job_delay', - 'report_max_count': 'report_max_count', - 'report_max_age': 'report_max_age', + 'log_level': 'log_level', + 'log_removed_files': 'log_removed_files', + 'name': 'name', + 'password': 'password', 'priority': 'priority', - 'target_host': 'target_host', - 'target_snapshot_alias': 'target_snapshot_alias', - 'source_exclude_directories': 'source_exclude_directories', - 'target_path': 'target_path', - 'cloud_deep_copy': 'cloud_deep_copy', + 'report_max_age': 'report_max_age', + 'report_max_count': 'report_max_count', + 'restrict_target_network': 'restrict_target_network', + 'rpo_alert': 'rpo_alert', 'schedule': 'schedule', - 'source_include_directories': 'source_include_directories', 'skip_lookup': 'skip_lookup', - 'changelist': 'changelist', - 'force_interface': 'force_interface', + 'skip_when_source_unmodified': 'skip_when_source_unmodified', + 'snapshot_sync_existing': 'snapshot_sync_existing', + 'snapshot_sync_pattern': 'snapshot_sync_pattern', + 'source_exclude_directories': 'source_exclude_directories', + 'source_include_directories': 'source_include_directories', + 'source_network': 'source_network', + 'source_root_path': 'source_root_path', + 'source_snapshot_archive': 'source_snapshot_archive', 'source_snapshot_expiration': 'source_snapshot_expiration', + 'source_snapshot_pattern': 'source_snapshot_pattern', + 'target_compare_initial_sync': 'target_compare_initial_sync', 'target_detect_modifications': 'target_detect_modifications', - 'workers_per_node': 'workers_per_node', - 'name': 'name', - 'rpo_alert': 'rpo_alert', - 'log_removed_files': 'log_removed_files', + 'target_host': 'target_host', + 'target_path': 'target_path', + 'target_snapshot_alias': 'target_snapshot_alias', + 'target_snapshot_archive': 'target_snapshot_archive', 'target_snapshot_expiration': 'target_snapshot_expiration', - 'expected_dataloss': 'expected_dataloss', - 'snapshot_sync_existing': 'snapshot_sync_existing' + 'target_snapshot_pattern': 'target_snapshot_pattern', + 'workers_per_node': 'workers_per_node' } - self._target_compare_initial_sync = None + self._accelerated_failback = None + self._action = None + self._burst_mode = None + self._changelist = None self._check_integrity = None - self._source_snapshot_archive = None + self._cloud_deep_copy = None self._description = None - self._disable_fofb = None self._disable_file_split = None + self._disable_fofb = None + self._disable_stf = None self._enabled = None - self._snapshot_sync_pattern = None - self._password = None - self._burst_mode = None - self._action = None - self._target_snapshot_archive = None - self._source_network = None + self._expected_dataloss = None self._file_matching_pattern = None - self._target_snapshot_pattern = None - self._conflicted = None - self._disable_stf = None - self._source_root_path = None - self._restrict_target_network = None - self._accelerated_failback = None - self._source_snapshot_pattern = None - self._skip_when_source_unmodified = None - self._log_level = None + self._force_interface = None self._job_delay = None - self._report_max_count = None - self._report_max_age = None + self._log_level = None + self._log_removed_files = None + self._name = None + self._password = None self._priority = None - self._target_host = None - self._target_snapshot_alias = None - self._source_exclude_directories = None - self._target_path = None - self._cloud_deep_copy = None + self._report_max_age = None + self._report_max_count = None + self._restrict_target_network = None + self._rpo_alert = None self._schedule = None - self._source_include_directories = None self._skip_lookup = None - self._changelist = None - self._force_interface = None + self._skip_when_source_unmodified = None + self._snapshot_sync_existing = None + self._snapshot_sync_pattern = None + self._source_exclude_directories = None + self._source_include_directories = None + self._source_network = None + self._source_root_path = None + self._source_snapshot_archive = None self._source_snapshot_expiration = None + self._source_snapshot_pattern = None + self._target_compare_initial_sync = None self._target_detect_modifications = None - self._workers_per_node = None - self._name = None - self._rpo_alert = None - self._log_removed_files = None + self._target_host = None + self._target_path = None + self._target_snapshot_alias = None + self._target_snapshot_archive = None self._target_snapshot_expiration = None - self._expected_dataloss = None - self._snapshot_sync_existing = None + self._target_snapshot_pattern = None + self._workers_per_node = None @property - def target_compare_initial_sync(self): + def accelerated_failback(self): """ - Gets the target_compare_initial_sync of this SyncPolicyCreateParams. - If true, the target creates diffs against the original sync. + Gets the accelerated_failback of this SyncPolicyCreateParams. + If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. - :return: The target_compare_initial_sync of this SyncPolicyCreateParams. + :return: The accelerated_failback of this SyncPolicyCreateParams. :rtype: bool """ - return self._target_compare_initial_sync + return self._accelerated_failback - @target_compare_initial_sync.setter - def target_compare_initial_sync(self, target_compare_initial_sync): + @accelerated_failback.setter + def accelerated_failback(self, accelerated_failback): """ - Sets the target_compare_initial_sync of this SyncPolicyCreateParams. - If true, the target creates diffs against the original sync. + Sets the accelerated_failback of this SyncPolicyCreateParams. + If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. - :param target_compare_initial_sync: The target_compare_initial_sync of this SyncPolicyCreateParams. + :param accelerated_failback: The accelerated_failback of this SyncPolicyCreateParams. :type: bool """ - self._target_compare_initial_sync = target_compare_initial_sync + + self._accelerated_failback = accelerated_failback + + @property + def action(self): + """ + Gets the action of this SyncPolicyCreateParams. + If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. + + :return: The action of this SyncPolicyCreateParams. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this SyncPolicyCreateParams. + If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. + + :param action: The action of this SyncPolicyCreateParams. + :type: str + """ + allowed_values = ["copy", "sync"] + if action not in allowed_values: + raise ValueError( + "Invalid value for `action`, must be one of {0}" + .format(allowed_values) + ) + + self._action = action + + @property + def burst_mode(self): + """ + Gets the burst_mode of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. + + :return: The burst_mode of this SyncPolicyCreateParams. + :rtype: bool + """ + return self._burst_mode + + @burst_mode.setter + def burst_mode(self, burst_mode): + """ + Sets the burst_mode of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. + + :param burst_mode: The burst_mode of this SyncPolicyCreateParams. + :type: bool + """ + + self._burst_mode = burst_mode + + @property + def changelist(self): + """ + Gets the changelist of this SyncPolicyCreateParams. + If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. + + :return: The changelist of this SyncPolicyCreateParams. + :rtype: bool + """ + return self._changelist + + @changelist.setter + def changelist(self, changelist): + """ + Sets the changelist of this SyncPolicyCreateParams. + If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. + + :param changelist: The changelist of this SyncPolicyCreateParams. + :type: bool + """ + + self._changelist = changelist @property def check_integrity(self): @@ -223,29 +297,37 @@ def check_integrity(self, check_integrity): :param check_integrity: The check_integrity of this SyncPolicyCreateParams. :type: bool """ + self._check_integrity = check_integrity @property - def source_snapshot_archive(self): + def cloud_deep_copy(self): """ - Gets the source_snapshot_archive of this SyncPolicyCreateParams. - If true, archival snapshots of the source data will be taken on the source cluster before a sync. + Gets the cloud_deep_copy of this SyncPolicyCreateParams. + If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. - :return: The source_snapshot_archive of this SyncPolicyCreateParams. - :rtype: bool + :return: The cloud_deep_copy of this SyncPolicyCreateParams. + :rtype: str """ - return self._source_snapshot_archive + return self._cloud_deep_copy - @source_snapshot_archive.setter - def source_snapshot_archive(self, source_snapshot_archive): + @cloud_deep_copy.setter + def cloud_deep_copy(self, cloud_deep_copy): """ - Sets the source_snapshot_archive of this SyncPolicyCreateParams. - If true, archival snapshots of the source data will be taken on the source cluster before a sync. + Sets the cloud_deep_copy of this SyncPolicyCreateParams. + If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. - :param source_snapshot_archive: The source_snapshot_archive of this SyncPolicyCreateParams. - :type: bool + :param cloud_deep_copy: The cloud_deep_copy of this SyncPolicyCreateParams. + :type: str """ - self._source_snapshot_archive = source_snapshot_archive + allowed_values = ["deny", "allow", "force"] + if cloud_deep_copy not in allowed_values: + raise ValueError( + "Invalid value for `cloud_deep_copy`, must be one of {0}" + .format(allowed_values) + ) + + self._cloud_deep_copy = cloud_deep_copy @property def description(self): @@ -267,30 +349,9 @@ def description(self, description): :param description: The description of this SyncPolicyCreateParams. :type: str """ + self._description = description - @property - def disable_fofb(self): - """ - Gets the disable_fofb of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. - - :return: The disable_fofb of this SyncPolicyCreateParams. - :rtype: bool - """ - return self._disable_fofb - - @disable_fofb.setter - def disable_fofb(self, disable_fofb): - """ - Sets the disable_fofb of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. - - :param disable_fofb: The disable_fofb of this SyncPolicyCreateParams. - :type: bool - """ - self._disable_fofb = disable_fofb - @property def disable_file_split(self): """ @@ -311,167 +372,100 @@ def disable_file_split(self, disable_file_split): :param disable_file_split: The disable_file_split of this SyncPolicyCreateParams. :type: bool """ + self._disable_file_split = disable_file_split @property - def enabled(self): + def disable_fofb(self): """ - Gets the enabled of this SyncPolicyCreateParams. - If true, jobs will be automatically run based on this policy, according to its schedule. + Gets the disable_fofb of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. - :return: The enabled of this SyncPolicyCreateParams. + :return: The disable_fofb of this SyncPolicyCreateParams. :rtype: bool """ - return self._enabled + return self._disable_fofb - @enabled.setter - def enabled(self, enabled): + @disable_fofb.setter + def disable_fofb(self, disable_fofb): """ - Sets the enabled of this SyncPolicyCreateParams. - If true, jobs will be automatically run based on this policy, according to its schedule. + Sets the disable_fofb of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. - :param enabled: The enabled of this SyncPolicyCreateParams. + :param disable_fofb: The disable_fofb of this SyncPolicyCreateParams. :type: bool """ - self._enabled = enabled - - @property - def snapshot_sync_pattern(self): - """ - Gets the snapshot_sync_pattern of this SyncPolicyCreateParams. - The naming pattern that a snapshot must match to trigger a sync when the schedule is when-snapshot-taken (default is \"*\"). - - :return: The snapshot_sync_pattern of this SyncPolicyCreateParams. - :rtype: str - """ - return self._snapshot_sync_pattern - - @snapshot_sync_pattern.setter - def snapshot_sync_pattern(self, snapshot_sync_pattern): - """ - Sets the snapshot_sync_pattern of this SyncPolicyCreateParams. - The naming pattern that a snapshot must match to trigger a sync when the schedule is when-snapshot-taken (default is \"*\"). - - :param snapshot_sync_pattern: The snapshot_sync_pattern of this SyncPolicyCreateParams. - :type: str - """ - self._snapshot_sync_pattern = snapshot_sync_pattern - - @property - def password(self): - """ - Gets the password of this SyncPolicyCreateParams. - The password for the target cluster. This field is not readable. - - :return: The password of this SyncPolicyCreateParams. - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """ - Sets the password of this SyncPolicyCreateParams. - The password for the target cluster. This field is not readable. - - :param password: The password of this SyncPolicyCreateParams. - :type: str - """ - self._password = password + + self._disable_fofb = disable_fofb @property - def burst_mode(self): + def disable_stf(self): """ - Gets the burst_mode of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. + Gets the disable_stf of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. - :return: The burst_mode of this SyncPolicyCreateParams. + :return: The disable_stf of this SyncPolicyCreateParams. :rtype: bool """ - return self._burst_mode - - @burst_mode.setter - def burst_mode(self, burst_mode): - """ - Sets the burst_mode of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. - - :param burst_mode: The burst_mode of this SyncPolicyCreateParams. - :type: bool - """ - self._burst_mode = burst_mode - - @property - def action(self): - """ - Gets the action of this SyncPolicyCreateParams. - If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. - - :return: The action of this SyncPolicyCreateParams. - :rtype: str - """ - return self._action + return self._disable_stf - @action.setter - def action(self, action): + @disable_stf.setter + def disable_stf(self, disable_stf): """ - Sets the action of this SyncPolicyCreateParams. - If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. - - :param action: The action of this SyncPolicyCreateParams. - :type: str + Sets the disable_stf of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. + + :param disable_stf: The disable_stf of this SyncPolicyCreateParams. + :type: bool """ - allowed_values = ["copy", "sync"] - if action not in allowed_values: - raise ValueError( - "Invalid value for `action`, must be one of {0}" - .format(allowed_values) - ) - self._action = action + + self._disable_stf = disable_stf @property - def target_snapshot_archive(self): + def enabled(self): """ - Gets the target_snapshot_archive of this SyncPolicyCreateParams. - If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. + Gets the enabled of this SyncPolicyCreateParams. + If true, jobs will be automatically run based on this policy, according to its schedule. - :return: The target_snapshot_archive of this SyncPolicyCreateParams. + :return: The enabled of this SyncPolicyCreateParams. :rtype: bool """ - return self._target_snapshot_archive + return self._enabled - @target_snapshot_archive.setter - def target_snapshot_archive(self, target_snapshot_archive): + @enabled.setter + def enabled(self, enabled): """ - Sets the target_snapshot_archive of this SyncPolicyCreateParams. - If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. + Sets the enabled of this SyncPolicyCreateParams. + If true, jobs will be automatically run based on this policy, according to its schedule. - :param target_snapshot_archive: The target_snapshot_archive of this SyncPolicyCreateParams. + :param enabled: The enabled of this SyncPolicyCreateParams. :type: bool """ - self._target_snapshot_archive = target_snapshot_archive + + self._enabled = enabled @property - def source_network(self): + def expected_dataloss(self): """ - Gets the source_network of this SyncPolicyCreateParams. - Restricts replication policies on the local cluster to running on the specified subnet and pool. + Gets the expected_dataloss of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. - :return: The source_network of this SyncPolicyCreateParams. - :rtype: SyncPolicySourceNetwork + :return: The expected_dataloss of this SyncPolicyCreateParams. + :rtype: bool """ - return self._source_network + return self._expected_dataloss - @source_network.setter - def source_network(self, source_network): + @expected_dataloss.setter + def expected_dataloss(self, expected_dataloss): """ - Sets the source_network of this SyncPolicyCreateParams. - Restricts replication policies on the local cluster to running on the specified subnet and pool. + Sets the expected_dataloss of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. - :param source_network: The source_network of this SyncPolicyCreateParams. - :type: SyncPolicySourceNetwork + :param expected_dataloss: The expected_dataloss of this SyncPolicyCreateParams. + :type: bool """ - self._source_network = source_network + + self._expected_dataloss = expected_dataloss @property def file_matching_pattern(self): @@ -480,7 +474,7 @@ def file_matching_pattern(self): A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. :return: The file_matching_pattern of this SyncPolicyCreateParams. - :rtype: ReportsRidSubreportsSubreportPolicyFileMatchingPattern + :rtype: ReportSubreportPolicyFileMatchingPattern """ return self._file_matching_pattern @@ -491,235 +485,210 @@ def file_matching_pattern(self, file_matching_pattern): A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. :param file_matching_pattern: The file_matching_pattern of this SyncPolicyCreateParams. - :type: ReportsRidSubreportsSubreportPolicyFileMatchingPattern + :type: ReportSubreportPolicyFileMatchingPattern """ + self._file_matching_pattern = file_matching_pattern @property - def target_snapshot_pattern(self): - """ - Gets the target_snapshot_pattern of this SyncPolicyCreateParams. - The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - - :return: The target_snapshot_pattern of this SyncPolicyCreateParams. - :rtype: str - """ - return self._target_snapshot_pattern - - @target_snapshot_pattern.setter - def target_snapshot_pattern(self, target_snapshot_pattern): - """ - Sets the target_snapshot_pattern of this SyncPolicyCreateParams. - The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - - :param target_snapshot_pattern: The target_snapshot_pattern of this SyncPolicyCreateParams. - :type: str - """ - self._target_snapshot_pattern = target_snapshot_pattern - - @property - def conflicted(self): + def force_interface(self): """ - Gets the conflicted of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. If true, the most recent run of this policy encountered an error and this policy will not start any more scheduled jobs until this field is manually set back to 'false'. + Gets the force_interface of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. - :return: The conflicted of this SyncPolicyCreateParams. + :return: The force_interface of this SyncPolicyCreateParams. :rtype: bool """ - return self._conflicted + return self._force_interface - @conflicted.setter - def conflicted(self, conflicted): + @force_interface.setter + def force_interface(self, force_interface): """ - Sets the conflicted of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. If true, the most recent run of this policy encountered an error and this policy will not start any more scheduled jobs until this field is manually set back to 'false'. + Sets the force_interface of this SyncPolicyCreateParams. + NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. - :param conflicted: The conflicted of this SyncPolicyCreateParams. + :param force_interface: The force_interface of this SyncPolicyCreateParams. :type: bool """ - self._conflicted = conflicted + + self._force_interface = force_interface @property - def disable_stf(self): + def job_delay(self): """ - Gets the disable_stf of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. + Gets the job_delay of this SyncPolicyCreateParams. + If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). - :return: The disable_stf of this SyncPolicyCreateParams. - :rtype: bool + :return: The job_delay of this SyncPolicyCreateParams. + :rtype: int """ - return self._disable_stf + return self._job_delay - @disable_stf.setter - def disable_stf(self, disable_stf): + @job_delay.setter + def job_delay(self, job_delay): """ - Sets the disable_stf of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. + Sets the job_delay of this SyncPolicyCreateParams. + If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). - :param disable_stf: The disable_stf of this SyncPolicyCreateParams. - :type: bool + :param job_delay: The job_delay of this SyncPolicyCreateParams. + :type: int """ - self._disable_stf = disable_stf + + if not job_delay: + raise ValueError("Invalid value for `job_delay`, must not be `None`") + if job_delay < 0.0: + raise ValueError("Invalid value for `job_delay`, must be a value greater than or equal to `0.0`") + + self._job_delay = job_delay @property - def source_root_path(self): + def log_level(self): """ - Gets the source_root_path of this SyncPolicyCreateParams. - The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. + Gets the log_level of this SyncPolicyCreateParams. + Severity an event must reach before it is logged. - :return: The source_root_path of this SyncPolicyCreateParams. + :return: The log_level of this SyncPolicyCreateParams. :rtype: str """ - return self._source_root_path + return self._log_level - @source_root_path.setter - def source_root_path(self, source_root_path): + @log_level.setter + def log_level(self, log_level): """ - Sets the source_root_path of this SyncPolicyCreateParams. - The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. + Sets the log_level of this SyncPolicyCreateParams. + Severity an event must reach before it is logged. - :param source_root_path: The source_root_path of this SyncPolicyCreateParams. + :param log_level: The log_level of this SyncPolicyCreateParams. :type: str """ - self._source_root_path = source_root_path - - @property - def restrict_target_network(self): - """ - Gets the restrict_target_network of this SyncPolicyCreateParams. - If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. - - :return: The restrict_target_network of this SyncPolicyCreateParams. - :rtype: bool - """ - return self._restrict_target_network - - @restrict_target_network.setter - def restrict_target_network(self, restrict_target_network): - """ - Sets the restrict_target_network of this SyncPolicyCreateParams. - If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. + allowed_values = ["fatal", "error", "notice", "info", "copy", "debug", "trace"] + if log_level not in allowed_values: + raise ValueError( + "Invalid value for `log_level`, must be one of {0}" + .format(allowed_values) + ) - :param restrict_target_network: The restrict_target_network of this SyncPolicyCreateParams. - :type: bool - """ - self._restrict_target_network = restrict_target_network + self._log_level = log_level @property - def accelerated_failback(self): + def log_removed_files(self): """ - Gets the accelerated_failback of this SyncPolicyCreateParams. - If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. + Gets the log_removed_files of this SyncPolicyCreateParams. + If true, the system will log any files or directories that are deleted due to a sync. - :return: The accelerated_failback of this SyncPolicyCreateParams. + :return: The log_removed_files of this SyncPolicyCreateParams. :rtype: bool """ - return self._accelerated_failback + return self._log_removed_files - @accelerated_failback.setter - def accelerated_failback(self, accelerated_failback): + @log_removed_files.setter + def log_removed_files(self, log_removed_files): """ - Sets the accelerated_failback of this SyncPolicyCreateParams. - If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. + Sets the log_removed_files of this SyncPolicyCreateParams. + If true, the system will log any files or directories that are deleted due to a sync. - :param accelerated_failback: The accelerated_failback of this SyncPolicyCreateParams. + :param log_removed_files: The log_removed_files of this SyncPolicyCreateParams. :type: bool """ - self._accelerated_failback = accelerated_failback + + self._log_removed_files = log_removed_files @property - def source_snapshot_pattern(self): + def name(self): """ - Gets the source_snapshot_pattern of this SyncPolicyCreateParams. - The name pattern for snapshots taken on the source cluster before a sync. + Gets the name of this SyncPolicyCreateParams. + User-assigned name of this sync policy. - :return: The source_snapshot_pattern of this SyncPolicyCreateParams. + :return: The name of this SyncPolicyCreateParams. :rtype: str """ - return self._source_snapshot_pattern + return self._name - @source_snapshot_pattern.setter - def source_snapshot_pattern(self, source_snapshot_pattern): + @name.setter + def name(self, name): """ - Sets the source_snapshot_pattern of this SyncPolicyCreateParams. - The name pattern for snapshots taken on the source cluster before a sync. + Sets the name of this SyncPolicyCreateParams. + User-assigned name of this sync policy. - :param source_snapshot_pattern: The source_snapshot_pattern of this SyncPolicyCreateParams. + :param name: The name of this SyncPolicyCreateParams. :type: str """ - self._source_snapshot_pattern = source_snapshot_pattern + + self._name = name @property - def skip_when_source_unmodified(self): + def password(self): """ - Gets the skip_when_source_unmodified of this SyncPolicyCreateParams. - If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. + Gets the password of this SyncPolicyCreateParams. + The password for the target cluster. This field is not readable. - :return: The skip_when_source_unmodified of this SyncPolicyCreateParams. - :rtype: bool + :return: The password of this SyncPolicyCreateParams. + :rtype: str """ - return self._skip_when_source_unmodified + return self._password - @skip_when_source_unmodified.setter - def skip_when_source_unmodified(self, skip_when_source_unmodified): + @password.setter + def password(self, password): """ - Sets the skip_when_source_unmodified of this SyncPolicyCreateParams. - If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. + Sets the password of this SyncPolicyCreateParams. + The password for the target cluster. This field is not readable. - :param skip_when_source_unmodified: The skip_when_source_unmodified of this SyncPolicyCreateParams. - :type: bool + :param password: The password of this SyncPolicyCreateParams. + :type: str """ - self._skip_when_source_unmodified = skip_when_source_unmodified + + self._password = password @property - def log_level(self): + def priority(self): """ - Gets the log_level of this SyncPolicyCreateParams. - Severity an event must reach before it is logged. + Gets the priority of this SyncPolicyCreateParams. + Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. - :return: The log_level of this SyncPolicyCreateParams. - :rtype: str + :return: The priority of this SyncPolicyCreateParams. + :rtype: int """ - return self._log_level + return self._priority - @log_level.setter - def log_level(self, log_level): + @priority.setter + def priority(self, priority): """ - Sets the log_level of this SyncPolicyCreateParams. - Severity an event must reach before it is logged. + Sets the priority of this SyncPolicyCreateParams. + Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. - :param log_level: The log_level of this SyncPolicyCreateParams. - :type: str + :param priority: The priority of this SyncPolicyCreateParams. + :type: int """ - allowed_values = ["fatal", "error", "notice", "info", "copy", "debug", "trace"] - if log_level not in allowed_values: - raise ValueError( - "Invalid value for `log_level`, must be one of {0}" - .format(allowed_values) - ) - self._log_level = log_level + + self._priority = priority @property - def job_delay(self): + def report_max_age(self): """ - Gets the job_delay of this SyncPolicyCreateParams. - If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). + Gets the report_max_age of this SyncPolicyCreateParams. + Length of time (in seconds) a policy report will be stored. - :return: The job_delay of this SyncPolicyCreateParams. + :return: The report_max_age of this SyncPolicyCreateParams. :rtype: int """ - return self._job_delay + return self._report_max_age - @job_delay.setter - def job_delay(self, job_delay): + @report_max_age.setter + def report_max_age(self, report_max_age): """ - Sets the job_delay of this SyncPolicyCreateParams. - If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). + Sets the report_max_age of this SyncPolicyCreateParams. + Length of time (in seconds) a policy report will be stored. - :param job_delay: The job_delay of this SyncPolicyCreateParams. + :param report_max_age: The report_max_age of this SyncPolicyCreateParams. :type: int """ - self._job_delay = job_delay + + if not report_max_age: + raise ValueError("Invalid value for `report_max_age`, must not be `None`") + if report_max_age < 0.0: + raise ValueError("Invalid value for `report_max_age`, must be a value greater than or equal to `0.0`") + + self._report_max_age = report_max_age @property def report_max_count(self): @@ -741,189 +710,204 @@ def report_max_count(self, report_max_count): :param report_max_count: The report_max_count of this SyncPolicyCreateParams. :type: int """ + + if not report_max_count: + raise ValueError("Invalid value for `report_max_count`, must not be `None`") + if report_max_count > 2000.0: + raise ValueError("Invalid value for `report_max_count`, must be a value less than or equal to `2000.0`") + if report_max_count < 1.0: + raise ValueError("Invalid value for `report_max_count`, must be a value greater than or equal to `1.0`") + self._report_max_count = report_max_count @property - def report_max_age(self): + def restrict_target_network(self): """ - Gets the report_max_age of this SyncPolicyCreateParams. - Length of time (in seconds) a policy report will be stored. + Gets the restrict_target_network of this SyncPolicyCreateParams. + If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. - :return: The report_max_age of this SyncPolicyCreateParams. - :rtype: int + :return: The restrict_target_network of this SyncPolicyCreateParams. + :rtype: bool """ - return self._report_max_age + return self._restrict_target_network - @report_max_age.setter - def report_max_age(self, report_max_age): + @restrict_target_network.setter + def restrict_target_network(self, restrict_target_network): """ - Sets the report_max_age of this SyncPolicyCreateParams. - Length of time (in seconds) a policy report will be stored. + Sets the restrict_target_network of this SyncPolicyCreateParams. + If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. - :param report_max_age: The report_max_age of this SyncPolicyCreateParams. - :type: int + :param restrict_target_network: The restrict_target_network of this SyncPolicyCreateParams. + :type: bool """ - self._report_max_age = report_max_age + + self._restrict_target_network = restrict_target_network @property - def priority(self): + def rpo_alert(self): """ - Gets the priority of this SyncPolicyCreateParams. - Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. + Gets the rpo_alert of this SyncPolicyCreateParams. + If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. - :return: The priority of this SyncPolicyCreateParams. + :return: The rpo_alert of this SyncPolicyCreateParams. :rtype: int """ - return self._priority + return self._rpo_alert - @priority.setter - def priority(self, priority): + @rpo_alert.setter + def rpo_alert(self, rpo_alert): """ - Sets the priority of this SyncPolicyCreateParams. - Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. + Sets the rpo_alert of this SyncPolicyCreateParams. + If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. - :param priority: The priority of this SyncPolicyCreateParams. + :param rpo_alert: The rpo_alert of this SyncPolicyCreateParams. :type: int """ - self._priority = priority + + if not rpo_alert: + raise ValueError("Invalid value for `rpo_alert`, must not be `None`") + if rpo_alert < 0.0: + raise ValueError("Invalid value for `rpo_alert`, must be a value greater than or equal to `0.0`") + + self._rpo_alert = rpo_alert @property - def target_host(self): + def schedule(self): """ - Gets the target_host of this SyncPolicyCreateParams. - Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. + Gets the schedule of this SyncPolicyCreateParams. + The schedule on which new jobs will be run for this policy. - :return: The target_host of this SyncPolicyCreateParams. + :return: The schedule of this SyncPolicyCreateParams. :rtype: str """ - return self._target_host + return self._schedule - @target_host.setter - def target_host(self, target_host): + @schedule.setter + def schedule(self, schedule): """ - Sets the target_host of this SyncPolicyCreateParams. - Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. + Sets the schedule of this SyncPolicyCreateParams. + The schedule on which new jobs will be run for this policy. - :param target_host: The target_host of this SyncPolicyCreateParams. + :param schedule: The schedule of this SyncPolicyCreateParams. :type: str """ - self._target_host = target_host + + self._schedule = schedule @property - def target_snapshot_alias(self): + def skip_lookup(self): """ - Gets the target_snapshot_alias of this SyncPolicyCreateParams. - The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. + Gets the skip_lookup of this SyncPolicyCreateParams. + Skip DNS lookup of target IPs. - :return: The target_snapshot_alias of this SyncPolicyCreateParams. - :rtype: str + :return: The skip_lookup of this SyncPolicyCreateParams. + :rtype: bool """ - return self._target_snapshot_alias + return self._skip_lookup - @target_snapshot_alias.setter - def target_snapshot_alias(self, target_snapshot_alias): + @skip_lookup.setter + def skip_lookup(self, skip_lookup): """ - Sets the target_snapshot_alias of this SyncPolicyCreateParams. - The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. + Sets the skip_lookup of this SyncPolicyCreateParams. + Skip DNS lookup of target IPs. - :param target_snapshot_alias: The target_snapshot_alias of this SyncPolicyCreateParams. - :type: str + :param skip_lookup: The skip_lookup of this SyncPolicyCreateParams. + :type: bool """ - self._target_snapshot_alias = target_snapshot_alias + + self._skip_lookup = skip_lookup @property - def source_exclude_directories(self): + def skip_when_source_unmodified(self): """ - Gets the source_exclude_directories of this SyncPolicyCreateParams. - Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. + Gets the skip_when_source_unmodified of this SyncPolicyCreateParams. + If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. - :return: The source_exclude_directories of this SyncPolicyCreateParams. - :rtype: list[str] + :return: The skip_when_source_unmodified of this SyncPolicyCreateParams. + :rtype: bool """ - return self._source_exclude_directories + return self._skip_when_source_unmodified - @source_exclude_directories.setter - def source_exclude_directories(self, source_exclude_directories): + @skip_when_source_unmodified.setter + def skip_when_source_unmodified(self, skip_when_source_unmodified): """ - Sets the source_exclude_directories of this SyncPolicyCreateParams. - Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. + Sets the skip_when_source_unmodified of this SyncPolicyCreateParams. + If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. - :param source_exclude_directories: The source_exclude_directories of this SyncPolicyCreateParams. - :type: list[str] + :param skip_when_source_unmodified: The skip_when_source_unmodified of this SyncPolicyCreateParams. + :type: bool """ - self._source_exclude_directories = source_exclude_directories + + self._skip_when_source_unmodified = skip_when_source_unmodified @property - def target_path(self): + def snapshot_sync_existing(self): """ - Gets the target_path of this SyncPolicyCreateParams. - Absolute filesystem path on the target cluster for the sync destination. + Gets the snapshot_sync_existing of this SyncPolicyCreateParams. + If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). - :return: The target_path of this SyncPolicyCreateParams. - :rtype: str + :return: The snapshot_sync_existing of this SyncPolicyCreateParams. + :rtype: bool """ - return self._target_path + return self._snapshot_sync_existing - @target_path.setter - def target_path(self, target_path): + @snapshot_sync_existing.setter + def snapshot_sync_existing(self, snapshot_sync_existing): """ - Sets the target_path of this SyncPolicyCreateParams. - Absolute filesystem path on the target cluster for the sync destination. + Sets the snapshot_sync_existing of this SyncPolicyCreateParams. + If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). - :param target_path: The target_path of this SyncPolicyCreateParams. - :type: str + :param snapshot_sync_existing: The snapshot_sync_existing of this SyncPolicyCreateParams. + :type: bool """ - self._target_path = target_path + + self._snapshot_sync_existing = snapshot_sync_existing @property - def cloud_deep_copy(self): + def snapshot_sync_pattern(self): """ - Gets the cloud_deep_copy of this SyncPolicyCreateParams. - If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. + Gets the snapshot_sync_pattern of this SyncPolicyCreateParams. + The naming pattern that a snapshot must match to trigger a sync when the schedule is when-snapshot-taken (default is \"*\"). - :return: The cloud_deep_copy of this SyncPolicyCreateParams. + :return: The snapshot_sync_pattern of this SyncPolicyCreateParams. :rtype: str """ - return self._cloud_deep_copy + return self._snapshot_sync_pattern - @cloud_deep_copy.setter - def cloud_deep_copy(self, cloud_deep_copy): + @snapshot_sync_pattern.setter + def snapshot_sync_pattern(self, snapshot_sync_pattern): """ - Sets the cloud_deep_copy of this SyncPolicyCreateParams. - If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. + Sets the snapshot_sync_pattern of this SyncPolicyCreateParams. + The naming pattern that a snapshot must match to trigger a sync when the schedule is when-snapshot-taken (default is \"*\"). - :param cloud_deep_copy: The cloud_deep_copy of this SyncPolicyCreateParams. + :param snapshot_sync_pattern: The snapshot_sync_pattern of this SyncPolicyCreateParams. :type: str """ - allowed_values = ["deny", "allow", "force"] - if cloud_deep_copy not in allowed_values: - raise ValueError( - "Invalid value for `cloud_deep_copy`, must be one of {0}" - .format(allowed_values) - ) - self._cloud_deep_copy = cloud_deep_copy + + self._snapshot_sync_pattern = snapshot_sync_pattern @property - def schedule(self): + def source_exclude_directories(self): """ - Gets the schedule of this SyncPolicyCreateParams. - The schedule on which new jobs will be run for this policy. + Gets the source_exclude_directories of this SyncPolicyCreateParams. + Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. - :return: The schedule of this SyncPolicyCreateParams. - :rtype: str + :return: The source_exclude_directories of this SyncPolicyCreateParams. + :rtype: list[str] """ - return self._schedule + return self._source_exclude_directories - @schedule.setter - def schedule(self, schedule): + @source_exclude_directories.setter + def source_exclude_directories(self, source_exclude_directories): """ - Sets the schedule of this SyncPolicyCreateParams. - The schedule on which new jobs will be run for this policy. + Sets the source_exclude_directories of this SyncPolicyCreateParams. + Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. - :param schedule: The schedule of this SyncPolicyCreateParams. - :type: str + :param source_exclude_directories: The source_exclude_directories of this SyncPolicyCreateParams. + :type: list[str] """ - self._schedule = schedule + + self._source_exclude_directories = source_exclude_directories @property def source_include_directories(self): @@ -945,73 +929,77 @@ def source_include_directories(self, source_include_directories): :param source_include_directories: The source_include_directories of this SyncPolicyCreateParams. :type: list[str] """ + self._source_include_directories = source_include_directories @property - def skip_lookup(self): + def source_network(self): """ - Gets the skip_lookup of this SyncPolicyCreateParams. - Skip DNS lookup of target IPs. + Gets the source_network of this SyncPolicyCreateParams. + Restricts replication policies on the local cluster to running on the specified subnet and pool. - :return: The skip_lookup of this SyncPolicyCreateParams. - :rtype: bool + :return: The source_network of this SyncPolicyCreateParams. + :rtype: SyncPolicySourceNetwork """ - return self._skip_lookup + return self._source_network - @skip_lookup.setter - def skip_lookup(self, skip_lookup): + @source_network.setter + def source_network(self, source_network): """ - Sets the skip_lookup of this SyncPolicyCreateParams. - Skip DNS lookup of target IPs. + Sets the source_network of this SyncPolicyCreateParams. + Restricts replication policies on the local cluster to running on the specified subnet and pool. - :param skip_lookup: The skip_lookup of this SyncPolicyCreateParams. - :type: bool + :param source_network: The source_network of this SyncPolicyCreateParams. + :type: SyncPolicySourceNetwork """ - self._skip_lookup = skip_lookup + + self._source_network = source_network @property - def changelist(self): + def source_root_path(self): """ - Gets the changelist of this SyncPolicyCreateParams. - If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. + Gets the source_root_path of this SyncPolicyCreateParams. + The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. - :return: The changelist of this SyncPolicyCreateParams. - :rtype: bool + :return: The source_root_path of this SyncPolicyCreateParams. + :rtype: str """ - return self._changelist + return self._source_root_path - @changelist.setter - def changelist(self, changelist): + @source_root_path.setter + def source_root_path(self, source_root_path): """ - Sets the changelist of this SyncPolicyCreateParams. - If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. + Sets the source_root_path of this SyncPolicyCreateParams. + The root directory on the source cluster the files will be synced from. Modifying this field will result in a full synchronization of all data. - :param changelist: The changelist of this SyncPolicyCreateParams. - :type: bool + :param source_root_path: The source_root_path of this SyncPolicyCreateParams. + :type: str """ - self._changelist = changelist + + self._source_root_path = source_root_path @property - def force_interface(self): + def source_snapshot_archive(self): """ - Gets the force_interface of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. + Gets the source_snapshot_archive of this SyncPolicyCreateParams. + If true, archival snapshots of the source data will be taken on the source cluster before a sync. - :return: The force_interface of this SyncPolicyCreateParams. + :return: The source_snapshot_archive of this SyncPolicyCreateParams. :rtype: bool """ - return self._force_interface + return self._source_snapshot_archive - @force_interface.setter - def force_interface(self, force_interface): + @source_snapshot_archive.setter + def source_snapshot_archive(self, source_snapshot_archive): """ - Sets the force_interface of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. + Sets the source_snapshot_archive of this SyncPolicyCreateParams. + If true, archival snapshots of the source data will be taken on the source cluster before a sync. - :param force_interface: The force_interface of this SyncPolicyCreateParams. + :param source_snapshot_archive: The source_snapshot_archive of this SyncPolicyCreateParams. :type: bool """ - self._force_interface = force_interface + + self._source_snapshot_archive = source_snapshot_archive @property def source_snapshot_expiration(self): @@ -1033,8 +1021,60 @@ def source_snapshot_expiration(self, source_snapshot_expiration): :param source_snapshot_expiration: The source_snapshot_expiration of this SyncPolicyCreateParams. :type: int """ + + if not source_snapshot_expiration: + raise ValueError("Invalid value for `source_snapshot_expiration`, must not be `None`") + if source_snapshot_expiration < 0.0: + raise ValueError("Invalid value for `source_snapshot_expiration`, must be a value greater than or equal to `0.0`") + self._source_snapshot_expiration = source_snapshot_expiration + @property + def source_snapshot_pattern(self): + """ + Gets the source_snapshot_pattern of this SyncPolicyCreateParams. + The name pattern for snapshots taken on the source cluster before a sync. + + :return: The source_snapshot_pattern of this SyncPolicyCreateParams. + :rtype: str + """ + return self._source_snapshot_pattern + + @source_snapshot_pattern.setter + def source_snapshot_pattern(self, source_snapshot_pattern): + """ + Sets the source_snapshot_pattern of this SyncPolicyCreateParams. + The name pattern for snapshots taken on the source cluster before a sync. + + :param source_snapshot_pattern: The source_snapshot_pattern of this SyncPolicyCreateParams. + :type: str + """ + + self._source_snapshot_pattern = source_snapshot_pattern + + @property + def target_compare_initial_sync(self): + """ + Gets the target_compare_initial_sync of this SyncPolicyCreateParams. + If true, the target creates diffs against the original sync. + + :return: The target_compare_initial_sync of this SyncPolicyCreateParams. + :rtype: bool + """ + return self._target_compare_initial_sync + + @target_compare_initial_sync.setter + def target_compare_initial_sync(self, target_compare_initial_sync): + """ + Sets the target_compare_initial_sync of this SyncPolicyCreateParams. + If true, the target creates diffs against the original sync. + + :param target_compare_initial_sync: The target_compare_initial_sync of this SyncPolicyCreateParams. + :type: bool + """ + + self._target_compare_initial_sync = target_compare_initial_sync + @property def target_detect_modifications(self): """ @@ -1055,95 +1095,100 @@ def target_detect_modifications(self, target_detect_modifications): :param target_detect_modifications: The target_detect_modifications of this SyncPolicyCreateParams. :type: bool """ + self._target_detect_modifications = target_detect_modifications @property - def workers_per_node(self): + def target_host(self): """ - Gets the workers_per_node of this SyncPolicyCreateParams. - The number of worker threads on a node performing a sync. + Gets the target_host of this SyncPolicyCreateParams. + Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. - :return: The workers_per_node of this SyncPolicyCreateParams. - :rtype: int + :return: The target_host of this SyncPolicyCreateParams. + :rtype: str """ - return self._workers_per_node + return self._target_host - @workers_per_node.setter - def workers_per_node(self, workers_per_node): + @target_host.setter + def target_host(self, target_host): """ - Sets the workers_per_node of this SyncPolicyCreateParams. - The number of worker threads on a node performing a sync. + Sets the target_host of this SyncPolicyCreateParams. + Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. - :param workers_per_node: The workers_per_node of this SyncPolicyCreateParams. - :type: int + :param target_host: The target_host of this SyncPolicyCreateParams. + :type: str """ - self._workers_per_node = workers_per_node + + self._target_host = target_host @property - def name(self): + def target_path(self): """ - Gets the name of this SyncPolicyCreateParams. - User-assigned name of this sync policy. + Gets the target_path of this SyncPolicyCreateParams. + Absolute filesystem path on the target cluster for the sync destination. - :return: The name of this SyncPolicyCreateParams. + :return: The target_path of this SyncPolicyCreateParams. :rtype: str """ - return self._name + return self._target_path - @name.setter - def name(self, name): + @target_path.setter + def target_path(self, target_path): """ - Sets the name of this SyncPolicyCreateParams. - User-assigned name of this sync policy. + Sets the target_path of this SyncPolicyCreateParams. + Absolute filesystem path on the target cluster for the sync destination. - :param name: The name of this SyncPolicyCreateParams. + :param target_path: The target_path of this SyncPolicyCreateParams. :type: str """ - self._name = name + + self._target_path = target_path @property - def rpo_alert(self): + def target_snapshot_alias(self): """ - Gets the rpo_alert of this SyncPolicyCreateParams. - If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. + Gets the target_snapshot_alias of this SyncPolicyCreateParams. + The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - :return: The rpo_alert of this SyncPolicyCreateParams. - :rtype: int + :return: The target_snapshot_alias of this SyncPolicyCreateParams. + :rtype: str """ - return self._rpo_alert + return self._target_snapshot_alias - @rpo_alert.setter - def rpo_alert(self, rpo_alert): + @target_snapshot_alias.setter + def target_snapshot_alias(self, target_snapshot_alias): """ - Sets the rpo_alert of this SyncPolicyCreateParams. - If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. + Sets the target_snapshot_alias of this SyncPolicyCreateParams. + The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - :param rpo_alert: The rpo_alert of this SyncPolicyCreateParams. - :type: int + :param target_snapshot_alias: The target_snapshot_alias of this SyncPolicyCreateParams. + :type: str """ - self._rpo_alert = rpo_alert + + self._target_snapshot_alias = target_snapshot_alias @property - def log_removed_files(self): + def target_snapshot_archive(self): """ - Gets the log_removed_files of this SyncPolicyCreateParams. - If true, the system will log any files or directories that are deleted due to a sync. + Gets the target_snapshot_archive of this SyncPolicyCreateParams. + If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. - :return: The log_removed_files of this SyncPolicyCreateParams. + :return: The target_snapshot_archive of this SyncPolicyCreateParams. :rtype: bool """ - return self._log_removed_files + return self._target_snapshot_archive - @log_removed_files.setter - def log_removed_files(self, log_removed_files): + @target_snapshot_archive.setter + def target_snapshot_archive(self, target_snapshot_archive): """ - Sets the log_removed_files of this SyncPolicyCreateParams. - If true, the system will log any files or directories that are deleted due to a sync. + Sets the target_snapshot_archive of this SyncPolicyCreateParams. + If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. - :param log_removed_files: The log_removed_files of this SyncPolicyCreateParams. + :param target_snapshot_archive: The target_snapshot_archive of this SyncPolicyCreateParams. :type: bool """ - self._log_removed_files = log_removed_files + + self._target_snapshot_archive = target_snapshot_archive @property def target_snapshot_expiration(self): @@ -1165,51 +1210,66 @@ def target_snapshot_expiration(self, target_snapshot_expiration): :param target_snapshot_expiration: The target_snapshot_expiration of this SyncPolicyCreateParams. :type: int """ + + if not target_snapshot_expiration: + raise ValueError("Invalid value for `target_snapshot_expiration`, must not be `None`") + if target_snapshot_expiration < 0.0: + raise ValueError("Invalid value for `target_snapshot_expiration`, must be a value greater than or equal to `0.0`") + self._target_snapshot_expiration = target_snapshot_expiration @property - def expected_dataloss(self): + def target_snapshot_pattern(self): """ - Gets the expected_dataloss of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. + Gets the target_snapshot_pattern of this SyncPolicyCreateParams. + The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - :return: The expected_dataloss of this SyncPolicyCreateParams. - :rtype: bool + :return: The target_snapshot_pattern of this SyncPolicyCreateParams. + :rtype: str """ - return self._expected_dataloss + return self._target_snapshot_pattern - @expected_dataloss.setter - def expected_dataloss(self, expected_dataloss): + @target_snapshot_pattern.setter + def target_snapshot_pattern(self, target_snapshot_pattern): """ - Sets the expected_dataloss of this SyncPolicyCreateParams. - NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. + Sets the target_snapshot_pattern of this SyncPolicyCreateParams. + The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - :param expected_dataloss: The expected_dataloss of this SyncPolicyCreateParams. - :type: bool + :param target_snapshot_pattern: The target_snapshot_pattern of this SyncPolicyCreateParams. + :type: str """ - self._expected_dataloss = expected_dataloss + + self._target_snapshot_pattern = target_snapshot_pattern @property - def snapshot_sync_existing(self): + def workers_per_node(self): """ - Gets the snapshot_sync_existing of this SyncPolicyCreateParams. - If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). + Gets the workers_per_node of this SyncPolicyCreateParams. + The number of worker threads on a node performing a sync. - :return: The snapshot_sync_existing of this SyncPolicyCreateParams. - :rtype: bool + :return: The workers_per_node of this SyncPolicyCreateParams. + :rtype: int """ - return self._snapshot_sync_existing + return self._workers_per_node - @snapshot_sync_existing.setter - def snapshot_sync_existing(self, snapshot_sync_existing): + @workers_per_node.setter + def workers_per_node(self, workers_per_node): """ - Sets the snapshot_sync_existing of this SyncPolicyCreateParams. - If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). + Sets the workers_per_node of this SyncPolicyCreateParams. + The number of worker threads on a node performing a sync. - :param snapshot_sync_existing: The snapshot_sync_existing of this SyncPolicyCreateParams. - :type: bool + :param workers_per_node: The workers_per_node of this SyncPolicyCreateParams. + :type: int """ - self._snapshot_sync_existing = snapshot_sync_existing + + if not workers_per_node: + raise ValueError("Invalid value for `workers_per_node`, must not be `None`") + if workers_per_node > 20.0: + raise ValueError("Invalid value for `workers_per_node`, must be a value less than or equal to `20.0`") + if workers_per_node < 1.0: + raise ValueError("Invalid value for `workers_per_node`, must be a value greater than or equal to `1.0`") + + self._workers_per_node = workers_per_node def to_dict(self): """ @@ -1226,6 +1286,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1243,14 +1309,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_policy_extended.py b/isi_sdk/models/sync_policy_extended.py index 64dc92511..498a78fb5 100644 --- a/isi_sdk/models/sync_policy_extended.py +++ b/isi_sdk/models/sync_policy_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncPolicyExtended(object): @@ -37,280 +38,363 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'has_sync_state': 'bool', - 'target_compare_initial_sync': 'bool', - 'last_success': 'int', - 'source_snapshot_archive': 'bool', - 'disable_fofb': 'bool', - 'disable_file_split': 'bool', - 'last_job_state': 'str', - 'password': 'str', - 'burst_mode': 'bool', - 'action': 'str', - 'id': 'str', - 'file_matching_pattern': 'ReportsRidSubreportsSubreportPolicyFileMatchingPattern', - 'conflicted': 'bool', 'accelerated_failback': 'bool', - 'skip_when_source_unmodified': 'bool', - 'log_level': 'str', - 'report_max_count': 'int', - 'priority': 'int', - 'target_host': 'str', - 'source_exclude_directories': 'list[str]', - 'target_path': 'str', - 'cloud_deep_copy': 'str', - 'skip_lookup': 'bool', + 'action': 'str', + 'burst_mode': 'bool', 'changelist': 'bool', - 'source_snapshot_expiration': 'int', - 'workers_per_node': 'int', - 'name': 'str', - 'target_snapshot_expiration': 'int', 'check_integrity': 'bool', + 'cloud_deep_copy': 'str', + 'conflicted': 'bool', 'description': 'str', - 'last_started': 'int', - 'enabled': 'bool', - 'snapshot_sync_pattern': 'str', - 'next_run': 'int', - 'target_snapshot_archive': 'bool', - 'source_network': 'SyncPolicySourceNetwork', - 'target_snapshot_pattern': 'str', + 'disable_file_split': 'bool', + 'disable_fofb': 'bool', 'disable_stf': 'bool', - 'source_root_path': 'str', - 'restrict_target_network': 'bool', - 'source_snapshot_pattern': 'str', + 'enabled': 'bool', + 'expected_dataloss': 'bool', + 'file_matching_pattern': 'ReportSubreportPolicyFileMatchingPattern', + 'force_interface': 'bool', + 'has_sync_state': 'bool', + 'id': 'str', 'job_delay': 'int', - 'report_max_age': 'int', - 'target_snapshot_alias': 'str', + 'last_job_state': 'str', + 'last_started': 'int', + 'last_success': 'int', + 'log_level': 'str', + 'log_removed_files': 'bool', + 'name': 'str', + 'next_run': 'int', 'password_set': 'bool', + 'priority': 'int', + 'report_max_age': 'int', + 'report_max_count': 'int', + 'restrict_target_network': 'bool', + 'rpo_alert': 'int', 'schedule': 'str', + 'skip_lookup': 'bool', + 'skip_when_source_unmodified': 'bool', + 'snapshot_sync_existing': 'bool', + 'snapshot_sync_pattern': 'str', + 'source_exclude_directories': 'list[str]', 'source_include_directories': 'list[str]', - 'force_interface': 'bool', + 'source_network': 'SyncPolicySourceNetwork', + 'source_root_path': 'str', + 'source_snapshot_archive': 'bool', + 'source_snapshot_expiration': 'int', + 'source_snapshot_pattern': 'str', + 'target_compare_initial_sync': 'bool', 'target_detect_modifications': 'bool', - 'rpo_alert': 'int', - 'log_removed_files': 'bool', - 'expected_dataloss': 'bool', - 'snapshot_sync_existing': 'bool' + 'target_host': 'str', + 'target_path': 'str', + 'target_snapshot_alias': 'str', + 'target_snapshot_archive': 'bool', + 'target_snapshot_expiration': 'int', + 'target_snapshot_pattern': 'str', + 'workers_per_node': 'int' } self.attribute_map = { - 'has_sync_state': 'has_sync_state', - 'target_compare_initial_sync': 'target_compare_initial_sync', - 'last_success': 'last_success', - 'source_snapshot_archive': 'source_snapshot_archive', - 'disable_fofb': 'disable_fofb', - 'disable_file_split': 'disable_file_split', - 'last_job_state': 'last_job_state', - 'password': 'password', - 'burst_mode': 'burst_mode', - 'action': 'action', - 'id': 'id', - 'file_matching_pattern': 'file_matching_pattern', - 'conflicted': 'conflicted', 'accelerated_failback': 'accelerated_failback', - 'skip_when_source_unmodified': 'skip_when_source_unmodified', - 'log_level': 'log_level', - 'report_max_count': 'report_max_count', - 'priority': 'priority', - 'target_host': 'target_host', - 'source_exclude_directories': 'source_exclude_directories', - 'target_path': 'target_path', - 'cloud_deep_copy': 'cloud_deep_copy', - 'skip_lookup': 'skip_lookup', + 'action': 'action', + 'burst_mode': 'burst_mode', 'changelist': 'changelist', - 'source_snapshot_expiration': 'source_snapshot_expiration', - 'workers_per_node': 'workers_per_node', - 'name': 'name', - 'target_snapshot_expiration': 'target_snapshot_expiration', 'check_integrity': 'check_integrity', + 'cloud_deep_copy': 'cloud_deep_copy', + 'conflicted': 'conflicted', 'description': 'description', - 'last_started': 'last_started', - 'enabled': 'enabled', - 'snapshot_sync_pattern': 'snapshot_sync_pattern', - 'next_run': 'next_run', - 'target_snapshot_archive': 'target_snapshot_archive', - 'source_network': 'source_network', - 'target_snapshot_pattern': 'target_snapshot_pattern', + 'disable_file_split': 'disable_file_split', + 'disable_fofb': 'disable_fofb', 'disable_stf': 'disable_stf', - 'source_root_path': 'source_root_path', - 'restrict_target_network': 'restrict_target_network', - 'source_snapshot_pattern': 'source_snapshot_pattern', + 'enabled': 'enabled', + 'expected_dataloss': 'expected_dataloss', + 'file_matching_pattern': 'file_matching_pattern', + 'force_interface': 'force_interface', + 'has_sync_state': 'has_sync_state', + 'id': 'id', 'job_delay': 'job_delay', - 'report_max_age': 'report_max_age', - 'target_snapshot_alias': 'target_snapshot_alias', + 'last_job_state': 'last_job_state', + 'last_started': 'last_started', + 'last_success': 'last_success', + 'log_level': 'log_level', + 'log_removed_files': 'log_removed_files', + 'name': 'name', + 'next_run': 'next_run', 'password_set': 'password_set', + 'priority': 'priority', + 'report_max_age': 'report_max_age', + 'report_max_count': 'report_max_count', + 'restrict_target_network': 'restrict_target_network', + 'rpo_alert': 'rpo_alert', 'schedule': 'schedule', + 'skip_lookup': 'skip_lookup', + 'skip_when_source_unmodified': 'skip_when_source_unmodified', + 'snapshot_sync_existing': 'snapshot_sync_existing', + 'snapshot_sync_pattern': 'snapshot_sync_pattern', + 'source_exclude_directories': 'source_exclude_directories', 'source_include_directories': 'source_include_directories', - 'force_interface': 'force_interface', + 'source_network': 'source_network', + 'source_root_path': 'source_root_path', + 'source_snapshot_archive': 'source_snapshot_archive', + 'source_snapshot_expiration': 'source_snapshot_expiration', + 'source_snapshot_pattern': 'source_snapshot_pattern', + 'target_compare_initial_sync': 'target_compare_initial_sync', 'target_detect_modifications': 'target_detect_modifications', - 'rpo_alert': 'rpo_alert', - 'log_removed_files': 'log_removed_files', - 'expected_dataloss': 'expected_dataloss', - 'snapshot_sync_existing': 'snapshot_sync_existing' + 'target_host': 'target_host', + 'target_path': 'target_path', + 'target_snapshot_alias': 'target_snapshot_alias', + 'target_snapshot_archive': 'target_snapshot_archive', + 'target_snapshot_expiration': 'target_snapshot_expiration', + 'target_snapshot_pattern': 'target_snapshot_pattern', + 'workers_per_node': 'workers_per_node' } - self._has_sync_state = None - self._target_compare_initial_sync = None - self._last_success = None - self._source_snapshot_archive = None - self._disable_fofb = None - self._disable_file_split = None - self._last_job_state = None - self._password = None - self._burst_mode = None - self._action = None - self._id = None - self._file_matching_pattern = None - self._conflicted = None self._accelerated_failback = None - self._skip_when_source_unmodified = None - self._log_level = None - self._report_max_count = None - self._priority = None - self._target_host = None - self._source_exclude_directories = None - self._target_path = None - self._cloud_deep_copy = None - self._skip_lookup = None + self._action = None + self._burst_mode = None self._changelist = None - self._source_snapshot_expiration = None - self._workers_per_node = None - self._name = None - self._target_snapshot_expiration = None self._check_integrity = None + self._cloud_deep_copy = None + self._conflicted = None self._description = None - self._last_started = None - self._enabled = None - self._snapshot_sync_pattern = None - self._next_run = None - self._target_snapshot_archive = None - self._source_network = None - self._target_snapshot_pattern = None + self._disable_file_split = None + self._disable_fofb = None self._disable_stf = None - self._source_root_path = None - self._restrict_target_network = None - self._source_snapshot_pattern = None + self._enabled = None + self._expected_dataloss = None + self._file_matching_pattern = None + self._force_interface = None + self._has_sync_state = None + self._id = None self._job_delay = None - self._report_max_age = None - self._target_snapshot_alias = None + self._last_job_state = None + self._last_started = None + self._last_success = None + self._log_level = None + self._log_removed_files = None + self._name = None + self._next_run = None self._password_set = None + self._priority = None + self._report_max_age = None + self._report_max_count = None + self._restrict_target_network = None + self._rpo_alert = None self._schedule = None + self._skip_lookup = None + self._skip_when_source_unmodified = None + self._snapshot_sync_existing = None + self._snapshot_sync_pattern = None + self._source_exclude_directories = None self._source_include_directories = None - self._force_interface = None + self._source_network = None + self._source_root_path = None + self._source_snapshot_archive = None + self._source_snapshot_expiration = None + self._source_snapshot_pattern = None + self._target_compare_initial_sync = None self._target_detect_modifications = None - self._rpo_alert = None - self._log_removed_files = None - self._expected_dataloss = None - self._snapshot_sync_existing = None + self._target_host = None + self._target_path = None + self._target_snapshot_alias = None + self._target_snapshot_archive = None + self._target_snapshot_expiration = None + self._target_snapshot_pattern = None + self._workers_per_node = None @property - def has_sync_state(self): + def accelerated_failback(self): """ - Gets the has_sync_state of this SyncPolicyExtended. - This field is false if the policy is in its initial sync state and true otherwise. Setting this field to false will reset the policy's sync state. + Gets the accelerated_failback of this SyncPolicyExtended. + If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. - :return: The has_sync_state of this SyncPolicyExtended. + :return: The accelerated_failback of this SyncPolicyExtended. :rtype: bool """ - return self._has_sync_state + return self._accelerated_failback - @has_sync_state.setter - def has_sync_state(self, has_sync_state): + @accelerated_failback.setter + def accelerated_failback(self, accelerated_failback): """ - Sets the has_sync_state of this SyncPolicyExtended. - This field is false if the policy is in its initial sync state and true otherwise. Setting this field to false will reset the policy's sync state. + Sets the accelerated_failback of this SyncPolicyExtended. + If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. - :param has_sync_state: The has_sync_state of this SyncPolicyExtended. + :param accelerated_failback: The accelerated_failback of this SyncPolicyExtended. :type: bool """ - self._has_sync_state = has_sync_state + + self._accelerated_failback = accelerated_failback @property - def target_compare_initial_sync(self): + def action(self): """ - Gets the target_compare_initial_sync of this SyncPolicyExtended. - If true, the target creates diffs against the original sync. + Gets the action of this SyncPolicyExtended. + If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. - :return: The target_compare_initial_sync of this SyncPolicyExtended. + :return: The action of this SyncPolicyExtended. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this SyncPolicyExtended. + If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. + + :param action: The action of this SyncPolicyExtended. + :type: str + """ + allowed_values = ["copy", "sync"] + if action not in allowed_values: + raise ValueError( + "Invalid value for `action`, must be one of {0}" + .format(allowed_values) + ) + + self._action = action + + @property + def burst_mode(self): + """ + Gets the burst_mode of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. + + :return: The burst_mode of this SyncPolicyExtended. :rtype: bool """ - return self._target_compare_initial_sync + return self._burst_mode - @target_compare_initial_sync.setter - def target_compare_initial_sync(self, target_compare_initial_sync): + @burst_mode.setter + def burst_mode(self, burst_mode): """ - Sets the target_compare_initial_sync of this SyncPolicyExtended. - If true, the target creates diffs against the original sync. + Sets the burst_mode of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. - :param target_compare_initial_sync: The target_compare_initial_sync of this SyncPolicyExtended. + :param burst_mode: The burst_mode of this SyncPolicyExtended. :type: bool """ - self._target_compare_initial_sync = target_compare_initial_sync + + self._burst_mode = burst_mode @property - def last_success(self): + def changelist(self): """ - Gets the last_success of this SyncPolicyExtended. - Timestamp of last known successfully completed synchronization. Value is null if the policy has never completed successfully. + Gets the changelist of this SyncPolicyExtended. + If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. - :return: The last_success of this SyncPolicyExtended. - :rtype: int + :return: The changelist of this SyncPolicyExtended. + :rtype: bool """ - return self._last_success + return self._changelist - @last_success.setter - def last_success(self, last_success): + @changelist.setter + def changelist(self, changelist): """ - Sets the last_success of this SyncPolicyExtended. - Timestamp of last known successfully completed synchronization. Value is null if the policy has never completed successfully. + Sets the changelist of this SyncPolicyExtended. + If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. - :param last_success: The last_success of this SyncPolicyExtended. - :type: int + :param changelist: The changelist of this SyncPolicyExtended. + :type: bool """ - self._last_success = last_success + + self._changelist = changelist @property - def source_snapshot_archive(self): + def check_integrity(self): """ - Gets the source_snapshot_archive of this SyncPolicyExtended. - If true, archival snapshots of the source data will be taken on the source cluster before a sync. + Gets the check_integrity of this SyncPolicyExtended. + If true, the sync target performs cyclic redundancy checks (CRC) on the data as it is received. - :return: The source_snapshot_archive of this SyncPolicyExtended. + :return: The check_integrity of this SyncPolicyExtended. :rtype: bool """ - return self._source_snapshot_archive + return self._check_integrity - @source_snapshot_archive.setter - def source_snapshot_archive(self, source_snapshot_archive): + @check_integrity.setter + def check_integrity(self, check_integrity): """ - Sets the source_snapshot_archive of this SyncPolicyExtended. - If true, archival snapshots of the source data will be taken on the source cluster before a sync. + Sets the check_integrity of this SyncPolicyExtended. + If true, the sync target performs cyclic redundancy checks (CRC) on the data as it is received. - :param source_snapshot_archive: The source_snapshot_archive of this SyncPolicyExtended. + :param check_integrity: The check_integrity of this SyncPolicyExtended. :type: bool """ - self._source_snapshot_archive = source_snapshot_archive + + self._check_integrity = check_integrity @property - def disable_fofb(self): + def cloud_deep_copy(self): """ - Gets the disable_fofb of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. + Gets the cloud_deep_copy of this SyncPolicyExtended. + If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. - :return: The disable_fofb of this SyncPolicyExtended. + :return: The cloud_deep_copy of this SyncPolicyExtended. + :rtype: str + """ + return self._cloud_deep_copy + + @cloud_deep_copy.setter + def cloud_deep_copy(self, cloud_deep_copy): + """ + Sets the cloud_deep_copy of this SyncPolicyExtended. + If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. + + :param cloud_deep_copy: The cloud_deep_copy of this SyncPolicyExtended. + :type: str + """ + allowed_values = ["deny", "allow", "force"] + if cloud_deep_copy not in allowed_values: + raise ValueError( + "Invalid value for `cloud_deep_copy`, must be one of {0}" + .format(allowed_values) + ) + + self._cloud_deep_copy = cloud_deep_copy + + @property + def conflicted(self): + """ + Gets the conflicted of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. If true, the most recent run of this policy encountered an error and this policy will not start any more scheduled jobs until this field is manually set back to 'false'. + + :return: The conflicted of this SyncPolicyExtended. :rtype: bool """ - return self._disable_fofb + return self._conflicted - @disable_fofb.setter - def disable_fofb(self, disable_fofb): + @conflicted.setter + def conflicted(self, conflicted): """ - Sets the disable_fofb of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. + Sets the conflicted of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. If true, the most recent run of this policy encountered an error and this policy will not start any more scheduled jobs until this field is manually set back to 'false'. - :param disable_fofb: The disable_fofb of this SyncPolicyExtended. + :param conflicted: The conflicted of this SyncPolicyExtended. :type: bool """ - self._disable_fofb = disable_fofb + + self._conflicted = conflicted + + @property + def description(self): + """ + Gets the description of this SyncPolicyExtended. + User-assigned description of this sync policy. + + :return: The description of this SyncPolicyExtended. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this SyncPolicyExtended. + User-assigned description of this sync policy. + + :param description: The description of this SyncPolicyExtended. + :type: str + """ + + self._description = description @property def disable_file_split(self): @@ -332,101 +416,169 @@ def disable_file_split(self, disable_file_split): :param disable_file_split: The disable_file_split of this SyncPolicyExtended. :type: bool """ + self._disable_file_split = disable_file_split @property - def last_job_state(self): + def disable_fofb(self): """ - Gets the last_job_state of this SyncPolicyExtended. - This is the state of the most recent job for this policy. + Gets the disable_fofb of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. + + :return: The disable_fofb of this SyncPolicyExtended. + :rtype: bool + """ + return self._disable_fofb + + @disable_fofb.setter + def disable_fofb(self, disable_fofb): + """ + Sets the disable_fofb of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable sync failover/failback. + + :param disable_fofb: The disable_fofb of this SyncPolicyExtended. + :type: bool + """ + + self._disable_fofb = disable_fofb + + @property + def disable_stf(self): + """ + Gets the disable_stf of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. + + :return: The disable_stf of this SyncPolicyExtended. + :rtype: bool + """ + return self._disable_stf + + @disable_stf.setter + def disable_stf(self, disable_stf): + """ + Sets the disable_stf of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. + + :param disable_stf: The disable_stf of this SyncPolicyExtended. + :type: bool + """ + + self._disable_stf = disable_stf + + @property + def enabled(self): + """ + Gets the enabled of this SyncPolicyExtended. + If true, jobs will be automatically run based on this policy, according to its schedule. + + :return: The enabled of this SyncPolicyExtended. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this SyncPolicyExtended. + If true, jobs will be automatically run based on this policy, according to its schedule. + + :param enabled: The enabled of this SyncPolicyExtended. + :type: bool + """ + + self._enabled = enabled + + @property + def expected_dataloss(self): + """ + Gets the expected_dataloss of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. - :return: The last_job_state of this SyncPolicyExtended. - :rtype: str + :return: The expected_dataloss of this SyncPolicyExtended. + :rtype: bool """ - return self._last_job_state + return self._expected_dataloss - @last_job_state.setter - def last_job_state(self, last_job_state): + @expected_dataloss.setter + def expected_dataloss(self, expected_dataloss): """ - Sets the last_job_state of this SyncPolicyExtended. - This is the state of the most recent job for this policy. + Sets the expected_dataloss of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. - :param last_job_state: The last_job_state of this SyncPolicyExtended. - :type: str + :param expected_dataloss: The expected_dataloss of this SyncPolicyExtended. + :type: bool """ - self._last_job_state = last_job_state + + self._expected_dataloss = expected_dataloss @property - def password(self): + def file_matching_pattern(self): """ - Gets the password of this SyncPolicyExtended. - The password for the target cluster. This field is not readable. + Gets the file_matching_pattern of this SyncPolicyExtended. + A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. - :return: The password of this SyncPolicyExtended. - :rtype: str + :return: The file_matching_pattern of this SyncPolicyExtended. + :rtype: ReportSubreportPolicyFileMatchingPattern """ - return self._password + return self._file_matching_pattern - @password.setter - def password(self, password): + @file_matching_pattern.setter + def file_matching_pattern(self, file_matching_pattern): """ - Sets the password of this SyncPolicyExtended. - The password for the target cluster. This field is not readable. + Sets the file_matching_pattern of this SyncPolicyExtended. + A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. - :param password: The password of this SyncPolicyExtended. - :type: str + :param file_matching_pattern: The file_matching_pattern of this SyncPolicyExtended. + :type: ReportSubreportPolicyFileMatchingPattern """ - self._password = password + + self._file_matching_pattern = file_matching_pattern @property - def burst_mode(self): + def force_interface(self): """ - Gets the burst_mode of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. + Gets the force_interface of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. - :return: The burst_mode of this SyncPolicyExtended. + :return: The force_interface of this SyncPolicyExtended. :rtype: bool """ - return self._burst_mode + return self._force_interface - @burst_mode.setter - def burst_mode(self, burst_mode): + @force_interface.setter + def force_interface(self, force_interface): """ - Sets the burst_mode of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable UDP-based data transfer. + Sets the force_interface of this SyncPolicyExtended. + NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. - :param burst_mode: The burst_mode of this SyncPolicyExtended. + :param force_interface: The force_interface of this SyncPolicyExtended. :type: bool """ - self._burst_mode = burst_mode + + self._force_interface = force_interface @property - def action(self): + def has_sync_state(self): """ - Gets the action of this SyncPolicyExtended. - If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. + Gets the has_sync_state of this SyncPolicyExtended. + This field is false if the policy is in its initial sync state and true otherwise. Setting this field to false will reset the policy's sync state. - :return: The action of this SyncPolicyExtended. - :rtype: str + :return: The has_sync_state of this SyncPolicyExtended. + :rtype: bool """ - return self._action + return self._has_sync_state - @action.setter - def action(self, action): + @has_sync_state.setter + def has_sync_state(self, has_sync_state): """ - Sets the action of this SyncPolicyExtended. - If 'copy', source files will be copied to the target cluster. If 'sync', the target directory will be made an image of the source directory: Files and directories that have been deleted on the source, have been moved within the target directory, or no longer match the selection criteria will be deleted from the target directory. + Sets the has_sync_state of this SyncPolicyExtended. + This field is false if the policy is in its initial sync state and true otherwise. Setting this field to false will reset the policy's sync state. - :param action: The action of this SyncPolicyExtended. - :type: str + :param has_sync_state: The has_sync_state of this SyncPolicyExtended. + :type: bool """ - allowed_values = ["copy", "sync"] - if action not in allowed_values: - raise ValueError( - "Invalid value for `action`, must be one of {0}" - .format(allowed_values) - ) - self._action = action + + self._has_sync_state = has_sync_state @property def id(self): @@ -448,95 +600,115 @@ def id(self, id): :param id: The id of this SyncPolicyExtended. :type: str """ + self._id = id @property - def file_matching_pattern(self): + def job_delay(self): """ - Gets the file_matching_pattern of this SyncPolicyExtended. - A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. + Gets the job_delay of this SyncPolicyExtended. + If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). - :return: The file_matching_pattern of this SyncPolicyExtended. - :rtype: ReportsRidSubreportsSubreportPolicyFileMatchingPattern + :return: The job_delay of this SyncPolicyExtended. + :rtype: int """ - return self._file_matching_pattern + return self._job_delay - @file_matching_pattern.setter - def file_matching_pattern(self, file_matching_pattern): + @job_delay.setter + def job_delay(self, job_delay): """ - Sets the file_matching_pattern of this SyncPolicyExtended. - A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. + Sets the job_delay of this SyncPolicyExtended. + If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). - :param file_matching_pattern: The file_matching_pattern of this SyncPolicyExtended. - :type: ReportsRidSubreportsSubreportPolicyFileMatchingPattern + :param job_delay: The job_delay of this SyncPolicyExtended. + :type: int """ - self._file_matching_pattern = file_matching_pattern + + if not job_delay: + raise ValueError("Invalid value for `job_delay`, must not be `None`") + if job_delay < 0.0: + raise ValueError("Invalid value for `job_delay`, must be a value greater than or equal to `0.0`") + + self._job_delay = job_delay @property - def conflicted(self): + def last_job_state(self): """ - Gets the conflicted of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. If true, the most recent run of this policy encountered an error and this policy will not start any more scheduled jobs until this field is manually set back to 'false'. + Gets the last_job_state of this SyncPolicyExtended. + This is the state of the most recent job for this policy. - :return: The conflicted of this SyncPolicyExtended. - :rtype: bool + :return: The last_job_state of this SyncPolicyExtended. + :rtype: str """ - return self._conflicted + return self._last_job_state - @conflicted.setter - def conflicted(self, conflicted): + @last_job_state.setter + def last_job_state(self, last_job_state): """ - Sets the conflicted of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. If true, the most recent run of this policy encountered an error and this policy will not start any more scheduled jobs until this field is manually set back to 'false'. + Sets the last_job_state of this SyncPolicyExtended. + This is the state of the most recent job for this policy. - :param conflicted: The conflicted of this SyncPolicyExtended. - :type: bool + :param last_job_state: The last_job_state of this SyncPolicyExtended. + :type: str """ - self._conflicted = conflicted + + self._last_job_state = last_job_state @property - def accelerated_failback(self): + def last_started(self): """ - Gets the accelerated_failback of this SyncPolicyExtended. - If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. + Gets the last_started of this SyncPolicyExtended. + The most recent time a job was started for this policy. Value is null if the policy has never been run. - :return: The accelerated_failback of this SyncPolicyExtended. - :rtype: bool + :return: The last_started of this SyncPolicyExtended. + :rtype: int """ - return self._accelerated_failback + return self._last_started - @accelerated_failback.setter - def accelerated_failback(self, accelerated_failback): + @last_started.setter + def last_started(self, last_started): """ - Sets the accelerated_failback of this SyncPolicyExtended. - If set to true, SyncIQ will perform failback configuration tasks during the next job run, rather than waiting to perform those tasks during the failback process. Performing these tasks ahead of time will increase the speed of failback operations. + Sets the last_started of this SyncPolicyExtended. + The most recent time a job was started for this policy. Value is null if the policy has never been run. - :param accelerated_failback: The accelerated_failback of this SyncPolicyExtended. - :type: bool + :param last_started: The last_started of this SyncPolicyExtended. + :type: int """ - self._accelerated_failback = accelerated_failback + + if not last_started: + raise ValueError("Invalid value for `last_started`, must not be `None`") + if last_started < 0.0: + raise ValueError("Invalid value for `last_started`, must be a value greater than or equal to `0.0`") + + self._last_started = last_started @property - def skip_when_source_unmodified(self): + def last_success(self): """ - Gets the skip_when_source_unmodified of this SyncPolicyExtended. - If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. + Gets the last_success of this SyncPolicyExtended. + Timestamp of last known successfully completed synchronization. Value is null if the policy has never completed successfully. - :return: The skip_when_source_unmodified of this SyncPolicyExtended. - :rtype: bool + :return: The last_success of this SyncPolicyExtended. + :rtype: int """ - return self._skip_when_source_unmodified + return self._last_success - @skip_when_source_unmodified.setter - def skip_when_source_unmodified(self, skip_when_source_unmodified): + @last_success.setter + def last_success(self, last_success): """ - Sets the skip_when_source_unmodified of this SyncPolicyExtended. - If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. + Sets the last_success of this SyncPolicyExtended. + Timestamp of last known successfully completed synchronization. Value is null if the policy has never completed successfully. - :param skip_when_source_unmodified: The skip_when_source_unmodified of this SyncPolicyExtended. - :type: bool + :param last_success: The last_success of this SyncPolicyExtended. + :type: int """ - self._skip_when_source_unmodified = skip_when_source_unmodified + + if not last_success: + raise ValueError("Invalid value for `last_success`, must not be `None`") + if last_success < 0.0: + raise ValueError("Invalid value for `last_success`, must be a value greater than or equal to `0.0`") + + self._last_success = last_success @property def log_level(self): @@ -563,366 +735,325 @@ def log_level(self, log_level): raise ValueError( "Invalid value for `log_level`, must be one of {0}" .format(allowed_values) - ) - self._log_level = log_level - - @property - def report_max_count(self): - """ - Gets the report_max_count of this SyncPolicyExtended. - Maximum number of policy reports that will be stored on the system. - - :return: The report_max_count of this SyncPolicyExtended. - :rtype: int - """ - return self._report_max_count - - @report_max_count.setter - def report_max_count(self, report_max_count): - """ - Sets the report_max_count of this SyncPolicyExtended. - Maximum number of policy reports that will be stored on the system. - - :param report_max_count: The report_max_count of this SyncPolicyExtended. - :type: int - """ - self._report_max_count = report_max_count - - @property - def priority(self): - """ - Gets the priority of this SyncPolicyExtended. - Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. - - :return: The priority of this SyncPolicyExtended. - :rtype: int - """ - return self._priority - - @priority.setter - def priority(self, priority): - """ - Sets the priority of this SyncPolicyExtended. - Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. - - :param priority: The priority of this SyncPolicyExtended. - :type: int - """ - self._priority = priority - - @property - def target_host(self): - """ - Gets the target_host of this SyncPolicyExtended. - Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. - - :return: The target_host of this SyncPolicyExtended. - :rtype: str - """ - return self._target_host - - @target_host.setter - def target_host(self, target_host): - """ - Sets the target_host of this SyncPolicyExtended. - Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. + ) - :param target_host: The target_host of this SyncPolicyExtended. - :type: str - """ - self._target_host = target_host + self._log_level = log_level @property - def source_exclude_directories(self): + def log_removed_files(self): """ - Gets the source_exclude_directories of this SyncPolicyExtended. - Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. + Gets the log_removed_files of this SyncPolicyExtended. + If true, the system will log any files or directories that are deleted due to a sync. - :return: The source_exclude_directories of this SyncPolicyExtended. - :rtype: list[str] + :return: The log_removed_files of this SyncPolicyExtended. + :rtype: bool """ - return self._source_exclude_directories + return self._log_removed_files - @source_exclude_directories.setter - def source_exclude_directories(self, source_exclude_directories): + @log_removed_files.setter + def log_removed_files(self, log_removed_files): """ - Sets the source_exclude_directories of this SyncPolicyExtended. - Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. + Sets the log_removed_files of this SyncPolicyExtended. + If true, the system will log any files or directories that are deleted due to a sync. - :param source_exclude_directories: The source_exclude_directories of this SyncPolicyExtended. - :type: list[str] + :param log_removed_files: The log_removed_files of this SyncPolicyExtended. + :type: bool """ - self._source_exclude_directories = source_exclude_directories + + self._log_removed_files = log_removed_files @property - def target_path(self): + def name(self): """ - Gets the target_path of this SyncPolicyExtended. - Absolute filesystem path on the target cluster for the sync destination. + Gets the name of this SyncPolicyExtended. + User-assigned name of this sync policy. - :return: The target_path of this SyncPolicyExtended. + :return: The name of this SyncPolicyExtended. :rtype: str """ - return self._target_path + return self._name - @target_path.setter - def target_path(self, target_path): + @name.setter + def name(self, name): """ - Sets the target_path of this SyncPolicyExtended. - Absolute filesystem path on the target cluster for the sync destination. + Sets the name of this SyncPolicyExtended. + User-assigned name of this sync policy. - :param target_path: The target_path of this SyncPolicyExtended. + :param name: The name of this SyncPolicyExtended. :type: str """ - self._target_path = target_path + + self._name = name @property - def cloud_deep_copy(self): + def next_run(self): """ - Gets the cloud_deep_copy of this SyncPolicyExtended. - If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. + Gets the next_run of this SyncPolicyExtended. + This is the next time a job is scheduled to run for this policy in Unix epoch seconds. This field is null if the job is not scheduled. - :return: The cloud_deep_copy of this SyncPolicyExtended. - :rtype: str + :return: The next_run of this SyncPolicyExtended. + :rtype: int """ - return self._cloud_deep_copy + return self._next_run - @cloud_deep_copy.setter - def cloud_deep_copy(self, cloud_deep_copy): + @next_run.setter + def next_run(self, next_run): """ - Sets the cloud_deep_copy of this SyncPolicyExtended. - If set to deny, replicates all CloudPools smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, the job will fail. If set to force, replicates all smartlinks to the target cluster as regular files. If set to allow, SyncIQ will attempt to replicate smartlinks to the target cluster as smartlinks; if the target cluster does not support the smartlinks, SyncIQ will replicate the smartlinks as regular files. + Sets the next_run of this SyncPolicyExtended. + This is the next time a job is scheduled to run for this policy in Unix epoch seconds. This field is null if the job is not scheduled. - :param cloud_deep_copy: The cloud_deep_copy of this SyncPolicyExtended. - :type: str + :param next_run: The next_run of this SyncPolicyExtended. + :type: int """ - allowed_values = ["deny", "allow", "force"] - if cloud_deep_copy not in allowed_values: - raise ValueError( - "Invalid value for `cloud_deep_copy`, must be one of {0}" - .format(allowed_values) - ) - self._cloud_deep_copy = cloud_deep_copy + + self._next_run = next_run @property - def skip_lookup(self): + def password_set(self): """ - Gets the skip_lookup of this SyncPolicyExtended. - Skip DNS lookup of target IPs. + Gets the password_set of this SyncPolicyExtended. + Indicates if a password is set for accessing the target cluster. Password value is not shown with GET. - :return: The skip_lookup of this SyncPolicyExtended. + :return: The password_set of this SyncPolicyExtended. :rtype: bool """ - return self._skip_lookup + return self._password_set - @skip_lookup.setter - def skip_lookup(self, skip_lookup): + @password_set.setter + def password_set(self, password_set): """ - Sets the skip_lookup of this SyncPolicyExtended. - Skip DNS lookup of target IPs. + Sets the password_set of this SyncPolicyExtended. + Indicates if a password is set for accessing the target cluster. Password value is not shown with GET. - :param skip_lookup: The skip_lookup of this SyncPolicyExtended. + :param password_set: The password_set of this SyncPolicyExtended. :type: bool """ - self._skip_lookup = skip_lookup + + self._password_set = password_set @property - def changelist(self): + def priority(self): """ - Gets the changelist of this SyncPolicyExtended. - If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. + Gets the priority of this SyncPolicyExtended. + Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. - :return: The changelist of this SyncPolicyExtended. - :rtype: bool + :return: The priority of this SyncPolicyExtended. + :rtype: int """ - return self._changelist + return self._priority - @changelist.setter - def changelist(self, changelist): + @priority.setter + def priority(self, priority): """ - Sets the changelist of this SyncPolicyExtended. - If true, retain previous source snapshot and incremental repstate, both of which are required for changelist creation. + Sets the priority of this SyncPolicyExtended. + Determines the priority level of a policy. Policies with higher priority will have precedence to run over lower priority policies. Valid range is [0, 1]. Default is 0. - :param changelist: The changelist of this SyncPolicyExtended. - :type: bool + :param priority: The priority of this SyncPolicyExtended. + :type: int """ - self._changelist = changelist + + self._priority = priority @property - def source_snapshot_expiration(self): + def report_max_age(self): """ - Gets the source_snapshot_expiration of this SyncPolicyExtended. - The length of time in seconds to keep snapshots on the source cluster. + Gets the report_max_age of this SyncPolicyExtended. + Length of time (in seconds) a policy report will be stored. - :return: The source_snapshot_expiration of this SyncPolicyExtended. + :return: The report_max_age of this SyncPolicyExtended. :rtype: int """ - return self._source_snapshot_expiration + return self._report_max_age - @source_snapshot_expiration.setter - def source_snapshot_expiration(self, source_snapshot_expiration): + @report_max_age.setter + def report_max_age(self, report_max_age): """ - Sets the source_snapshot_expiration of this SyncPolicyExtended. - The length of time in seconds to keep snapshots on the source cluster. + Sets the report_max_age of this SyncPolicyExtended. + Length of time (in seconds) a policy report will be stored. - :param source_snapshot_expiration: The source_snapshot_expiration of this SyncPolicyExtended. + :param report_max_age: The report_max_age of this SyncPolicyExtended. :type: int """ - self._source_snapshot_expiration = source_snapshot_expiration + + if not report_max_age: + raise ValueError("Invalid value for `report_max_age`, must not be `None`") + if report_max_age < 0.0: + raise ValueError("Invalid value for `report_max_age`, must be a value greater than or equal to `0.0`") + + self._report_max_age = report_max_age @property - def workers_per_node(self): + def report_max_count(self): """ - Gets the workers_per_node of this SyncPolicyExtended. - The number of worker threads on a node performing a sync. + Gets the report_max_count of this SyncPolicyExtended. + Maximum number of policy reports that will be stored on the system. - :return: The workers_per_node of this SyncPolicyExtended. + :return: The report_max_count of this SyncPolicyExtended. :rtype: int """ - return self._workers_per_node + return self._report_max_count - @workers_per_node.setter - def workers_per_node(self, workers_per_node): + @report_max_count.setter + def report_max_count(self, report_max_count): """ - Sets the workers_per_node of this SyncPolicyExtended. - The number of worker threads on a node performing a sync. + Sets the report_max_count of this SyncPolicyExtended. + Maximum number of policy reports that will be stored on the system. - :param workers_per_node: The workers_per_node of this SyncPolicyExtended. + :param report_max_count: The report_max_count of this SyncPolicyExtended. :type: int """ - self._workers_per_node = workers_per_node + + if not report_max_count: + raise ValueError("Invalid value for `report_max_count`, must not be `None`") + if report_max_count > 2000.0: + raise ValueError("Invalid value for `report_max_count`, must be a value less than or equal to `2000.0`") + if report_max_count < 1.0: + raise ValueError("Invalid value for `report_max_count`, must be a value greater than or equal to `1.0`") + + self._report_max_count = report_max_count @property - def name(self): + def restrict_target_network(self): """ - Gets the name of this SyncPolicyExtended. - User-assigned name of this sync policy. + Gets the restrict_target_network of this SyncPolicyExtended. + If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. - :return: The name of this SyncPolicyExtended. - :rtype: str + :return: The restrict_target_network of this SyncPolicyExtended. + :rtype: bool """ - return self._name + return self._restrict_target_network - @name.setter - def name(self, name): + @restrict_target_network.setter + def restrict_target_network(self, restrict_target_network): """ - Sets the name of this SyncPolicyExtended. - User-assigned name of this sync policy. + Sets the restrict_target_network of this SyncPolicyExtended. + If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. - :param name: The name of this SyncPolicyExtended. - :type: str + :param restrict_target_network: The restrict_target_network of this SyncPolicyExtended. + :type: bool """ - self._name = name + + self._restrict_target_network = restrict_target_network @property - def target_snapshot_expiration(self): + def rpo_alert(self): """ - Gets the target_snapshot_expiration of this SyncPolicyExtended. - The length of time in seconds to keep snapshots on the target cluster. + Gets the rpo_alert of this SyncPolicyExtended. + If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. - :return: The target_snapshot_expiration of this SyncPolicyExtended. + :return: The rpo_alert of this SyncPolicyExtended. :rtype: int """ - return self._target_snapshot_expiration + return self._rpo_alert - @target_snapshot_expiration.setter - def target_snapshot_expiration(self, target_snapshot_expiration): + @rpo_alert.setter + def rpo_alert(self, rpo_alert): """ - Sets the target_snapshot_expiration of this SyncPolicyExtended. - The length of time in seconds to keep snapshots on the target cluster. + Sets the rpo_alert of this SyncPolicyExtended. + If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. - :param target_snapshot_expiration: The target_snapshot_expiration of this SyncPolicyExtended. + :param rpo_alert: The rpo_alert of this SyncPolicyExtended. :type: int """ - self._target_snapshot_expiration = target_snapshot_expiration + + if not rpo_alert: + raise ValueError("Invalid value for `rpo_alert`, must not be `None`") + if rpo_alert < 0.0: + raise ValueError("Invalid value for `rpo_alert`, must be a value greater than or equal to `0.0`") + + self._rpo_alert = rpo_alert @property - def check_integrity(self): + def schedule(self): """ - Gets the check_integrity of this SyncPolicyExtended. - If true, the sync target performs cyclic redundancy checks (CRC) on the data as it is received. + Gets the schedule of this SyncPolicyExtended. + The schedule on which new jobs will be run for this policy. - :return: The check_integrity of this SyncPolicyExtended. - :rtype: bool + :return: The schedule of this SyncPolicyExtended. + :rtype: str """ - return self._check_integrity + return self._schedule - @check_integrity.setter - def check_integrity(self, check_integrity): + @schedule.setter + def schedule(self, schedule): """ - Sets the check_integrity of this SyncPolicyExtended. - If true, the sync target performs cyclic redundancy checks (CRC) on the data as it is received. + Sets the schedule of this SyncPolicyExtended. + The schedule on which new jobs will be run for this policy. - :param check_integrity: The check_integrity of this SyncPolicyExtended. - :type: bool + :param schedule: The schedule of this SyncPolicyExtended. + :type: str """ - self._check_integrity = check_integrity + + self._schedule = schedule @property - def description(self): + def skip_lookup(self): """ - Gets the description of this SyncPolicyExtended. - User-assigned description of this sync policy. + Gets the skip_lookup of this SyncPolicyExtended. + Skip DNS lookup of target IPs. - :return: The description of this SyncPolicyExtended. - :rtype: str + :return: The skip_lookup of this SyncPolicyExtended. + :rtype: bool """ - return self._description + return self._skip_lookup - @description.setter - def description(self, description): + @skip_lookup.setter + def skip_lookup(self, skip_lookup): """ - Sets the description of this SyncPolicyExtended. - User-assigned description of this sync policy. + Sets the skip_lookup of this SyncPolicyExtended. + Skip DNS lookup of target IPs. - :param description: The description of this SyncPolicyExtended. - :type: str + :param skip_lookup: The skip_lookup of this SyncPolicyExtended. + :type: bool """ - self._description = description + + self._skip_lookup = skip_lookup @property - def last_started(self): + def skip_when_source_unmodified(self): """ - Gets the last_started of this SyncPolicyExtended. - The most recent time a job was started for this policy. Value is null if the policy has never been run. + Gets the skip_when_source_unmodified of this SyncPolicyExtended. + If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. - :return: The last_started of this SyncPolicyExtended. - :rtype: int + :return: The skip_when_source_unmodified of this SyncPolicyExtended. + :rtype: bool """ - return self._last_started + return self._skip_when_source_unmodified - @last_started.setter - def last_started(self, last_started): + @skip_when_source_unmodified.setter + def skip_when_source_unmodified(self, skip_when_source_unmodified): """ - Sets the last_started of this SyncPolicyExtended. - The most recent time a job was started for this policy. Value is null if the policy has never been run. + Sets the skip_when_source_unmodified of this SyncPolicyExtended. + If true and --schedule is set to a time/date, the policy will not run if no changes have been made to the contents of the source directory since the last job successfully completed. - :param last_started: The last_started of this SyncPolicyExtended. - :type: int + :param skip_when_source_unmodified: The skip_when_source_unmodified of this SyncPolicyExtended. + :type: bool """ - self._last_started = last_started + + self._skip_when_source_unmodified = skip_when_source_unmodified @property - def enabled(self): + def snapshot_sync_existing(self): """ - Gets the enabled of this SyncPolicyExtended. - If true, jobs will be automatically run based on this policy, according to its schedule. + Gets the snapshot_sync_existing of this SyncPolicyExtended. + If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). - :return: The enabled of this SyncPolicyExtended. + :return: The snapshot_sync_existing of this SyncPolicyExtended. :rtype: bool """ - return self._enabled + return self._snapshot_sync_existing - @enabled.setter - def enabled(self, enabled): + @snapshot_sync_existing.setter + def snapshot_sync_existing(self, snapshot_sync_existing): """ - Sets the enabled of this SyncPolicyExtended. - If true, jobs will be automatically run based on this policy, according to its schedule. + Sets the snapshot_sync_existing of this SyncPolicyExtended. + If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). - :param enabled: The enabled of this SyncPolicyExtended. + :param snapshot_sync_existing: The snapshot_sync_existing of this SyncPolicyExtended. :type: bool """ - self._enabled = enabled + + self._snapshot_sync_existing = snapshot_sync_existing @property def snapshot_sync_pattern(self): @@ -944,51 +1075,54 @@ def snapshot_sync_pattern(self, snapshot_sync_pattern): :param snapshot_sync_pattern: The snapshot_sync_pattern of this SyncPolicyExtended. :type: str """ + self._snapshot_sync_pattern = snapshot_sync_pattern @property - def next_run(self): + def source_exclude_directories(self): """ - Gets the next_run of this SyncPolicyExtended. - This is the next time a job is scheduled to run for this policy in Unix epoch seconds. This field is null if the job is not scheduled. + Gets the source_exclude_directories of this SyncPolicyExtended. + Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. - :return: The next_run of this SyncPolicyExtended. - :rtype: int + :return: The source_exclude_directories of this SyncPolicyExtended. + :rtype: list[str] """ - return self._next_run + return self._source_exclude_directories - @next_run.setter - def next_run(self, next_run): + @source_exclude_directories.setter + def source_exclude_directories(self, source_exclude_directories): """ - Sets the next_run of this SyncPolicyExtended. - This is the next time a job is scheduled to run for this policy in Unix epoch seconds. This field is null if the job is not scheduled. + Sets the source_exclude_directories of this SyncPolicyExtended. + Directories that will be excluded from the sync. Modifying this field will result in a full synchronization of all data. - :param next_run: The next_run of this SyncPolicyExtended. - :type: int + :param source_exclude_directories: The source_exclude_directories of this SyncPolicyExtended. + :type: list[str] """ - self._next_run = next_run + + self._source_exclude_directories = source_exclude_directories @property - def target_snapshot_archive(self): + def source_include_directories(self): """ - Gets the target_snapshot_archive of this SyncPolicyExtended. - If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. + Gets the source_include_directories of this SyncPolicyExtended. + Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. - :return: The target_snapshot_archive of this SyncPolicyExtended. - :rtype: bool + :return: The source_include_directories of this SyncPolicyExtended. + :rtype: list[str] """ - return self._target_snapshot_archive + return self._source_include_directories - @target_snapshot_archive.setter - def target_snapshot_archive(self, target_snapshot_archive): + @source_include_directories.setter + def source_include_directories(self, source_include_directories): """ - Sets the target_snapshot_archive of this SyncPolicyExtended. - If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. + Sets the source_include_directories of this SyncPolicyExtended. + Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. - :param target_snapshot_archive: The target_snapshot_archive of this SyncPolicyExtended. - :type: bool + :param source_include_directories: The source_include_directories of this SyncPolicyExtended. + :type: list[str] """ - self._target_snapshot_archive = target_snapshot_archive + + self._source_include_directories = source_include_directories @property def source_network(self): @@ -1010,52 +1144,9 @@ def source_network(self, source_network): :param source_network: The source_network of this SyncPolicyExtended. :type: SyncPolicySourceNetwork """ + self._source_network = source_network - @property - def target_snapshot_pattern(self): - """ - Gets the target_snapshot_pattern of this SyncPolicyExtended. - The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - - :return: The target_snapshot_pattern of this SyncPolicyExtended. - :rtype: str - """ - return self._target_snapshot_pattern - - @target_snapshot_pattern.setter - def target_snapshot_pattern(self, target_snapshot_pattern): - """ - Sets the target_snapshot_pattern of this SyncPolicyExtended. - The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - - :param target_snapshot_pattern: The target_snapshot_pattern of this SyncPolicyExtended. - :type: str - """ - self._target_snapshot_pattern = target_snapshot_pattern - - @property - def disable_stf(self): - """ - Gets the disable_stf of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. - - :return: The disable_stf of this SyncPolicyExtended. - :rtype: bool - """ - return self._disable_stf - - @disable_stf.setter - def disable_stf(self, disable_stf): - """ - Sets the disable_stf of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Enable/disable the 6.5+ STF based data transfer and uses only treewalk. - - :param disable_stf: The disable_stf of this SyncPolicyExtended. - :type: bool - """ - self._disable_stf = disable_stf - @property def source_root_path(self): """ @@ -1076,315 +1167,301 @@ def source_root_path(self, source_root_path): :param source_root_path: The source_root_path of this SyncPolicyExtended. :type: str """ + self._source_root_path = source_root_path @property - def restrict_target_network(self): + def source_snapshot_archive(self): """ - Gets the restrict_target_network of this SyncPolicyExtended. - If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. + Gets the source_snapshot_archive of this SyncPolicyExtended. + If true, archival snapshots of the source data will be taken on the source cluster before a sync. - :return: The restrict_target_network of this SyncPolicyExtended. + :return: The source_snapshot_archive of this SyncPolicyExtended. :rtype: bool """ - return self._restrict_target_network + return self._source_snapshot_archive - @restrict_target_network.setter - def restrict_target_network(self, restrict_target_network): + @source_snapshot_archive.setter + def source_snapshot_archive(self, source_snapshot_archive): """ - Sets the restrict_target_network of this SyncPolicyExtended. - If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. + Sets the source_snapshot_archive of this SyncPolicyExtended. + If true, archival snapshots of the source data will be taken on the source cluster before a sync. - :param restrict_target_network: The restrict_target_network of this SyncPolicyExtended. + :param source_snapshot_archive: The source_snapshot_archive of this SyncPolicyExtended. :type: bool """ - self._restrict_target_network = restrict_target_network - - @property - def source_snapshot_pattern(self): - """ - Gets the source_snapshot_pattern of this SyncPolicyExtended. - The name pattern for snapshots taken on the source cluster before a sync. - - :return: The source_snapshot_pattern of this SyncPolicyExtended. - :rtype: str - """ - return self._source_snapshot_pattern - - @source_snapshot_pattern.setter - def source_snapshot_pattern(self, source_snapshot_pattern): - """ - Sets the source_snapshot_pattern of this SyncPolicyExtended. - The name pattern for snapshots taken on the source cluster before a sync. - - :param source_snapshot_pattern: The source_snapshot_pattern of this SyncPolicyExtended. - :type: str - """ - self._source_snapshot_pattern = source_snapshot_pattern + + self._source_snapshot_archive = source_snapshot_archive @property - def job_delay(self): + def source_snapshot_expiration(self): """ - Gets the job_delay of this SyncPolicyExtended. - If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). + Gets the source_snapshot_expiration of this SyncPolicyExtended. + The length of time in seconds to keep snapshots on the source cluster. - :return: The job_delay of this SyncPolicyExtended. + :return: The source_snapshot_expiration of this SyncPolicyExtended. :rtype: int """ - return self._job_delay + return self._source_snapshot_expiration - @job_delay.setter - def job_delay(self, job_delay): + @source_snapshot_expiration.setter + def source_snapshot_expiration(self, source_snapshot_expiration): """ - Sets the job_delay of this SyncPolicyExtended. - If --schedule is set to When-Source-Modified, the duration to wait after a modification is made before starting a job (default is 0 seconds). + Sets the source_snapshot_expiration of this SyncPolicyExtended. + The length of time in seconds to keep snapshots on the source cluster. - :param job_delay: The job_delay of this SyncPolicyExtended. + :param source_snapshot_expiration: The source_snapshot_expiration of this SyncPolicyExtended. :type: int """ - self._job_delay = job_delay - - @property - def report_max_age(self): - """ - Gets the report_max_age of this SyncPolicyExtended. - Length of time (in seconds) a policy report will be stored. - - :return: The report_max_age of this SyncPolicyExtended. - :rtype: int - """ - return self._report_max_age - - @report_max_age.setter - def report_max_age(self, report_max_age): - """ - Sets the report_max_age of this SyncPolicyExtended. - Length of time (in seconds) a policy report will be stored. + + if not source_snapshot_expiration: + raise ValueError("Invalid value for `source_snapshot_expiration`, must not be `None`") + if source_snapshot_expiration < 0.0: + raise ValueError("Invalid value for `source_snapshot_expiration`, must be a value greater than or equal to `0.0`") - :param report_max_age: The report_max_age of this SyncPolicyExtended. - :type: int - """ - self._report_max_age = report_max_age + self._source_snapshot_expiration = source_snapshot_expiration @property - def target_snapshot_alias(self): + def source_snapshot_pattern(self): """ - Gets the target_snapshot_alias of this SyncPolicyExtended. - The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. + Gets the source_snapshot_pattern of this SyncPolicyExtended. + The name pattern for snapshots taken on the source cluster before a sync. - :return: The target_snapshot_alias of this SyncPolicyExtended. + :return: The source_snapshot_pattern of this SyncPolicyExtended. :rtype: str """ - return self._target_snapshot_alias + return self._source_snapshot_pattern - @target_snapshot_alias.setter - def target_snapshot_alias(self, target_snapshot_alias): + @source_snapshot_pattern.setter + def source_snapshot_pattern(self, source_snapshot_pattern): """ - Sets the target_snapshot_alias of this SyncPolicyExtended. - The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. + Sets the source_snapshot_pattern of this SyncPolicyExtended. + The name pattern for snapshots taken on the source cluster before a sync. - :param target_snapshot_alias: The target_snapshot_alias of this SyncPolicyExtended. + :param source_snapshot_pattern: The source_snapshot_pattern of this SyncPolicyExtended. :type: str """ - self._target_snapshot_alias = target_snapshot_alias + + self._source_snapshot_pattern = source_snapshot_pattern @property - def password_set(self): + def target_compare_initial_sync(self): """ - Gets the password_set of this SyncPolicyExtended. - Indicates if a password is set for accessing the target cluster. Password value is not shown with GET. + Gets the target_compare_initial_sync of this SyncPolicyExtended. + If true, the target creates diffs against the original sync. - :return: The password_set of this SyncPolicyExtended. + :return: The target_compare_initial_sync of this SyncPolicyExtended. :rtype: bool """ - return self._password_set + return self._target_compare_initial_sync - @password_set.setter - def password_set(self, password_set): + @target_compare_initial_sync.setter + def target_compare_initial_sync(self, target_compare_initial_sync): """ - Sets the password_set of this SyncPolicyExtended. - Indicates if a password is set for accessing the target cluster. Password value is not shown with GET. + Sets the target_compare_initial_sync of this SyncPolicyExtended. + If true, the target creates diffs against the original sync. - :param password_set: The password_set of this SyncPolicyExtended. + :param target_compare_initial_sync: The target_compare_initial_sync of this SyncPolicyExtended. :type: bool """ - self._password_set = password_set + + self._target_compare_initial_sync = target_compare_initial_sync @property - def schedule(self): + def target_detect_modifications(self): """ - Gets the schedule of this SyncPolicyExtended. - The schedule on which new jobs will be run for this policy. + Gets the target_detect_modifications of this SyncPolicyExtended. + If true, target cluster will detect if files have been changed on the target by legacy tree walk syncs. - :return: The schedule of this SyncPolicyExtended. - :rtype: str + :return: The target_detect_modifications of this SyncPolicyExtended. + :rtype: bool """ - return self._schedule + return self._target_detect_modifications - @schedule.setter - def schedule(self, schedule): + @target_detect_modifications.setter + def target_detect_modifications(self, target_detect_modifications): """ - Sets the schedule of this SyncPolicyExtended. - The schedule on which new jobs will be run for this policy. + Sets the target_detect_modifications of this SyncPolicyExtended. + If true, target cluster will detect if files have been changed on the target by legacy tree walk syncs. - :param schedule: The schedule of this SyncPolicyExtended. - :type: str + :param target_detect_modifications: The target_detect_modifications of this SyncPolicyExtended. + :type: bool """ - self._schedule = schedule + + self._target_detect_modifications = target_detect_modifications @property - def source_include_directories(self): + def target_host(self): """ - Gets the source_include_directories of this SyncPolicyExtended. - Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. + Gets the target_host of this SyncPolicyExtended. + Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. - :return: The source_include_directories of this SyncPolicyExtended. - :rtype: list[str] + :return: The target_host of this SyncPolicyExtended. + :rtype: str """ - return self._source_include_directories + return self._target_host - @source_include_directories.setter - def source_include_directories(self, source_include_directories): + @target_host.setter + def target_host(self, target_host): """ - Sets the source_include_directories of this SyncPolicyExtended. - Directories that will be included in the sync. Modifying this field will result in a full synchronization of all data. + Sets the target_host of this SyncPolicyExtended. + Hostname or IP address of sync target cluster. Modifying the target cluster host can result in the policy being unrunnable if the new target does not match the current target association. - :param source_include_directories: The source_include_directories of this SyncPolicyExtended. - :type: list[str] + :param target_host: The target_host of this SyncPolicyExtended. + :type: str """ - self._source_include_directories = source_include_directories + + self._target_host = target_host @property - def force_interface(self): + def target_path(self): """ - Gets the force_interface of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. + Gets the target_path of this SyncPolicyExtended. + Absolute filesystem path on the target cluster for the sync destination. - :return: The force_interface of this SyncPolicyExtended. - :rtype: bool + :return: The target_path of this SyncPolicyExtended. + :rtype: str """ - return self._force_interface + return self._target_path - @force_interface.setter - def force_interface(self, force_interface): + @target_path.setter + def target_path(self, target_path): """ - Sets the force_interface of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Determines whether data is sent only through the subnet and pool specified in the \"source_network\" field. This option can be useful if there are multiple interfaces for the given source subnet. If you enable this option, the net.inet.ip.choose_ifa_by_ipsrc sysctl should be set. + Sets the target_path of this SyncPolicyExtended. + Absolute filesystem path on the target cluster for the sync destination. - :param force_interface: The force_interface of this SyncPolicyExtended. - :type: bool + :param target_path: The target_path of this SyncPolicyExtended. + :type: str """ - self._force_interface = force_interface + + self._target_path = target_path @property - def target_detect_modifications(self): + def target_snapshot_alias(self): """ - Gets the target_detect_modifications of this SyncPolicyExtended. - If true, target cluster will detect if files have been changed on the target by legacy tree walk syncs. + Gets the target_snapshot_alias of this SyncPolicyExtended. + The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - :return: The target_detect_modifications of this SyncPolicyExtended. - :rtype: bool + :return: The target_snapshot_alias of this SyncPolicyExtended. + :rtype: str """ - return self._target_detect_modifications + return self._target_snapshot_alias - @target_detect_modifications.setter - def target_detect_modifications(self, target_detect_modifications): + @target_snapshot_alias.setter + def target_snapshot_alias(self, target_snapshot_alias): """ - Sets the target_detect_modifications of this SyncPolicyExtended. - If true, target cluster will detect if files have been changed on the target by legacy tree walk syncs. + Sets the target_snapshot_alias of this SyncPolicyExtended. + The alias of the snapshot taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - :param target_detect_modifications: The target_detect_modifications of this SyncPolicyExtended. - :type: bool + :param target_snapshot_alias: The target_snapshot_alias of this SyncPolicyExtended. + :type: str """ - self._target_detect_modifications = target_detect_modifications + + self._target_snapshot_alias = target_snapshot_alias @property - def rpo_alert(self): + def target_snapshot_archive(self): """ - Gets the rpo_alert of this SyncPolicyExtended. - If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. + Gets the target_snapshot_archive of this SyncPolicyExtended. + If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. - :return: The rpo_alert of this SyncPolicyExtended. - :rtype: int + :return: The target_snapshot_archive of this SyncPolicyExtended. + :rtype: bool """ - return self._rpo_alert + return self._target_snapshot_archive - @rpo_alert.setter - def rpo_alert(self, rpo_alert): + @target_snapshot_archive.setter + def target_snapshot_archive(self, target_snapshot_archive): """ - Sets the rpo_alert of this SyncPolicyExtended. - If --schedule is set to a time/date, an alert is created if the specified RPO for this policy is exceeded. The default value is 0, which will not generate RPO alerts. + Sets the target_snapshot_archive of this SyncPolicyExtended. + If true, archival snapshots of the target data will be taken on the target cluster after successful sync completions. - :param rpo_alert: The rpo_alert of this SyncPolicyExtended. - :type: int + :param target_snapshot_archive: The target_snapshot_archive of this SyncPolicyExtended. + :type: bool """ - self._rpo_alert = rpo_alert + + self._target_snapshot_archive = target_snapshot_archive @property - def log_removed_files(self): + def target_snapshot_expiration(self): """ - Gets the log_removed_files of this SyncPolicyExtended. - If true, the system will log any files or directories that are deleted due to a sync. + Gets the target_snapshot_expiration of this SyncPolicyExtended. + The length of time in seconds to keep snapshots on the target cluster. - :return: The log_removed_files of this SyncPolicyExtended. - :rtype: bool + :return: The target_snapshot_expiration of this SyncPolicyExtended. + :rtype: int """ - return self._log_removed_files + return self._target_snapshot_expiration - @log_removed_files.setter - def log_removed_files(self, log_removed_files): + @target_snapshot_expiration.setter + def target_snapshot_expiration(self, target_snapshot_expiration): """ - Sets the log_removed_files of this SyncPolicyExtended. - If true, the system will log any files or directories that are deleted due to a sync. + Sets the target_snapshot_expiration of this SyncPolicyExtended. + The length of time in seconds to keep snapshots on the target cluster. - :param log_removed_files: The log_removed_files of this SyncPolicyExtended. - :type: bool + :param target_snapshot_expiration: The target_snapshot_expiration of this SyncPolicyExtended. + :type: int """ - self._log_removed_files = log_removed_files + + if not target_snapshot_expiration: + raise ValueError("Invalid value for `target_snapshot_expiration`, must not be `None`") + if target_snapshot_expiration < 0.0: + raise ValueError("Invalid value for `target_snapshot_expiration`, must be a value greater than or equal to `0.0`") + + self._target_snapshot_expiration = target_snapshot_expiration @property - def expected_dataloss(self): + def target_snapshot_pattern(self): """ - Gets the expected_dataloss of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. + Gets the target_snapshot_pattern of this SyncPolicyExtended. + The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - :return: The expected_dataloss of this SyncPolicyExtended. - :rtype: bool + :return: The target_snapshot_pattern of this SyncPolicyExtended. + :rtype: str """ - return self._expected_dataloss + return self._target_snapshot_pattern - @expected_dataloss.setter - def expected_dataloss(self, expected_dataloss): + @target_snapshot_pattern.setter + def target_snapshot_pattern(self, target_snapshot_pattern): """ - Sets the expected_dataloss of this SyncPolicyExtended. - NOTE: This field should not be changed without the help of Isilon support. Continue sending files even with the corrupted filesystem. + Sets the target_snapshot_pattern of this SyncPolicyExtended. + The name pattern for snapshots taken on the target cluster after the sync completes. A value of @DEFAULT will reset this field to the default creation value. - :param expected_dataloss: The expected_dataloss of this SyncPolicyExtended. - :type: bool + :param target_snapshot_pattern: The target_snapshot_pattern of this SyncPolicyExtended. + :type: str """ - self._expected_dataloss = expected_dataloss + + self._target_snapshot_pattern = target_snapshot_pattern @property - def snapshot_sync_existing(self): + def workers_per_node(self): """ - Gets the snapshot_sync_existing of this SyncPolicyExtended. - If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). + Gets the workers_per_node of this SyncPolicyExtended. + The number of worker threads on a node performing a sync. - :return: The snapshot_sync_existing of this SyncPolicyExtended. - :rtype: bool + :return: The workers_per_node of this SyncPolicyExtended. + :rtype: int """ - return self._snapshot_sync_existing + return self._workers_per_node - @snapshot_sync_existing.setter - def snapshot_sync_existing(self, snapshot_sync_existing): + @workers_per_node.setter + def workers_per_node(self, workers_per_node): """ - Sets the snapshot_sync_existing of this SyncPolicyExtended. - If true, snapshot-triggered syncs will include snapshots taken before policy creation time (requires --schedule when-snapshot-taken). + Sets the workers_per_node of this SyncPolicyExtended. + The number of worker threads on a node performing a sync. - :param snapshot_sync_existing: The snapshot_sync_existing of this SyncPolicyExtended. - :type: bool + :param workers_per_node: The workers_per_node of this SyncPolicyExtended. + :type: int """ - self._snapshot_sync_existing = snapshot_sync_existing + + if not workers_per_node: + raise ValueError("Invalid value for `workers_per_node`, must not be `None`") + if workers_per_node > 20.0: + raise ValueError("Invalid value for `workers_per_node`, must be a value less than or equal to `20.0`") + if workers_per_node < 1.0: + raise ValueError("Invalid value for `workers_per_node`, must be a value greater than or equal to `1.0`") + + self._workers_per_node = workers_per_node def to_dict(self): """ @@ -1401,6 +1478,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -1418,14 +1501,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_policy_source_network.py b/isi_sdk/models/sync_policy_source_network.py index 1bf1b2fa9..07f76c28f 100644 --- a/isi_sdk/models/sync_policy_source_network.py +++ b/isi_sdk/models/sync_policy_source_network.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncPolicySourceNetwork(object): @@ -69,6 +70,7 @@ def pool(self, pool): :param pool: The pool of this SyncPolicySourceNetwork. :type: str """ + self._pool = pool @property @@ -91,6 +93,7 @@ def subnet(self, subnet): :param subnet: The subnet of this SyncPolicySourceNetwork. :type: str """ + self._subnet = subnet def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_report.py b/isi_sdk/models/sync_report.py index b1ab777e9..9ebca4b48 100644 --- a/isi_sdk/models/sync_report.py +++ b/isi_sdk/models/sync_report.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncReport(object): @@ -78,7 +79,7 @@ def __init__(self): 'network_bytes_to_target': 'int', 'new_files_replicated': 'int', 'num_retransmitted_files': 'int', - 'phases': 'list[ReportsRidSubreportsSubreportPhase]', + 'phases': 'list[ReportSubreportPhase]', 'policy': 'SyncReportPolicy', 'policy_action': 'str', 'policy_id': 'str', @@ -324,6 +325,7 @@ def action(self, action): :param action: The action of this SyncReport. :type: str """ + self._action = action @property @@ -346,6 +348,7 @@ def ads_streams_replicated(self, ads_streams_replicated): :param ads_streams_replicated: The ads_streams_replicated of this SyncReport. :type: int """ + self._ads_streams_replicated = ads_streams_replicated @property @@ -368,6 +371,7 @@ def block_specs_replicated(self, block_specs_replicated): :param block_specs_replicated: The block_specs_replicated of this SyncReport. :type: int """ + self._block_specs_replicated = block_specs_replicated @property @@ -390,6 +394,7 @@ def bytes_recoverable(self, bytes_recoverable): :param bytes_recoverable: The bytes_recoverable of this SyncReport. :type: int """ + self._bytes_recoverable = bytes_recoverable @property @@ -412,6 +417,7 @@ def bytes_transferred(self, bytes_transferred): :param bytes_transferred: The bytes_transferred of this SyncReport. :type: int """ + self._bytes_transferred = bytes_transferred @property @@ -434,6 +440,7 @@ def char_specs_replicated(self, char_specs_replicated): :param char_specs_replicated: The char_specs_replicated of this SyncReport. :type: int """ + self._char_specs_replicated = char_specs_replicated @property @@ -456,6 +463,7 @@ def corrected_lins(self, corrected_lins): :param corrected_lins: The corrected_lins of this SyncReport. :type: int """ + self._corrected_lins = corrected_lins @property @@ -478,6 +486,7 @@ def dead_node(self, dead_node): :param dead_node: The dead_node of this SyncReport. :type: bool """ + self._dead_node = dead_node @property @@ -500,6 +509,7 @@ def directories_replicated(self, directories_replicated): :param directories_replicated: The directories_replicated of this SyncReport. :type: int """ + self._directories_replicated = directories_replicated @property @@ -522,6 +532,7 @@ def dirs_changed(self, dirs_changed): :param dirs_changed: The dirs_changed of this SyncReport. :type: int """ + self._dirs_changed = dirs_changed @property @@ -544,6 +555,7 @@ def dirs_deleted(self, dirs_deleted): :param dirs_deleted: The dirs_deleted of this SyncReport. :type: int """ + self._dirs_deleted = dirs_deleted @property @@ -566,6 +578,7 @@ def dirs_moved(self, dirs_moved): :param dirs_moved: The dirs_moved of this SyncReport. :type: int """ + self._dirs_moved = dirs_moved @property @@ -588,6 +601,7 @@ def dirs_new(self, dirs_new): :param dirs_new: The dirs_new of this SyncReport. :type: int """ + self._dirs_new = dirs_new @property @@ -610,6 +624,7 @@ def duration(self, duration): :param duration: The duration of this SyncReport. :type: int """ + self._duration = duration @property @@ -632,6 +647,7 @@ def end_time(self, end_time): :param end_time: The end_time of this SyncReport. :type: int """ + self._end_time = end_time @property @@ -654,6 +670,7 @@ def error(self, error): :param error: The error of this SyncReport. :type: str """ + self._error = error @property @@ -676,6 +693,7 @@ def error_checksum_files_skipped(self, error_checksum_files_skipped): :param error_checksum_files_skipped: The error_checksum_files_skipped of this SyncReport. :type: int """ + self._error_checksum_files_skipped = error_checksum_files_skipped @property @@ -698,6 +716,7 @@ def error_io_files_skipped(self, error_io_files_skipped): :param error_io_files_skipped: The error_io_files_skipped of this SyncReport. :type: int """ + self._error_io_files_skipped = error_io_files_skipped @property @@ -720,6 +739,7 @@ def error_net_files_skipped(self, error_net_files_skipped): :param error_net_files_skipped: The error_net_files_skipped of this SyncReport. :type: int """ + self._error_net_files_skipped = error_net_files_skipped @property @@ -742,6 +762,7 @@ def errors(self, errors): :param errors: The errors of this SyncReport. :type: list[str] """ + self._errors = errors @property @@ -764,6 +785,7 @@ def failed_chunks(self, failed_chunks): :param failed_chunks: The failed_chunks of this SyncReport. :type: int """ + self._failed_chunks = failed_chunks @property @@ -786,6 +808,7 @@ def fifos_replicated(self, fifos_replicated): :param fifos_replicated: The fifos_replicated of this SyncReport. :type: int """ + self._fifos_replicated = fifos_replicated @property @@ -808,6 +831,7 @@ def file_data_bytes(self, file_data_bytes): :param file_data_bytes: The file_data_bytes of this SyncReport. :type: int """ + self._file_data_bytes = file_data_bytes @property @@ -830,6 +854,7 @@ def files_changed(self, files_changed): :param files_changed: The files_changed of this SyncReport. :type: int """ + self._files_changed = files_changed @property @@ -852,6 +877,7 @@ def files_linked(self, files_linked): :param files_linked: The files_linked of this SyncReport. :type: int """ + self._files_linked = files_linked @property @@ -874,6 +900,7 @@ def files_new(self, files_new): :param files_new: The files_new of this SyncReport. :type: int """ + self._files_new = files_new @property @@ -896,6 +923,7 @@ def files_selected(self, files_selected): :param files_selected: The files_selected of this SyncReport. :type: int """ + self._files_selected = files_selected @property @@ -918,6 +946,7 @@ def files_transferred(self, files_transferred): :param files_transferred: The files_transferred of this SyncReport. :type: int """ + self._files_transferred = files_transferred @property @@ -940,6 +969,7 @@ def files_unlinked(self, files_unlinked): :param files_unlinked: The files_unlinked of this SyncReport. :type: int """ + self._files_unlinked = files_unlinked @property @@ -962,6 +992,7 @@ def files_with_ads_replicated(self, files_with_ads_replicated): :param files_with_ads_replicated: The files_with_ads_replicated of this SyncReport. :type: int """ + self._files_with_ads_replicated = files_with_ads_replicated @property @@ -984,6 +1015,7 @@ def flipped_lins(self, flipped_lins): :param flipped_lins: The flipped_lins of this SyncReport. :type: int """ + self._flipped_lins = flipped_lins @property @@ -1006,6 +1038,7 @@ def hard_links_replicated(self, hard_links_replicated): :param hard_links_replicated: The hard_links_replicated of this SyncReport. :type: int """ + self._hard_links_replicated = hard_links_replicated @property @@ -1028,6 +1061,7 @@ def hash_exceptions_fixed(self, hash_exceptions_fixed): :param hash_exceptions_fixed: The hash_exceptions_fixed of this SyncReport. :type: int """ + self._hash_exceptions_fixed = hash_exceptions_fixed @property @@ -1050,6 +1084,7 @@ def hash_exceptions_found(self, hash_exceptions_found): :param hash_exceptions_found: The hash_exceptions_found of this SyncReport. :type: int """ + self._hash_exceptions_found = hash_exceptions_found @property @@ -1072,6 +1107,7 @@ def id(self, id): :param id: The id of this SyncReport. :type: str """ + self._id = id @property @@ -1094,6 +1130,7 @@ def job_id(self, job_id): :param job_id: The job_id of this SyncReport. :type: int """ + self._job_id = job_id @property @@ -1116,6 +1153,7 @@ def lins_total(self, lins_total): :param lins_total: The lins_total of this SyncReport. :type: int """ + self._lins_total = lins_total @property @@ -1138,6 +1176,7 @@ def network_bytes_to_source(self, network_bytes_to_source): :param network_bytes_to_source: The network_bytes_to_source of this SyncReport. :type: int """ + self._network_bytes_to_source = network_bytes_to_source @property @@ -1160,6 +1199,7 @@ def network_bytes_to_target(self, network_bytes_to_target): :param network_bytes_to_target: The network_bytes_to_target of this SyncReport. :type: int """ + self._network_bytes_to_target = network_bytes_to_target @property @@ -1182,6 +1222,7 @@ def new_files_replicated(self, new_files_replicated): :param new_files_replicated: The new_files_replicated of this SyncReport. :type: int """ + self._new_files_replicated = new_files_replicated @property @@ -1204,6 +1245,7 @@ def num_retransmitted_files(self, num_retransmitted_files): :param num_retransmitted_files: The num_retransmitted_files of this SyncReport. :type: int """ + self._num_retransmitted_files = num_retransmitted_files @property @@ -1213,7 +1255,7 @@ def phases(self): Data for each phase of this job. :return: The phases of this SyncReport. - :rtype: list[ReportsRidSubreportsSubreportPhase] + :rtype: list[ReportSubreportPhase] """ return self._phases @@ -1224,8 +1266,9 @@ def phases(self, phases): Data for each phase of this job. :param phases: The phases of this SyncReport. - :type: list[ReportsRidSubreportsSubreportPhase] + :type: list[ReportSubreportPhase] """ + self._phases = phases @property @@ -1248,6 +1291,7 @@ def policy(self, policy): :param policy: The policy of this SyncReport. :type: SyncReportPolicy """ + self._policy = policy @property @@ -1276,6 +1320,7 @@ def policy_action(self, policy_action): "Invalid value for `policy_action`, must be one of {0}" .format(allowed_values) ) + self._policy_action = policy_action @property @@ -1298,6 +1343,7 @@ def policy_id(self, policy_id): :param policy_id: The policy_id of this SyncReport. :type: str """ + self._policy_id = policy_id @property @@ -1320,6 +1366,7 @@ def policy_name(self, policy_name): :param policy_name: The policy_name of this SyncReport. :type: str """ + self._policy_name = policy_name @property @@ -1342,6 +1389,7 @@ def regular_files_replicated(self, regular_files_replicated): :param regular_files_replicated: The regular_files_replicated of this SyncReport. :type: int """ + self._regular_files_replicated = regular_files_replicated @property @@ -1364,6 +1412,7 @@ def resynced_lins(self, resynced_lins): :param resynced_lins: The resynced_lins of this SyncReport. :type: int """ + self._resynced_lins = resynced_lins @property @@ -1386,6 +1435,7 @@ def retransmitted_files(self, retransmitted_files): :param retransmitted_files: The retransmitted_files of this SyncReport. :type: list[str] """ + self._retransmitted_files = retransmitted_files @property @@ -1408,6 +1458,7 @@ def retry(self, retry): :param retry: The retry of this SyncReport. :type: int """ + self._retry = retry @property @@ -1430,6 +1481,7 @@ def running_chunks(self, running_chunks): :param running_chunks: The running_chunks of this SyncReport. :type: int """ + self._running_chunks = running_chunks @property @@ -1452,6 +1504,7 @@ def sockets_replicated(self, sockets_replicated): :param sockets_replicated: The sockets_replicated of this SyncReport. :type: int """ + self._sockets_replicated = sockets_replicated @property @@ -1474,6 +1527,7 @@ def source_bytes_recovered(self, source_bytes_recovered): :param source_bytes_recovered: The source_bytes_recovered of this SyncReport. :type: int """ + self._source_bytes_recovered = source_bytes_recovered @property @@ -1496,6 +1550,7 @@ def source_directories_created(self, source_directories_created): :param source_directories_created: The source_directories_created of this SyncReport. :type: int """ + self._source_directories_created = source_directories_created @property @@ -1518,6 +1573,7 @@ def source_directories_deleted(self, source_directories_deleted): :param source_directories_deleted: The source_directories_deleted of this SyncReport. :type: int """ + self._source_directories_deleted = source_directories_deleted @property @@ -1540,6 +1596,7 @@ def source_directories_linked(self, source_directories_linked): :param source_directories_linked: The source_directories_linked of this SyncReport. :type: int """ + self._source_directories_linked = source_directories_linked @property @@ -1562,6 +1619,7 @@ def source_directories_unlinked(self, source_directories_unlinked): :param source_directories_unlinked: The source_directories_unlinked of this SyncReport. :type: int """ + self._source_directories_unlinked = source_directories_unlinked @property @@ -1584,6 +1642,7 @@ def source_directories_visited(self, source_directories_visited): :param source_directories_visited: The source_directories_visited of this SyncReport. :type: int """ + self._source_directories_visited = source_directories_visited @property @@ -1606,6 +1665,7 @@ def source_files_deleted(self, source_files_deleted): :param source_files_deleted: The source_files_deleted of this SyncReport. :type: int """ + self._source_files_deleted = source_files_deleted @property @@ -1628,6 +1688,7 @@ def source_files_linked(self, source_files_linked): :param source_files_linked: The source_files_linked of this SyncReport. :type: int """ + self._source_files_linked = source_files_linked @property @@ -1650,6 +1711,7 @@ def source_files_unlinked(self, source_files_unlinked): :param source_files_unlinked: The source_files_unlinked of this SyncReport. :type: int """ + self._source_files_unlinked = source_files_unlinked @property @@ -1672,6 +1734,7 @@ def sparse_data_bytes(self, sparse_data_bytes): :param sparse_data_bytes: The sparse_data_bytes of this SyncReport. :type: int """ + self._sparse_data_bytes = sparse_data_bytes @property @@ -1694,6 +1757,7 @@ def start_time(self, start_time): :param start_time: The start_time of this SyncReport. :type: int """ + self._start_time = start_time @property @@ -1722,6 +1786,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property @@ -1744,6 +1809,7 @@ def subreport_count(self, subreport_count): :param subreport_count: The subreport_count of this SyncReport. :type: int """ + self._subreport_count = subreport_count @property @@ -1766,6 +1832,7 @@ def succeeded_chunks(self, succeeded_chunks): :param succeeded_chunks: The succeeded_chunks of this SyncReport. :type: int """ + self._succeeded_chunks = succeeded_chunks @property @@ -1788,6 +1855,7 @@ def symlinks_replicated(self, symlinks_replicated): :param symlinks_replicated: The symlinks_replicated of this SyncReport. :type: int """ + self._symlinks_replicated = symlinks_replicated @property @@ -1816,6 +1884,7 @@ def sync_type(self, sync_type): "Invalid value for `sync_type`, must be one of {0}" .format(allowed_values) ) + self._sync_type = sync_type @property @@ -1838,6 +1907,7 @@ def target_bytes_recovered(self, target_bytes_recovered): :param target_bytes_recovered: The target_bytes_recovered of this SyncReport. :type: int """ + self._target_bytes_recovered = target_bytes_recovered @property @@ -1860,6 +1930,7 @@ def target_directories_created(self, target_directories_created): :param target_directories_created: The target_directories_created of this SyncReport. :type: int """ + self._target_directories_created = target_directories_created @property @@ -1882,6 +1953,7 @@ def target_directories_deleted(self, target_directories_deleted): :param target_directories_deleted: The target_directories_deleted of this SyncReport. :type: int """ + self._target_directories_deleted = target_directories_deleted @property @@ -1904,6 +1976,7 @@ def target_directories_linked(self, target_directories_linked): :param target_directories_linked: The target_directories_linked of this SyncReport. :type: int """ + self._target_directories_linked = target_directories_linked @property @@ -1926,6 +1999,7 @@ def target_directories_unlinked(self, target_directories_unlinked): :param target_directories_unlinked: The target_directories_unlinked of this SyncReport. :type: int """ + self._target_directories_unlinked = target_directories_unlinked @property @@ -1948,6 +2022,7 @@ def target_files_deleted(self, target_files_deleted): :param target_files_deleted: The target_files_deleted of this SyncReport. :type: int """ + self._target_files_deleted = target_files_deleted @property @@ -1970,6 +2045,7 @@ def target_files_linked(self, target_files_linked): :param target_files_linked: The target_files_linked of this SyncReport. :type: int """ + self._target_files_linked = target_files_linked @property @@ -1992,6 +2068,7 @@ def target_files_unlinked(self, target_files_unlinked): :param target_files_unlinked: The target_files_unlinked of this SyncReport. :type: int """ + self._target_files_unlinked = target_files_unlinked @property @@ -2014,6 +2091,7 @@ def target_snapshots(self, target_snapshots): :param target_snapshots: The target_snapshots of this SyncReport. :type: list[str] """ + self._target_snapshots = target_snapshots @property @@ -2036,6 +2114,7 @@ def total_chunks(self, total_chunks): :param total_chunks: The total_chunks of this SyncReport. :type: int """ + self._total_chunks = total_chunks @property @@ -2058,6 +2137,7 @@ def total_data_bytes(self, total_data_bytes): :param total_data_bytes: The total_data_bytes of this SyncReport. :type: int """ + self._total_data_bytes = total_data_bytes @property @@ -2080,6 +2160,7 @@ def total_files(self, total_files): :param total_files: The total_files of this SyncReport. :type: int """ + self._total_files = total_files @property @@ -2102,6 +2183,7 @@ def total_network_bytes(self, total_network_bytes): :param total_network_bytes: The total_network_bytes of this SyncReport. :type: int """ + self._total_network_bytes = total_network_bytes @property @@ -2124,6 +2206,7 @@ def total_phases(self, total_phases): :param total_phases: The total_phases of this SyncReport. :type: int """ + self._total_phases = total_phases @property @@ -2146,6 +2229,7 @@ def unchanged_data_bytes(self, unchanged_data_bytes): :param unchanged_data_bytes: The unchanged_data_bytes of this SyncReport. :type: int """ + self._unchanged_data_bytes = unchanged_data_bytes @property @@ -2168,6 +2252,7 @@ def up_to_date_files_skipped(self, up_to_date_files_skipped): :param up_to_date_files_skipped: The up_to_date_files_skipped of this SyncReport. :type: int """ + self._up_to_date_files_skipped = up_to_date_files_skipped @property @@ -2190,6 +2275,7 @@ def updated_files_replicated(self, updated_files_replicated): :param updated_files_replicated: The updated_files_replicated of this SyncReport. :type: int """ + self._updated_files_replicated = updated_files_replicated @property @@ -2212,6 +2298,7 @@ def user_conflict_files_skipped(self, user_conflict_files_skipped): :param user_conflict_files_skipped: The user_conflict_files_skipped of this SyncReport. :type: int """ + self._user_conflict_files_skipped = user_conflict_files_skipped @property @@ -2234,6 +2321,7 @@ def warnings(self, warnings): :param warnings: The warnings of this SyncReport. :type: list[str] """ + self._warnings = warnings def to_dict(self): @@ -2251,6 +2339,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -2268,14 +2362,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_report_policy.py b/isi_sdk/models/sync_report_policy.py index edad08a1f..92dd33fad 100644 --- a/isi_sdk/models/sync_report_policy.py +++ b/isi_sdk/models/sync_report_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncReportPolicy(object): @@ -38,7 +39,7 @@ def __init__(self): """ self.swagger_types = { 'action': 'str', - 'file_matching_pattern': 'ReportsRidSubreportsSubreportPolicyFileMatchingPattern', + 'file_matching_pattern': 'ReportSubreportPolicyFileMatchingPattern', 'name': 'str', 'source_exclude_directories': 'list[str]', 'source_include_directories': 'list[str]', @@ -87,6 +88,7 @@ def action(self, action): :param action: The action of this SyncReportPolicy. :type: str """ + self._action = action @property @@ -96,7 +98,7 @@ def file_matching_pattern(self): A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. :return: The file_matching_pattern of this SyncReportPolicy. - :rtype: ReportsRidSubreportsSubreportPolicyFileMatchingPattern + :rtype: ReportSubreportPolicyFileMatchingPattern """ return self._file_matching_pattern @@ -107,8 +109,9 @@ def file_matching_pattern(self, file_matching_pattern): A file matching pattern, organized as an OR'ed set of AND'ed file criteria, for example ((a AND b) OR (x AND y)) used to define a set of files with specific properties. Policies of type 'sync' cannot use 'path' or time criteria in their matching patterns, but policies of type 'copy' can use all listed criteria. :param file_matching_pattern: The file_matching_pattern of this SyncReportPolicy. - :type: ReportsRidSubreportsSubreportPolicyFileMatchingPattern + :type: ReportSubreportPolicyFileMatchingPattern """ + self._file_matching_pattern = file_matching_pattern @property @@ -131,6 +134,7 @@ def name(self, name): :param name: The name of this SyncReportPolicy. :type: str """ + self._name = name @property @@ -153,6 +157,7 @@ def source_exclude_directories(self, source_exclude_directories): :param source_exclude_directories: The source_exclude_directories of this SyncReportPolicy. :type: list[str] """ + self._source_exclude_directories = source_exclude_directories @property @@ -175,6 +180,7 @@ def source_include_directories(self, source_include_directories): :param source_include_directories: The source_include_directories of this SyncReportPolicy. :type: list[str] """ + self._source_include_directories = source_include_directories @property @@ -197,6 +203,7 @@ def source_root_path(self, source_root_path): :param source_root_path: The source_root_path of this SyncReportPolicy. :type: str """ + self._source_root_path = source_root_path @property @@ -219,6 +226,7 @@ def target_host(self, target_host): :param target_host: The target_host of this SyncReportPolicy. :type: str """ + self._target_host = target_host @property @@ -241,6 +249,7 @@ def target_path(self, target_path): :param target_path: The target_path of this SyncReportPolicy. :type: str """ + self._target_path = target_path def to_dict(self): @@ -258,6 +267,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -275,14 +290,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_reports.py b/isi_sdk/models/sync_reports.py index 464a1f81d..260660fc4 100644 --- a/isi_sdk/models/sync_reports.py +++ b/isi_sdk/models/sync_reports.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncReports(object): @@ -66,6 +67,7 @@ def reports(self, reports): :param reports: The reports of this SyncReports. :type: list[SyncReport] """ + self._reports = reports def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_reports_extended.py b/isi_sdk/models/sync_reports_extended.py index 5ab3ab01f..3882f5a17 100644 --- a/isi_sdk/models/sync_reports_extended.py +++ b/isi_sdk/models/sync_reports_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncReportsExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'reports': 'list[SyncReport]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'reports': 'reports', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._reports = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this SyncReportsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this SyncReportsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this SyncReportsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this SyncReportsExtended. - :type: str - """ - self._resume = resume - @property def reports(self): """ @@ -94,8 +73,32 @@ def reports(self, reports): :param reports: The reports of this SyncReportsExtended. :type: list[SyncReport] """ + self._reports = reports + @property + def resume(self): + """ + Gets the resume of this SyncReportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this SyncReportsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this SyncReportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this SyncReportsExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this SyncReportsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_reports_rotate.py b/isi_sdk/models/sync_reports_rotate.py index 873157559..90ebb6df7 100644 --- a/isi_sdk/models/sync_reports_rotate.py +++ b/isi_sdk/models/sync_reports_rotate.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncReportsRotate(object): @@ -69,6 +70,7 @@ def message(self, message): :param message: The message of this SyncReportsRotate. :type: str """ + self._message = message @property @@ -91,6 +93,7 @@ def running(self, running): :param running: The running of this SyncReportsRotate. :type: bool """ + self._running = running def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_rule.py b/isi_sdk/models/sync_rule.py index fff6b4e06..9abede8c6 100644 --- a/isi_sdk/models/sync_rule.py +++ b/isi_sdk/models/sync_rule.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncRule(object): @@ -75,6 +76,7 @@ def description(self, description): :param description: The description of this SyncRule. :type: str """ + self._description = description @property @@ -97,6 +99,7 @@ def enabled(self, enabled): :param enabled: The enabled of this SyncRule. :type: bool """ + self._enabled = enabled @property @@ -119,6 +122,7 @@ def limit(self, limit): :param limit: The limit of this SyncRule. :type: int """ + self._limit = limit @property @@ -141,6 +145,7 @@ def schedule(self, schedule): :param schedule: The schedule of this SyncRule. :type: SyncRuleSchedule """ + self._schedule = schedule def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_rule_create_params.py b/isi_sdk/models/sync_rule_create_params.py index c7f961bfb..25c714b2f 100644 --- a/isi_sdk/models/sync_rule_create_params.py +++ b/isi_sdk/models/sync_rule_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncRuleCreateParams(object): @@ -37,48 +38,26 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'limit': 'int', 'description': 'str', + 'enabled': 'bool', + 'limit': 'int', 'schedule': 'SyncRuleSchedule', - 'type': 'str', - 'enabled': 'bool' + 'type': 'str' } self.attribute_map = { - 'limit': 'limit', 'description': 'description', + 'enabled': 'enabled', + 'limit': 'limit', 'schedule': 'schedule', - 'type': 'type', - 'enabled': 'enabled' + 'type': 'type' } - self._limit = None self._description = None + self._enabled = None + self._limit = None self._schedule = None self._type = None - self._enabled = None - - @property - def limit(self): - """ - Gets the limit of this SyncRuleCreateParams. - Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. - - :return: The limit of this SyncRuleCreateParams. - :rtype: int - """ - return self._limit - - @limit.setter - def limit(self, limit): - """ - Sets the limit of this SyncRuleCreateParams. - Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. - - :param limit: The limit of this SyncRuleCreateParams. - :type: int - """ - self._limit = limit @property def description(self): @@ -100,8 +79,55 @@ def description(self, description): :param description: The description of this SyncRuleCreateParams. :type: str """ + self._description = description + @property + def enabled(self): + """ + Gets the enabled of this SyncRuleCreateParams. + Whether this performance rule is currently in effect during its specified intervals. + + :return: The enabled of this SyncRuleCreateParams. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this SyncRuleCreateParams. + Whether this performance rule is currently in effect during its specified intervals. + + :param enabled: The enabled of this SyncRuleCreateParams. + :type: bool + """ + + self._enabled = enabled + + @property + def limit(self): + """ + Gets the limit of this SyncRuleCreateParams. + Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. + + :return: The limit of this SyncRuleCreateParams. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """ + Sets the limit of this SyncRuleCreateParams. + Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. + + :param limit: The limit of this SyncRuleCreateParams. + :type: int + """ + + self._limit = limit + @property def schedule(self): """ @@ -122,6 +148,7 @@ def schedule(self, schedule): :param schedule: The schedule of this SyncRuleCreateParams. :type: SyncRuleSchedule """ + self._schedule = schedule @property @@ -150,29 +177,8 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) - self._type = type - @property - def enabled(self): - """ - Gets the enabled of this SyncRuleCreateParams. - Whether this performance rule is currently in effect during its specified intervals. - - :return: The enabled of this SyncRuleCreateParams. - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """ - Sets the enabled of this SyncRuleCreateParams. - Whether this performance rule is currently in effect during its specified intervals. - - :param enabled: The enabled of this SyncRuleCreateParams. - :type: bool - """ - self._enabled = enabled + self._type = type def to_dict(self): """ @@ -189,6 +195,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -206,14 +218,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_rule_extended.py b/isi_sdk/models/sync_rule_extended.py index 1777c93d3..e54b6ed9b 100644 --- a/isi_sdk/models/sync_rule_extended.py +++ b/isi_sdk/models/sync_rule_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncRuleExtended(object): @@ -37,51 +38,29 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'limit': 'int', 'description': 'str', + 'enabled': 'bool', + 'limit': 'int', 'schedule': 'SyncRuleSchedule', 'id': 'str', - 'type': 'str', - 'enabled': 'bool' + 'type': 'str' } self.attribute_map = { - 'limit': 'limit', 'description': 'description', + 'enabled': 'enabled', + 'limit': 'limit', 'schedule': 'schedule', 'id': 'id', - 'type': 'type', - 'enabled': 'enabled' + 'type': 'type' } - self._limit = None self._description = None + self._enabled = None + self._limit = None self._schedule = None self._id = None self._type = None - self._enabled = None - - @property - def limit(self): - """ - Gets the limit of this SyncRuleExtended. - Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. - - :return: The limit of this SyncRuleExtended. - :rtype: int - """ - return self._limit - - @limit.setter - def limit(self, limit): - """ - Sets the limit of this SyncRuleExtended. - Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. - - :param limit: The limit of this SyncRuleExtended. - :type: int - """ - self._limit = limit @property def description(self): @@ -103,8 +82,55 @@ def description(self, description): :param description: The description of this SyncRuleExtended. :type: str """ + self._description = description + @property + def enabled(self): + """ + Gets the enabled of this SyncRuleExtended. + Whether this performance rule is currently in effect during its specified intervals. + + :return: The enabled of this SyncRuleExtended. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this SyncRuleExtended. + Whether this performance rule is currently in effect during its specified intervals. + + :param enabled: The enabled of this SyncRuleExtended. + :type: bool + """ + + self._enabled = enabled + + @property + def limit(self): + """ + Gets the limit of this SyncRuleExtended. + Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. + + :return: The limit of this SyncRuleExtended. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """ + Sets the limit of this SyncRuleExtended. + Amount the specified system resource type is limited by this rule. Units are kb/s for bandwidth, files/s for file-count, processing percentage used for cpu, or percentage of maximum available workers. + + :param limit: The limit of this SyncRuleExtended. + :type: int + """ + + self._limit = limit + @property def schedule(self): """ @@ -125,6 +151,7 @@ def schedule(self, schedule): :param schedule: The schedule of this SyncRuleExtended. :type: SyncRuleSchedule """ + self._schedule = schedule @property @@ -147,6 +174,7 @@ def id(self, id): :param id: The id of this SyncRuleExtended. :type: str """ + self._id = id @property @@ -175,29 +203,8 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) - self._type = type - @property - def enabled(self): - """ - Gets the enabled of this SyncRuleExtended. - Whether this performance rule is currently in effect during its specified intervals. - - :return: The enabled of this SyncRuleExtended. - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """ - Sets the enabled of this SyncRuleExtended. - Whether this performance rule is currently in effect during its specified intervals. - - :param enabled: The enabled of this SyncRuleExtended. - :type: bool - """ - self._enabled = enabled + self._type = type def to_dict(self): """ @@ -214,6 +221,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -231,14 +244,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_rule_schedule.py b/isi_sdk/models/sync_rule_schedule.py index f723bbbc0..8f0552cb1 100644 --- a/isi_sdk/models/sync_rule_schedule.py +++ b/isi_sdk/models/sync_rule_schedule.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncRuleSchedule(object): @@ -90,6 +91,7 @@ def begin(self, begin): :param begin: The begin of this SyncRuleSchedule. :type: str """ + self._begin = begin @property @@ -112,6 +114,7 @@ def end(self, end): :param end: The end of this SyncRuleSchedule. :type: str """ + self._end = end @property @@ -134,6 +137,7 @@ def friday(self, friday): :param friday: The friday of this SyncRuleSchedule. :type: bool """ + self._friday = friday @property @@ -156,6 +160,7 @@ def monday(self, monday): :param monday: The monday of this SyncRuleSchedule. :type: bool """ + self._monday = monday @property @@ -178,6 +183,7 @@ def saturday(self, saturday): :param saturday: The saturday of this SyncRuleSchedule. :type: bool """ + self._saturday = saturday @property @@ -200,6 +206,7 @@ def sunday(self, sunday): :param sunday: The sunday of this SyncRuleSchedule. :type: bool """ + self._sunday = sunday @property @@ -222,6 +229,7 @@ def thursday(self, thursday): :param thursday: The thursday of this SyncRuleSchedule. :type: bool """ + self._thursday = thursday @property @@ -244,6 +252,7 @@ def tuesday(self, tuesday): :param tuesday: The tuesday of this SyncRuleSchedule. :type: bool """ + self._tuesday = tuesday @property @@ -266,6 +275,7 @@ def wednesday(self, wednesday): :param wednesday: The wednesday of this SyncRuleSchedule. :type: bool """ + self._wednesday = wednesday def to_dict(self): @@ -283,6 +293,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -300,14 +316,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_rules.py b/isi_sdk/models/sync_rules.py index 4087bd5ec..a91fb2691 100644 --- a/isi_sdk/models/sync_rules.py +++ b/isi_sdk/models/sync_rules.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncRules(object): @@ -66,6 +67,7 @@ def rules(self, rules): :param rules: The rules of this SyncRules. :type: list[SyncRuleExtended] """ + self._rules = rules def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_rules_extended.py b/isi_sdk/models/sync_rules_extended.py index 0ba0c32e3..67d4b7bff 100644 --- a/isi_sdk/models/sync_rules_extended.py +++ b/isi_sdk/models/sync_rules_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncRulesExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'rules': 'list[SyncRuleExtended]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'rules': 'rules', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._rules = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this SyncRulesExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this SyncRulesExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this SyncRulesExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this SyncRulesExtended. - :type: str - """ - self._resume = resume - @property def rules(self): """ @@ -94,8 +73,32 @@ def rules(self, rules): :param rules: The rules of this SyncRulesExtended. :type: list[SyncRuleExtended] """ + self._rules = rules + @property + def resume(self): + """ + Gets the resume of this SyncRulesExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this SyncRulesExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this SyncRulesExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this SyncRulesExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this SyncRulesExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_settings.py b/isi_sdk/models/sync_settings.py index 72ef7ed70..f9cfb03c1 100644 --- a/isi_sdk/models/sync_settings.py +++ b/isi_sdk/models/sync_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this SyncSettings. :type: SyncSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_settings_extended.py b/isi_sdk/models/sync_settings_extended.py index 1b48344d2..018919faa 100644 --- a/isi_sdk/models/sync_settings_extended.py +++ b/isi_sdk/models/sync_settings_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncSettingsExtended(object): @@ -37,67 +38,42 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'settings': 'SyncSettingsSettings', 'burst_memory_constraint': 'int', - 'restrict_target_network': 'bool', + 'burst_socket_buffer_size': 'int', 'force_interface': 'bool', - 'service': 'str', - 'report_max_count': 'int', 'report_email': 'list[str]', - 'rpo_alerts': 'bool', - 'burst_socket_buffer_size': 'int', 'report_max_age': 'int', + 'report_max_count': 'int', + 'restrict_target_network': 'bool', + 'rpo_alerts': 'bool', + 'service': 'str', 'source_network': 'SyncPolicySourceNetwork' } self.attribute_map = { - 'settings': 'settings', 'burst_memory_constraint': 'burst_memory_constraint', - 'restrict_target_network': 'restrict_target_network', + 'burst_socket_buffer_size': 'burst_socket_buffer_size', 'force_interface': 'force_interface', - 'service': 'service', - 'report_max_count': 'report_max_count', 'report_email': 'report_email', - 'rpo_alerts': 'rpo_alerts', - 'burst_socket_buffer_size': 'burst_socket_buffer_size', 'report_max_age': 'report_max_age', + 'report_max_count': 'report_max_count', + 'restrict_target_network': 'restrict_target_network', + 'rpo_alerts': 'rpo_alerts', + 'service': 'service', 'source_network': 'source_network' } - self._settings = None self._burst_memory_constraint = None - self._restrict_target_network = None + self._burst_socket_buffer_size = None self._force_interface = None - self._service = None - self._report_max_count = None self._report_email = None - self._rpo_alerts = None - self._burst_socket_buffer_size = None self._report_max_age = None + self._report_max_count = None + self._restrict_target_network = None + self._rpo_alerts = None + self._service = None self._source_network = None - @property - def settings(self): - """ - Gets the settings of this SyncSettingsExtended. - Global SyncIQ settings. - - :return: The settings of this SyncSettingsExtended. - :rtype: SyncSettingsSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this SyncSettingsExtended. - Global SyncIQ settings. - - :param settings: The settings of this SyncSettingsExtended. - :type: SyncSettingsSettings - """ - self._settings = settings - @property def burst_memory_constraint(self): """ @@ -118,29 +94,31 @@ def burst_memory_constraint(self, burst_memory_constraint): :param burst_memory_constraint: The burst_memory_constraint of this SyncSettingsExtended. :type: int """ + self._burst_memory_constraint = burst_memory_constraint @property - def restrict_target_network(self): + def burst_socket_buffer_size(self): """ - Gets the restrict_target_network of this SyncSettingsExtended. - Default for the \"restrict_target_network\" property that will be applied to each new sync policy unless otherwise specified at the time of policy creation. If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. + Gets the burst_socket_buffer_size of this SyncSettingsExtended. + The per-worker burst socket buffer coalesced data, in bytes. - :return: The restrict_target_network of this SyncSettingsExtended. - :rtype: bool + :return: The burst_socket_buffer_size of this SyncSettingsExtended. + :rtype: int """ - return self._restrict_target_network + return self._burst_socket_buffer_size - @restrict_target_network.setter - def restrict_target_network(self, restrict_target_network): + @burst_socket_buffer_size.setter + def burst_socket_buffer_size(self, burst_socket_buffer_size): """ - Sets the restrict_target_network of this SyncSettingsExtended. - Default for the \"restrict_target_network\" property that will be applied to each new sync policy unless otherwise specified at the time of policy creation. If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. + Sets the burst_socket_buffer_size of this SyncSettingsExtended. + The per-worker burst socket buffer coalesced data, in bytes. - :param restrict_target_network: The restrict_target_network of this SyncSettingsExtended. - :type: bool + :param burst_socket_buffer_size: The burst_socket_buffer_size of this SyncSettingsExtended. + :type: int """ - self._restrict_target_network = restrict_target_network + + self._burst_socket_buffer_size = burst_socket_buffer_size @property def force_interface(self): @@ -162,35 +140,54 @@ def force_interface(self, force_interface): :param force_interface: The force_interface of this SyncSettingsExtended. :type: bool """ + self._force_interface = force_interface @property - def service(self): + def report_email(self): """ - Gets the service of this SyncSettingsExtended. - Specifies if the SyncIQ service currently on, paused, or off. If paused, all sync jobs will be paused. If turned off, all jobs will be canceled. + Gets the report_email of this SyncSettingsExtended. + Email sync reports to these addresses. - :return: The service of this SyncSettingsExtended. - :rtype: str + :return: The report_email of this SyncSettingsExtended. + :rtype: list[str] """ - return self._service + return self._report_email - @service.setter - def service(self, service): + @report_email.setter + def report_email(self, report_email): """ - Sets the service of this SyncSettingsExtended. - Specifies if the SyncIQ service currently on, paused, or off. If paused, all sync jobs will be paused. If turned off, all jobs will be canceled. + Sets the report_email of this SyncSettingsExtended. + Email sync reports to these addresses. - :param service: The service of this SyncSettingsExtended. - :type: str + :param report_email: The report_email of this SyncSettingsExtended. + :type: list[str] """ - allowed_values = ["on", "off", "paused"] - if service not in allowed_values: - raise ValueError( - "Invalid value for `service`, must be one of {0}" - .format(allowed_values) - ) - self._service = service + + self._report_email = report_email + + @property + def report_max_age(self): + """ + Gets the report_max_age of this SyncSettingsExtended. + The default length of time (in seconds) a policy report will be stored. + + :return: The report_max_age of this SyncSettingsExtended. + :rtype: int + """ + return self._report_max_age + + @report_max_age.setter + def report_max_age(self, report_max_age): + """ + Sets the report_max_age of this SyncSettingsExtended. + The default length of time (in seconds) a policy report will be stored. + + :param report_max_age: The report_max_age of this SyncSettingsExtended. + :type: int + """ + + self._report_max_age = report_max_age @property def report_max_count(self): @@ -212,29 +209,38 @@ def report_max_count(self, report_max_count): :param report_max_count: The report_max_count of this SyncSettingsExtended. :type: int """ + + if not report_max_count: + raise ValueError("Invalid value for `report_max_count`, must not be `None`") + if report_max_count > 2000.0: + raise ValueError("Invalid value for `report_max_count`, must be a value less than or equal to `2000.0`") + if report_max_count < 1.0: + raise ValueError("Invalid value for `report_max_count`, must be a value greater than or equal to `1.0`") + self._report_max_count = report_max_count @property - def report_email(self): + def restrict_target_network(self): """ - Gets the report_email of this SyncSettingsExtended. - Email sync reports to these addresses. + Gets the restrict_target_network of this SyncSettingsExtended. + Default for the \"restrict_target_network\" property that will be applied to each new sync policy unless otherwise specified at the time of policy creation. If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. - :return: The report_email of this SyncSettingsExtended. - :rtype: list[str] + :return: The restrict_target_network of this SyncSettingsExtended. + :rtype: bool """ - return self._report_email + return self._restrict_target_network - @report_email.setter - def report_email(self, report_email): + @restrict_target_network.setter + def restrict_target_network(self, restrict_target_network): """ - Sets the report_email of this SyncSettingsExtended. - Email sync reports to these addresses. + Sets the restrict_target_network of this SyncSettingsExtended. + Default for the \"restrict_target_network\" property that will be applied to each new sync policy unless otherwise specified at the time of policy creation. If you specify true, and you specify a SmartConnect zone in the \"target_host\" field, replication policies will connect only to nodes in the specified SmartConnect zone. If you specify false, replication policies are not restricted to specific nodes on the target cluster. - :param report_email: The report_email of this SyncSettingsExtended. - :type: list[str] + :param restrict_target_network: The restrict_target_network of this SyncSettingsExtended. + :type: bool """ - self._report_email = report_email + + self._restrict_target_network = restrict_target_network @property def rpo_alerts(self): @@ -256,51 +262,37 @@ def rpo_alerts(self, rpo_alerts): :param rpo_alerts: The rpo_alerts of this SyncSettingsExtended. :type: bool """ + self._rpo_alerts = rpo_alerts @property - def burst_socket_buffer_size(self): - """ - Gets the burst_socket_buffer_size of this SyncSettingsExtended. - The per-worker burst socket buffer coalesced data, in bytes. - - :return: The burst_socket_buffer_size of this SyncSettingsExtended. - :rtype: int - """ - return self._burst_socket_buffer_size - - @burst_socket_buffer_size.setter - def burst_socket_buffer_size(self, burst_socket_buffer_size): - """ - Sets the burst_socket_buffer_size of this SyncSettingsExtended. - The per-worker burst socket buffer coalesced data, in bytes. - - :param burst_socket_buffer_size: The burst_socket_buffer_size of this SyncSettingsExtended. - :type: int + def service(self): """ - self._burst_socket_buffer_size = burst_socket_buffer_size + Gets the service of this SyncSettingsExtended. + Specifies if the SyncIQ service currently on, paused, or off. If paused, all sync jobs will be paused. If turned off, all jobs will be canceled. - @property - def report_max_age(self): + :return: The service of this SyncSettingsExtended. + :rtype: str """ - Gets the report_max_age of this SyncSettingsExtended. - The default length of time (in seconds) a policy report will be stored. + return self._service - :return: The report_max_age of this SyncSettingsExtended. - :rtype: int + @service.setter + def service(self, service): """ - return self._report_max_age + Sets the service of this SyncSettingsExtended. + Specifies if the SyncIQ service currently on, paused, or off. If paused, all sync jobs will be paused. If turned off, all jobs will be canceled. - @report_max_age.setter - def report_max_age(self, report_max_age): + :param service: The service of this SyncSettingsExtended. + :type: str """ - Sets the report_max_age of this SyncSettingsExtended. - The default length of time (in seconds) a policy report will be stored. + allowed_values = ["on", "off", "paused"] + if service not in allowed_values: + raise ValueError( + "Invalid value for `service`, must be one of {0}" + .format(allowed_values) + ) - :param report_max_age: The report_max_age of this SyncSettingsExtended. - :type: int - """ - self._report_max_age = report_max_age + self._service = service @property def source_network(self): @@ -322,6 +314,7 @@ def source_network(self, source_network): :param source_network: The source_network of this SyncSettingsExtended. :type: SyncPolicySourceNetwork """ + self._source_network = source_network def to_dict(self): @@ -339,6 +332,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -356,14 +355,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/sync_settings_settings.py b/isi_sdk/models/sync_settings_settings.py index 771fea477..33a47c349 100644 --- a/isi_sdk/models/sync_settings_settings.py +++ b/isi_sdk/models/sync_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class SyncSettingsSettings(object): @@ -96,6 +97,7 @@ def burst_memory_constraint(self, burst_memory_constraint): :param burst_memory_constraint: The burst_memory_constraint of this SyncSettingsSettings. :type: int """ + self._burst_memory_constraint = burst_memory_constraint @property @@ -118,6 +120,7 @@ def burst_socket_buffer_size(self, burst_socket_buffer_size): :param burst_socket_buffer_size: The burst_socket_buffer_size of this SyncSettingsSettings. :type: int """ + self._burst_socket_buffer_size = burst_socket_buffer_size @property @@ -140,6 +143,7 @@ def force_interface(self, force_interface): :param force_interface: The force_interface of this SyncSettingsSettings. :type: bool """ + self._force_interface = force_interface @property @@ -162,6 +166,7 @@ def max_concurrent_jobs(self, max_concurrent_jobs): :param max_concurrent_jobs: The max_concurrent_jobs of this SyncSettingsSettings. :type: int """ + self._max_concurrent_jobs = max_concurrent_jobs @property @@ -184,6 +189,7 @@ def report_email(self, report_email): :param report_email: The report_email of this SyncSettingsSettings. :type: list[str] """ + self._report_email = report_email @property @@ -206,6 +212,7 @@ def report_max_age(self, report_max_age): :param report_max_age: The report_max_age of this SyncSettingsSettings. :type: int """ + self._report_max_age = report_max_age @property @@ -228,6 +235,14 @@ def report_max_count(self, report_max_count): :param report_max_count: The report_max_count of this SyncSettingsSettings. :type: int """ + + if not report_max_count: + raise ValueError("Invalid value for `report_max_count`, must not be `None`") + if report_max_count > 2000.0: + raise ValueError("Invalid value for `report_max_count`, must be a value less than or equal to `2000.0`") + if report_max_count < 1.0: + raise ValueError("Invalid value for `report_max_count`, must be a value greater than or equal to `1.0`") + self._report_max_count = report_max_count @property @@ -250,6 +265,7 @@ def restrict_target_network(self, restrict_target_network): :param restrict_target_network: The restrict_target_network of this SyncSettingsSettings. :type: bool """ + self._restrict_target_network = restrict_target_network @property @@ -272,6 +288,7 @@ def rpo_alerts(self, rpo_alerts): :param rpo_alerts: The rpo_alerts of this SyncSettingsSettings. :type: bool """ + self._rpo_alerts = rpo_alerts @property @@ -300,6 +317,7 @@ def service(self, service): "Invalid value for `service`, must be one of {0}" .format(allowed_values) ) + self._service = service @property @@ -322,6 +340,7 @@ def source_network(self, source_network): :param source_network: The source_network of this SyncSettingsSettings. :type: SyncPolicySourceNetwork """ + self._source_network = source_network def to_dict(self): @@ -339,6 +358,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -356,14 +381,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/target_policies.py b/isi_sdk/models/target_policies.py index f3d48ea01..7054236c4 100644 --- a/isi_sdk/models/target_policies.py +++ b/isi_sdk/models/target_policies.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TargetPolicies(object): @@ -69,6 +70,7 @@ def policies(self, policies): :param policies: The policies of this TargetPolicies. :type: list[TargetPolicy] """ + self._policies = policies @property @@ -91,6 +93,7 @@ def resume(self, resume): :param resume: The resume of this TargetPolicies. :type: str """ + self._resume = resume def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/target_policies_extended.py b/isi_sdk/models/target_policies_extended.py index e00c1fc00..95775dcc3 100644 --- a/isi_sdk/models/target_policies_extended.py +++ b/isi_sdk/models/target_policies_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TargetPoliciesExtended(object): @@ -72,6 +73,7 @@ def policies(self, policies): :param policies: The policies of this TargetPoliciesExtended. :type: list[TargetPolicy] """ + self._policies = policies @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this TargetPoliciesExtended. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this TargetPoliciesExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/target_policy.py b/isi_sdk/models/target_policy.py index 491c09f43..d3a7236e8 100644 --- a/isi_sdk/models/target_policy.py +++ b/isi_sdk/models/target_policy.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TargetPolicy(object): @@ -99,6 +100,7 @@ def failover_failback_state(self, failover_failback_state): "Invalid value for `failover_failback_state`, must be one of {0}" .format(allowed_values) ) + self._failover_failback_state = failover_failback_state @property @@ -121,6 +123,7 @@ def id(self, id): :param id: The id of this TargetPolicy. :type: str """ + self._id = id @property @@ -149,6 +152,7 @@ def last_job_state(self, last_job_state): "Invalid value for `last_job_state`, must be one of {0}" .format(allowed_values) ) + self._last_job_state = last_job_state @property @@ -171,6 +175,7 @@ def last_source_coordinator_ip(self, last_source_coordinator_ip): :param last_source_coordinator_ip: The last_source_coordinator_ip of this TargetPolicy. :type: str """ + self._last_source_coordinator_ip = last_source_coordinator_ip @property @@ -193,6 +198,7 @@ def last_update_from_source(self, last_update_from_source): :param last_update_from_source: The last_update_from_source of this TargetPolicy. :type: int """ + self._last_update_from_source = last_update_from_source @property @@ -215,6 +221,7 @@ def legacy_policy(self, legacy_policy): :param legacy_policy: The legacy_policy of this TargetPolicy. :type: bool """ + self._legacy_policy = legacy_policy @property @@ -237,6 +244,7 @@ def name(self, name): :param name: The name of this TargetPolicy. :type: str """ + self._name = name @property @@ -259,6 +267,7 @@ def source_cluster_guid(self, source_cluster_guid): :param source_cluster_guid: The source_cluster_guid of this TargetPolicy. :type: str """ + self._source_cluster_guid = source_cluster_guid @property @@ -281,6 +290,7 @@ def source_host(self, source_host): :param source_host: The source_host of this TargetPolicy. :type: str """ + self._source_host = source_host @property @@ -303,6 +313,7 @@ def target_path(self, target_path): :param target_path: The target_path of this TargetPolicy. :type: str """ + self._target_path = target_path def to_dict(self): @@ -320,6 +331,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -337,14 +354,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/target_report.py b/isi_sdk/models/target_report.py index e769bf12a..a102bdad5 100644 --- a/isi_sdk/models/target_report.py +++ b/isi_sdk/models/target_report.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TargetReport(object): @@ -78,7 +79,7 @@ def __init__(self): 'network_bytes_to_target': 'int', 'new_files_replicated': 'int', 'num_retransmitted_files': 'int', - 'phases': 'list[ReportsRidSubreportsSubreportPhase]', + 'phases': 'list[ReportSubreportPhase]', 'policy_id': 'str', 'policy_name': 'str', 'regular_files_replicated': 'int', @@ -330,6 +331,7 @@ def action(self, action): "Invalid value for `action`, must be one of {0}" .format(allowed_values) ) + self._action = action @property @@ -352,6 +354,7 @@ def ads_streams_replicated(self, ads_streams_replicated): :param ads_streams_replicated: The ads_streams_replicated of this TargetReport. :type: int """ + self._ads_streams_replicated = ads_streams_replicated @property @@ -374,6 +377,7 @@ def block_specs_replicated(self, block_specs_replicated): :param block_specs_replicated: The block_specs_replicated of this TargetReport. :type: int """ + self._block_specs_replicated = block_specs_replicated @property @@ -396,6 +400,7 @@ def bytes_recoverable(self, bytes_recoverable): :param bytes_recoverable: The bytes_recoverable of this TargetReport. :type: int """ + self._bytes_recoverable = bytes_recoverable @property @@ -418,6 +423,7 @@ def bytes_transferred(self, bytes_transferred): :param bytes_transferred: The bytes_transferred of this TargetReport. :type: int """ + self._bytes_transferred = bytes_transferred @property @@ -440,6 +446,7 @@ def char_specs_replicated(self, char_specs_replicated): :param char_specs_replicated: The char_specs_replicated of this TargetReport. :type: int """ + self._char_specs_replicated = char_specs_replicated @property @@ -462,6 +469,7 @@ def corrected_lins(self, corrected_lins): :param corrected_lins: The corrected_lins of this TargetReport. :type: int """ + self._corrected_lins = corrected_lins @property @@ -484,6 +492,7 @@ def dead_node(self, dead_node): :param dead_node: The dead_node of this TargetReport. :type: bool """ + self._dead_node = dead_node @property @@ -506,6 +515,7 @@ def directories_replicated(self, directories_replicated): :param directories_replicated: The directories_replicated of this TargetReport. :type: int """ + self._directories_replicated = directories_replicated @property @@ -528,6 +538,7 @@ def dirs_changed(self, dirs_changed): :param dirs_changed: The dirs_changed of this TargetReport. :type: int """ + self._dirs_changed = dirs_changed @property @@ -550,6 +561,7 @@ def dirs_deleted(self, dirs_deleted): :param dirs_deleted: The dirs_deleted of this TargetReport. :type: int """ + self._dirs_deleted = dirs_deleted @property @@ -572,6 +584,7 @@ def dirs_moved(self, dirs_moved): :param dirs_moved: The dirs_moved of this TargetReport. :type: int """ + self._dirs_moved = dirs_moved @property @@ -594,6 +607,7 @@ def dirs_new(self, dirs_new): :param dirs_new: The dirs_new of this TargetReport. :type: int """ + self._dirs_new = dirs_new @property @@ -616,6 +630,7 @@ def duration(self, duration): :param duration: The duration of this TargetReport. :type: int """ + self._duration = duration @property @@ -638,6 +653,7 @@ def end_time(self, end_time): :param end_time: The end_time of this TargetReport. :type: int """ + self._end_time = end_time @property @@ -660,6 +676,7 @@ def error(self, error): :param error: The error of this TargetReport. :type: str """ + self._error = error @property @@ -682,6 +699,7 @@ def error_checksum_files_skipped(self, error_checksum_files_skipped): :param error_checksum_files_skipped: The error_checksum_files_skipped of this TargetReport. :type: int """ + self._error_checksum_files_skipped = error_checksum_files_skipped @property @@ -704,6 +722,7 @@ def error_io_files_skipped(self, error_io_files_skipped): :param error_io_files_skipped: The error_io_files_skipped of this TargetReport. :type: int """ + self._error_io_files_skipped = error_io_files_skipped @property @@ -726,6 +745,7 @@ def error_net_files_skipped(self, error_net_files_skipped): :param error_net_files_skipped: The error_net_files_skipped of this TargetReport. :type: int """ + self._error_net_files_skipped = error_net_files_skipped @property @@ -748,6 +768,7 @@ def errors(self, errors): :param errors: The errors of this TargetReport. :type: list[str] """ + self._errors = errors @property @@ -770,6 +791,7 @@ def failed_chunks(self, failed_chunks): :param failed_chunks: The failed_chunks of this TargetReport. :type: int """ + self._failed_chunks = failed_chunks @property @@ -792,6 +814,7 @@ def fifos_replicated(self, fifos_replicated): :param fifos_replicated: The fifos_replicated of this TargetReport. :type: int """ + self._fifos_replicated = fifos_replicated @property @@ -814,6 +837,7 @@ def file_data_bytes(self, file_data_bytes): :param file_data_bytes: The file_data_bytes of this TargetReport. :type: int """ + self._file_data_bytes = file_data_bytes @property @@ -836,6 +860,7 @@ def files_changed(self, files_changed): :param files_changed: The files_changed of this TargetReport. :type: int """ + self._files_changed = files_changed @property @@ -858,6 +883,7 @@ def files_linked(self, files_linked): :param files_linked: The files_linked of this TargetReport. :type: int """ + self._files_linked = files_linked @property @@ -880,6 +906,7 @@ def files_new(self, files_new): :param files_new: The files_new of this TargetReport. :type: int """ + self._files_new = files_new @property @@ -902,6 +929,7 @@ def files_selected(self, files_selected): :param files_selected: The files_selected of this TargetReport. :type: int """ + self._files_selected = files_selected @property @@ -924,6 +952,7 @@ def files_transferred(self, files_transferred): :param files_transferred: The files_transferred of this TargetReport. :type: int """ + self._files_transferred = files_transferred @property @@ -946,6 +975,7 @@ def files_unlinked(self, files_unlinked): :param files_unlinked: The files_unlinked of this TargetReport. :type: int """ + self._files_unlinked = files_unlinked @property @@ -968,6 +998,7 @@ def files_with_ads_replicated(self, files_with_ads_replicated): :param files_with_ads_replicated: The files_with_ads_replicated of this TargetReport. :type: int """ + self._files_with_ads_replicated = files_with_ads_replicated @property @@ -990,6 +1021,7 @@ def flipped_lins(self, flipped_lins): :param flipped_lins: The flipped_lins of this TargetReport. :type: int """ + self._flipped_lins = flipped_lins @property @@ -1012,6 +1044,7 @@ def hard_links_replicated(self, hard_links_replicated): :param hard_links_replicated: The hard_links_replicated of this TargetReport. :type: int """ + self._hard_links_replicated = hard_links_replicated @property @@ -1034,6 +1067,7 @@ def hash_exceptions_fixed(self, hash_exceptions_fixed): :param hash_exceptions_fixed: The hash_exceptions_fixed of this TargetReport. :type: int """ + self._hash_exceptions_fixed = hash_exceptions_fixed @property @@ -1056,6 +1090,7 @@ def hash_exceptions_found(self, hash_exceptions_found): :param hash_exceptions_found: The hash_exceptions_found of this TargetReport. :type: int """ + self._hash_exceptions_found = hash_exceptions_found @property @@ -1078,6 +1113,7 @@ def id(self, id): :param id: The id of this TargetReport. :type: str """ + self._id = id @property @@ -1100,6 +1136,7 @@ def job_id(self, job_id): :param job_id: The job_id of this TargetReport. :type: int """ + self._job_id = job_id @property @@ -1122,6 +1159,7 @@ def lins_total(self, lins_total): :param lins_total: The lins_total of this TargetReport. :type: int """ + self._lins_total = lins_total @property @@ -1144,6 +1182,7 @@ def network_bytes_to_source(self, network_bytes_to_source): :param network_bytes_to_source: The network_bytes_to_source of this TargetReport. :type: int """ + self._network_bytes_to_source = network_bytes_to_source @property @@ -1166,6 +1205,7 @@ def network_bytes_to_target(self, network_bytes_to_target): :param network_bytes_to_target: The network_bytes_to_target of this TargetReport. :type: int """ + self._network_bytes_to_target = network_bytes_to_target @property @@ -1188,6 +1228,7 @@ def new_files_replicated(self, new_files_replicated): :param new_files_replicated: The new_files_replicated of this TargetReport. :type: int """ + self._new_files_replicated = new_files_replicated @property @@ -1210,6 +1251,7 @@ def num_retransmitted_files(self, num_retransmitted_files): :param num_retransmitted_files: The num_retransmitted_files of this TargetReport. :type: int """ + self._num_retransmitted_files = num_retransmitted_files @property @@ -1219,7 +1261,7 @@ def phases(self): Data for each phase of this job. :return: The phases of this TargetReport. - :rtype: list[ReportsRidSubreportsSubreportPhase] + :rtype: list[ReportSubreportPhase] """ return self._phases @@ -1230,8 +1272,9 @@ def phases(self, phases): Data for each phase of this job. :param phases: The phases of this TargetReport. - :type: list[ReportsRidSubreportsSubreportPhase] + :type: list[ReportSubreportPhase] """ + self._phases = phases @property @@ -1254,6 +1297,7 @@ def policy_id(self, policy_id): :param policy_id: The policy_id of this TargetReport. :type: str """ + self._policy_id = policy_id @property @@ -1276,6 +1320,7 @@ def policy_name(self, policy_name): :param policy_name: The policy_name of this TargetReport. :type: str """ + self._policy_name = policy_name @property @@ -1298,6 +1343,7 @@ def regular_files_replicated(self, regular_files_replicated): :param regular_files_replicated: The regular_files_replicated of this TargetReport. :type: int """ + self._regular_files_replicated = regular_files_replicated @property @@ -1320,6 +1366,7 @@ def resynced_lins(self, resynced_lins): :param resynced_lins: The resynced_lins of this TargetReport. :type: int """ + self._resynced_lins = resynced_lins @property @@ -1342,6 +1389,7 @@ def retransmitted_files(self, retransmitted_files): :param retransmitted_files: The retransmitted_files of this TargetReport. :type: list[str] """ + self._retransmitted_files = retransmitted_files @property @@ -1364,6 +1412,7 @@ def retry(self, retry): :param retry: The retry of this TargetReport. :type: int """ + self._retry = retry @property @@ -1386,6 +1435,7 @@ def running_chunks(self, running_chunks): :param running_chunks: The running_chunks of this TargetReport. :type: int """ + self._running_chunks = running_chunks @property @@ -1408,6 +1458,7 @@ def sockets_replicated(self, sockets_replicated): :param sockets_replicated: The sockets_replicated of this TargetReport. :type: int """ + self._sockets_replicated = sockets_replicated @property @@ -1430,6 +1481,7 @@ def source_bytes_recovered(self, source_bytes_recovered): :param source_bytes_recovered: The source_bytes_recovered of this TargetReport. :type: int """ + self._source_bytes_recovered = source_bytes_recovered @property @@ -1452,6 +1504,7 @@ def source_directories_created(self, source_directories_created): :param source_directories_created: The source_directories_created of this TargetReport. :type: int """ + self._source_directories_created = source_directories_created @property @@ -1474,6 +1527,7 @@ def source_directories_deleted(self, source_directories_deleted): :param source_directories_deleted: The source_directories_deleted of this TargetReport. :type: int """ + self._source_directories_deleted = source_directories_deleted @property @@ -1496,6 +1550,7 @@ def source_directories_linked(self, source_directories_linked): :param source_directories_linked: The source_directories_linked of this TargetReport. :type: int """ + self._source_directories_linked = source_directories_linked @property @@ -1518,6 +1573,7 @@ def source_directories_unlinked(self, source_directories_unlinked): :param source_directories_unlinked: The source_directories_unlinked of this TargetReport. :type: int """ + self._source_directories_unlinked = source_directories_unlinked @property @@ -1540,6 +1596,7 @@ def source_directories_visited(self, source_directories_visited): :param source_directories_visited: The source_directories_visited of this TargetReport. :type: int """ + self._source_directories_visited = source_directories_visited @property @@ -1562,6 +1619,7 @@ def source_files_deleted(self, source_files_deleted): :param source_files_deleted: The source_files_deleted of this TargetReport. :type: int """ + self._source_files_deleted = source_files_deleted @property @@ -1584,6 +1642,7 @@ def source_files_linked(self, source_files_linked): :param source_files_linked: The source_files_linked of this TargetReport. :type: int """ + self._source_files_linked = source_files_linked @property @@ -1606,6 +1665,7 @@ def source_files_unlinked(self, source_files_unlinked): :param source_files_unlinked: The source_files_unlinked of this TargetReport. :type: int """ + self._source_files_unlinked = source_files_unlinked @property @@ -1628,6 +1688,7 @@ def source_host(self, source_host): :param source_host: The source_host of this TargetReport. :type: str """ + self._source_host = source_host @property @@ -1650,6 +1711,7 @@ def sparse_data_bytes(self, sparse_data_bytes): :param sparse_data_bytes: The sparse_data_bytes of this TargetReport. :type: int """ + self._sparse_data_bytes = sparse_data_bytes @property @@ -1672,6 +1734,7 @@ def start_time(self, start_time): :param start_time: The start_time of this TargetReport. :type: int """ + self._start_time = start_time @property @@ -1700,6 +1763,7 @@ def state(self, state): "Invalid value for `state`, must be one of {0}" .format(allowed_values) ) + self._state = state @property @@ -1722,6 +1786,7 @@ def subreport_count(self, subreport_count): :param subreport_count: The subreport_count of this TargetReport. :type: int """ + self._subreport_count = subreport_count @property @@ -1744,6 +1809,7 @@ def succeeded_chunks(self, succeeded_chunks): :param succeeded_chunks: The succeeded_chunks of this TargetReport. :type: int """ + self._succeeded_chunks = succeeded_chunks @property @@ -1766,6 +1832,7 @@ def symlinks_replicated(self, symlinks_replicated): :param symlinks_replicated: The symlinks_replicated of this TargetReport. :type: int """ + self._symlinks_replicated = symlinks_replicated @property @@ -1794,6 +1861,7 @@ def sync_type(self, sync_type): "Invalid value for `sync_type`, must be one of {0}" .format(allowed_values) ) + self._sync_type = sync_type @property @@ -1816,6 +1884,7 @@ def target_bytes_recovered(self, target_bytes_recovered): :param target_bytes_recovered: The target_bytes_recovered of this TargetReport. :type: int """ + self._target_bytes_recovered = target_bytes_recovered @property @@ -1838,6 +1907,7 @@ def target_directories_created(self, target_directories_created): :param target_directories_created: The target_directories_created of this TargetReport. :type: int """ + self._target_directories_created = target_directories_created @property @@ -1860,6 +1930,7 @@ def target_directories_deleted(self, target_directories_deleted): :param target_directories_deleted: The target_directories_deleted of this TargetReport. :type: int """ + self._target_directories_deleted = target_directories_deleted @property @@ -1882,6 +1953,7 @@ def target_directories_linked(self, target_directories_linked): :param target_directories_linked: The target_directories_linked of this TargetReport. :type: int """ + self._target_directories_linked = target_directories_linked @property @@ -1904,6 +1976,7 @@ def target_directories_unlinked(self, target_directories_unlinked): :param target_directories_unlinked: The target_directories_unlinked of this TargetReport. :type: int """ + self._target_directories_unlinked = target_directories_unlinked @property @@ -1926,6 +1999,7 @@ def target_files_deleted(self, target_files_deleted): :param target_files_deleted: The target_files_deleted of this TargetReport. :type: int """ + self._target_files_deleted = target_files_deleted @property @@ -1948,6 +2022,7 @@ def target_files_linked(self, target_files_linked): :param target_files_linked: The target_files_linked of this TargetReport. :type: int """ + self._target_files_linked = target_files_linked @property @@ -1970,6 +2045,7 @@ def target_files_unlinked(self, target_files_unlinked): :param target_files_unlinked: The target_files_unlinked of this TargetReport. :type: int """ + self._target_files_unlinked = target_files_unlinked @property @@ -1992,6 +2068,7 @@ def target_path(self, target_path): :param target_path: The target_path of this TargetReport. :type: str """ + self._target_path = target_path @property @@ -2014,6 +2091,7 @@ def target_snapshots(self, target_snapshots): :param target_snapshots: The target_snapshots of this TargetReport. :type: list[str] """ + self._target_snapshots = target_snapshots @property @@ -2036,6 +2114,7 @@ def total_chunks(self, total_chunks): :param total_chunks: The total_chunks of this TargetReport. :type: int """ + self._total_chunks = total_chunks @property @@ -2058,6 +2137,7 @@ def total_data_bytes(self, total_data_bytes): :param total_data_bytes: The total_data_bytes of this TargetReport. :type: int """ + self._total_data_bytes = total_data_bytes @property @@ -2080,6 +2160,7 @@ def total_files(self, total_files): :param total_files: The total_files of this TargetReport. :type: int """ + self._total_files = total_files @property @@ -2102,6 +2183,7 @@ def total_network_bytes(self, total_network_bytes): :param total_network_bytes: The total_network_bytes of this TargetReport. :type: int """ + self._total_network_bytes = total_network_bytes @property @@ -2124,6 +2206,7 @@ def total_phases(self, total_phases): :param total_phases: The total_phases of this TargetReport. :type: int """ + self._total_phases = total_phases @property @@ -2146,6 +2229,7 @@ def unchanged_data_bytes(self, unchanged_data_bytes): :param unchanged_data_bytes: The unchanged_data_bytes of this TargetReport. :type: int """ + self._unchanged_data_bytes = unchanged_data_bytes @property @@ -2168,6 +2252,7 @@ def up_to_date_files_skipped(self, up_to_date_files_skipped): :param up_to_date_files_skipped: The up_to_date_files_skipped of this TargetReport. :type: int """ + self._up_to_date_files_skipped = up_to_date_files_skipped @property @@ -2190,6 +2275,7 @@ def updated_files_replicated(self, updated_files_replicated): :param updated_files_replicated: The updated_files_replicated of this TargetReport. :type: int """ + self._updated_files_replicated = updated_files_replicated @property @@ -2212,6 +2298,7 @@ def user_conflict_files_skipped(self, user_conflict_files_skipped): :param user_conflict_files_skipped: The user_conflict_files_skipped of this TargetReport. :type: int """ + self._user_conflict_files_skipped = user_conflict_files_skipped @property @@ -2234,6 +2321,7 @@ def warnings(self, warnings): :param warnings: The warnings of this TargetReport. :type: list[str] """ + self._warnings = warnings def to_dict(self): @@ -2251,6 +2339,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -2268,14 +2362,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/target_reports.py b/isi_sdk/models/target_reports.py index bf0f1f109..f9b1d4069 100644 --- a/isi_sdk/models/target_reports.py +++ b/isi_sdk/models/target_reports.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TargetReports(object): @@ -66,6 +67,7 @@ def reports(self, reports): :param reports: The reports of this TargetReports. :type: list[TargetReport] """ + self._reports = reports def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/target_reports_extended.py b/isi_sdk/models/target_reports_extended.py index 21d1a3a9a..bb267802e 100644 --- a/isi_sdk/models/target_reports_extended.py +++ b/isi_sdk/models/target_reports_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TargetReportsExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'reports': 'list[TargetReport]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'reports': 'reports', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._reports = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this TargetReportsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this TargetReportsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this TargetReportsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this TargetReportsExtended. - :type: str - """ - self._resume = resume - @property def reports(self): """ @@ -94,8 +73,32 @@ def reports(self, reports): :param reports: The reports of this TargetReportsExtended. :type: list[TargetReport] """ + self._reports = reports + @property + def resume(self): + """ + Gets the resume of this TargetReportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this TargetReportsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this TargetReportsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this TargetReportsExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this TargetReportsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/timezone_region.py b/isi_sdk/models/timezone_region.py index 258081f20..5c2530884 100644 --- a/isi_sdk/models/timezone_region.py +++ b/isi_sdk/models/timezone_region.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TimezoneRegion(object): @@ -75,6 +76,7 @@ def comments(self, comments): :param comments: The comments of this TimezoneRegion. :type: str """ + self._comments = comments @property @@ -97,6 +99,7 @@ def id(self, id): :param id: The id of this TimezoneRegion. :type: str """ + self._id = id @property @@ -119,6 +122,7 @@ def region(self, region): :param region: The region of this TimezoneRegion. :type: str """ + self._region = region @property @@ -141,6 +145,7 @@ def timezone(self, timezone): :param timezone: The timezone of this TimezoneRegion. :type: TimezoneRegionTimezone """ + self._timezone = timezone def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/timezone_region_timezone.py b/isi_sdk/models/timezone_region_timezone.py index af6bd200f..951d61c25 100644 --- a/isi_sdk/models/timezone_region_timezone.py +++ b/isi_sdk/models/timezone_region_timezone.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TimezoneRegionTimezone(object): @@ -69,6 +70,7 @@ def abbreviation(self, abbreviation): :param abbreviation: The abbreviation of this TimezoneRegionTimezone. :type: str """ + self._abbreviation = abbreviation @property @@ -91,6 +93,7 @@ def path(self, path): :param path: The path of this TimezoneRegionTimezone. :type: str """ + self._path = path def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/timezone_regions.py b/isi_sdk/models/timezone_regions.py index 7751909cc..73bcf6110 100644 --- a/isi_sdk/models/timezone_regions.py +++ b/isi_sdk/models/timezone_regions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TimezoneRegions(object): @@ -72,6 +73,7 @@ def regions(self, regions): :param regions: The regions of this TimezoneRegions. :type: list[TimezoneRegion] """ + self._regions = regions @property @@ -94,6 +96,7 @@ def resume(self, resume): :param resume: The resume of this TimezoneRegions. :type: str """ + self._resume = resume @property @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this TimezoneRegions. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/timezone_settings.py b/isi_sdk/models/timezone_settings.py index 22acb10e5..c4afb777f 100644 --- a/isi_sdk/models/timezone_settings.py +++ b/isi_sdk/models/timezone_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class TimezoneSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this TimezoneSettings. :type: TimezoneRegionTimezone """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/upgrade_cluster.py b/isi_sdk/models/upgrade_cluster.py index 24e2d6df5..406f47f1a 100644 --- a/isi_sdk/models/upgrade_cluster.py +++ b/isi_sdk/models/upgrade_cluster.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class UpgradeCluster(object): @@ -93,6 +94,7 @@ def cluster_overview(self, cluster_overview): :param cluster_overview: The cluster_overview of this UpgradeCluster. :type: UpgradeClusterClusterOverview """ + self._cluster_overview = cluster_overview @property @@ -115,6 +117,7 @@ def cluster_state(self, cluster_state): :param cluster_state: The cluster_state of this UpgradeCluster. :type: str """ + self._cluster_state = cluster_state @property @@ -137,13 +140,14 @@ def finish_time(self, finish_time): :param finish_time: The finish_time of this UpgradeCluster. :type: str """ + self._finish_time = finish_time @property def install_image_path(self): """ Gets the install_image_path of this UpgradeCluster. - The location (path) of the upgrade image which must be within /ifs.\nNull if the cluster_state is 'committed' or 'upgraded.' + The location (path) of the upgrade image which must be within /ifs. Null if the cluster_state is 'committed' or 'upgraded.' :return: The install_image_path of this UpgradeCluster. :rtype: str @@ -154,11 +158,12 @@ def install_image_path(self): def install_image_path(self, install_image_path): """ Sets the install_image_path of this UpgradeCluster. - The location (path) of the upgrade image which must be within /ifs.\nNull if the cluster_state is 'committed' or 'upgraded.' + The location (path) of the upgrade image which must be within /ifs. Null if the cluster_state is 'committed' or 'upgraded.' :param install_image_path: The install_image_path of this UpgradeCluster. :type: str """ + self._install_image_path = install_image_path @property @@ -181,6 +186,7 @@ def onefs_version_current(self, onefs_version_current): :param onefs_version_current: The onefs_version_current of this UpgradeCluster. :type: ClusterNodesOnefsVersion """ + self._onefs_version_current = onefs_version_current @property @@ -203,6 +209,7 @@ def onefs_version_upgrade(self, onefs_version_upgrade): :param onefs_version_upgrade: The onefs_version_upgrade of this UpgradeCluster. :type: ClusterNodesOnefsVersion """ + self._onefs_version_upgrade = onefs_version_upgrade @property @@ -225,6 +232,7 @@ def patch_action(self, patch_action): :param patch_action: The patch_action of this UpgradeCluster. :type: str """ + self._patch_action = patch_action @property @@ -247,6 +255,7 @@ def patch_name(self, patch_name): :param patch_name: The patch_name of this UpgradeCluster. :type: str """ + self._patch_name = patch_name @property @@ -269,6 +278,7 @@ def start_time(self, start_time): :param start_time: The start_time of this UpgradeCluster. :type: str """ + self._start_time = start_time @property @@ -291,6 +301,7 @@ def upgrade_settings(self, upgrade_settings): :param upgrade_settings: The upgrade_settings of this UpgradeCluster. :type: UpgradeClusterUpgradeSettings """ + self._upgrade_settings = upgrade_settings def to_dict(self): @@ -308,6 +319,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -325,14 +342,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/upgrade_cluster_cluster_overview.py b/isi_sdk/models/upgrade_cluster_cluster_overview.py index 364a3ab55..cbabb648c 100644 --- a/isi_sdk/models/upgrade_cluster_cluster_overview.py +++ b/isi_sdk/models/upgrade_cluster_cluster_overview.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class UpgradeClusterClusterOverview(object): @@ -75,6 +76,7 @@ def nodes_current(self, nodes_current): :param nodes_current: The nodes_current of this UpgradeClusterClusterOverview. :type: int """ + self._nodes_current = nodes_current @property @@ -97,6 +99,7 @@ def nodes_total(self, nodes_total): :param nodes_total: The nodes_total of this UpgradeClusterClusterOverview. :type: int """ + self._nodes_total = nodes_total @property @@ -119,6 +122,7 @@ def nodes_transitioning(self, nodes_transitioning): :param nodes_transitioning: The nodes_transitioning of this UpgradeClusterClusterOverview. :type: int """ + self._nodes_transitioning = nodes_transitioning @property @@ -141,6 +145,7 @@ def nodes_upgraded(self, nodes_upgraded): :param nodes_upgraded: The nodes_upgraded of this UpgradeClusterClusterOverview. :type: int """ + self._nodes_upgraded = nodes_upgraded def to_dict(self): @@ -158,6 +163,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -175,14 +186,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/upgrade_cluster_upgrade_settings.py b/isi_sdk/models/upgrade_cluster_upgrade_settings.py index a29c605cf..5c8f83094 100644 --- a/isi_sdk/models/upgrade_cluster_upgrade_settings.py +++ b/isi_sdk/models/upgrade_cluster_upgrade_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class UpgradeClusterUpgradeSettings(object): @@ -69,6 +70,7 @@ def nodes_to_rolling_upgrade(self, nodes_to_rolling_upgrade): :param nodes_to_rolling_upgrade: The nodes_to_rolling_upgrade of this UpgradeClusterUpgradeSettings. :type: list[int] """ + self._nodes_to_rolling_upgrade = nodes_to_rolling_upgrade @property @@ -91,6 +93,7 @@ def upgrade_type(self, upgrade_type): :param upgrade_type: The upgrade_type of this UpgradeClusterUpgradeSettings. :type: str """ + self._upgrade_type = upgrade_type def to_dict(self): @@ -108,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/user_change_password.py b/isi_sdk/models/user_change_password.py new file mode 100644 index 000000000..86fda39c4 --- /dev/null +++ b/isi_sdk/models/user_change_password.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class UserChangePassword(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + UserChangePassword - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'new_password': 'str', + 'old_password': 'str' + } + + self.attribute_map = { + 'new_password': 'new_password', + 'old_password': 'old_password' + } + + self._new_password = None + self._old_password = None + + @property + def new_password(self): + """ + Gets the new_password of this UserChangePassword. + Specifies user's new password + + :return: The new_password of this UserChangePassword. + :rtype: str + """ + return self._new_password + + @new_password.setter + def new_password(self, new_password): + """ + Sets the new_password of this UserChangePassword. + Specifies user's new password + + :param new_password: The new_password of this UserChangePassword. + :type: str + """ + + self._new_password = new_password + + @property + def old_password(self): + """ + Gets the old_password of this UserChangePassword. + User's expired password + + :return: The old_password of this UserChangePassword. + :rtype: str + """ + return self._old_password + + @old_password.setter + def old_password(self, old_password): + """ + Sets the old_password of this UserChangePassword. + User's expired password + + :param old_password: The old_password of this UserChangePassword. + :type: str + """ + + self._old_password = old_password + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/user_member_of.py b/isi_sdk/models/user_member_of.py new file mode 100644 index 000000000..94fad7539 --- /dev/null +++ b/isi_sdk/models/user_member_of.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + Ref: https://github.com/swagger-api/swagger-codegen +""" + +from pprint import pformat +from six import iteritems +import re + + +class UserMemberOf(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + def __init__(self): + """ + UserMemberOf - a model defined in Swagger + + :param dict swaggerTypes: The key is attribute name + and the value is attribute type. + :param dict attributeMap: The key is attribute name + and the value is json key in definition. + """ + self.swagger_types = { + 'member_of': 'list[GroupMember]', + 'resume': 'str' + } + + self.attribute_map = { + 'member_of': 'member_of', + 'resume': 'resume' + } + + self._member_of = None + self._resume = None + + @property + def member_of(self): + """ + Gets the member_of of this UserMemberOf. + + + :return: The member_of of this UserMemberOf. + :rtype: list[GroupMember] + """ + return self._member_of + + @member_of.setter + def member_of(self, member_of): + """ + Sets the member_of of this UserMemberOf. + + + :param member_of: The member_of of this UserMemberOf. + :type: list[GroupMember] + """ + + self._member_of = member_of + + @property + def resume(self): + """ + Gets the resume of this UserMemberOf. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this UserMemberOf. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this UserMemberOf. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this UserMemberOf. + :type: str + """ + + self._resume = resume + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other + diff --git a/isi_sdk/models/worm_domain.py b/isi_sdk/models/worm_domain.py index 4fa732808..83af460d0 100644 --- a/isi_sdk/models/worm_domain.py +++ b/isi_sdk/models/worm_domain.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class WormDomain(object): @@ -84,6 +85,12 @@ def autocommit_offset(self, autocommit_offset): :param autocommit_offset: The autocommit_offset of this WormDomain. :type: int """ + + if not autocommit_offset: + raise ValueError("Invalid value for `autocommit_offset`, must not be `None`") + if autocommit_offset < 0.0: + raise ValueError("Invalid value for `autocommit_offset`, must be a value greater than or equal to `0.0`") + self._autocommit_offset = autocommit_offset @property @@ -106,6 +113,12 @@ def default_retention(self, default_retention): :param default_retention: The default_retention of this WormDomain. :type: int """ + + if not default_retention: + raise ValueError("Invalid value for `default_retention`, must not be `None`") + if default_retention < 0.0: + raise ValueError("Invalid value for `default_retention`, must be a value greater than or equal to `0.0`") + self._default_retention = default_retention @property @@ -128,6 +141,12 @@ def max_retention(self, max_retention): :param max_retention: The max_retention of this WormDomain. :type: int """ + + if not max_retention: + raise ValueError("Invalid value for `max_retention`, must not be `None`") + if max_retention < 0.0: + raise ValueError("Invalid value for `max_retention`, must be a value greater than or equal to `0.0`") + self._max_retention = max_retention @property @@ -150,6 +169,12 @@ def min_retention(self, min_retention): :param min_retention: The min_retention of this WormDomain. :type: int """ + + if not min_retention: + raise ValueError("Invalid value for `min_retention`, must not be `None`") + if min_retention < 0.0: + raise ValueError("Invalid value for `min_retention`, must be a value greater than or equal to `0.0`") + self._min_retention = min_retention @property @@ -172,6 +197,12 @@ def override_date(self, override_date): :param override_date: The override_date of this WormDomain. :type: int """ + + if not override_date: + raise ValueError("Invalid value for `override_date`, must not be `None`") + if override_date < 0.0: + raise ValueError("Invalid value for `override_date`, must be a value greater than or equal to `0.0`") + self._override_date = override_date @property @@ -200,6 +231,7 @@ def privileged_delete(self, privileged_delete): "Invalid value for `privileged_delete`, must be one of {0}" .format(allowed_values) ) + self._privileged_delete = privileged_delete @property @@ -228,6 +260,7 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type def to_dict(self): @@ -245,6 +278,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -262,14 +301,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/worm_domain_create_params.py b/isi_sdk/models/worm_domain_create_params.py index 9483ef7a6..a831a0194 100644 --- a/isi_sdk/models/worm_domain_create_params.py +++ b/isi_sdk/models/worm_domain_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class WormDomainCreateParams(object): @@ -37,57 +38,63 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'path': 'str', - 'default_retention': 'int', - 'privileged_delete': 'str', - 'override_date': 'int', 'autocommit_offset': 'int', + 'default_retention': 'int', 'max_retention': 'int', 'min_retention': 'int', - 'type': 'str' + 'override_date': 'int', + 'privileged_delete': 'str', + 'type': 'str', + 'path': 'str' } self.attribute_map = { - 'path': 'path', - 'default_retention': 'default_retention', - 'privileged_delete': 'privileged_delete', - 'override_date': 'override_date', 'autocommit_offset': 'autocommit_offset', + 'default_retention': 'default_retention', 'max_retention': 'max_retention', 'min_retention': 'min_retention', - 'type': 'type' + 'override_date': 'override_date', + 'privileged_delete': 'privileged_delete', + 'type': 'type', + 'path': 'path' } - self._path = None - self._default_retention = None - self._privileged_delete = None - self._override_date = None self._autocommit_offset = None + self._default_retention = None self._max_retention = None self._min_retention = None + self._override_date = None + self._privileged_delete = None self._type = None + self._path = None @property - def path(self): + def autocommit_offset(self): """ - Gets the path of this WormDomainCreateParams. - Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. + Gets the autocommit_offset of this WormDomainCreateParams. + Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. - :return: The path of this WormDomainCreateParams. - :rtype: str + :return: The autocommit_offset of this WormDomainCreateParams. + :rtype: int """ - return self._path + return self._autocommit_offset - @path.setter - def path(self, path): + @autocommit_offset.setter + def autocommit_offset(self, autocommit_offset): """ - Sets the path of this WormDomainCreateParams. - Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. + Sets the autocommit_offset of this WormDomainCreateParams. + Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. - :param path: The path of this WormDomainCreateParams. - :type: str + :param autocommit_offset: The autocommit_offset of this WormDomainCreateParams. + :type: int """ - self._path = path + + if not autocommit_offset: + raise ValueError("Invalid value for `autocommit_offset`, must not be `None`") + if autocommit_offset < 0.0: + raise ValueError("Invalid value for `autocommit_offset`, must be a value greater than or equal to `0.0`") + + self._autocommit_offset = autocommit_offset @property def default_retention(self): @@ -109,79 +116,13 @@ def default_retention(self, default_retention): :param default_retention: The default_retention of this WormDomainCreateParams. :type: int """ - self._default_retention = default_retention - - @property - def privileged_delete(self): - """ - Gets the privileged_delete of this WormDomainCreateParams. - When this value is set to 'on', files in this domain can be deleted through the privileged delete feature. If this value is set to 'disabled', privileged file deletes are permanently disabled and cannot be turned on again. - - :return: The privileged_delete of this WormDomainCreateParams. - :rtype: str - """ - return self._privileged_delete - - @privileged_delete.setter - def privileged_delete(self, privileged_delete): - """ - Sets the privileged_delete of this WormDomainCreateParams. - When this value is set to 'on', files in this domain can be deleted through the privileged delete feature. If this value is set to 'disabled', privileged file deletes are permanently disabled and cannot be turned on again. - - :param privileged_delete: The privileged_delete of this WormDomainCreateParams. - :type: str - """ - allowed_values = ["on", "off", "disabled"] - if privileged_delete not in allowed_values: - raise ValueError( - "Invalid value for `privileged_delete`, must be one of {0}" - .format(allowed_values) - ) - self._privileged_delete = privileged_delete - - @property - def override_date(self): - """ - Gets the override_date of this WormDomainCreateParams. - Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. - - :return: The override_date of this WormDomainCreateParams. - :rtype: int - """ - return self._override_date - - @override_date.setter - def override_date(self, override_date): - """ - Sets the override_date of this WormDomainCreateParams. - Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. - - :param override_date: The override_date of this WormDomainCreateParams. - :type: int - """ - self._override_date = override_date + + if not default_retention: + raise ValueError("Invalid value for `default_retention`, must not be `None`") + if default_retention < 0.0: + raise ValueError("Invalid value for `default_retention`, must be a value greater than or equal to `0.0`") - @property - def autocommit_offset(self): - """ - Gets the autocommit_offset of this WormDomainCreateParams. - Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. - - :return: The autocommit_offset of this WormDomainCreateParams. - :rtype: int - """ - return self._autocommit_offset - - @autocommit_offset.setter - def autocommit_offset(self, autocommit_offset): - """ - Sets the autocommit_offset of this WormDomainCreateParams. - Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. - - :param autocommit_offset: The autocommit_offset of this WormDomainCreateParams. - :type: int - """ - self._autocommit_offset = autocommit_offset + self._default_retention = default_retention @property def max_retention(self): @@ -203,6 +144,12 @@ def max_retention(self, max_retention): :param max_retention: The max_retention of this WormDomainCreateParams. :type: int """ + + if not max_retention: + raise ValueError("Invalid value for `max_retention`, must not be `None`") + if max_retention < 0.0: + raise ValueError("Invalid value for `max_retention`, must be a value greater than or equal to `0.0`") + self._max_retention = max_retention @property @@ -225,8 +172,71 @@ def min_retention(self, min_retention): :param min_retention: The min_retention of this WormDomainCreateParams. :type: int """ + + if not min_retention: + raise ValueError("Invalid value for `min_retention`, must not be `None`") + if min_retention < 0.0: + raise ValueError("Invalid value for `min_retention`, must be a value greater than or equal to `0.0`") + self._min_retention = min_retention + @property + def override_date(self): + """ + Gets the override_date of this WormDomainCreateParams. + Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. + + :return: The override_date of this WormDomainCreateParams. + :rtype: int + """ + return self._override_date + + @override_date.setter + def override_date(self, override_date): + """ + Sets the override_date of this WormDomainCreateParams. + Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. + + :param override_date: The override_date of this WormDomainCreateParams. + :type: int + """ + + if not override_date: + raise ValueError("Invalid value for `override_date`, must not be `None`") + if override_date < 0.0: + raise ValueError("Invalid value for `override_date`, must be a value greater than or equal to `0.0`") + + self._override_date = override_date + + @property + def privileged_delete(self): + """ + Gets the privileged_delete of this WormDomainCreateParams. + When this value is set to 'on', files in this domain can be deleted through the privileged delete feature. If this value is set to 'disabled', privileged file deletes are permanently disabled and cannot be turned on again. + + :return: The privileged_delete of this WormDomainCreateParams. + :rtype: str + """ + return self._privileged_delete + + @privileged_delete.setter + def privileged_delete(self, privileged_delete): + """ + Sets the privileged_delete of this WormDomainCreateParams. + When this value is set to 'on', files in this domain can be deleted through the privileged delete feature. If this value is set to 'disabled', privileged file deletes are permanently disabled and cannot be turned on again. + + :param privileged_delete: The privileged_delete of this WormDomainCreateParams. + :type: str + """ + allowed_values = ["on", "off", "disabled"] + if privileged_delete not in allowed_values: + raise ValueError( + "Invalid value for `privileged_delete`, must be one of {0}" + .format(allowed_values) + ) + + self._privileged_delete = privileged_delete + @property def type(self): """ @@ -253,8 +263,32 @@ def type(self, type): "Invalid value for `type`, must be one of {0}" .format(allowed_values) ) + self._type = type + @property + def path(self): + """ + Gets the path of this WormDomainCreateParams. + Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. + + :return: The path of this WormDomainCreateParams. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this WormDomainCreateParams. + Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. + + :param path: The path of this WormDomainCreateParams. + :type: str + """ + + self._path = path + def to_dict(self): """ Returns the model properties as a dict @@ -270,6 +304,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -287,14 +327,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/worm_domain_extended.py b/isi_sdk/models/worm_domain_extended.py index 95efd48a2..0bf969109 100644 --- a/isi_sdk/models/worm_domain_extended.py +++ b/isi_sdk/models/worm_domain_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class WormDomainExtended(object): @@ -37,232 +38,190 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'override_date': 'int', + 'autocommit_offset': 'int', + 'default_retention': 'int', 'max_retention': 'int', + 'min_retention': 'int', + 'override_date': 'int', + 'privileged_delete': 'str', 'type': 'str', + 'id': 'int', + 'incomplete': 'bool', 'lin': 'int', + 'max_modifies': 'int', 'path': 'str', - 'incomplete': 'bool', - 'default_retention': 'int', - 'total_modifies': 'int', - 'privileged_delete': 'str', - 'autocommit_offset': 'int', - 'id': 'int', - 'min_retention': 'int', - 'max_modifies': 'int' + 'total_modifies': 'int' } self.attribute_map = { - 'override_date': 'override_date', + 'autocommit_offset': 'autocommit_offset', + 'default_retention': 'default_retention', 'max_retention': 'max_retention', + 'min_retention': 'min_retention', + 'override_date': 'override_date', + 'privileged_delete': 'privileged_delete', 'type': 'type', + 'id': 'id', + 'incomplete': 'incomplete', 'lin': 'lin', + 'max_modifies': 'max_modifies', 'path': 'path', - 'incomplete': 'incomplete', - 'default_retention': 'default_retention', - 'total_modifies': 'total_modifies', - 'privileged_delete': 'privileged_delete', - 'autocommit_offset': 'autocommit_offset', - 'id': 'id', - 'min_retention': 'min_retention', - 'max_modifies': 'max_modifies' + 'total_modifies': 'total_modifies' } - self._override_date = None + self._autocommit_offset = None + self._default_retention = None self._max_retention = None + self._min_retention = None + self._override_date = None + self._privileged_delete = None self._type = None + self._id = None + self._incomplete = None self._lin = None + self._max_modifies = None self._path = None - self._incomplete = None - self._default_retention = None self._total_modifies = None - self._privileged_delete = None - self._autocommit_offset = None - self._id = None - self._min_retention = None - self._max_modifies = None @property - def override_date(self): + def autocommit_offset(self): """ - Gets the override_date of this WormDomainExtended. - Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. + Gets the autocommit_offset of this WormDomainExtended. + Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. - :return: The override_date of this WormDomainExtended. + :return: The autocommit_offset of this WormDomainExtended. :rtype: int """ - return self._override_date + return self._autocommit_offset - @override_date.setter - def override_date(self, override_date): + @autocommit_offset.setter + def autocommit_offset(self, autocommit_offset): """ - Sets the override_date of this WormDomainExtended. - Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. + Sets the autocommit_offset of this WormDomainExtended. + Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. - :param override_date: The override_date of this WormDomainExtended. + :param autocommit_offset: The autocommit_offset of this WormDomainExtended. :type: int """ - self._override_date = override_date + + if not autocommit_offset: + raise ValueError("Invalid value for `autocommit_offset`, must not be `None`") + if autocommit_offset < 0.0: + raise ValueError("Invalid value for `autocommit_offset`, must be a value greater than or equal to `0.0`") + + self._autocommit_offset = autocommit_offset @property - def max_retention(self): + def default_retention(self): """ - Gets the max_retention of this WormDomainExtended. - Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. + Gets the default_retention of this WormDomainExtended. + Specifies the default amount of time, in seconds, that a file in this domain will be protected for. The default retention period is applied if no retention date is manually set on the file. This parameter can also be set to 'forever', 'use_min' (which applies the 'min_retention' option), or 'use_max' (which applies the 'max_retention' option). - :return: The max_retention of this WormDomainExtended. + :return: The default_retention of this WormDomainExtended. :rtype: int """ - return self._max_retention + return self._default_retention - @max_retention.setter - def max_retention(self, max_retention): + @default_retention.setter + def default_retention(self, default_retention): """ - Sets the max_retention of this WormDomainExtended. - Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. + Sets the default_retention of this WormDomainExtended. + Specifies the default amount of time, in seconds, that a file in this domain will be protected for. The default retention period is applied if no retention date is manually set on the file. This parameter can also be set to 'forever', 'use_min' (which applies the 'min_retention' option), or 'use_max' (which applies the 'max_retention' option). - :param max_retention: The max_retention of this WormDomainExtended. + :param default_retention: The default_retention of this WormDomainExtended. :type: int """ - self._max_retention = max_retention - - @property - def type(self): - """ - Gets the type of this WormDomainExtended. - Specifies whether the domain is an enterprise domain or a compliance domain. Compliance domains can not be created on enterprise clusters. Enterprise and compliance domains can be created on compliance clusters. - - :return: The type of this WormDomainExtended. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this WormDomainExtended. - Specifies whether the domain is an enterprise domain or a compliance domain. Compliance domains can not be created on enterprise clusters. Enterprise and compliance domains can be created on compliance clusters. + + if not default_retention: + raise ValueError("Invalid value for `default_retention`, must not be `None`") + if default_retention < 0.0: + raise ValueError("Invalid value for `default_retention`, must be a value greater than or equal to `0.0`") - :param type: The type of this WormDomainExtended. - :type: str - """ - allowed_values = ["enterprise", "compliance"] - if type not in allowed_values: - raise ValueError( - "Invalid value for `type`, must be one of {0}" - .format(allowed_values) - ) - self._type = type + self._default_retention = default_retention @property - def lin(self): + def max_retention(self): """ - Gets the lin of this WormDomainExtended. - Specifies the logical inode number (LIN) for the root of this domain. + Gets the max_retention of this WormDomainExtended. + Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. - :return: The lin of this WormDomainExtended. + :return: The max_retention of this WormDomainExtended. :rtype: int """ - return self._lin + return self._max_retention - @lin.setter - def lin(self, lin): + @max_retention.setter + def max_retention(self, max_retention): """ - Sets the lin of this WormDomainExtended. - Specifies the logical inode number (LIN) for the root of this domain. + Sets the max_retention of this WormDomainExtended. + Specifies the maximum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a longer retention period. If this parameter is set to null, an infinite length retention period is set. - :param lin: The lin of this WormDomainExtended. + :param max_retention: The max_retention of this WormDomainExtended. :type: int """ - self._lin = lin - - @property - def path(self): - """ - Gets the path of this WormDomainExtended. - Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. - - :return: The path of this WormDomainExtended. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """ - Sets the path of this WormDomainExtended. - Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. - - :param path: The path of this WormDomainExtended. - :type: str - """ - self._path = path - - @property - def incomplete(self): - """ - Gets the incomplete of this WormDomainExtended. - True if OneFS is still in the process of creating this domain and is unable to prevent files from being modified or deleted. If false, indicates that the domain is fully created and is able to prevent files from being modified or deleted. - - :return: The incomplete of this WormDomainExtended. - :rtype: bool - """ - return self._incomplete - - @incomplete.setter - def incomplete(self, incomplete): - """ - Sets the incomplete of this WormDomainExtended. - True if OneFS is still in the process of creating this domain and is unable to prevent files from being modified or deleted. If false, indicates that the domain is fully created and is able to prevent files from being modified or deleted. + + if not max_retention: + raise ValueError("Invalid value for `max_retention`, must not be `None`") + if max_retention < 0.0: + raise ValueError("Invalid value for `max_retention`, must be a value greater than or equal to `0.0`") - :param incomplete: The incomplete of this WormDomainExtended. - :type: bool - """ - self._incomplete = incomplete + self._max_retention = max_retention @property - def default_retention(self): + def min_retention(self): """ - Gets the default_retention of this WormDomainExtended. - Specifies the default amount of time, in seconds, that a file in this domain will be protected for. The default retention period is applied if no retention date is manually set on the file. This parameter can also be set to 'forever', 'use_min' (which applies the 'min_retention' option), or 'use_max' (which applies the 'max_retention' option). + Gets the min_retention of this WormDomainExtended. + Specifies the minimum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a shorter retention period. If this parameter is set to null, this minimum value is not enforced. This parameter can also be set to 'forever'. - :return: The default_retention of this WormDomainExtended. + :return: The min_retention of this WormDomainExtended. :rtype: int """ - return self._default_retention + return self._min_retention - @default_retention.setter - def default_retention(self, default_retention): + @min_retention.setter + def min_retention(self, min_retention): """ - Sets the default_retention of this WormDomainExtended. - Specifies the default amount of time, in seconds, that a file in this domain will be protected for. The default retention period is applied if no retention date is manually set on the file. This parameter can also be set to 'forever', 'use_min' (which applies the 'min_retention' option), or 'use_max' (which applies the 'max_retention' option). + Sets the min_retention of this WormDomainExtended. + Specifies the minimum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a shorter retention period. If this parameter is set to null, this minimum value is not enforced. This parameter can also be set to 'forever'. - :param default_retention: The default_retention of this WormDomainExtended. + :param min_retention: The min_retention of this WormDomainExtended. :type: int """ - self._default_retention = default_retention + + if not min_retention: + raise ValueError("Invalid value for `min_retention`, must not be `None`") + if min_retention < 0.0: + raise ValueError("Invalid value for `min_retention`, must be a value greater than or equal to `0.0`") + + self._min_retention = min_retention @property - def total_modifies(self): + def override_date(self): """ - Gets the total_modifies of this WormDomainExtended. - Specifies the number of times this domain has been modified and the number of times the attributes for the domain have changed. A SmartLock domain can be modified a fixed number of times as defined by the 'max_modifies' parameter. + Gets the override_date of this WormDomainExtended. + Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. - :return: The total_modifies of this WormDomainExtended. + :return: The override_date of this WormDomainExtended. :rtype: int """ - return self._total_modifies + return self._override_date - @total_modifies.setter - def total_modifies(self, total_modifies): + @override_date.setter + def override_date(self, override_date): """ - Sets the total_modifies of this WormDomainExtended. - Specifies the number of times this domain has been modified and the number of times the attributes for the domain have changed. A SmartLock domain can be modified a fixed number of times as defined by the 'max_modifies' parameter. + Sets the override_date of this WormDomainExtended. + Specifies the override retention date for the domain. If this date is later than the retention date for any committed file, the file will remain protected until the override retention date. - :param total_modifies: The total_modifies of this WormDomainExtended. + :param override_date: The override_date of this WormDomainExtended. :type: int """ - self._total_modifies = total_modifies + + if not override_date: + raise ValueError("Invalid value for `override_date`, must not be `None`") + if override_date < 0.0: + raise ValueError("Invalid value for `override_date`, must be a value greater than or equal to `0.0`") + + self._override_date = override_date @property def privileged_delete(self): @@ -290,29 +249,37 @@ def privileged_delete(self, privileged_delete): "Invalid value for `privileged_delete`, must be one of {0}" .format(allowed_values) ) + self._privileged_delete = privileged_delete @property - def autocommit_offset(self): + def type(self): """ - Gets the autocommit_offset of this WormDomainExtended. - Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. + Gets the type of this WormDomainExtended. + Specifies whether the domain is an enterprise domain or a compliance domain. Compliance domains can not be created on enterprise clusters. Enterprise and compliance domains can be created on compliance clusters. - :return: The autocommit_offset of this WormDomainExtended. - :rtype: int + :return: The type of this WormDomainExtended. + :rtype: str """ - return self._autocommit_offset + return self._type - @autocommit_offset.setter - def autocommit_offset(self, autocommit_offset): + @type.setter + def type(self, type): """ - Sets the autocommit_offset of this WormDomainExtended. - Specifies the autocommit time period for the domain in seconds. After a file is in the domain without being modified for the specified time period, the file is automatically committed. If this parameter is set to null, there is no autocommit time, and files must be committed manually. + Sets the type of this WormDomainExtended. + Specifies whether the domain is an enterprise domain or a compliance domain. Compliance domains can not be created on enterprise clusters. Enterprise and compliance domains can be created on compliance clusters. - :param autocommit_offset: The autocommit_offset of this WormDomainExtended. - :type: int + :param type: The type of this WormDomainExtended. + :type: str """ - self._autocommit_offset = autocommit_offset + allowed_values = ["enterprise", "compliance"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type`, must be one of {0}" + .format(allowed_values) + ) + + self._type = type @property def id(self): @@ -334,29 +301,54 @@ def id(self, id): :param id: The id of this WormDomainExtended. :type: int """ + self._id = id @property - def min_retention(self): + def incomplete(self): """ - Gets the min_retention of this WormDomainExtended. - Specifies the minimum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a shorter retention period. If this parameter is set to null, this minimum value is not enforced. This parameter can also be set to 'forever'. + Gets the incomplete of this WormDomainExtended. + True if OneFS is still in the process of creating this domain and is unable to prevent files from being modified or deleted. If false, indicates that the domain is fully created and is able to prevent files from being modified or deleted. - :return: The min_retention of this WormDomainExtended. + :return: The incomplete of this WormDomainExtended. + :rtype: bool + """ + return self._incomplete + + @incomplete.setter + def incomplete(self, incomplete): + """ + Sets the incomplete of this WormDomainExtended. + True if OneFS is still in the process of creating this domain and is unable to prevent files from being modified or deleted. If false, indicates that the domain is fully created and is able to prevent files from being modified or deleted. + + :param incomplete: The incomplete of this WormDomainExtended. + :type: bool + """ + + self._incomplete = incomplete + + @property + def lin(self): + """ + Gets the lin of this WormDomainExtended. + Specifies the logical inode number (LIN) for the root of this domain. + + :return: The lin of this WormDomainExtended. :rtype: int """ - return self._min_retention + return self._lin - @min_retention.setter - def min_retention(self, min_retention): + @lin.setter + def lin(self, lin): """ - Sets the min_retention of this WormDomainExtended. - Specifies the minimum amount of time, in seconds, that a file in this domain will be protected. This setting will override the retention period of any file committed with a shorter retention period. If this parameter is set to null, this minimum value is not enforced. This parameter can also be set to 'forever'. + Sets the lin of this WormDomainExtended. + Specifies the logical inode number (LIN) for the root of this domain. - :param min_retention: The min_retention of this WormDomainExtended. + :param lin: The lin of this WormDomainExtended. :type: int """ - self._min_retention = min_retention + + self._lin = lin @property def max_modifies(self): @@ -378,8 +370,55 @@ def max_modifies(self, max_modifies): :param max_modifies: The max_modifies of this WormDomainExtended. :type: int """ + self._max_modifies = max_modifies + @property + def path(self): + """ + Gets the path of this WormDomainExtended. + Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. + + :return: The path of this WormDomainExtended. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this WormDomainExtended. + Specifies the root path of this domain. Files in this directory and all sub-directories will be protected. + + :param path: The path of this WormDomainExtended. + :type: str + """ + + self._path = path + + @property + def total_modifies(self): + """ + Gets the total_modifies of this WormDomainExtended. + Specifies the number of times this domain has been modified and the number of times the attributes for the domain have changed. A SmartLock domain can be modified a fixed number of times as defined by the 'max_modifies' parameter. + + :return: The total_modifies of this WormDomainExtended. + :rtype: int + """ + return self._total_modifies + + @total_modifies.setter + def total_modifies(self, total_modifies): + """ + Sets the total_modifies of this WormDomainExtended. + Specifies the number of times this domain has been modified and the number of times the attributes for the domain have changed. A SmartLock domain can be modified a fixed number of times as defined by the 'max_modifies' parameter. + + :param total_modifies: The total_modifies of this WormDomainExtended. + :type: int + """ + + self._total_modifies = total_modifies + def to_dict(self): """ Returns the model properties as a dict @@ -395,6 +434,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -412,14 +457,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/worm_domains.py b/isi_sdk/models/worm_domains.py index 0d36d9d60..d076fda20 100644 --- a/isi_sdk/models/worm_domains.py +++ b/isi_sdk/models/worm_domains.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class WormDomains(object): @@ -66,6 +67,7 @@ def domains(self, domains): :param domains: The domains of this WormDomains. :type: list[WormDomainExtended] """ + self._domains = domains def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/worm_domains_extended.py b/isi_sdk/models/worm_domains_extended.py index ec8eae524..d32fb1ba2 100644 --- a/isi_sdk/models/worm_domains_extended.py +++ b/isi_sdk/models/worm_domains_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class WormDomainsExtended(object): @@ -37,43 +38,21 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'resume': 'str', 'domains': 'list[WormDomainExtended]', + 'resume': 'str', 'total': 'int' } self.attribute_map = { - 'resume': 'resume', 'domains': 'domains', + 'resume': 'resume', 'total': 'total' } - self._resume = None self._domains = None + self._resume = None self._total = None - @property - def resume(self): - """ - Gets the resume of this WormDomainsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :return: The resume of this WormDomainsExtended. - :rtype: str - """ - return self._resume - - @resume.setter - def resume(self, resume): - """ - Sets the resume of this WormDomainsExtended. - Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). - - :param resume: The resume of this WormDomainsExtended. - :type: str - """ - self._resume = resume - @property def domains(self): """ @@ -94,8 +73,32 @@ def domains(self, domains): :param domains: The domains of this WormDomainsExtended. :type: list[WormDomainExtended] """ + self._domains = domains + @property + def resume(self): + """ + Gets the resume of this WormDomainsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :return: The resume of this WormDomainsExtended. + :rtype: str + """ + return self._resume + + @resume.setter + def resume(self, resume): + """ + Sets the resume of this WormDomainsExtended. + Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options). + + :param resume: The resume of this WormDomainsExtended. + :type: str + """ + + self._resume = resume + @property def total(self): """ @@ -116,6 +119,7 @@ def total(self, total): :param total: The total of this WormDomainsExtended. :type: int """ + self._total = total def to_dict(self): @@ -133,6 +137,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +160,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/worm_settings.py b/isi_sdk/models/worm_settings.py index 5d0be2e88..eabaf9ffa 100644 --- a/isi_sdk/models/worm_settings.py +++ b/isi_sdk/models/worm_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class WormSettings(object): @@ -66,6 +67,7 @@ def settings(self, settings): :param settings: The settings of this WormSettings. :type: WormSettingsSettings """ + self._settings = settings def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/worm_settings_extended.py b/isi_sdk/models/worm_settings_extended.py index 9796452b8..c9e1a6200 100644 --- a/isi_sdk/models/worm_settings_extended.py +++ b/isi_sdk/models/worm_settings_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class WormSettingsExtended(object): @@ -37,40 +38,15 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'settings': 'WormSettingsSettings', 'cdate': 'Empty' } self.attribute_map = { - 'settings': 'settings', 'cdate': 'cdate' } - self._settings = None self._cdate = None - @property - def settings(self): - """ - Gets the settings of this WormSettingsExtended. - Specifies global SmartLock (WORM) settings. - - :return: The settings of this WormSettingsExtended. - :rtype: WormSettingsSettings - """ - return self._settings - - @settings.setter - def settings(self, settings): - """ - Sets the settings of this WormSettingsExtended. - Specifies global SmartLock (WORM) settings. - - :param settings: The settings of this WormSettingsExtended. - :type: WormSettingsSettings - """ - self._settings = settings - @property def cdate(self): """ @@ -91,6 +67,7 @@ def cdate(self, cdate): :param cdate: The cdate of this WormSettingsExtended. :type: Empty """ + self._cdate = cdate def to_dict(self): @@ -108,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -125,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/worm_settings_settings.py b/isi_sdk/models/worm_settings_settings.py index 36c77eb4a..bb32cfadc 100644 --- a/isi_sdk/models/worm_settings_settings.py +++ b/isi_sdk/models/worm_settings_settings.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class WormSettingsSettings(object): @@ -66,6 +67,7 @@ def cdate(self, cdate): :param cdate: The cdate of this WormSettingsSettings. :type: int """ + self._cdate = cdate def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/zone.py b/isi_sdk/models/zone.py index 2408a9a41..b7b8e7585 100644 --- a/isi_sdk/models/zone.py +++ b/isi_sdk/models/zone.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class Zone(object): @@ -43,7 +44,7 @@ def __init__(self): 'create_path': 'bool', 'force_overlap': 'bool', 'home_directory_umask': 'int', - 'ifs_restricted': 'list[GroupsGroupMember]', + 'ifs_restricted': 'list[GroupMember]', 'map_untrusted': 'str', 'name': 'str', 'netbios_name': 'str', @@ -105,6 +106,7 @@ def alternate_system_provider(self, alternate_system_provider): :param alternate_system_provider: The alternate_system_provider of this Zone. :type: str """ + self._alternate_system_provider = alternate_system_provider @property @@ -127,6 +129,7 @@ def auth_providers(self, auth_providers): :param auth_providers: The auth_providers of this Zone. :type: list[str] """ + self._auth_providers = auth_providers @property @@ -149,6 +152,7 @@ def cache_entry_expiry(self, cache_entry_expiry): :param cache_entry_expiry: The cache_entry_expiry of this Zone. :type: int """ + self._cache_entry_expiry = cache_entry_expiry @property @@ -171,6 +175,7 @@ def create_path(self, create_path): :param create_path: The create_path of this Zone. :type: bool """ + self._create_path = create_path @property @@ -193,6 +198,7 @@ def force_overlap(self, force_overlap): :param force_overlap: The force_overlap of this Zone. :type: bool """ + self._force_overlap = force_overlap @property @@ -215,6 +221,7 @@ def home_directory_umask(self, home_directory_umask): :param home_directory_umask: The home_directory_umask of this Zone. :type: int """ + self._home_directory_umask = home_directory_umask @property @@ -224,7 +231,7 @@ def ifs_restricted(self): Specifies a list of users and groups that have read and write access to /ifs. :return: The ifs_restricted of this Zone. - :rtype: list[GroupsGroupMember] + :rtype: list[GroupMember] """ return self._ifs_restricted @@ -235,8 +242,9 @@ def ifs_restricted(self, ifs_restricted): Specifies a list of users and groups that have read and write access to /ifs. :param ifs_restricted: The ifs_restricted of this Zone. - :type: list[GroupsGroupMember] + :type: list[GroupMember] """ + self._ifs_restricted = ifs_restricted @property @@ -259,6 +267,7 @@ def map_untrusted(self, map_untrusted): :param map_untrusted: The map_untrusted of this Zone. :type: str """ + self._map_untrusted = map_untrusted @property @@ -281,6 +290,7 @@ def name(self, name): :param name: The name of this Zone. :type: str """ + self._name = name @property @@ -303,6 +313,7 @@ def netbios_name(self, netbios_name): :param netbios_name: The netbios_name of this Zone. :type: str """ + self._netbios_name = netbios_name @property @@ -325,6 +336,7 @@ def path(self, path): :param path: The path of this Zone. :type: str """ + self._path = path @property @@ -347,6 +359,7 @@ def skeleton_directory(self, skeleton_directory): :param skeleton_directory: The skeleton_directory of this Zone. :type: str """ + self._skeleton_directory = skeleton_directory @property @@ -369,6 +382,7 @@ def system_provider(self, system_provider): :param system_provider: The system_provider of this Zone. :type: str """ + self._system_provider = system_provider @property @@ -391,6 +405,7 @@ def user_mapping_rules(self, user_mapping_rules): :param user_mapping_rules: The user_mapping_rules of this Zone. :type: list[str] """ + self._user_mapping_rules = user_mapping_rules def to_dict(self): @@ -408,6 +423,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -425,14 +446,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/zone_create_params.py b/isi_sdk/models/zone_create_params.py index 164a7dd30..e07aa979a 100644 --- a/isi_sdk/models/zone_create_params.py +++ b/isi_sdk/models/zone_create_params.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ZoneCreateParams(object): @@ -37,276 +38,286 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'ifs_restricted': 'list[GroupsGroupMember]', - 'netbios_name': 'str', - 'map_untrusted': 'str', - 'system_provider': 'str', - 'skeleton_directory': 'str', - 'cache_entry_expiry': 'int', 'alternate_system_provider': 'str', + 'auth_providers': 'list[str]', + 'cache_entry_expiry': 'int', + 'create_path': 'bool', 'force_overlap': 'bool', - 'user_mapping_rules': 'list[str]', - 'groupnet': 'str', - 'path': 'str', 'home_directory_umask': 'int', + 'ifs_restricted': 'list[GroupMember]', + 'map_untrusted': 'str', 'name': 'str', - 'create_path': 'bool', - 'auth_providers': 'list[str]' + 'netbios_name': 'str', + 'path': 'str', + 'skeleton_directory': 'str', + 'system_provider': 'str', + 'user_mapping_rules': 'list[str]', + 'groupnet': 'str' } self.attribute_map = { - 'ifs_restricted': 'ifs_restricted', - 'netbios_name': 'netbios_name', - 'map_untrusted': 'map_untrusted', - 'system_provider': 'system_provider', - 'skeleton_directory': 'skeleton_directory', - 'cache_entry_expiry': 'cache_entry_expiry', 'alternate_system_provider': 'alternate_system_provider', + 'auth_providers': 'auth_providers', + 'cache_entry_expiry': 'cache_entry_expiry', + 'create_path': 'create_path', 'force_overlap': 'force_overlap', - 'user_mapping_rules': 'user_mapping_rules', - 'groupnet': 'groupnet', - 'path': 'path', 'home_directory_umask': 'home_directory_umask', + 'ifs_restricted': 'ifs_restricted', + 'map_untrusted': 'map_untrusted', 'name': 'name', - 'create_path': 'create_path', - 'auth_providers': 'auth_providers' + 'netbios_name': 'netbios_name', + 'path': 'path', + 'skeleton_directory': 'skeleton_directory', + 'system_provider': 'system_provider', + 'user_mapping_rules': 'user_mapping_rules', + 'groupnet': 'groupnet' } + self._alternate_system_provider = None + self._auth_providers = None + self._cache_entry_expiry = None + self._create_path = None + self._force_overlap = None + self._home_directory_umask = None self._ifs_restricted = None - self._netbios_name = None self._map_untrusted = None - self._system_provider = None + self._name = None + self._netbios_name = None + self._path = None self._skeleton_directory = None - self._cache_entry_expiry = None - self._alternate_system_provider = None - self._force_overlap = None + self._system_provider = None self._user_mapping_rules = None self._groupnet = None - self._path = None - self._home_directory_umask = None - self._name = None - self._create_path = None - self._auth_providers = None @property - def ifs_restricted(self): + def alternate_system_provider(self): """ - Gets the ifs_restricted of this ZoneCreateParams. - Specifies a list of users and groups that have read and write access to /ifs. + Gets the alternate_system_provider of this ZoneCreateParams. + Specifies an alternate system provider. - :return: The ifs_restricted of this ZoneCreateParams. - :rtype: list[GroupsGroupMember] + :return: The alternate_system_provider of this ZoneCreateParams. + :rtype: str """ - return self._ifs_restricted + return self._alternate_system_provider - @ifs_restricted.setter - def ifs_restricted(self, ifs_restricted): + @alternate_system_provider.setter + def alternate_system_provider(self, alternate_system_provider): """ - Sets the ifs_restricted of this ZoneCreateParams. - Specifies a list of users and groups that have read and write access to /ifs. + Sets the alternate_system_provider of this ZoneCreateParams. + Specifies an alternate system provider. - :param ifs_restricted: The ifs_restricted of this ZoneCreateParams. - :type: list[GroupsGroupMember] + :param alternate_system_provider: The alternate_system_provider of this ZoneCreateParams. + :type: str """ - self._ifs_restricted = ifs_restricted + + self._alternate_system_provider = alternate_system_provider @property - def netbios_name(self): + def auth_providers(self): """ - Gets the netbios_name of this ZoneCreateParams. - Specifies the NetBIOS name. + Gets the auth_providers of this ZoneCreateParams. + Specifies the list of authentication providers available on this access zone. - :return: The netbios_name of this ZoneCreateParams. - :rtype: str + :return: The auth_providers of this ZoneCreateParams. + :rtype: list[str] """ - return self._netbios_name + return self._auth_providers - @netbios_name.setter - def netbios_name(self, netbios_name): + @auth_providers.setter + def auth_providers(self, auth_providers): """ - Sets the netbios_name of this ZoneCreateParams. - Specifies the NetBIOS name. + Sets the auth_providers of this ZoneCreateParams. + Specifies the list of authentication providers available on this access zone. - :param netbios_name: The netbios_name of this ZoneCreateParams. - :type: str + :param auth_providers: The auth_providers of this ZoneCreateParams. + :type: list[str] """ - self._netbios_name = netbios_name + + self._auth_providers = auth_providers @property - def map_untrusted(self): + def cache_entry_expiry(self): """ - Gets the map_untrusted of this ZoneCreateParams. - Maps untrusted domains to this NetBIOS domain during authentication. + Gets the cache_entry_expiry of this ZoneCreateParams. + Specifies amount of time in seconds to cache a user/group. - :return: The map_untrusted of this ZoneCreateParams. - :rtype: str + :return: The cache_entry_expiry of this ZoneCreateParams. + :rtype: int """ - return self._map_untrusted + return self._cache_entry_expiry - @map_untrusted.setter - def map_untrusted(self, map_untrusted): + @cache_entry_expiry.setter + def cache_entry_expiry(self, cache_entry_expiry): """ - Sets the map_untrusted of this ZoneCreateParams. - Maps untrusted domains to this NetBIOS domain during authentication. + Sets the cache_entry_expiry of this ZoneCreateParams. + Specifies amount of time in seconds to cache a user/group. - :param map_untrusted: The map_untrusted of this ZoneCreateParams. - :type: str + :param cache_entry_expiry: The cache_entry_expiry of this ZoneCreateParams. + :type: int """ - self._map_untrusted = map_untrusted + + self._cache_entry_expiry = cache_entry_expiry @property - def system_provider(self): + def create_path(self): """ - Gets the system_provider of this ZoneCreateParams. - Specifies the system provider for the access zone. + Gets the create_path of this ZoneCreateParams. + Determines if a path is created when a path does not exist. - :return: The system_provider of this ZoneCreateParams. - :rtype: str + :return: The create_path of this ZoneCreateParams. + :rtype: bool """ - return self._system_provider + return self._create_path - @system_provider.setter - def system_provider(self, system_provider): + @create_path.setter + def create_path(self, create_path): """ - Sets the system_provider of this ZoneCreateParams. - Specifies the system provider for the access zone. + Sets the create_path of this ZoneCreateParams. + Determines if a path is created when a path does not exist. - :param system_provider: The system_provider of this ZoneCreateParams. - :type: str + :param create_path: The create_path of this ZoneCreateParams. + :type: bool """ - self._system_provider = system_provider + + self._create_path = create_path @property - def skeleton_directory(self): + def force_overlap(self): """ - Gets the skeleton_directory of this ZoneCreateParams. - Specifies the skeleton directory that is used for user home directories. + Gets the force_overlap of this ZoneCreateParams. + Allow for overlapping base path. - :return: The skeleton_directory of this ZoneCreateParams. - :rtype: str + :return: The force_overlap of this ZoneCreateParams. + :rtype: bool """ - return self._skeleton_directory + return self._force_overlap - @skeleton_directory.setter - def skeleton_directory(self, skeleton_directory): + @force_overlap.setter + def force_overlap(self, force_overlap): """ - Sets the skeleton_directory of this ZoneCreateParams. - Specifies the skeleton directory that is used for user home directories. + Sets the force_overlap of this ZoneCreateParams. + Allow for overlapping base path. - :param skeleton_directory: The skeleton_directory of this ZoneCreateParams. - :type: str + :param force_overlap: The force_overlap of this ZoneCreateParams. + :type: bool """ - self._skeleton_directory = skeleton_directory + + self._force_overlap = force_overlap @property - def cache_entry_expiry(self): + def home_directory_umask(self): """ - Gets the cache_entry_expiry of this ZoneCreateParams. - Specifies amount of time in seconds to cache a user/group. + Gets the home_directory_umask of this ZoneCreateParams. + Specifies the permissions set on automatically created user home directories. - :return: The cache_entry_expiry of this ZoneCreateParams. + :return: The home_directory_umask of this ZoneCreateParams. :rtype: int """ - return self._cache_entry_expiry + return self._home_directory_umask - @cache_entry_expiry.setter - def cache_entry_expiry(self, cache_entry_expiry): + @home_directory_umask.setter + def home_directory_umask(self, home_directory_umask): """ - Sets the cache_entry_expiry of this ZoneCreateParams. - Specifies amount of time in seconds to cache a user/group. + Sets the home_directory_umask of this ZoneCreateParams. + Specifies the permissions set on automatically created user home directories. - :param cache_entry_expiry: The cache_entry_expiry of this ZoneCreateParams. + :param home_directory_umask: The home_directory_umask of this ZoneCreateParams. :type: int """ - self._cache_entry_expiry = cache_entry_expiry + + self._home_directory_umask = home_directory_umask @property - def alternate_system_provider(self): + def ifs_restricted(self): """ - Gets the alternate_system_provider of this ZoneCreateParams. - Specifies an alternate system provider. + Gets the ifs_restricted of this ZoneCreateParams. + Specifies a list of users and groups that have read and write access to /ifs. - :return: The alternate_system_provider of this ZoneCreateParams. - :rtype: str + :return: The ifs_restricted of this ZoneCreateParams. + :rtype: list[GroupMember] """ - return self._alternate_system_provider + return self._ifs_restricted - @alternate_system_provider.setter - def alternate_system_provider(self, alternate_system_provider): + @ifs_restricted.setter + def ifs_restricted(self, ifs_restricted): """ - Sets the alternate_system_provider of this ZoneCreateParams. - Specifies an alternate system provider. + Sets the ifs_restricted of this ZoneCreateParams. + Specifies a list of users and groups that have read and write access to /ifs. - :param alternate_system_provider: The alternate_system_provider of this ZoneCreateParams. - :type: str + :param ifs_restricted: The ifs_restricted of this ZoneCreateParams. + :type: list[GroupMember] """ - self._alternate_system_provider = alternate_system_provider + + self._ifs_restricted = ifs_restricted @property - def force_overlap(self): + def map_untrusted(self): """ - Gets the force_overlap of this ZoneCreateParams. - Allow for overlapping base path. + Gets the map_untrusted of this ZoneCreateParams. + Maps untrusted domains to this NetBIOS domain during authentication. - :return: The force_overlap of this ZoneCreateParams. - :rtype: bool + :return: The map_untrusted of this ZoneCreateParams. + :rtype: str """ - return self._force_overlap + return self._map_untrusted - @force_overlap.setter - def force_overlap(self, force_overlap): + @map_untrusted.setter + def map_untrusted(self, map_untrusted): """ - Sets the force_overlap of this ZoneCreateParams. - Allow for overlapping base path. + Sets the map_untrusted of this ZoneCreateParams. + Maps untrusted domains to this NetBIOS domain during authentication. - :param force_overlap: The force_overlap of this ZoneCreateParams. - :type: bool + :param map_untrusted: The map_untrusted of this ZoneCreateParams. + :type: str """ - self._force_overlap = force_overlap + + self._map_untrusted = map_untrusted @property - def user_mapping_rules(self): + def name(self): """ - Gets the user_mapping_rules of this ZoneCreateParams. - Specifies the current ID mapping rules. + Gets the name of this ZoneCreateParams. + Specifies the access zone name. - :return: The user_mapping_rules of this ZoneCreateParams. - :rtype: list[str] + :return: The name of this ZoneCreateParams. + :rtype: str """ - return self._user_mapping_rules + return self._name - @user_mapping_rules.setter - def user_mapping_rules(self, user_mapping_rules): + @name.setter + def name(self, name): """ - Sets the user_mapping_rules of this ZoneCreateParams. - Specifies the current ID mapping rules. + Sets the name of this ZoneCreateParams. + Specifies the access zone name. - :param user_mapping_rules: The user_mapping_rules of this ZoneCreateParams. - :type: list[str] + :param name: The name of this ZoneCreateParams. + :type: str """ - self._user_mapping_rules = user_mapping_rules + + self._name = name @property - def groupnet(self): + def netbios_name(self): """ - Gets the groupnet of this ZoneCreateParams. - Groupnet identitier + Gets the netbios_name of this ZoneCreateParams. + Specifies the NetBIOS name. - :return: The groupnet of this ZoneCreateParams. + :return: The netbios_name of this ZoneCreateParams. :rtype: str """ - return self._groupnet + return self._netbios_name - @groupnet.setter - def groupnet(self, groupnet): + @netbios_name.setter + def netbios_name(self, netbios_name): """ - Sets the groupnet of this ZoneCreateParams. - Groupnet identitier + Sets the netbios_name of this ZoneCreateParams. + Specifies the NetBIOS name. - :param groupnet: The groupnet of this ZoneCreateParams. + :param netbios_name: The netbios_name of this ZoneCreateParams. :type: str """ - self._groupnet = groupnet + + self._netbios_name = netbios_name @property def path(self): @@ -328,95 +339,100 @@ def path(self, path): :param path: The path of this ZoneCreateParams. :type: str """ + self._path = path @property - def home_directory_umask(self): + def skeleton_directory(self): """ - Gets the home_directory_umask of this ZoneCreateParams. - Specifies the permissions set on automatically created user home directories. + Gets the skeleton_directory of this ZoneCreateParams. + Specifies the skeleton directory that is used for user home directories. - :return: The home_directory_umask of this ZoneCreateParams. - :rtype: int + :return: The skeleton_directory of this ZoneCreateParams. + :rtype: str """ - return self._home_directory_umask + return self._skeleton_directory - @home_directory_umask.setter - def home_directory_umask(self, home_directory_umask): + @skeleton_directory.setter + def skeleton_directory(self, skeleton_directory): """ - Sets the home_directory_umask of this ZoneCreateParams. - Specifies the permissions set on automatically created user home directories. + Sets the skeleton_directory of this ZoneCreateParams. + Specifies the skeleton directory that is used for user home directories. - :param home_directory_umask: The home_directory_umask of this ZoneCreateParams. - :type: int + :param skeleton_directory: The skeleton_directory of this ZoneCreateParams. + :type: str """ - self._home_directory_umask = home_directory_umask + + self._skeleton_directory = skeleton_directory @property - def name(self): + def system_provider(self): """ - Gets the name of this ZoneCreateParams. - Specifies the access zone name. + Gets the system_provider of this ZoneCreateParams. + Specifies the system provider for the access zone. - :return: The name of this ZoneCreateParams. + :return: The system_provider of this ZoneCreateParams. :rtype: str """ - return self._name + return self._system_provider - @name.setter - def name(self, name): + @system_provider.setter + def system_provider(self, system_provider): """ - Sets the name of this ZoneCreateParams. - Specifies the access zone name. + Sets the system_provider of this ZoneCreateParams. + Specifies the system provider for the access zone. - :param name: The name of this ZoneCreateParams. + :param system_provider: The system_provider of this ZoneCreateParams. :type: str """ - self._name = name + + self._system_provider = system_provider @property - def create_path(self): + def user_mapping_rules(self): """ - Gets the create_path of this ZoneCreateParams. - Determines if a path is created when a path does not exist. + Gets the user_mapping_rules of this ZoneCreateParams. + Specifies the current ID mapping rules. - :return: The create_path of this ZoneCreateParams. - :rtype: bool + :return: The user_mapping_rules of this ZoneCreateParams. + :rtype: list[str] """ - return self._create_path + return self._user_mapping_rules - @create_path.setter - def create_path(self, create_path): + @user_mapping_rules.setter + def user_mapping_rules(self, user_mapping_rules): """ - Sets the create_path of this ZoneCreateParams. - Determines if a path is created when a path does not exist. + Sets the user_mapping_rules of this ZoneCreateParams. + Specifies the current ID mapping rules. - :param create_path: The create_path of this ZoneCreateParams. - :type: bool + :param user_mapping_rules: The user_mapping_rules of this ZoneCreateParams. + :type: list[str] """ - self._create_path = create_path + + self._user_mapping_rules = user_mapping_rules @property - def auth_providers(self): + def groupnet(self): """ - Gets the auth_providers of this ZoneCreateParams. - Specifies the list of authentication providers available on this access zone. + Gets the groupnet of this ZoneCreateParams. + Groupnet identitier - :return: The auth_providers of this ZoneCreateParams. - :rtype: list[str] + :return: The groupnet of this ZoneCreateParams. + :rtype: str """ - return self._auth_providers + return self._groupnet - @auth_providers.setter - def auth_providers(self, auth_providers): + @groupnet.setter + def groupnet(self, groupnet): """ - Sets the auth_providers of this ZoneCreateParams. - Specifies the list of authentication providers available on this access zone. + Sets the groupnet of this ZoneCreateParams. + Groupnet identitier - :param auth_providers: The auth_providers of this ZoneCreateParams. - :type: list[str] + :param groupnet: The groupnet of this ZoneCreateParams. + :type: str """ - self._auth_providers = auth_providers + + self._groupnet = groupnet def to_dict(self): """ @@ -433,6 +449,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -450,14 +472,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/zone_extended.py b/isi_sdk/models/zone_extended.py index 1083f3066..575c4ba88 100644 --- a/isi_sdk/models/zone_extended.py +++ b/isi_sdk/models/zone_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ZoneExtended(object): @@ -37,285 +38,315 @@ def __init__(self): and the value is json key in definition. """ self.swagger_types = { - 'ifs_restricted': 'list[GroupsGroupMember]', - 'netbios_name': 'str', - 'map_untrusted': 'str', - 'system_provider': 'str', - 'skeleton_directory': 'str', - 'cache_entry_expiry': 'int', 'alternate_system_provider': 'str', - 'force_overlap': 'bool', - 'user_mapping_rules': 'list[str]', + 'auth_providers': 'list[str]', + 'cache_entry_expiry': 'int', + 'create_path': 'bool', 'groupnet': 'str', - 'path': 'str', - 'zone_id': 'int', - 'system': 'bool', 'home_directory_umask': 'int', + 'id': 'str', + 'ifs_restricted': 'list[GroupMember]', + 'map_untrusted': 'str', 'name': 'str', - 'create_path': 'bool', - 'auth_providers': 'list[str]', - 'id': 'str' + 'netbios_name': 'str', + 'path': 'str', + 'skeleton_directory': 'str', + 'system': 'bool', + 'system_provider': 'str', + 'user_mapping_rules': 'list[str]', + 'zone_id': 'int' } self.attribute_map = { - 'ifs_restricted': 'ifs_restricted', - 'netbios_name': 'netbios_name', - 'map_untrusted': 'map_untrusted', - 'system_provider': 'system_provider', - 'skeleton_directory': 'skeleton_directory', - 'cache_entry_expiry': 'cache_entry_expiry', 'alternate_system_provider': 'alternate_system_provider', - 'force_overlap': 'force_overlap', - 'user_mapping_rules': 'user_mapping_rules', + 'auth_providers': 'auth_providers', + 'cache_entry_expiry': 'cache_entry_expiry', + 'create_path': 'create_path', 'groupnet': 'groupnet', - 'path': 'path', - 'zone_id': 'zone_id', - 'system': 'system', 'home_directory_umask': 'home_directory_umask', + 'id': 'id', + 'ifs_restricted': 'ifs_restricted', + 'map_untrusted': 'map_untrusted', 'name': 'name', - 'create_path': 'create_path', - 'auth_providers': 'auth_providers', - 'id': 'id' + 'netbios_name': 'netbios_name', + 'path': 'path', + 'skeleton_directory': 'skeleton_directory', + 'system': 'system', + 'system_provider': 'system_provider', + 'user_mapping_rules': 'user_mapping_rules', + 'zone_id': 'zone_id' } + self._alternate_system_provider = None + self._auth_providers = None + self._cache_entry_expiry = None + self._create_path = None + self._groupnet = None + self._home_directory_umask = None + self._id = None self._ifs_restricted = None - self._netbios_name = None self._map_untrusted = None - self._system_provider = None + self._name = None + self._netbios_name = None + self._path = None self._skeleton_directory = None - self._cache_entry_expiry = None - self._alternate_system_provider = None - self._force_overlap = None + self._system = None + self._system_provider = None self._user_mapping_rules = None - self._groupnet = None - self._path = None self._zone_id = None - self._system = None - self._home_directory_umask = None - self._name = None - self._create_path = None - self._auth_providers = None - self._id = None @property - def ifs_restricted(self): + def alternate_system_provider(self): """ - Gets the ifs_restricted of this ZoneExtended. - Specifies a list of users and groups that have read and write access to /ifs. + Gets the alternate_system_provider of this ZoneExtended. + Specifies an alternate system provider. - :return: The ifs_restricted of this ZoneExtended. - :rtype: list[GroupsGroupMember] + :return: The alternate_system_provider of this ZoneExtended. + :rtype: str """ - return self._ifs_restricted + return self._alternate_system_provider - @ifs_restricted.setter - def ifs_restricted(self, ifs_restricted): + @alternate_system_provider.setter + def alternate_system_provider(self, alternate_system_provider): """ - Sets the ifs_restricted of this ZoneExtended. - Specifies a list of users and groups that have read and write access to /ifs. + Sets the alternate_system_provider of this ZoneExtended. + Specifies an alternate system provider. - :param ifs_restricted: The ifs_restricted of this ZoneExtended. - :type: list[GroupsGroupMember] + :param alternate_system_provider: The alternate_system_provider of this ZoneExtended. + :type: str """ - self._ifs_restricted = ifs_restricted + + self._alternate_system_provider = alternate_system_provider @property - def netbios_name(self): + def auth_providers(self): """ - Gets the netbios_name of this ZoneExtended. - Specifies the NetBIOS name. + Gets the auth_providers of this ZoneExtended. + Specifies the list of authentication providers available on this access zone. - :return: The netbios_name of this ZoneExtended. - :rtype: str + :return: The auth_providers of this ZoneExtended. + :rtype: list[str] """ - return self._netbios_name + return self._auth_providers - @netbios_name.setter - def netbios_name(self, netbios_name): + @auth_providers.setter + def auth_providers(self, auth_providers): """ - Sets the netbios_name of this ZoneExtended. - Specifies the NetBIOS name. + Sets the auth_providers of this ZoneExtended. + Specifies the list of authentication providers available on this access zone. - :param netbios_name: The netbios_name of this ZoneExtended. - :type: str + :param auth_providers: The auth_providers of this ZoneExtended. + :type: list[str] """ - self._netbios_name = netbios_name + + self._auth_providers = auth_providers @property - def map_untrusted(self): + def cache_entry_expiry(self): """ - Gets the map_untrusted of this ZoneExtended. - Maps untrusted domains to this NetBIOS domain during authentication. + Gets the cache_entry_expiry of this ZoneExtended. + Specifies amount of time in seconds to cache a user/group. - :return: The map_untrusted of this ZoneExtended. - :rtype: str + :return: The cache_entry_expiry of this ZoneExtended. + :rtype: int """ - return self._map_untrusted + return self._cache_entry_expiry - @map_untrusted.setter - def map_untrusted(self, map_untrusted): + @cache_entry_expiry.setter + def cache_entry_expiry(self, cache_entry_expiry): """ - Sets the map_untrusted of this ZoneExtended. - Maps untrusted domains to this NetBIOS domain during authentication. + Sets the cache_entry_expiry of this ZoneExtended. + Specifies amount of time in seconds to cache a user/group. - :param map_untrusted: The map_untrusted of this ZoneExtended. - :type: str + :param cache_entry_expiry: The cache_entry_expiry of this ZoneExtended. + :type: int """ - self._map_untrusted = map_untrusted + + self._cache_entry_expiry = cache_entry_expiry @property - def system_provider(self): + def create_path(self): """ - Gets the system_provider of this ZoneExtended. - Specifies the system provider for the access zone. + Gets the create_path of this ZoneExtended. + Determines if a path is created when a path does not exist. - :return: The system_provider of this ZoneExtended. - :rtype: str + :return: The create_path of this ZoneExtended. + :rtype: bool """ - return self._system_provider + return self._create_path - @system_provider.setter - def system_provider(self, system_provider): + @create_path.setter + def create_path(self, create_path): """ - Sets the system_provider of this ZoneExtended. - Specifies the system provider for the access zone. + Sets the create_path of this ZoneExtended. + Determines if a path is created when a path does not exist. - :param system_provider: The system_provider of this ZoneExtended. - :type: str + :param create_path: The create_path of this ZoneExtended. + :type: bool """ - self._system_provider = system_provider + + self._create_path = create_path @property - def skeleton_directory(self): + def groupnet(self): """ - Gets the skeleton_directory of this ZoneExtended. - Specifies the skeleton directory that is used for user home directories. + Gets the groupnet of this ZoneExtended. + Groupnet identitier - :return: The skeleton_directory of this ZoneExtended. + :return: The groupnet of this ZoneExtended. :rtype: str """ - return self._skeleton_directory + return self._groupnet - @skeleton_directory.setter - def skeleton_directory(self, skeleton_directory): + @groupnet.setter + def groupnet(self, groupnet): """ - Sets the skeleton_directory of this ZoneExtended. - Specifies the skeleton directory that is used for user home directories. + Sets the groupnet of this ZoneExtended. + Groupnet identitier - :param skeleton_directory: The skeleton_directory of this ZoneExtended. + :param groupnet: The groupnet of this ZoneExtended. :type: str """ - self._skeleton_directory = skeleton_directory + + self._groupnet = groupnet @property - def cache_entry_expiry(self): + def home_directory_umask(self): """ - Gets the cache_entry_expiry of this ZoneExtended. - Specifies amount of time in seconds to cache a user/group. + Gets the home_directory_umask of this ZoneExtended. + Specifies the permissions set on automatically created user home directories. - :return: The cache_entry_expiry of this ZoneExtended. + :return: The home_directory_umask of this ZoneExtended. :rtype: int """ - return self._cache_entry_expiry + return self._home_directory_umask - @cache_entry_expiry.setter - def cache_entry_expiry(self, cache_entry_expiry): + @home_directory_umask.setter + def home_directory_umask(self, home_directory_umask): """ - Sets the cache_entry_expiry of this ZoneExtended. - Specifies amount of time in seconds to cache a user/group. + Sets the home_directory_umask of this ZoneExtended. + Specifies the permissions set on automatically created user home directories. - :param cache_entry_expiry: The cache_entry_expiry of this ZoneExtended. + :param home_directory_umask: The home_directory_umask of this ZoneExtended. :type: int """ - self._cache_entry_expiry = cache_entry_expiry + + self._home_directory_umask = home_directory_umask @property - def alternate_system_provider(self): + def id(self): """ - Gets the alternate_system_provider of this ZoneExtended. - Specifies an alternate system provider. + Gets the id of this ZoneExtended. + Specifies the system-assigned ID for the access zone. This value is returned when an access zone is created through the POST method - :return: The alternate_system_provider of this ZoneExtended. + :return: The id of this ZoneExtended. :rtype: str """ - return self._alternate_system_provider + return self._id - @alternate_system_provider.setter - def alternate_system_provider(self, alternate_system_provider): + @id.setter + def id(self, id): """ - Sets the alternate_system_provider of this ZoneExtended. - Specifies an alternate system provider. + Sets the id of this ZoneExtended. + Specifies the system-assigned ID for the access zone. This value is returned when an access zone is created through the POST method - :param alternate_system_provider: The alternate_system_provider of this ZoneExtended. + :param id: The id of this ZoneExtended. :type: str """ - self._alternate_system_provider = alternate_system_provider + + self._id = id @property - def force_overlap(self): + def ifs_restricted(self): """ - Gets the force_overlap of this ZoneExtended. - Allow for overlapping base path. + Gets the ifs_restricted of this ZoneExtended. + Specifies a list of users and groups that have read and write access to /ifs. - :return: The force_overlap of this ZoneExtended. - :rtype: bool + :return: The ifs_restricted of this ZoneExtended. + :rtype: list[GroupMember] """ - return self._force_overlap + return self._ifs_restricted - @force_overlap.setter - def force_overlap(self, force_overlap): + @ifs_restricted.setter + def ifs_restricted(self, ifs_restricted): """ - Sets the force_overlap of this ZoneExtended. - Allow for overlapping base path. + Sets the ifs_restricted of this ZoneExtended. + Specifies a list of users and groups that have read and write access to /ifs. - :param force_overlap: The force_overlap of this ZoneExtended. - :type: bool + :param ifs_restricted: The ifs_restricted of this ZoneExtended. + :type: list[GroupMember] """ - self._force_overlap = force_overlap + + self._ifs_restricted = ifs_restricted @property - def user_mapping_rules(self): + def map_untrusted(self): """ - Gets the user_mapping_rules of this ZoneExtended. - Specifies the current ID mapping rules. + Gets the map_untrusted of this ZoneExtended. + Maps untrusted domains to this NetBIOS domain during authentication. - :return: The user_mapping_rules of this ZoneExtended. - :rtype: list[str] + :return: The map_untrusted of this ZoneExtended. + :rtype: str """ - return self._user_mapping_rules + return self._map_untrusted - @user_mapping_rules.setter - def user_mapping_rules(self, user_mapping_rules): + @map_untrusted.setter + def map_untrusted(self, map_untrusted): """ - Sets the user_mapping_rules of this ZoneExtended. - Specifies the current ID mapping rules. + Sets the map_untrusted of this ZoneExtended. + Maps untrusted domains to this NetBIOS domain during authentication. - :param user_mapping_rules: The user_mapping_rules of this ZoneExtended. - :type: list[str] + :param map_untrusted: The map_untrusted of this ZoneExtended. + :type: str """ - self._user_mapping_rules = user_mapping_rules + + self._map_untrusted = map_untrusted @property - def groupnet(self): + def name(self): """ - Gets the groupnet of this ZoneExtended. - Groupnet identitier + Gets the name of this ZoneExtended. + Specifies the access zone name. - :return: The groupnet of this ZoneExtended. + :return: The name of this ZoneExtended. :rtype: str """ - return self._groupnet + return self._name - @groupnet.setter - def groupnet(self, groupnet): + @name.setter + def name(self, name): """ - Sets the groupnet of this ZoneExtended. - Groupnet identitier + Sets the name of this ZoneExtended. + Specifies the access zone name. - :param groupnet: The groupnet of this ZoneExtended. + :param name: The name of this ZoneExtended. :type: str """ - self._groupnet = groupnet + + self._name = name + + @property + def netbios_name(self): + """ + Gets the netbios_name of this ZoneExtended. + Specifies the NetBIOS name. + + :return: The netbios_name of this ZoneExtended. + :rtype: str + """ + return self._netbios_name + + @netbios_name.setter + def netbios_name(self, netbios_name): + """ + Sets the netbios_name of this ZoneExtended. + Specifies the NetBIOS name. + + :param netbios_name: The netbios_name of this ZoneExtended. + :type: str + """ + + self._netbios_name = netbios_name @property def path(self): @@ -337,29 +368,31 @@ def path(self, path): :param path: The path of this ZoneExtended. :type: str """ + self._path = path @property - def zone_id(self): + def skeleton_directory(self): """ - Gets the zone_id of this ZoneExtended. - Specifies the access zone ID on the system. + Gets the skeleton_directory of this ZoneExtended. + Specifies the skeleton directory that is used for user home directories. - :return: The zone_id of this ZoneExtended. - :rtype: int + :return: The skeleton_directory of this ZoneExtended. + :rtype: str """ - return self._zone_id + return self._skeleton_directory - @zone_id.setter - def zone_id(self, zone_id): + @skeleton_directory.setter + def skeleton_directory(self, skeleton_directory): """ - Sets the zone_id of this ZoneExtended. - Specifies the access zone ID on the system. + Sets the skeleton_directory of this ZoneExtended. + Specifies the skeleton directory that is used for user home directories. - :param zone_id: The zone_id of this ZoneExtended. - :type: int + :param skeleton_directory: The skeleton_directory of this ZoneExtended. + :type: str """ - self._zone_id = zone_id + + self._skeleton_directory = skeleton_directory @property def system(self): @@ -381,117 +414,77 @@ def system(self, system): :param system: The system of this ZoneExtended. :type: bool """ + self._system = system @property - def home_directory_umask(self): - """ - Gets the home_directory_umask of this ZoneExtended. - Specifies the permissions set on automatically created user home directories. - - :return: The home_directory_umask of this ZoneExtended. - :rtype: int - """ - return self._home_directory_umask - - @home_directory_umask.setter - def home_directory_umask(self, home_directory_umask): - """ - Sets the home_directory_umask of this ZoneExtended. - Specifies the permissions set on automatically created user home directories. - - :param home_directory_umask: The home_directory_umask of this ZoneExtended. - :type: int - """ - self._home_directory_umask = home_directory_umask - - @property - def name(self): + def system_provider(self): """ - Gets the name of this ZoneExtended. - Specifies the access zone name. + Gets the system_provider of this ZoneExtended. + Specifies the system provider for the access zone. - :return: The name of this ZoneExtended. + :return: The system_provider of this ZoneExtended. :rtype: str """ - return self._name + return self._system_provider - @name.setter - def name(self, name): + @system_provider.setter + def system_provider(self, system_provider): """ - Sets the name of this ZoneExtended. - Specifies the access zone name. + Sets the system_provider of this ZoneExtended. + Specifies the system provider for the access zone. - :param name: The name of this ZoneExtended. + :param system_provider: The system_provider of this ZoneExtended. :type: str """ - self._name = name - - @property - def create_path(self): - """ - Gets the create_path of this ZoneExtended. - Determines if a path is created when a path does not exist. - - :return: The create_path of this ZoneExtended. - :rtype: bool - """ - return self._create_path - - @create_path.setter - def create_path(self, create_path): - """ - Sets the create_path of this ZoneExtended. - Determines if a path is created when a path does not exist. - - :param create_path: The create_path of this ZoneExtended. - :type: bool - """ - self._create_path = create_path + + self._system_provider = system_provider @property - def auth_providers(self): + def user_mapping_rules(self): """ - Gets the auth_providers of this ZoneExtended. - Specifies the list of authentication providers available on this access zone. + Gets the user_mapping_rules of this ZoneExtended. + Specifies the current ID mapping rules. - :return: The auth_providers of this ZoneExtended. + :return: The user_mapping_rules of this ZoneExtended. :rtype: list[str] """ - return self._auth_providers + return self._user_mapping_rules - @auth_providers.setter - def auth_providers(self, auth_providers): + @user_mapping_rules.setter + def user_mapping_rules(self, user_mapping_rules): """ - Sets the auth_providers of this ZoneExtended. - Specifies the list of authentication providers available on this access zone. + Sets the user_mapping_rules of this ZoneExtended. + Specifies the current ID mapping rules. - :param auth_providers: The auth_providers of this ZoneExtended. + :param user_mapping_rules: The user_mapping_rules of this ZoneExtended. :type: list[str] """ - self._auth_providers = auth_providers + + self._user_mapping_rules = user_mapping_rules @property - def id(self): + def zone_id(self): """ - Gets the id of this ZoneExtended. - Specifies the system-assigned ID for the access zone. This value is returned when an access zone is created through the POST method + Gets the zone_id of this ZoneExtended. + Specifies the access zone ID on the system. - :return: The id of this ZoneExtended. - :rtype: str + :return: The zone_id of this ZoneExtended. + :rtype: int """ - return self._id + return self._zone_id - @id.setter - def id(self, id): + @zone_id.setter + def zone_id(self, zone_id): """ - Sets the id of this ZoneExtended. - Specifies the system-assigned ID for the access zone. This value is returned when an access zone is created through the POST method + Sets the zone_id of this ZoneExtended. + Specifies the access zone ID on the system. - :param id: The id of this ZoneExtended. - :type: str + :param zone_id: The zone_id of this ZoneExtended. + :type: int """ - self._id = id + + self._zone_id = zone_id def to_dict(self): """ @@ -508,6 +501,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -525,14 +524,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/zones.py b/isi_sdk/models/zones.py index 257102da6..42e3ef3e4 100644 --- a/isi_sdk/models/zones.py +++ b/isi_sdk/models/zones.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class Zones(object): @@ -66,6 +67,7 @@ def zones(self, zones): :param zones: The zones of this Zones. :type: list[ZoneExtended] """ + self._zones = zones def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/zones_summary.py b/isi_sdk/models/zones_summary.py index 2fbe374a3..0f3623df0 100644 --- a/isi_sdk/models/zones_summary.py +++ b/isi_sdk/models/zones_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ZonesSummary(object): @@ -66,6 +67,7 @@ def summary(self, summary): :param summary: The summary of this ZonesSummary. :type: ZonesSummarySummary """ + self._summary = summary def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/zones_summary_extended.py b/isi_sdk/models/zones_summary_extended.py index c1f7544f7..bc3ed3f55 100644 --- a/isi_sdk/models/zones_summary_extended.py +++ b/isi_sdk/models/zones_summary_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ZonesSummaryExtended(object): @@ -66,6 +67,7 @@ def summary(self, summary): :param summary: The summary of this ZonesSummaryExtended. :type: ZonesSummarySummary """ + self._summary = summary def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/zones_summary_summary.py b/isi_sdk/models/zones_summary_summary.py index a8f13ad4f..394926960 100644 --- a/isi_sdk/models/zones_summary_summary.py +++ b/isi_sdk/models/zones_summary_summary.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ZonesSummarySummary(object): @@ -66,6 +67,7 @@ def path(self, path): :param path: The path of this ZonesSummarySummary. :type: str """ + self._path = path def to_dict(self): @@ -83,6 +85,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -100,14 +108,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/models/zones_summary_summary_extended.py b/isi_sdk/models/zones_summary_summary_extended.py index 633cfb2b5..8eeb034a9 100644 --- a/isi_sdk/models/zones_summary_summary_extended.py +++ b/isi_sdk/models/zones_summary_summary_extended.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ from pprint import pformat from six import iteritems +import re class ZonesSummarySummaryExtended(object): @@ -38,19 +39,16 @@ def __init__(self): """ self.swagger_types = { 'count': 'int', - 'list': 'list[str]', - 'path': 'str' + 'list': 'list[str]' } self.attribute_map = { 'count': 'count', - 'list': 'list', - 'path': 'path' + 'list': 'list' } self._count = None self._list = None - self._path = None @property def count(self): @@ -72,6 +70,7 @@ def count(self, count): :param count: The count of this ZonesSummarySummaryExtended. :type: int """ + self._count = count @property @@ -94,30 +93,9 @@ def list(self, list): :param list: The list of this ZonesSummarySummaryExtended. :type: list[str] """ + self._list = list - @property - def path(self): - """ - Gets the path of this ZonesSummarySummaryExtended. - The zone base path - - :return: The path of this ZonesSummarySummaryExtended. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """ - Sets the path of this ZonesSummarySummaryExtended. - The zone base path - - :param path: The path of this ZonesSummarySummaryExtended. - :type: str - """ - self._path = path - def to_dict(self): """ Returns the model properties as a dict @@ -133,6 +111,12 @@ def to_dict(self): )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) else: result[attr] = value @@ -150,14 +134,14 @@ def __repr__(self): """ return self.to_str() - def __eq__(self, other): + def __eq__(self, other): """ Returns true if both objects are equal """ return self.__dict__ == other.__dict__ def __ne__(self, other): - """ + """ Returns true if both objects are not equal """ return not self == other diff --git a/isi_sdk/rest.py b/isi_sdk/rest.py index 0d1f4ce1d..352bb503a 100644 --- a/isi_sdk/rest.py +++ b/isi_sdk/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ -Copyright 2015 SmartBear Software +Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -133,8 +133,8 @@ def request(self, method, url, query_params=None, headers=None, headers['Content-Type'] = 'application/json' try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS']: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: if query_params: url += '?' + urlencode(query_params) if headers['Content-Type'] == 'application/json': @@ -154,7 +154,7 @@ def request(self, method, url, query_params=None, headers=None, fields=post_params, encode_multipart=True, headers=headers) - # For `GET`, `HEAD`, `DELETE` + # For `GET`, `HEAD` else: r = self.pool_manager.request(method, url, fields=query_params, @@ -195,10 +195,11 @@ def OPTIONS(self, url, headers=None, query_params=None, post_params=None, body=N post_params=post_params, body=body) - def DELETE(self, url, headers=None, query_params=None): + def DELETE(self, url, headers=None, query_params=None, body=None): return self.request("DELETE", url, headers=headers, - query_params=query_params) + query_params=query_params, + body=body) def POST(self, url, headers=None, query_params=None, post_params=None, body=None): return self.request("POST", url, diff --git a/setup.py b/setup.py index 4accf66cd..38340459f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"] +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] setup( name=NAME, diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/test/test_ads_provider_controllers.py b/test/test_ads_provider_controllers.py new file mode 100644 index 000000000..30952f0f1 --- /dev/null +++ b/test/test_ads_provider_controllers.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ads_provider_controllers import AdsProviderControllers + + +class TestAdsProviderControllers(unittest.TestCase): + """ AdsProviderControllers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdsProviderControllers(self): + """ + Test AdsProviderControllers + """ + model = swagger_client.models.ads_provider_controllers.AdsProviderControllers() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ads_provider_controllers_controller.py b/test/test_ads_provider_controllers_controller.py new file mode 100644 index 000000000..50b7ae6a8 --- /dev/null +++ b/test/test_ads_provider_controllers_controller.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ads_provider_controllers_controller import AdsProviderControllersController + + +class TestAdsProviderControllersController(unittest.TestCase): + """ AdsProviderControllersController unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdsProviderControllersController(self): + """ + Test AdsProviderControllersController + """ + model = swagger_client.models.ads_provider_controllers_controller.AdsProviderControllersController() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ads_provider_domains.py b/test/test_ads_provider_domains.py new file mode 100644 index 000000000..ee28aade9 --- /dev/null +++ b/test/test_ads_provider_domains.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ads_provider_domains import AdsProviderDomains + + +class TestAdsProviderDomains(unittest.TestCase): + """ AdsProviderDomains unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdsProviderDomains(self): + """ + Test AdsProviderDomains + """ + model = swagger_client.models.ads_provider_domains.AdsProviderDomains() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ads_provider_domains_domain.py b/test/test_ads_provider_domains_domain.py new file mode 100644 index 000000000..8c3c11f51 --- /dev/null +++ b/test/test_ads_provider_domains_domain.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ads_provider_domains_domain import AdsProviderDomainsDomain + + +class TestAdsProviderDomainsDomain(unittest.TestCase): + """ AdsProviderDomainsDomain unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdsProviderDomainsDomain(self): + """ + Test AdsProviderDomainsDomain + """ + model = swagger_client.models.ads_provider_domains_domain.AdsProviderDomainsDomain() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ads_provider_search.py b/test/test_ads_provider_search.py new file mode 100644 index 000000000..04585782b --- /dev/null +++ b/test/test_ads_provider_search.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ads_provider_search import AdsProviderSearch + + +class TestAdsProviderSearch(unittest.TestCase): + """ AdsProviderSearch unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdsProviderSearch(self): + """ + Test AdsProviderSearch + """ + model = swagger_client.models.ads_provider_search.AdsProviderSearch() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ads_provider_search_object.py b/test/test_ads_provider_search_object.py new file mode 100644 index 000000000..be2827fd9 --- /dev/null +++ b/test/test_ads_provider_search_object.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ads_provider_search_object import AdsProviderSearchObject + + +class TestAdsProviderSearchObject(unittest.TestCase): + """ AdsProviderSearchObject unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdsProviderSearchObject(self): + """ + Test AdsProviderSearchObject + """ + model = swagger_client.models.ads_provider_search_object.AdsProviderSearchObject() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_api.py b/test/test_antivirus_api.py new file mode 100644 index 000000000..529e1c007 --- /dev/null +++ b/test/test_antivirus_api.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.antivirus_api import AntivirusApi + + +class TestAntivirusApi(unittest.TestCase): + """ AntivirusApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.antivirus_api.AntivirusApi() + + def tearDown(self): + pass + + def test_create_antivirus_policy(self): + """ + Test case for create_antivirus_policy + + + """ + pass + + def test_create_antivirus_scan_item(self): + """ + Test case for create_antivirus_scan_item + + + """ + pass + + def test_create_antivirus_server(self): + """ + Test case for create_antivirus_server + + + """ + pass + + def test_delete_antivirus_policies(self): + """ + Test case for delete_antivirus_policies + + + """ + pass + + def test_delete_antivirus_policy(self): + """ + Test case for delete_antivirus_policy + + + """ + pass + + def test_delete_antivirus_server(self): + """ + Test case for delete_antivirus_server + + + """ + pass + + def test_delete_antivirus_servers(self): + """ + Test case for delete_antivirus_servers + + + """ + pass + + def test_delete_reports_scan(self): + """ + Test case for delete_reports_scan + + + """ + pass + + def test_delete_reports_scans(self): + """ + Test case for delete_reports_scans + + + """ + pass + + def test_get_antivirus_policy(self): + """ + Test case for get_antivirus_policy + + + """ + pass + + def test_get_antivirus_quarantine_path(self): + """ + Test case for get_antivirus_quarantine_path + + + """ + pass + + def test_get_antivirus_server(self): + """ + Test case for get_antivirus_server + + + """ + pass + + def test_get_antivirus_settings(self): + """ + Test case for get_antivirus_settings + + + """ + pass + + def test_get_reports_scan(self): + """ + Test case for get_reports_scan + + + """ + pass + + def test_get_reports_scans(self): + """ + Test case for get_reports_scans + + + """ + pass + + def test_get_reports_threat(self): + """ + Test case for get_reports_threat + + + """ + pass + + def test_get_reports_threats(self): + """ + Test case for get_reports_threats + + + """ + pass + + def test_list_antivirus_policies(self): + """ + Test case for list_antivirus_policies + + + """ + pass + + def test_list_antivirus_servers(self): + """ + Test case for list_antivirus_servers + + + """ + pass + + def test_update_antivirus_policy(self): + """ + Test case for update_antivirus_policy + + + """ + pass + + def test_update_antivirus_quarantine_path(self): + """ + Test case for update_antivirus_quarantine_path + + + """ + pass + + def test_update_antivirus_server(self): + """ + Test case for update_antivirus_server + + + """ + pass + + def test_update_antivirus_settings(self): + """ + Test case for update_antivirus_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_policies.py b/test/test_antivirus_policies.py new file mode 100644 index 000000000..35760d065 --- /dev/null +++ b/test/test_antivirus_policies.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_policies import AntivirusPolicies + + +class TestAntivirusPolicies(unittest.TestCase): + """ AntivirusPolicies unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusPolicies(self): + """ + Test AntivirusPolicies + """ + model = swagger_client.models.antivirus_policies.AntivirusPolicies() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_policies_extended.py b/test/test_antivirus_policies_extended.py new file mode 100644 index 000000000..0d92d021c --- /dev/null +++ b/test/test_antivirus_policies_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_policies_extended import AntivirusPoliciesExtended + + +class TestAntivirusPoliciesExtended(unittest.TestCase): + """ AntivirusPoliciesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusPoliciesExtended(self): + """ + Test AntivirusPoliciesExtended + """ + model = swagger_client.models.antivirus_policies_extended.AntivirusPoliciesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_policy.py b/test/test_antivirus_policy.py new file mode 100644 index 000000000..c7a4dcddc --- /dev/null +++ b/test/test_antivirus_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_policy import AntivirusPolicy + + +class TestAntivirusPolicy(unittest.TestCase): + """ AntivirusPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusPolicy(self): + """ + Test AntivirusPolicy + """ + model = swagger_client.models.antivirus_policy.AntivirusPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_policy_extended.py b/test/test_antivirus_policy_extended.py new file mode 100644 index 000000000..ccc143a72 --- /dev/null +++ b/test/test_antivirus_policy_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_policy_extended import AntivirusPolicyExtended + + +class TestAntivirusPolicyExtended(unittest.TestCase): + """ AntivirusPolicyExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusPolicyExtended(self): + """ + Test AntivirusPolicyExtended + """ + model = swagger_client.models.antivirus_policy_extended.AntivirusPolicyExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_quarantine.py b/test/test_antivirus_quarantine.py new file mode 100644 index 000000000..f609bfb83 --- /dev/null +++ b/test/test_antivirus_quarantine.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_quarantine import AntivirusQuarantine + + +class TestAntivirusQuarantine(unittest.TestCase): + """ AntivirusQuarantine unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusQuarantine(self): + """ + Test AntivirusQuarantine + """ + model = swagger_client.models.antivirus_quarantine.AntivirusQuarantine() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_quarantine_path_params.py b/test/test_antivirus_quarantine_path_params.py new file mode 100644 index 000000000..1159b8e3a --- /dev/null +++ b/test/test_antivirus_quarantine_path_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_quarantine_path_params import AntivirusQuarantinePathParams + + +class TestAntivirusQuarantinePathParams(unittest.TestCase): + """ AntivirusQuarantinePathParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusQuarantinePathParams(self): + """ + Test AntivirusQuarantinePathParams + """ + model = swagger_client.models.antivirus_quarantine_path_params.AntivirusQuarantinePathParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_scan_item.py b/test/test_antivirus_scan_item.py new file mode 100644 index 000000000..1a2559113 --- /dev/null +++ b/test/test_antivirus_scan_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_scan_item import AntivirusScanItem + + +class TestAntivirusScanItem(unittest.TestCase): + """ AntivirusScanItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusScanItem(self): + """ + Test AntivirusScanItem + """ + model = swagger_client.models.antivirus_scan_item.AntivirusScanItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_server.py b/test/test_antivirus_server.py new file mode 100644 index 000000000..8194af1e2 --- /dev/null +++ b/test/test_antivirus_server.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_server import AntivirusServer + + +class TestAntivirusServer(unittest.TestCase): + """ AntivirusServer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusServer(self): + """ + Test AntivirusServer + """ + model = swagger_client.models.antivirus_server.AntivirusServer() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_server_extended.py b/test/test_antivirus_server_extended.py new file mode 100644 index 000000000..7c87136b1 --- /dev/null +++ b/test/test_antivirus_server_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_server_extended import AntivirusServerExtended + + +class TestAntivirusServerExtended(unittest.TestCase): + """ AntivirusServerExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusServerExtended(self): + """ + Test AntivirusServerExtended + """ + model = swagger_client.models.antivirus_server_extended.AntivirusServerExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_servers.py b/test/test_antivirus_servers.py new file mode 100644 index 000000000..55d9752fb --- /dev/null +++ b/test/test_antivirus_servers.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_servers import AntivirusServers + + +class TestAntivirusServers(unittest.TestCase): + """ AntivirusServers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusServers(self): + """ + Test AntivirusServers + """ + model = swagger_client.models.antivirus_servers.AntivirusServers() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_servers_extended.py b/test/test_antivirus_servers_extended.py new file mode 100644 index 000000000..4fe21b8d7 --- /dev/null +++ b/test/test_antivirus_servers_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_servers_extended import AntivirusServersExtended + + +class TestAntivirusServersExtended(unittest.TestCase): + """ AntivirusServersExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusServersExtended(self): + """ + Test AntivirusServersExtended + """ + model = swagger_client.models.antivirus_servers_extended.AntivirusServersExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_settings.py b/test/test_antivirus_settings.py new file mode 100644 index 000000000..5ccb38526 --- /dev/null +++ b/test/test_antivirus_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_settings import AntivirusSettings + + +class TestAntivirusSettings(unittest.TestCase): + """ AntivirusSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusSettings(self): + """ + Test AntivirusSettings + """ + model = swagger_client.models.antivirus_settings.AntivirusSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_antivirus_settings_settings.py b/test/test_antivirus_settings_settings.py new file mode 100644 index 000000000..bfa4816a9 --- /dev/null +++ b/test/test_antivirus_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.antivirus_settings_settings import AntivirusSettingsSettings + + +class TestAntivirusSettingsSettings(unittest.TestCase): + """ AntivirusSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAntivirusSettingsSettings(self): + """ + Test AntivirusSettingsSettings + """ + model = swagger_client.models.antivirus_settings_settings.AntivirusSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_audit_api.py b/test/test_audit_api.py new file mode 100644 index 000000000..72fb0bc01 --- /dev/null +++ b/test/test_audit_api.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.audit_api import AuditApi + + +class TestAuditApi(unittest.TestCase): + """ AuditApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.audit_api.AuditApi() + + def tearDown(self): + pass + + def test_create_audit_topic(self): + """ + Test case for create_audit_topic + + + """ + pass + + def test_delete_audit_topic(self): + """ + Test case for delete_audit_topic + + + """ + pass + + def test_get_audit_settings(self): + """ + Test case for get_audit_settings + + + """ + pass + + def test_get_audit_topic(self): + """ + Test case for get_audit_topic + + + """ + pass + + def test_get_settings_global(self): + """ + Test case for get_settings_global + + + """ + pass + + def test_list_audit_topics(self): + """ + Test case for list_audit_topics + + + """ + pass + + def test_update_audit_settings(self): + """ + Test case for update_audit_settings + + + """ + pass + + def test_update_audit_topic(self): + """ + Test case for update_audit_topic + + + """ + pass + + def test_update_settings_global(self): + """ + Test case for update_settings_global + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_audit_settings.py b/test/test_audit_settings.py new file mode 100644 index 000000000..edd2e34fb --- /dev/null +++ b/test/test_audit_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.audit_settings import AuditSettings + + +class TestAuditSettings(unittest.TestCase): + """ AuditSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuditSettings(self): + """ + Test AuditSettings + """ + model = swagger_client.models.audit_settings.AuditSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_audit_settings_settings.py b/test/test_audit_settings_settings.py new file mode 100644 index 000000000..e3cbf10cb --- /dev/null +++ b/test/test_audit_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.audit_settings_settings import AuditSettingsSettings + + +class TestAuditSettingsSettings(unittest.TestCase): + """ AuditSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuditSettingsSettings(self): + """ + Test AuditSettingsSettings + """ + model = swagger_client.models.audit_settings_settings.AuditSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_audit_topic.py b/test/test_audit_topic.py new file mode 100644 index 000000000..4ee8584d9 --- /dev/null +++ b/test/test_audit_topic.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.audit_topic import AuditTopic + + +class TestAuditTopic(unittest.TestCase): + """ AuditTopic unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuditTopic(self): + """ + Test AuditTopic + """ + model = swagger_client.models.audit_topic.AuditTopic() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_audit_topic_create_params.py b/test/test_audit_topic_create_params.py new file mode 100644 index 000000000..ff8fee9d3 --- /dev/null +++ b/test/test_audit_topic_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.audit_topic_create_params import AuditTopicCreateParams + + +class TestAuditTopicCreateParams(unittest.TestCase): + """ AuditTopicCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuditTopicCreateParams(self): + """ + Test AuditTopicCreateParams + """ + model = swagger_client.models.audit_topic_create_params.AuditTopicCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_audit_topic_extended.py b/test/test_audit_topic_extended.py new file mode 100644 index 000000000..f3689170b --- /dev/null +++ b/test/test_audit_topic_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.audit_topic_extended import AuditTopicExtended + + +class TestAuditTopicExtended(unittest.TestCase): + """ AuditTopicExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuditTopicExtended(self): + """ + Test AuditTopicExtended + """ + model = swagger_client.models.audit_topic_extended.AuditTopicExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_audit_topics.py b/test/test_audit_topics.py new file mode 100644 index 000000000..f2004dd09 --- /dev/null +++ b/test/test_audit_topics.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.audit_topics import AuditTopics + + +class TestAuditTopics(unittest.TestCase): + """ AuditTopics unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuditTopics(self): + """ + Test AuditTopics + """ + model = swagger_client.models.audit_topics.AuditTopics() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_audit_topics_extended.py b/test/test_audit_topics_extended.py new file mode 100644 index 000000000..f1b0ddcca --- /dev/null +++ b/test/test_audit_topics_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.audit_topics_extended import AuditTopicsExtended + + +class TestAuditTopicsExtended(unittest.TestCase): + """ AuditTopicsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuditTopicsExtended(self): + """ + Test AuditTopicsExtended + """ + model = swagger_client.models.audit_topics_extended.AuditTopicsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_access.py b/test/test_auth_access.py new file mode 100644 index 000000000..8f1294186 --- /dev/null +++ b/test/test_auth_access.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_access import AuthAccess + + +class TestAuthAccess(unittest.TestCase): + """ AuthAccess unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthAccess(self): + """ + Test AuthAccess + """ + model = swagger_client.models.auth_access.AuthAccess() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_access_access_item.py b/test/test_auth_access_access_item.py new file mode 100644 index 000000000..7b9cf2b71 --- /dev/null +++ b/test/test_auth_access_access_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_access_access_item import AuthAccessAccessItem + + +class TestAuthAccessAccessItem(unittest.TestCase): + """ AuthAccessAccessItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthAccessAccessItem(self): + """ + Test AuthAccessAccessItem + """ + model = swagger_client.models.auth_access_access_item.AuthAccessAccessItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_access_access_item_file.py b/test/test_auth_access_access_item_file.py new file mode 100644 index 000000000..fe56fc29d --- /dev/null +++ b/test/test_auth_access_access_item_file.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_access_access_item_file import AuthAccessAccessItemFile + + +class TestAuthAccessAccessItemFile(unittest.TestCase): + """ AuthAccessAccessItemFile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthAccessAccessItemFile(self): + """ + Test AuthAccessAccessItemFile + """ + model = swagger_client.models.auth_access_access_item_file.AuthAccessAccessItemFile() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_access_access_item_permissions.py b/test/test_auth_access_access_item_permissions.py new file mode 100644 index 000000000..95b20cb3e --- /dev/null +++ b/test/test_auth_access_access_item_permissions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_access_access_item_permissions import AuthAccessAccessItemPermissions + + +class TestAuthAccessAccessItemPermissions(unittest.TestCase): + """ AuthAccessAccessItemPermissions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthAccessAccessItemPermissions(self): + """ + Test AuthAccessAccessItemPermissions + """ + model = swagger_client.models.auth_access_access_item_permissions.AuthAccessAccessItemPermissions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_access_access_item_relevant_ace.py b/test/test_auth_access_access_item_relevant_ace.py new file mode 100644 index 000000000..ccdc53e96 --- /dev/null +++ b/test/test_auth_access_access_item_relevant_ace.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_access_access_item_relevant_ace import AuthAccessAccessItemRelevantAce + + +class TestAuthAccessAccessItemRelevantAce(unittest.TestCase): + """ AuthAccessAccessItemRelevantAce unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthAccessAccessItemRelevantAce(self): + """ + Test AuthAccessAccessItemRelevantAce + """ + model = swagger_client.models.auth_access_access_item_relevant_ace.AuthAccessAccessItemRelevantAce() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_access_access_item_user.py b/test/test_auth_access_access_item_user.py new file mode 100644 index 000000000..f16426b78 --- /dev/null +++ b/test/test_auth_access_access_item_user.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_access_access_item_user import AuthAccessAccessItemUser + + +class TestAuthAccessAccessItemUser(unittest.TestCase): + """ AuthAccessAccessItemUser unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthAccessAccessItemUser(self): + """ + Test AuthAccessAccessItemUser + """ + model = swagger_client.models.auth_access_access_item_user.AuthAccessAccessItemUser() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_api.py b/test/test_auth_api.py new file mode 100644 index 000000000..5637b696c --- /dev/null +++ b/test/test_auth_api.py @@ -0,0 +1,723 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.auth_api import AuthApi + + +class TestAuthApi(unittest.TestCase): + """ AuthApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.auth_api.AuthApi() + + def tearDown(self): + pass + + def test_create_auth_group(self): + """ + Test case for create_auth_group + + + """ + pass + + def test_create_auth_refresh_item(self): + """ + Test case for create_auth_refresh_item + + + """ + pass + + def test_create_auth_role(self): + """ + Test case for create_auth_role + + + """ + pass + + def test_create_auth_user(self): + """ + Test case for create_auth_user + + + """ + pass + + def test_create_mapping_identity(self): + """ + Test case for create_mapping_identity + + + """ + pass + + def test_create_mapping_identity_0(self): + """ + Test case for create_mapping_identity_0 + + + """ + pass + + def test_create_providers_ads_item(self): + """ + Test case for create_providers_ads_item + + + """ + pass + + def test_create_providers_file_item(self): + """ + Test case for create_providers_file_item + + + """ + pass + + def test_create_providers_krb5_item(self): + """ + Test case for create_providers_krb5_item + + + """ + pass + + def test_create_providers_ldap_item(self): + """ + Test case for create_providers_ldap_item + + + """ + pass + + def test_create_providers_nis_item(self): + """ + Test case for create_providers_nis_item + + + """ + pass + + def test_create_settings_krb5_domain(self): + """ + Test case for create_settings_krb5_domain + + + """ + pass + + def test_create_settings_krb5_realm(self): + """ + Test case for create_settings_krb5_realm + + + """ + pass + + def test_delete_auth_group(self): + """ + Test case for delete_auth_group + + + """ + pass + + def test_delete_auth_groups(self): + """ + Test case for delete_auth_groups + + + """ + pass + + def test_delete_auth_role(self): + """ + Test case for delete_auth_role + + + """ + pass + + def test_delete_auth_user(self): + """ + Test case for delete_auth_user + + + """ + pass + + def test_delete_auth_users(self): + """ + Test case for delete_auth_users + + + """ + pass + + def test_delete_mapping_identities(self): + """ + Test case for delete_mapping_identities + + + """ + pass + + def test_delete_mapping_identity(self): + """ + Test case for delete_mapping_identity + + + """ + pass + + def test_delete_providers_ads_by_id(self): + """ + Test case for delete_providers_ads_by_id + + + """ + pass + + def test_delete_providers_file_by_id(self): + """ + Test case for delete_providers_file_by_id + + + """ + pass + + def test_delete_providers_krb5_by_id(self): + """ + Test case for delete_providers_krb5_by_id + + + """ + pass + + def test_delete_providers_ldap_by_id(self): + """ + Test case for delete_providers_ldap_by_id + + + """ + pass + + def test_delete_providers_local_by_id(self): + """ + Test case for delete_providers_local_by_id + + + """ + pass + + def test_delete_providers_nis_by_id(self): + """ + Test case for delete_providers_nis_by_id + + + """ + pass + + def test_delete_settings_krb5_domain(self): + """ + Test case for delete_settings_krb5_domain + + + """ + pass + + def test_delete_settings_krb5_realm(self): + """ + Test case for delete_settings_krb5_realm + + + """ + pass + + def test_get_auth_access_user(self): + """ + Test case for get_auth_access_user + + + """ + pass + + def test_get_auth_group(self): + """ + Test case for get_auth_group + + + """ + pass + + def test_get_auth_id(self): + """ + Test case for get_auth_id + + + """ + pass + + def test_get_auth_log_level(self): + """ + Test case for get_auth_log_level + + + """ + pass + + def test_get_auth_netgroup(self): + """ + Test case for get_auth_netgroup + + + """ + pass + + def test_get_auth_privileges(self): + """ + Test case for get_auth_privileges + + + """ + pass + + def test_get_auth_role(self): + """ + Test case for get_auth_role + + + """ + pass + + def test_get_auth_shells(self): + """ + Test case for get_auth_shells + + + """ + pass + + def test_get_auth_user(self): + """ + Test case for get_auth_user + + + """ + pass + + def test_get_auth_wellknown(self): + """ + Test case for get_auth_wellknown + + + """ + pass + + def test_get_auth_wellknowns(self): + """ + Test case for get_auth_wellknowns + + + """ + pass + + def test_get_mapping_dump(self): + """ + Test case for get_mapping_dump + + + """ + pass + + def test_get_mapping_identity(self): + """ + Test case for get_mapping_identity + + + """ + pass + + def test_get_mapping_users_lookup(self): + """ + Test case for get_mapping_users_lookup + + + """ + pass + + def test_get_mapping_users_rules(self): + """ + Test case for get_mapping_users_rules + + + """ + pass + + def test_get_providers_ads_by_id(self): + """ + Test case for get_providers_ads_by_id + + + """ + pass + + def test_get_providers_file_by_id(self): + """ + Test case for get_providers_file_by_id + + + """ + pass + + def test_get_providers_krb5_by_id(self): + """ + Test case for get_providers_krb5_by_id + + + """ + pass + + def test_get_providers_ldap_by_id(self): + """ + Test case for get_providers_ldap_by_id + + + """ + pass + + def test_get_providers_local(self): + """ + Test case for get_providers_local + + + """ + pass + + def test_get_providers_local_by_id(self): + """ + Test case for get_providers_local_by_id + + + """ + pass + + def test_get_providers_nis_by_id(self): + """ + Test case for get_providers_nis_by_id + + + """ + pass + + def test_get_providers_summary(self): + """ + Test case for get_providers_summary + + + """ + pass + + def test_get_settings_acls(self): + """ + Test case for get_settings_acls + + + """ + pass + + def test_get_settings_global(self): + """ + Test case for get_settings_global + + + """ + pass + + def test_get_settings_krb5_defaults(self): + """ + Test case for get_settings_krb5_defaults + + + """ + pass + + def test_get_settings_krb5_domain(self): + """ + Test case for get_settings_krb5_domain + + + """ + pass + + def test_get_settings_krb5_realm(self): + """ + Test case for get_settings_krb5_realm + + + """ + pass + + def test_get_settings_mapping(self): + """ + Test case for get_settings_mapping + + + """ + pass + + def test_list_auth_groups(self): + """ + Test case for list_auth_groups + + + """ + pass + + def test_list_auth_roles(self): + """ + Test case for list_auth_roles + + + """ + pass + + def test_list_auth_users(self): + """ + Test case for list_auth_users + + + """ + pass + + def test_list_providers_ads(self): + """ + Test case for list_providers_ads + + + """ + pass + + def test_list_providers_file(self): + """ + Test case for list_providers_file + + + """ + pass + + def test_list_providers_krb5(self): + """ + Test case for list_providers_krb5 + + + """ + pass + + def test_list_providers_ldap(self): + """ + Test case for list_providers_ldap + + + """ + pass + + def test_list_providers_nis(self): + """ + Test case for list_providers_nis + + + """ + pass + + def test_list_settings_krb5_domains(self): + """ + Test case for list_settings_krb5_domains + + + """ + pass + + def test_list_settings_krb5_realms(self): + """ + Test case for list_settings_krb5_realms + + + """ + pass + + def test_update_auth_group(self): + """ + Test case for update_auth_group + + + """ + pass + + def test_update_auth_log_level(self): + """ + Test case for update_auth_log_level + + + """ + pass + + def test_update_auth_role(self): + """ + Test case for update_auth_role + + + """ + pass + + def test_update_auth_user(self): + """ + Test case for update_auth_user + + + """ + pass + + def test_update_mapping_import(self): + """ + Test case for update_mapping_import + + + """ + pass + + def test_update_mapping_users_rules(self): + """ + Test case for update_mapping_users_rules + + + """ + pass + + def test_update_providers_ads_by_id(self): + """ + Test case for update_providers_ads_by_id + + + """ + pass + + def test_update_providers_file_by_id(self): + """ + Test case for update_providers_file_by_id + + + """ + pass + + def test_update_providers_krb5_by_id(self): + """ + Test case for update_providers_krb5_by_id + + + """ + pass + + def test_update_providers_ldap_by_id(self): + """ + Test case for update_providers_ldap_by_id + + + """ + pass + + def test_update_providers_local_by_id(self): + """ + Test case for update_providers_local_by_id + + + """ + pass + + def test_update_providers_nis_by_id(self): + """ + Test case for update_providers_nis_by_id + + + """ + pass + + def test_update_settings_acls(self): + """ + Test case for update_settings_acls + + + """ + pass + + def test_update_settings_global(self): + """ + Test case for update_settings_global + + + """ + pass + + def test_update_settings_krb5_defaults(self): + """ + Test case for update_settings_krb5_defaults + + + """ + pass + + def test_update_settings_krb5_domain(self): + """ + Test case for update_settings_krb5_domain + + + """ + pass + + def test_update_settings_krb5_realm(self): + """ + Test case for update_settings_krb5_realm + + + """ + pass + + def test_update_settings_mapping(self): + """ + Test case for update_settings_mapping + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_group.py b/test/test_auth_group.py new file mode 100644 index 000000000..64c5cef0a --- /dev/null +++ b/test/test_auth_group.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_group import AuthGroup + + +class TestAuthGroup(unittest.TestCase): + """ AuthGroup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthGroup(self): + """ + Test AuthGroup + """ + model = swagger_client.models.auth_group.AuthGroup() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_group_create_params.py b/test/test_auth_group_create_params.py new file mode 100644 index 000000000..2367be8e9 --- /dev/null +++ b/test/test_auth_group_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_group_create_params import AuthGroupCreateParams + + +class TestAuthGroupCreateParams(unittest.TestCase): + """ AuthGroupCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthGroupCreateParams(self): + """ + Test AuthGroupCreateParams + """ + model = swagger_client.models.auth_group_create_params.AuthGroupCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_group_extended.py b/test/test_auth_group_extended.py new file mode 100644 index 000000000..a92359c45 --- /dev/null +++ b/test/test_auth_group_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_group_extended import AuthGroupExtended + + +class TestAuthGroupExtended(unittest.TestCase): + """ AuthGroupExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthGroupExtended(self): + """ + Test AuthGroupExtended + """ + model = swagger_client.models.auth_group_extended.AuthGroupExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_groups.py b/test/test_auth_groups.py new file mode 100644 index 000000000..fab4f5713 --- /dev/null +++ b/test/test_auth_groups.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_groups import AuthGroups + + +class TestAuthGroups(unittest.TestCase): + """ AuthGroups unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthGroups(self): + """ + Test AuthGroups + """ + model = swagger_client.models.auth_groups.AuthGroups() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_groups_api.py b/test/test_auth_groups_api.py new file mode 100644 index 000000000..f520d51fc --- /dev/null +++ b/test/test_auth_groups_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.auth_groups_api import AuthGroupsApi + + +class TestAuthGroupsApi(unittest.TestCase): + """ AuthGroupsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.auth_groups_api.AuthGroupsApi() + + def tearDown(self): + pass + + def test_create_group_member(self): + """ + Test case for create_group_member + + + """ + pass + + def test_delete_group_member(self): + """ + Test case for delete_group_member + + + """ + pass + + def test_list_group_members(self): + """ + Test case for list_group_members + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_groups_extended.py b/test/test_auth_groups_extended.py new file mode 100644 index 000000000..0fedf43e0 --- /dev/null +++ b/test/test_auth_groups_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_groups_extended import AuthGroupsExtended + + +class TestAuthGroupsExtended(unittest.TestCase): + """ AuthGroupsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthGroupsExtended(self): + """ + Test AuthGroupsExtended + """ + model = swagger_client.models.auth_groups_extended.AuthGroupsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_id.py b/test/test_auth_id.py new file mode 100644 index 000000000..d14fdf086 --- /dev/null +++ b/test/test_auth_id.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_id import AuthId + + +class TestAuthId(unittest.TestCase): + """ AuthId unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthId(self): + """ + Test AuthId + """ + model = swagger_client.models.auth_id.AuthId() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_id_ntoken.py b/test/test_auth_id_ntoken.py new file mode 100644 index 000000000..a9e0cb0d3 --- /dev/null +++ b/test/test_auth_id_ntoken.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_id_ntoken import AuthIdNtoken + + +class TestAuthIdNtoken(unittest.TestCase): + """ AuthIdNtoken unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthIdNtoken(self): + """ + Test AuthIdNtoken + """ + model = swagger_client.models.auth_id_ntoken.AuthIdNtoken() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_id_ntoken_privilege_item.py b/test/test_auth_id_ntoken_privilege_item.py new file mode 100644 index 000000000..3fbb5750d --- /dev/null +++ b/test/test_auth_id_ntoken_privilege_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_id_ntoken_privilege_item import AuthIdNtokenPrivilegeItem + + +class TestAuthIdNtokenPrivilegeItem(unittest.TestCase): + """ AuthIdNtokenPrivilegeItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthIdNtokenPrivilegeItem(self): + """ + Test AuthIdNtokenPrivilegeItem + """ + model = swagger_client.models.auth_id_ntoken_privilege_item.AuthIdNtokenPrivilegeItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_log_level.py b/test/test_auth_log_level.py new file mode 100644 index 000000000..2ce9c1e1f --- /dev/null +++ b/test/test_auth_log_level.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_log_level import AuthLogLevel + + +class TestAuthLogLevel(unittest.TestCase): + """ AuthLogLevel unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthLogLevel(self): + """ + Test AuthLogLevel + """ + model = swagger_client.models.auth_log_level.AuthLogLevel() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_log_level_extended.py b/test/test_auth_log_level_extended.py new file mode 100644 index 000000000..b5260cb2e --- /dev/null +++ b/test/test_auth_log_level_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_log_level_extended import AuthLogLevelExtended + + +class TestAuthLogLevelExtended(unittest.TestCase): + """ AuthLogLevelExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthLogLevelExtended(self): + """ + Test AuthLogLevelExtended + """ + model = swagger_client.models.auth_log_level_extended.AuthLogLevelExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_log_level_level.py b/test/test_auth_log_level_level.py new file mode 100644 index 000000000..8a2f9bf22 --- /dev/null +++ b/test/test_auth_log_level_level.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_log_level_level import AuthLogLevelLevel + + +class TestAuthLogLevelLevel(unittest.TestCase): + """ AuthLogLevelLevel unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthLogLevelLevel(self): + """ + Test AuthLogLevelLevel + """ + model = swagger_client.models.auth_log_level_level.AuthLogLevelLevel() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_netgroup.py b/test/test_auth_netgroup.py new file mode 100644 index 000000000..1aacabf4d --- /dev/null +++ b/test/test_auth_netgroup.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_netgroup import AuthNetgroup + + +class TestAuthNetgroup(unittest.TestCase): + """ AuthNetgroup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthNetgroup(self): + """ + Test AuthNetgroup + """ + model = swagger_client.models.auth_netgroup.AuthNetgroup() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_netgroups.py b/test/test_auth_netgroups.py new file mode 100644 index 000000000..e3b276992 --- /dev/null +++ b/test/test_auth_netgroups.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_netgroups import AuthNetgroups + + +class TestAuthNetgroups(unittest.TestCase): + """ AuthNetgroups unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthNetgroups(self): + """ + Test AuthNetgroups + """ + model = swagger_client.models.auth_netgroups.AuthNetgroups() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_privilege.py b/test/test_auth_privilege.py new file mode 100644 index 000000000..b010cf17d --- /dev/null +++ b/test/test_auth_privilege.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_privilege import AuthPrivilege + + +class TestAuthPrivilege(unittest.TestCase): + """ AuthPrivilege unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthPrivilege(self): + """ + Test AuthPrivilege + """ + model = swagger_client.models.auth_privilege.AuthPrivilege() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_privileges.py b/test/test_auth_privileges.py new file mode 100644 index 000000000..76180dc0c --- /dev/null +++ b/test/test_auth_privileges.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_privileges import AuthPrivileges + + +class TestAuthPrivileges(unittest.TestCase): + """ AuthPrivileges unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthPrivileges(self): + """ + Test AuthPrivileges + """ + model = swagger_client.models.auth_privileges.AuthPrivileges() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_providers_api.py b/test/test_auth_providers_api.py new file mode 100644 index 000000000..77916bb1a --- /dev/null +++ b/test/test_auth_providers_api.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.auth_providers_api import AuthProvidersApi + + +class TestAuthProvidersApi(unittest.TestCase): + """ AuthProvidersApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.auth_providers_api.AuthProvidersApi() + + def tearDown(self): + pass + + def test_get_ads_provider_controllers(self): + """ + Test case for get_ads_provider_controllers + + + """ + pass + + def test_get_ads_provider_domain(self): + """ + Test case for get_ads_provider_domain + + + """ + pass + + def test_get_ads_provider_domains(self): + """ + Test case for get_ads_provider_domains + + + """ + pass + + def test_get_ads_provider_search(self): + """ + Test case for get_ads_provider_search + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_role.py b/test/test_auth_role.py new file mode 100644 index 000000000..9f5781cee --- /dev/null +++ b/test/test_auth_role.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_role import AuthRole + + +class TestAuthRole(unittest.TestCase): + """ AuthRole unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthRole(self): + """ + Test AuthRole + """ + model = swagger_client.models.auth_role.AuthRole() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_role_extended.py b/test/test_auth_role_extended.py new file mode 100644 index 000000000..767150018 --- /dev/null +++ b/test/test_auth_role_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_role_extended import AuthRoleExtended + + +class TestAuthRoleExtended(unittest.TestCase): + """ AuthRoleExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthRoleExtended(self): + """ + Test AuthRoleExtended + """ + model = swagger_client.models.auth_role_extended.AuthRoleExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_roles.py b/test/test_auth_roles.py new file mode 100644 index 000000000..7059f13c3 --- /dev/null +++ b/test/test_auth_roles.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_roles import AuthRoles + + +class TestAuthRoles(unittest.TestCase): + """ AuthRoles unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthRoles(self): + """ + Test AuthRoles + """ + model = swagger_client.models.auth_roles.AuthRoles() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_roles_api.py b/test/test_auth_roles_api.py new file mode 100644 index 000000000..677646b87 --- /dev/null +++ b/test/test_auth_roles_api.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.auth_roles_api import AuthRolesApi + + +class TestAuthRolesApi(unittest.TestCase): + """ AuthRolesApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.auth_roles_api.AuthRolesApi() + + def tearDown(self): + pass + + def test_create_role_member(self): + """ + Test case for create_role_member + + + """ + pass + + def test_create_role_privilege(self): + """ + Test case for create_role_privilege + + + """ + pass + + def test_delete_role_member(self): + """ + Test case for delete_role_member + + + """ + pass + + def test_delete_role_privilege(self): + """ + Test case for delete_role_privilege + + + """ + pass + + def test_list_role_members(self): + """ + Test case for list_role_members + + + """ + pass + + def test_list_role_privileges(self): + """ + Test case for list_role_privileges + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_roles_extended.py b/test/test_auth_roles_extended.py new file mode 100644 index 000000000..66c0708ea --- /dev/null +++ b/test/test_auth_roles_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_roles_extended import AuthRolesExtended + + +class TestAuthRolesExtended(unittest.TestCase): + """ AuthRolesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthRolesExtended(self): + """ + Test AuthRolesExtended + """ + model = swagger_client.models.auth_roles_extended.AuthRolesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_shells.py b/test/test_auth_shells.py new file mode 100644 index 000000000..2de36bab1 --- /dev/null +++ b/test/test_auth_shells.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_shells import AuthShells + + +class TestAuthShells(unittest.TestCase): + """ AuthShells unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthShells(self): + """ + Test AuthShells + """ + model = swagger_client.models.auth_shells.AuthShells() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_user.py b/test/test_auth_user.py new file mode 100644 index 000000000..12a597ca3 --- /dev/null +++ b/test/test_auth_user.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_user import AuthUser + + +class TestAuthUser(unittest.TestCase): + """ AuthUser unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthUser(self): + """ + Test AuthUser + """ + model = swagger_client.models.auth_user.AuthUser() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_user_create_params.py b/test/test_auth_user_create_params.py new file mode 100644 index 000000000..dd54b3725 --- /dev/null +++ b/test/test_auth_user_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_user_create_params import AuthUserCreateParams + + +class TestAuthUserCreateParams(unittest.TestCase): + """ AuthUserCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthUserCreateParams(self): + """ + Test AuthUserCreateParams + """ + model = swagger_client.models.auth_user_create_params.AuthUserCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_users.py b/test/test_auth_users.py new file mode 100644 index 000000000..ad3ea07a5 --- /dev/null +++ b/test/test_auth_users.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_users import AuthUsers + + +class TestAuthUsers(unittest.TestCase): + """ AuthUsers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthUsers(self): + """ + Test AuthUsers + """ + model = swagger_client.models.auth_users.AuthUsers() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_users_api.py b/test/test_auth_users_api.py new file mode 100644 index 000000000..ef3eec321 --- /dev/null +++ b/test/test_auth_users_api.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.auth_users_api import AuthUsersApi + + +class TestAuthUsersApi(unittest.TestCase): + """ AuthUsersApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.auth_users_api.AuthUsersApi() + + def tearDown(self): + pass + + def test_create_user_member_of_item(self): + """ + Test case for create_user_member_of_item + + + """ + pass + + def test_delete_user_member_of_member_of(self): + """ + Test case for delete_user_member_of_member_of + + + """ + pass + + def test_list_user_member_of(self): + """ + Test case for list_user_member_of + + + """ + pass + + def test_update_user_change_password(self): + """ + Test case for update_user_change_password + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_users_extended.py b/test/test_auth_users_extended.py new file mode 100644 index 000000000..d5ca42b1e --- /dev/null +++ b/test/test_auth_users_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_users_extended import AuthUsersExtended + + +class TestAuthUsersExtended(unittest.TestCase): + """ AuthUsersExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthUsersExtended(self): + """ + Test AuthUsersExtended + """ + model = swagger_client.models.auth_users_extended.AuthUsersExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_auth_wellknowns.py b/test/test_auth_wellknowns.py new file mode 100644 index 000000000..f131ab95c --- /dev/null +++ b/test/test_auth_wellknowns.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.auth_wellknowns import AuthWellknowns + + +class TestAuthWellknowns(unittest.TestCase): + """ AuthWellknowns unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAuthWellknowns(self): + """ + Test AuthWellknowns + """ + model = swagger_client.models.auth_wellknowns.AuthWellknowns() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_changelist_lins.py b/test/test_changelist_lins.py new file mode 100644 index 000000000..6e3d09bfa --- /dev/null +++ b/test/test_changelist_lins.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.changelist_lins import ChangelistLins + + +class TestChangelistLins(unittest.TestCase): + """ ChangelistLins unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChangelistLins(self): + """ + Test ChangelistLins + """ + model = swagger_client.models.changelist_lins.ChangelistLins() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_changelist_lins_ctime.py b/test/test_changelist_lins_ctime.py new file mode 100644 index 000000000..e912ecb00 --- /dev/null +++ b/test/test_changelist_lins_ctime.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.changelist_lins_ctime import ChangelistLinsCtime + + +class TestChangelistLinsCtime(unittest.TestCase): + """ ChangelistLinsCtime unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChangelistLinsCtime(self): + """ + Test ChangelistLinsCtime + """ + model = swagger_client.models.changelist_lins_ctime.ChangelistLinsCtime() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_changelist_lins_extended.py b/test/test_changelist_lins_extended.py new file mode 100644 index 000000000..5b3bd37d0 --- /dev/null +++ b/test/test_changelist_lins_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.changelist_lins_extended import ChangelistLinsExtended + + +class TestChangelistLinsExtended(unittest.TestCase): + """ ChangelistLinsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChangelistLinsExtended(self): + """ + Test ChangelistLinsExtended + """ + model = swagger_client.models.changelist_lins_extended.ChangelistLinsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_access.py b/test/test_cloud_access.py new file mode 100644 index 000000000..a5d19a7c0 --- /dev/null +++ b/test/test_cloud_access.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_access import CloudAccess + + +class TestCloudAccess(unittest.TestCase): + """ CloudAccess unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccess(self): + """ + Test CloudAccess + """ + model = swagger_client.models.cloud_access.CloudAccess() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_access_cluster.py b/test/test_cloud_access_cluster.py new file mode 100644 index 000000000..1a8bc63cc --- /dev/null +++ b/test/test_cloud_access_cluster.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_access_cluster import CloudAccessCluster + + +class TestCloudAccessCluster(unittest.TestCase): + """ CloudAccessCluster unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccessCluster(self): + """ + Test CloudAccessCluster + """ + model = swagger_client.models.cloud_access_cluster.CloudAccessCluster() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_access_extended.py b/test/test_cloud_access_extended.py new file mode 100644 index 000000000..de88e1f48 --- /dev/null +++ b/test/test_cloud_access_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_access_extended import CloudAccessExtended + + +class TestCloudAccessExtended(unittest.TestCase): + """ CloudAccessExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccessExtended(self): + """ + Test CloudAccessExtended + """ + model = swagger_client.models.cloud_access_extended.CloudAccessExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_access_item.py b/test/test_cloud_access_item.py new file mode 100644 index 000000000..6fa1419ef --- /dev/null +++ b/test/test_cloud_access_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_access_item import CloudAccessItem + + +class TestCloudAccessItem(unittest.TestCase): + """ CloudAccessItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccessItem(self): + """ + Test CloudAccessItem + """ + model = swagger_client.models.cloud_access_item.CloudAccessItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_account.py b/test/test_cloud_account.py new file mode 100644 index 000000000..845d2596e --- /dev/null +++ b/test/test_cloud_account.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_account import CloudAccount + + +class TestCloudAccount(unittest.TestCase): + """ CloudAccount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccount(self): + """ + Test CloudAccount + """ + model = swagger_client.models.cloud_account.CloudAccount() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_account_create_params.py b/test/test_cloud_account_create_params.py new file mode 100644 index 000000000..729711d86 --- /dev/null +++ b/test/test_cloud_account_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_account_create_params import CloudAccountCreateParams + + +class TestCloudAccountCreateParams(unittest.TestCase): + """ CloudAccountCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccountCreateParams(self): + """ + Test CloudAccountCreateParams + """ + model = swagger_client.models.cloud_account_create_params.CloudAccountCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_account_extended.py b/test/test_cloud_account_extended.py new file mode 100644 index 000000000..87fdd1c35 --- /dev/null +++ b/test/test_cloud_account_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_account_extended import CloudAccountExtended + + +class TestCloudAccountExtended(unittest.TestCase): + """ CloudAccountExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccountExtended(self): + """ + Test CloudAccountExtended + """ + model = swagger_client.models.cloud_account_extended.CloudAccountExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_accounts.py b/test/test_cloud_accounts.py new file mode 100644 index 000000000..f29217e2f --- /dev/null +++ b/test/test_cloud_accounts.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_accounts import CloudAccounts + + +class TestCloudAccounts(unittest.TestCase): + """ CloudAccounts unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccounts(self): + """ + Test CloudAccounts + """ + model = swagger_client.models.cloud_accounts.CloudAccounts() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_accounts_extended.py b/test/test_cloud_accounts_extended.py new file mode 100644 index 000000000..a646fcf5e --- /dev/null +++ b/test/test_cloud_accounts_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_accounts_extended import CloudAccountsExtended + + +class TestCloudAccountsExtended(unittest.TestCase): + """ CloudAccountsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudAccountsExtended(self): + """ + Test CloudAccountsExtended + """ + model = swagger_client.models.cloud_accounts_extended.CloudAccountsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_api.py b/test/test_cloud_api.py new file mode 100644 index 000000000..1f6f490fa --- /dev/null +++ b/test/test_cloud_api.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.cloud_api import CloudApi + + +class TestCloudApi(unittest.TestCase): + """ CloudApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.cloud_api.CloudApi() + + def tearDown(self): + pass + + def test_create_cloud_access_item(self): + """ + Test case for create_cloud_access_item + + + """ + pass + + def test_create_cloud_account(self): + """ + Test case for create_cloud_account + + + """ + pass + + def test_create_cloud_job(self): + """ + Test case for create_cloud_job + + + """ + pass + + def test_create_cloud_pool(self): + """ + Test case for create_cloud_pool + + + """ + pass + + def test_create_settings_encryption_key_item(self): + """ + Test case for create_settings_encryption_key_item + + + """ + pass + + def test_create_settings_reporting_eula_item(self): + """ + Test case for create_settings_reporting_eula_item + + + """ + pass + + def test_delete_cloud_access_guid(self): + """ + Test case for delete_cloud_access_guid + + + """ + pass + + def test_delete_cloud_account(self): + """ + Test case for delete_cloud_account + + + """ + pass + + def test_delete_cloud_pool(self): + """ + Test case for delete_cloud_pool + + + """ + pass + + def test_delete_settings_reporting_eula(self): + """ + Test case for delete_settings_reporting_eula + + + """ + pass + + def test_get_cloud_access_guid(self): + """ + Test case for get_cloud_access_guid + + + """ + pass + + def test_get_cloud_account(self): + """ + Test case for get_cloud_account + + + """ + pass + + def test_get_cloud_job(self): + """ + Test case for get_cloud_job + + + """ + pass + + def test_get_cloud_jobs_file(self): + """ + Test case for get_cloud_jobs_file + + + """ + pass + + def test_get_cloud_pool(self): + """ + Test case for get_cloud_pool + + + """ + pass + + def test_get_cloud_settings(self): + """ + Test case for get_cloud_settings + + + """ + pass + + def test_list_cloud_access(self): + """ + Test case for list_cloud_access + + + """ + pass + + def test_list_cloud_accounts(self): + """ + Test case for list_cloud_accounts + + + """ + pass + + def test_list_cloud_jobs(self): + """ + Test case for list_cloud_jobs + + + """ + pass + + def test_list_cloud_pools(self): + """ + Test case for list_cloud_pools + + + """ + pass + + def test_list_settings_reporting_eula(self): + """ + Test case for list_settings_reporting_eula + + + """ + pass + + def test_update_cloud_account(self): + """ + Test case for update_cloud_account + + + """ + pass + + def test_update_cloud_job(self): + """ + Test case for update_cloud_job + + + """ + pass + + def test_update_cloud_pool(self): + """ + Test case for update_cloud_pool + + + """ + pass + + def test_update_cloud_settings(self): + """ + Test case for update_cloud_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_job.py b/test/test_cloud_job.py new file mode 100644 index 000000000..3752b4370 --- /dev/null +++ b/test/test_cloud_job.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_job import CloudJob + + +class TestCloudJob(unittest.TestCase): + """ CloudJob unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJob(self): + """ + Test CloudJob + """ + model = swagger_client.models.cloud_job.CloudJob() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_job_create_params.py b/test/test_cloud_job_create_params.py new file mode 100644 index 000000000..67e9843f8 --- /dev/null +++ b/test/test_cloud_job_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_job_create_params import CloudJobCreateParams + + +class TestCloudJobCreateParams(unittest.TestCase): + """ CloudJobCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJobCreateParams(self): + """ + Test CloudJobCreateParams + """ + model = swagger_client.models.cloud_job_create_params.CloudJobCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_job_extended.py b/test/test_cloud_job_extended.py new file mode 100644 index 000000000..450619440 --- /dev/null +++ b/test/test_cloud_job_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_job_extended import CloudJobExtended + + +class TestCloudJobExtended(unittest.TestCase): + """ CloudJobExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJobExtended(self): + """ + Test CloudJobExtended + """ + model = swagger_client.models.cloud_job_extended.CloudJobExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_job_files.py b/test/test_cloud_job_files.py new file mode 100644 index 000000000..9d2a2f6b9 --- /dev/null +++ b/test/test_cloud_job_files.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_job_files import CloudJobFiles + + +class TestCloudJobFiles(unittest.TestCase): + """ CloudJobFiles unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJobFiles(self): + """ + Test CloudJobFiles + """ + model = swagger_client.models.cloud_job_files.CloudJobFiles() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_job_files_name.py b/test/test_cloud_job_files_name.py new file mode 100644 index 000000000..9518e9d55 --- /dev/null +++ b/test/test_cloud_job_files_name.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_job_files_name import CloudJobFilesName + + +class TestCloudJobFilesName(unittest.TestCase): + """ CloudJobFilesName unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJobFilesName(self): + """ + Test CloudJobFilesName + """ + model = swagger_client.models.cloud_job_files_name.CloudJobFilesName() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_job_job_engine_job.py b/test/test_cloud_job_job_engine_job.py new file mode 100644 index 000000000..70c47547a --- /dev/null +++ b/test/test_cloud_job_job_engine_job.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_job_job_engine_job import CloudJobJobEngineJob + + +class TestCloudJobJobEngineJob(unittest.TestCase): + """ CloudJobJobEngineJob unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJobJobEngineJob(self): + """ + Test CloudJobJobEngineJob + """ + model = swagger_client.models.cloud_job_job_engine_job.CloudJobJobEngineJob() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_jobs.py b/test/test_cloud_jobs.py new file mode 100644 index 000000000..f5cb7f491 --- /dev/null +++ b/test/test_cloud_jobs.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_jobs import CloudJobs + + +class TestCloudJobs(unittest.TestCase): + """ CloudJobs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJobs(self): + """ + Test CloudJobs + """ + model = swagger_client.models.cloud_jobs.CloudJobs() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_jobs_extended.py b/test/test_cloud_jobs_extended.py new file mode 100644 index 000000000..94314034d --- /dev/null +++ b/test/test_cloud_jobs_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_jobs_extended import CloudJobsExtended + + +class TestCloudJobsExtended(unittest.TestCase): + """ CloudJobsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJobsExtended(self): + """ + Test CloudJobsExtended + """ + model = swagger_client.models.cloud_jobs_extended.CloudJobsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_jobs_files.py b/test/test_cloud_jobs_files.py new file mode 100644 index 000000000..3eeefb4a1 --- /dev/null +++ b/test/test_cloud_jobs_files.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_jobs_files import CloudJobsFiles + + +class TestCloudJobsFiles(unittest.TestCase): + """ CloudJobsFiles unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudJobsFiles(self): + """ + Test CloudJobsFiles + """ + model = swagger_client.models.cloud_jobs_files.CloudJobsFiles() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_pool.py b/test/test_cloud_pool.py new file mode 100644 index 000000000..292aa6df8 --- /dev/null +++ b/test/test_cloud_pool.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_pool import CloudPool + + +class TestCloudPool(unittest.TestCase): + """ CloudPool unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudPool(self): + """ + Test CloudPool + """ + model = swagger_client.models.cloud_pool.CloudPool() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_pool_create_params.py b/test/test_cloud_pool_create_params.py new file mode 100644 index 000000000..9ec95cf13 --- /dev/null +++ b/test/test_cloud_pool_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_pool_create_params import CloudPoolCreateParams + + +class TestCloudPoolCreateParams(unittest.TestCase): + """ CloudPoolCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudPoolCreateParams(self): + """ + Test CloudPoolCreateParams + """ + model = swagger_client.models.cloud_pool_create_params.CloudPoolCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_pool_extended.py b/test/test_cloud_pool_extended.py new file mode 100644 index 000000000..fdd3fd57f --- /dev/null +++ b/test/test_cloud_pool_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_pool_extended import CloudPoolExtended + + +class TestCloudPoolExtended(unittest.TestCase): + """ CloudPoolExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudPoolExtended(self): + """ + Test CloudPoolExtended + """ + model = swagger_client.models.cloud_pool_extended.CloudPoolExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_pools.py b/test/test_cloud_pools.py new file mode 100644 index 000000000..cb4ed701e --- /dev/null +++ b/test/test_cloud_pools.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_pools import CloudPools + + +class TestCloudPools(unittest.TestCase): + """ CloudPools unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudPools(self): + """ + Test CloudPools + """ + model = swagger_client.models.cloud_pools.CloudPools() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_pools_extended.py b/test/test_cloud_pools_extended.py new file mode 100644 index 000000000..2cbe25230 --- /dev/null +++ b/test/test_cloud_pools_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_pools_extended import CloudPoolsExtended + + +class TestCloudPoolsExtended(unittest.TestCase): + """ CloudPoolsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudPoolsExtended(self): + """ + Test CloudPoolsExtended + """ + model = swagger_client.models.cloud_pools_extended.CloudPoolsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_settings.py b/test/test_cloud_settings.py new file mode 100644 index 000000000..bad12e130 --- /dev/null +++ b/test/test_cloud_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_settings import CloudSettings + + +class TestCloudSettings(unittest.TestCase): + """ CloudSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudSettings(self): + """ + Test CloudSettings + """ + model = swagger_client.models.cloud_settings.CloudSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_settings_settings.py b/test/test_cloud_settings_settings.py new file mode 100644 index 000000000..15969aa08 --- /dev/null +++ b/test/test_cloud_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_settings_settings import CloudSettingsSettings + + +class TestCloudSettingsSettings(unittest.TestCase): + """ CloudSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudSettingsSettings(self): + """ + Test CloudSettingsSettings + """ + model = swagger_client.models.cloud_settings_settings.CloudSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py b/test/test_cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py new file mode 100644 index 000000000..61567fe9e --- /dev/null +++ b/test/test_cloud_settings_settings_sleep_timeout_cloud_garbage_collection.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cloud_settings_settings_sleep_timeout_cloud_garbage_collection import CloudSettingsSettingsSleepTimeoutCloudGarbageCollection + + +class TestCloudSettingsSettingsSleepTimeoutCloudGarbageCollection(unittest.TestCase): + """ CloudSettingsSettingsSleepTimeoutCloudGarbageCollection unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudSettingsSettingsSleepTimeoutCloudGarbageCollection(self): + """ + Test CloudSettingsSettingsSleepTimeoutCloudGarbageCollection + """ + model = swagger_client.models.cloud_settings_settings_sleep_timeout_cloud_garbage_collection.CloudSettingsSettingsSleepTimeoutCloudGarbageCollection() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_add_node_item.py b/test/test_cluster_add_node_item.py new file mode 100644 index 000000000..cf97050b5 --- /dev/null +++ b/test/test_cluster_add_node_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_add_node_item import ClusterAddNodeItem + + +class TestClusterAddNodeItem(unittest.TestCase): + """ ClusterAddNodeItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterAddNodeItem(self): + """ + Test ClusterAddNodeItem + """ + model = swagger_client.models.cluster_add_node_item.ClusterAddNodeItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_api.py b/test/test_cluster_api.py new file mode 100644 index 000000000..5ccfdbfac --- /dev/null +++ b/test/test_cluster_api.py @@ -0,0 +1,211 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.cluster_api import ClusterApi + + +class TestClusterApi(unittest.TestCase): + """ ClusterApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.cluster_api.ClusterApi() + + def tearDown(self): + pass + + def test_create_cluster_add_node_item(self): + """ + Test case for create_cluster_add_node_item + + + """ + pass + + def test_get_cluster_config(self): + """ + Test case for get_cluster_config + + + """ + pass + + def test_get_cluster_email(self): + """ + Test case for get_cluster_email + + + """ + pass + + def test_get_cluster_identity(self): + """ + Test case for get_cluster_identity + + + """ + pass + + def test_get_cluster_node(self): + """ + Test case for get_cluster_node + + + """ + pass + + def test_get_cluster_nodes(self): + """ + Test case for get_cluster_nodes + + + """ + pass + + def test_get_cluster_nodes_available(self): + """ + Test case for get_cluster_nodes_available + + + """ + pass + + def test_get_cluster_owner(self): + """ + Test case for get_cluster_owner + + + """ + pass + + def test_get_cluster_statfs(self): + """ + Test case for get_cluster_statfs + + + """ + pass + + def test_get_cluster_time(self): + """ + Test case for get_cluster_time + + + """ + pass + + def test_get_cluster_timezone(self): + """ + Test case for get_cluster_timezone + + + """ + pass + + def test_get_cluster_version(self): + """ + Test case for get_cluster_version + + + """ + pass + + def test_get_timezone_region(self): + """ + Test case for get_timezone_region + + + """ + pass + + def test_get_timezone_settings(self): + """ + Test case for get_timezone_settings + + + """ + pass + + def test_update_cluster_email(self): + """ + Test case for update_cluster_email + + + """ + pass + + def test_update_cluster_identity(self): + """ + Test case for update_cluster_identity + + + """ + pass + + def test_update_cluster_node(self): + """ + Test case for update_cluster_node + + + """ + pass + + def test_update_cluster_owner(self): + """ + Test case for update_cluster_owner + + + """ + pass + + def test_update_cluster_time(self): + """ + Test case for update_cluster_time + + + """ + pass + + def test_update_cluster_timezone(self): + """ + Test case for update_cluster_timezone + + + """ + pass + + def test_update_timezone_settings(self): + """ + Test case for update_timezone_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_archive_item.py b/test/test_cluster_archive_item.py new file mode 100644 index 000000000..77e5ab5d1 --- /dev/null +++ b/test/test_cluster_archive_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_archive_item import ClusterArchiveItem + + +class TestClusterArchiveItem(unittest.TestCase): + """ ClusterArchiveItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterArchiveItem(self): + """ + Test ClusterArchiveItem + """ + model = swagger_client.models.cluster_archive_item.ClusterArchiveItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_assess_item.py b/test/test_cluster_assess_item.py new file mode 100644 index 000000000..a0631a00e --- /dev/null +++ b/test/test_cluster_assess_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_assess_item import ClusterAssessItem + + +class TestClusterAssessItem(unittest.TestCase): + """ ClusterAssessItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterAssessItem(self): + """ + Test ClusterAssessItem + """ + model = swagger_client.models.cluster_assess_item.ClusterAssessItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_config.py b/test/test_cluster_config.py new file mode 100644 index 000000000..3c9c33a4e --- /dev/null +++ b/test/test_cluster_config.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_config import ClusterConfig + + +class TestClusterConfig(unittest.TestCase): + """ ClusterConfig unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterConfig(self): + """ + Test ClusterConfig + """ + model = swagger_client.models.cluster_config.ClusterConfig() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_config_device.py b/test/test_cluster_config_device.py new file mode 100644 index 000000000..531272f26 --- /dev/null +++ b/test/test_cluster_config_device.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_config_device import ClusterConfigDevice + + +class TestClusterConfigDevice(unittest.TestCase): + """ ClusterConfigDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterConfigDevice(self): + """ + Test ClusterConfigDevice + """ + model = swagger_client.models.cluster_config_device.ClusterConfigDevice() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_config_onefs_version.py b/test/test_cluster_config_onefs_version.py new file mode 100644 index 000000000..5637e818d --- /dev/null +++ b/test/test_cluster_config_onefs_version.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_config_onefs_version import ClusterConfigOnefsVersion + + +class TestClusterConfigOnefsVersion(unittest.TestCase): + """ ClusterConfigOnefsVersion unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterConfigOnefsVersion(self): + """ + Test ClusterConfigOnefsVersion + """ + model = swagger_client.models.cluster_config_onefs_version.ClusterConfigOnefsVersion() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_config_timezone.py b/test/test_cluster_config_timezone.py new file mode 100644 index 000000000..42443d4ab --- /dev/null +++ b/test/test_cluster_config_timezone.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_config_timezone import ClusterConfigTimezone + + +class TestClusterConfigTimezone(unittest.TestCase): + """ ClusterConfigTimezone unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterConfigTimezone(self): + """ + Test ClusterConfigTimezone + """ + model = swagger_client.models.cluster_config_timezone.ClusterConfigTimezone() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_email.py b/test/test_cluster_email.py new file mode 100644 index 000000000..80e177e4b --- /dev/null +++ b/test/test_cluster_email.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_email import ClusterEmail + + +class TestClusterEmail(unittest.TestCase): + """ ClusterEmail unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterEmail(self): + """ + Test ClusterEmail + """ + model = swagger_client.models.cluster_email.ClusterEmail() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_email_extended.py b/test/test_cluster_email_extended.py new file mode 100644 index 000000000..e70e51ef3 --- /dev/null +++ b/test/test_cluster_email_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_email_extended import ClusterEmailExtended + + +class TestClusterEmailExtended(unittest.TestCase): + """ ClusterEmailExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterEmailExtended(self): + """ + Test ClusterEmailExtended + """ + model = swagger_client.models.cluster_email_extended.ClusterEmailExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_email_settings.py b/test/test_cluster_email_settings.py new file mode 100644 index 000000000..c3c61ca01 --- /dev/null +++ b/test/test_cluster_email_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_email_settings import ClusterEmailSettings + + +class TestClusterEmailSettings(unittest.TestCase): + """ ClusterEmailSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterEmailSettings(self): + """ + Test ClusterEmailSettings + """ + model = swagger_client.models.cluster_email_settings.ClusterEmailSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_firmware_progress.py b/test/test_cluster_firmware_progress.py new file mode 100644 index 000000000..d4137a1b4 --- /dev/null +++ b/test/test_cluster_firmware_progress.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_firmware_progress import ClusterFirmwareProgress + + +class TestClusterFirmwareProgress(unittest.TestCase): + """ ClusterFirmwareProgress unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterFirmwareProgress(self): + """ + Test ClusterFirmwareProgress + """ + model = swagger_client.models.cluster_firmware_progress.ClusterFirmwareProgress() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_firmware_status.py b/test/test_cluster_firmware_status.py new file mode 100644 index 000000000..2021e8a43 --- /dev/null +++ b/test/test_cluster_firmware_status.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_firmware_status import ClusterFirmwareStatus + + +class TestClusterFirmwareStatus(unittest.TestCase): + """ ClusterFirmwareStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterFirmwareStatus(self): + """ + Test ClusterFirmwareStatus + """ + model = swagger_client.models.cluster_firmware_status.ClusterFirmwareStatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_firmware_status_node.py b/test/test_cluster_firmware_status_node.py new file mode 100644 index 000000000..602b6ec30 --- /dev/null +++ b/test/test_cluster_firmware_status_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_firmware_status_node import ClusterFirmwareStatusNode + + +class TestClusterFirmwareStatusNode(unittest.TestCase): + """ ClusterFirmwareStatusNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterFirmwareStatusNode(self): + """ + Test ClusterFirmwareStatusNode + """ + model = swagger_client.models.cluster_firmware_status_node.ClusterFirmwareStatusNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_firmware_status_node_device.py b/test/test_cluster_firmware_status_node_device.py new file mode 100644 index 000000000..288005bfb --- /dev/null +++ b/test/test_cluster_firmware_status_node_device.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_firmware_status_node_device import ClusterFirmwareStatusNodeDevice + + +class TestClusterFirmwareStatusNodeDevice(unittest.TestCase): + """ ClusterFirmwareStatusNodeDevice unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterFirmwareStatusNodeDevice(self): + """ + Test ClusterFirmwareStatusNodeDevice + """ + model = swagger_client.models.cluster_firmware_status_node_device.ClusterFirmwareStatusNodeDevice() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_firmware_status_node_package_item.py b/test/test_cluster_firmware_status_node_package_item.py new file mode 100644 index 000000000..5cd3153ec --- /dev/null +++ b/test/test_cluster_firmware_status_node_package_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_firmware_status_node_package_item import ClusterFirmwareStatusNodePackageItem + + +class TestClusterFirmwareStatusNodePackageItem(unittest.TestCase): + """ ClusterFirmwareStatusNodePackageItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterFirmwareStatusNodePackageItem(self): + """ + Test ClusterFirmwareStatusNodePackageItem + """ + model = swagger_client.models.cluster_firmware_status_node_package_item.ClusterFirmwareStatusNodePackageItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_firmware_upgrade_item.py b/test/test_cluster_firmware_upgrade_item.py new file mode 100644 index 000000000..d940c5b2b --- /dev/null +++ b/test/test_cluster_firmware_upgrade_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_firmware_upgrade_item import ClusterFirmwareUpgradeItem + + +class TestClusterFirmwareUpgradeItem(unittest.TestCase): + """ ClusterFirmwareUpgradeItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterFirmwareUpgradeItem(self): + """ + Test ClusterFirmwareUpgradeItem + """ + model = swagger_client.models.cluster_firmware_upgrade_item.ClusterFirmwareUpgradeItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_identity.py b/test/test_cluster_identity.py new file mode 100644 index 000000000..008ef2ea3 --- /dev/null +++ b/test/test_cluster_identity.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_identity import ClusterIdentity + + +class TestClusterIdentity(unittest.TestCase): + """ ClusterIdentity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterIdentity(self): + """ + Test ClusterIdentity + """ + model = swagger_client.models.cluster_identity.ClusterIdentity() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_identity_logon.py b/test/test_cluster_identity_logon.py new file mode 100644 index 000000000..e8f010b11 --- /dev/null +++ b/test/test_cluster_identity_logon.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_identity_logon import ClusterIdentityLogon + + +class TestClusterIdentityLogon(unittest.TestCase): + """ ClusterIdentityLogon unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterIdentityLogon(self): + """ + Test ClusterIdentityLogon + """ + model = swagger_client.models.cluster_identity_logon.ClusterIdentityLogon() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node.py b/test/test_cluster_node.py new file mode 100644 index 000000000..13101d231 --- /dev/null +++ b/test/test_cluster_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node import ClusterNode + + +class TestClusterNode(unittest.TestCase): + """ ClusterNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNode(self): + """ + Test ClusterNode + """ + model = swagger_client.models.cluster_node.ClusterNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_extended.py b/test/test_cluster_node_extended.py new file mode 100644 index 000000000..c66196a54 --- /dev/null +++ b/test/test_cluster_node_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_extended import ClusterNodeExtended + + +class TestClusterNodeExtended(unittest.TestCase): + """ ClusterNodeExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodeExtended(self): + """ + Test ClusterNodeExtended + """ + model = swagger_client.models.cluster_node_extended.ClusterNodeExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_hardware.py b/test/test_cluster_node_hardware.py new file mode 100644 index 000000000..a77d57690 --- /dev/null +++ b/test/test_cluster_node_hardware.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_hardware import ClusterNodeHardware + + +class TestClusterNodeHardware(unittest.TestCase): + """ ClusterNodeHardware unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodeHardware(self): + """ + Test ClusterNodeHardware + """ + model = swagger_client.models.cluster_node_hardware.ClusterNodeHardware() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_partitions.py b/test/test_cluster_node_partitions.py new file mode 100644 index 000000000..316c82c08 --- /dev/null +++ b/test/test_cluster_node_partitions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_partitions import ClusterNodePartitions + + +class TestClusterNodePartitions(unittest.TestCase): + """ ClusterNodePartitions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodePartitions(self): + """ + Test ClusterNodePartitions + """ + model = swagger_client.models.cluster_node_partitions.ClusterNodePartitions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_sensors.py b/test/test_cluster_node_sensors.py new file mode 100644 index 000000000..7e6c2713e --- /dev/null +++ b/test/test_cluster_node_sensors.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_sensors import ClusterNodeSensors + + +class TestClusterNodeSensors(unittest.TestCase): + """ ClusterNodeSensors unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodeSensors(self): + """ + Test ClusterNodeSensors + """ + model = swagger_client.models.cluster_node_sensors.ClusterNodeSensors() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_state.py b/test/test_cluster_node_state.py new file mode 100644 index 000000000..4c4212a7e --- /dev/null +++ b/test/test_cluster_node_state.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_state import ClusterNodeState + + +class TestClusterNodeState(unittest.TestCase): + """ ClusterNodeState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodeState(self): + """ + Test ClusterNodeState + """ + model = swagger_client.models.cluster_node_state.ClusterNodeState() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_state_extended.py b/test/test_cluster_node_state_extended.py new file mode 100644 index 000000000..ba47655fe --- /dev/null +++ b/test/test_cluster_node_state_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_state_extended import ClusterNodeStateExtended + + +class TestClusterNodeStateExtended(unittest.TestCase): + """ ClusterNodeStateExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodeStateExtended(self): + """ + Test ClusterNodeStateExtended + """ + model = swagger_client.models.cluster_node_state_extended.ClusterNodeStateExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_state_servicelight.py b/test/test_cluster_node_state_servicelight.py new file mode 100644 index 000000000..d82df81ac --- /dev/null +++ b/test/test_cluster_node_state_servicelight.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_state_servicelight import ClusterNodeStateServicelight + + +class TestClusterNodeStateServicelight(unittest.TestCase): + """ ClusterNodeStateServicelight unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodeStateServicelight(self): + """ + Test ClusterNodeStateServicelight + """ + model = swagger_client.models.cluster_node_state_servicelight.ClusterNodeStateServicelight() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_state_smartfail.py b/test/test_cluster_node_state_smartfail.py new file mode 100644 index 000000000..034aff05d --- /dev/null +++ b/test/test_cluster_node_state_smartfail.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_state_smartfail import ClusterNodeStateSmartfail + + +class TestClusterNodeStateSmartfail(unittest.TestCase): + """ ClusterNodeStateSmartfail unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodeStateSmartfail(self): + """ + Test ClusterNodeStateSmartfail + """ + model = swagger_client.models.cluster_node_state_smartfail.ClusterNodeStateSmartfail() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_node_status.py b/test/test_cluster_node_status.py new file mode 100644 index 000000000..dcb5c7e3e --- /dev/null +++ b/test/test_cluster_node_status.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_node_status import ClusterNodeStatus + + +class TestClusterNodeStatus(unittest.TestCase): + """ ClusterNodeStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodeStatus(self): + """ + Test ClusterNodeStatus + """ + model = swagger_client.models.cluster_node_status.ClusterNodeStatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_nodes.py b/test/test_cluster_nodes.py new file mode 100644 index 000000000..4b062d1c4 --- /dev/null +++ b/test/test_cluster_nodes.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_nodes import ClusterNodes + + +class TestClusterNodes(unittest.TestCase): + """ ClusterNodes unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodes(self): + """ + Test ClusterNodes + """ + model = swagger_client.models.cluster_nodes.ClusterNodes() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_nodes_api.py b/test/test_cluster_nodes_api.py new file mode 100644 index 000000000..9749a1a55 --- /dev/null +++ b/test/test_cluster_nodes_api.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.cluster_nodes_api import ClusterNodesApi + + +class TestClusterNodesApi(unittest.TestCase): + """ ClusterNodesApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.cluster_nodes_api.ClusterNodesApi() + + def tearDown(self): + pass + + def test_create_drives_drive_add_item(self): + """ + Test case for create_drives_drive_add_item + + + """ + pass + + def test_create_drives_drive_firmware_update_item(self): + """ + Test case for create_drives_drive_firmware_update_item + + + """ + pass + + def test_create_drives_drive_format_item(self): + """ + Test case for create_drives_drive_format_item + + + """ + pass + + def test_create_drives_drive_purpose_item(self): + """ + Test case for create_drives_drive_purpose_item + + + """ + pass + + def test_create_drives_drive_smartfail_item(self): + """ + Test case for create_drives_drive_smartfail_item + + + """ + pass + + def test_create_drives_drive_stopfail_item(self): + """ + Test case for create_drives_drive_stopfail_item + + + """ + pass + + def test_create_drives_drive_suspend_item(self): + """ + Test case for create_drives_drive_suspend_item + + + """ + pass + + def test_create_node_reboot_item(self): + """ + Test case for create_node_reboot_item + + + """ + pass + + def test_create_node_shutdown_item(self): + """ + Test case for create_node_shutdown_item + + + """ + pass + + def test_get_drives_drive_firmware(self): + """ + Test case for get_drives_drive_firmware + + + """ + pass + + def test_get_node_drive(self): + """ + Test case for get_node_drive + + + """ + pass + + def test_get_node_drives(self): + """ + Test case for get_node_drives + + + """ + pass + + def test_get_node_drives_purposelist(self): + """ + Test case for get_node_drives_purposelist + + + """ + pass + + def test_get_node_hardware(self): + """ + Test case for get_node_hardware + + + """ + pass + + def test_get_node_partitions(self): + """ + Test case for get_node_partitions + + + """ + pass + + def test_get_node_sensors(self): + """ + Test case for get_node_sensors + + + """ + pass + + def test_get_node_state(self): + """ + Test case for get_node_state + + + """ + pass + + def test_get_node_state_readonly(self): + """ + Test case for get_node_state_readonly + + + """ + pass + + def test_get_node_state_servicelight(self): + """ + Test case for get_node_state_servicelight + + + """ + pass + + def test_get_node_state_smartfail(self): + """ + Test case for get_node_state_smartfail + + + """ + pass + + def test_get_node_status(self): + """ + Test case for get_node_status + + + """ + pass + + def test_get_node_status_batterystatus(self): + """ + Test case for get_node_status_batterystatus + + + """ + pass + + def test_list_drives_drive_firmware_update(self): + """ + Test case for list_drives_drive_firmware_update + + + """ + pass + + def test_update_node_state_readonly(self): + """ + Test case for update_node_state_readonly + + + """ + pass + + def test_update_node_state_servicelight(self): + """ + Test case for update_node_state_servicelight + + + """ + pass + + def test_update_node_state_smartfail(self): + """ + Test case for update_node_state_smartfail + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_nodes_available.py b/test/test_cluster_nodes_available.py new file mode 100644 index 000000000..b571af8c7 --- /dev/null +++ b/test/test_cluster_nodes_available.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_nodes_available import ClusterNodesAvailable + + +class TestClusterNodesAvailable(unittest.TestCase): + """ ClusterNodesAvailable unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodesAvailable(self): + """ + Test ClusterNodesAvailable + """ + model = swagger_client.models.cluster_nodes_available.ClusterNodesAvailable() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_nodes_available_node.py b/test/test_cluster_nodes_available_node.py new file mode 100644 index 000000000..fb9aa2aa4 --- /dev/null +++ b/test/test_cluster_nodes_available_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_nodes_available_node import ClusterNodesAvailableNode + + +class TestClusterNodesAvailableNode(unittest.TestCase): + """ ClusterNodesAvailableNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodesAvailableNode(self): + """ + Test ClusterNodesAvailableNode + """ + model = swagger_client.models.cluster_nodes_available_node.ClusterNodesAvailableNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_nodes_error.py b/test/test_cluster_nodes_error.py new file mode 100644 index 000000000..a5fcb49fa --- /dev/null +++ b/test/test_cluster_nodes_error.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_nodes_error import ClusterNodesError + + +class TestClusterNodesError(unittest.TestCase): + """ ClusterNodesError unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodesError(self): + """ + Test ClusterNodesError + """ + model = swagger_client.models.cluster_nodes_error.ClusterNodesError() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_nodes_extended.py b/test/test_cluster_nodes_extended.py new file mode 100644 index 000000000..13f2260de --- /dev/null +++ b/test/test_cluster_nodes_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_nodes_extended import ClusterNodesExtended + + +class TestClusterNodesExtended(unittest.TestCase): + """ ClusterNodesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodesExtended(self): + """ + Test ClusterNodesExtended + """ + model = swagger_client.models.cluster_nodes_extended.ClusterNodesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_nodes_onefs_version.py b/test/test_cluster_nodes_onefs_version.py new file mode 100644 index 000000000..2c0c94ab6 --- /dev/null +++ b/test/test_cluster_nodes_onefs_version.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_nodes_onefs_version import ClusterNodesOnefsVersion + + +class TestClusterNodesOnefsVersion(unittest.TestCase): + """ ClusterNodesOnefsVersion unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterNodesOnefsVersion(self): + """ + Test ClusterNodesOnefsVersion + """ + model = swagger_client.models.cluster_nodes_onefs_version.ClusterNodesOnefsVersion() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_owner.py b/test/test_cluster_owner.py new file mode 100644 index 000000000..9fae24074 --- /dev/null +++ b/test/test_cluster_owner.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_owner import ClusterOwner + + +class TestClusterOwner(unittest.TestCase): + """ ClusterOwner unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterOwner(self): + """ + Test ClusterOwner + """ + model = swagger_client.models.cluster_owner.ClusterOwner() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_patch_patche.py b/test/test_cluster_patch_patche.py new file mode 100644 index 000000000..296c9e516 --- /dev/null +++ b/test/test_cluster_patch_patche.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_patch_patche import ClusterPatchPatche + + +class TestClusterPatchPatche(unittest.TestCase): + """ ClusterPatchPatche unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterPatchPatche(self): + """ + Test ClusterPatchPatche + """ + model = swagger_client.models.cluster_patch_patche.ClusterPatchPatche() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_retry_last_action_item.py b/test/test_cluster_retry_last_action_item.py new file mode 100644 index 000000000..041b9303d --- /dev/null +++ b/test/test_cluster_retry_last_action_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_retry_last_action_item import ClusterRetryLastActionItem + + +class TestClusterRetryLastActionItem(unittest.TestCase): + """ ClusterRetryLastActionItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterRetryLastActionItem(self): + """ + Test ClusterRetryLastActionItem + """ + model = swagger_client.models.cluster_retry_last_action_item.ClusterRetryLastActionItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_statfs.py b/test/test_cluster_statfs.py new file mode 100644 index 000000000..aa0751544 --- /dev/null +++ b/test/test_cluster_statfs.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_statfs import ClusterStatfs + + +class TestClusterStatfs(unittest.TestCase): + """ ClusterStatfs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterStatfs(self): + """ + Test ClusterStatfs + """ + model = swagger_client.models.cluster_statfs.ClusterStatfs() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_time.py b/test/test_cluster_time.py new file mode 100644 index 000000000..14758fbb3 --- /dev/null +++ b/test/test_cluster_time.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_time import ClusterTime + + +class TestClusterTime(unittest.TestCase): + """ ClusterTime unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterTime(self): + """ + Test ClusterTime + """ + model = swagger_client.models.cluster_time.ClusterTime() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_time_error.py b/test/test_cluster_time_error.py new file mode 100644 index 000000000..73b7f9a72 --- /dev/null +++ b/test/test_cluster_time_error.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_time_error import ClusterTimeError + + +class TestClusterTimeError(unittest.TestCase): + """ ClusterTimeError unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterTimeError(self): + """ + Test ClusterTimeError + """ + model = swagger_client.models.cluster_time_error.ClusterTimeError() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_time_extended.py b/test/test_cluster_time_extended.py new file mode 100644 index 000000000..9e1304737 --- /dev/null +++ b/test/test_cluster_time_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_time_extended import ClusterTimeExtended + + +class TestClusterTimeExtended(unittest.TestCase): + """ ClusterTimeExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterTimeExtended(self): + """ + Test ClusterTimeExtended + """ + model = swagger_client.models.cluster_time_extended.ClusterTimeExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_time_node.py b/test/test_cluster_time_node.py new file mode 100644 index 000000000..b8c1d29e5 --- /dev/null +++ b/test/test_cluster_time_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_time_node import ClusterTimeNode + + +class TestClusterTimeNode(unittest.TestCase): + """ ClusterTimeNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterTimeNode(self): + """ + Test ClusterTimeNode + """ + model = swagger_client.models.cluster_time_node.ClusterTimeNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_timezone.py b/test/test_cluster_timezone.py new file mode 100644 index 000000000..259de06d4 --- /dev/null +++ b/test/test_cluster_timezone.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_timezone import ClusterTimezone + + +class TestClusterTimezone(unittest.TestCase): + """ ClusterTimezone unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterTimezone(self): + """ + Test ClusterTimezone + """ + model = swagger_client.models.cluster_timezone.ClusterTimezone() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_timezone_extended.py b/test/test_cluster_timezone_extended.py new file mode 100644 index 000000000..a4f53d0ab --- /dev/null +++ b/test/test_cluster_timezone_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_timezone_extended import ClusterTimezoneExtended + + +class TestClusterTimezoneExtended(unittest.TestCase): + """ ClusterTimezoneExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterTimezoneExtended(self): + """ + Test ClusterTimezoneExtended + """ + model = swagger_client.models.cluster_timezone_extended.ClusterTimezoneExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_upgrade.py b/test/test_cluster_upgrade.py new file mode 100644 index 000000000..5ddeccc99 --- /dev/null +++ b/test/test_cluster_upgrade.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_upgrade import ClusterUpgrade + + +class TestClusterUpgrade(unittest.TestCase): + """ ClusterUpgrade unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterUpgrade(self): + """ + Test ClusterUpgrade + """ + model = swagger_client.models.cluster_upgrade.ClusterUpgrade() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_upgrade_item.py b/test/test_cluster_upgrade_item.py new file mode 100644 index 000000000..04ed20947 --- /dev/null +++ b/test/test_cluster_upgrade_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_upgrade_item import ClusterUpgradeItem + + +class TestClusterUpgradeItem(unittest.TestCase): + """ ClusterUpgradeItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterUpgradeItem(self): + """ + Test ClusterUpgradeItem + """ + model = swagger_client.models.cluster_upgrade_item.ClusterUpgradeItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_version.py b/test/test_cluster_version.py new file mode 100644 index 000000000..841a12c6c --- /dev/null +++ b/test/test_cluster_version.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_version import ClusterVersion + + +class TestClusterVersion(unittest.TestCase): + """ ClusterVersion unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterVersion(self): + """ + Test ClusterVersion + """ + model = swagger_client.models.cluster_version.ClusterVersion() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_cluster_version_node.py b/test/test_cluster_version_node.py new file mode 100644 index 000000000..9cdb7f036 --- /dev/null +++ b/test/test_cluster_version_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.cluster_version_node import ClusterVersionNode + + +class TestClusterVersionNode(unittest.TestCase): + """ ClusterVersionNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClusterVersionNode(self): + """ + Test ClusterVersionNode + """ + model = swagger_client.models.cluster_version_node.ClusterVersionNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_class_active.py b/test/test_compatibilities_class_active.py new file mode 100644 index 000000000..181348bc5 --- /dev/null +++ b/test/test_compatibilities_class_active.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_class_active import CompatibilitiesClassActive + + +class TestCompatibilitiesClassActive(unittest.TestCase): + """ CompatibilitiesClassActive unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesClassActive(self): + """ + Test CompatibilitiesClassActive + """ + model = swagger_client.models.compatibilities_class_active.CompatibilitiesClassActive() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_class_active_active_item.py b/test/test_compatibilities_class_active_active_item.py new file mode 100644 index 000000000..ace11c59f --- /dev/null +++ b/test/test_compatibilities_class_active_active_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_class_active_active_item import CompatibilitiesClassActiveActiveItem + + +class TestCompatibilitiesClassActiveActiveItem(unittest.TestCase): + """ CompatibilitiesClassActiveActiveItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesClassActiveActiveItem(self): + """ + Test CompatibilitiesClassActiveActiveItem + """ + model = swagger_client.models.compatibilities_class_active_active_item.CompatibilitiesClassActiveActiveItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_class_active_extended.py b/test/test_compatibilities_class_active_extended.py new file mode 100644 index 000000000..eae0b8807 --- /dev/null +++ b/test/test_compatibilities_class_active_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_class_active_extended import CompatibilitiesClassActiveExtended + + +class TestCompatibilitiesClassActiveExtended(unittest.TestCase): + """ CompatibilitiesClassActiveExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesClassActiveExtended(self): + """ + Test CompatibilitiesClassActiveExtended + """ + model = swagger_client.models.compatibilities_class_active_extended.CompatibilitiesClassActiveExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_class_active_item.py b/test/test_compatibilities_class_active_item.py new file mode 100644 index 000000000..e96c30160 --- /dev/null +++ b/test/test_compatibilities_class_active_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_class_active_item import CompatibilitiesClassActiveItem + + +class TestCompatibilitiesClassActiveItem(unittest.TestCase): + """ CompatibilitiesClassActiveItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesClassActiveItem(self): + """ + Test CompatibilitiesClassActiveItem + """ + model = swagger_client.models.compatibilities_class_active_item.CompatibilitiesClassActiveItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_class_available.py b/test/test_compatibilities_class_available.py new file mode 100644 index 000000000..18957c6b6 --- /dev/null +++ b/test/test_compatibilities_class_available.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_class_available import CompatibilitiesClassAvailable + + +class TestCompatibilitiesClassAvailable(unittest.TestCase): + """ CompatibilitiesClassAvailable unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesClassAvailable(self): + """ + Test CompatibilitiesClassAvailable + """ + model = swagger_client.models.compatibilities_class_available.CompatibilitiesClassAvailable() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_class_available_available_item.py b/test/test_compatibilities_class_available_available_item.py new file mode 100644 index 000000000..c288ab880 --- /dev/null +++ b/test/test_compatibilities_class_available_available_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_class_available_available_item import CompatibilitiesClassAvailableAvailableItem + + +class TestCompatibilitiesClassAvailableAvailableItem(unittest.TestCase): + """ CompatibilitiesClassAvailableAvailableItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesClassAvailableAvailableItem(self): + """ + Test CompatibilitiesClassAvailableAvailableItem + """ + model = swagger_client.models.compatibilities_class_available_available_item.CompatibilitiesClassAvailableAvailableItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_ssd_active.py b/test/test_compatibilities_ssd_active.py new file mode 100644 index 000000000..7a5f7ecaa --- /dev/null +++ b/test/test_compatibilities_ssd_active.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_ssd_active import CompatibilitiesSsdActive + + +class TestCompatibilitiesSsdActive(unittest.TestCase): + """ CompatibilitiesSsdActive unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesSsdActive(self): + """ + Test CompatibilitiesSsdActive + """ + model = swagger_client.models.compatibilities_ssd_active.CompatibilitiesSsdActive() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_ssd_active_active_item.py b/test/test_compatibilities_ssd_active_active_item.py new file mode 100644 index 000000000..fc6ee1f3c --- /dev/null +++ b/test/test_compatibilities_ssd_active_active_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_ssd_active_active_item import CompatibilitiesSsdActiveActiveItem + + +class TestCompatibilitiesSsdActiveActiveItem(unittest.TestCase): + """ CompatibilitiesSsdActiveActiveItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesSsdActiveActiveItem(self): + """ + Test CompatibilitiesSsdActiveActiveItem + """ + model = swagger_client.models.compatibilities_ssd_active_active_item.CompatibilitiesSsdActiveActiveItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_ssd_active_extended.py b/test/test_compatibilities_ssd_active_extended.py new file mode 100644 index 000000000..f880a0815 --- /dev/null +++ b/test/test_compatibilities_ssd_active_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_ssd_active_extended import CompatibilitiesSsdActiveExtended + + +class TestCompatibilitiesSsdActiveExtended(unittest.TestCase): + """ CompatibilitiesSsdActiveExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesSsdActiveExtended(self): + """ + Test CompatibilitiesSsdActiveExtended + """ + model = swagger_client.models.compatibilities_ssd_active_extended.CompatibilitiesSsdActiveExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_ssd_active_id_params.py b/test/test_compatibilities_ssd_active_id_params.py new file mode 100644 index 000000000..c5b49ac06 --- /dev/null +++ b/test/test_compatibilities_ssd_active_id_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_ssd_active_id_params import CompatibilitiesSsdActiveIdParams + + +class TestCompatibilitiesSsdActiveIdParams(unittest.TestCase): + """ CompatibilitiesSsdActiveIdParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesSsdActiveIdParams(self): + """ + Test CompatibilitiesSsdActiveIdParams + """ + model = swagger_client.models.compatibilities_ssd_active_id_params.CompatibilitiesSsdActiveIdParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_ssd_active_item.py b/test/test_compatibilities_ssd_active_item.py new file mode 100644 index 000000000..3afcbc5e0 --- /dev/null +++ b/test/test_compatibilities_ssd_active_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_ssd_active_item import CompatibilitiesSsdActiveItem + + +class TestCompatibilitiesSsdActiveItem(unittest.TestCase): + """ CompatibilitiesSsdActiveItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesSsdActiveItem(self): + """ + Test CompatibilitiesSsdActiveItem + """ + model = swagger_client.models.compatibilities_ssd_active_item.CompatibilitiesSsdActiveItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_ssd_available.py b/test/test_compatibilities_ssd_available.py new file mode 100644 index 000000000..1166e6092 --- /dev/null +++ b/test/test_compatibilities_ssd_available.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_ssd_available import CompatibilitiesSsdAvailable + + +class TestCompatibilitiesSsdAvailable(unittest.TestCase): + """ CompatibilitiesSsdAvailable unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesSsdAvailable(self): + """ + Test CompatibilitiesSsdAvailable + """ + model = swagger_client.models.compatibilities_ssd_available.CompatibilitiesSsdAvailable() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_compatibilities_ssd_available_available_item.py b/test/test_compatibilities_ssd_available_available_item.py new file mode 100644 index 000000000..00a3e1f29 --- /dev/null +++ b/test/test_compatibilities_ssd_available_available_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.compatibilities_ssd_available_available_item import CompatibilitiesSsdAvailableAvailableItem + + +class TestCompatibilitiesSsdAvailableAvailableItem(unittest.TestCase): + """ CompatibilitiesSsdAvailableAvailableItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompatibilitiesSsdAvailableAvailableItem(self): + """ + Test CompatibilitiesSsdAvailableAvailableItem + """ + model = swagger_client.models.compatibilities_ssd_available_available_item.CompatibilitiesSsdAvailableAvailableItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_antivirus_scan_item_response.py b/test/test_create_antivirus_scan_item_response.py new file mode 100644 index 000000000..d5231fab0 --- /dev/null +++ b/test/test_create_antivirus_scan_item_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_antivirus_scan_item_response import CreateAntivirusScanItemResponse + + +class TestCreateAntivirusScanItemResponse(unittest.TestCase): + """ CreateAntivirusScanItemResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateAntivirusScanItemResponse(self): + """ + Test CreateAntivirusScanItemResponse + """ + model = swagger_client.models.create_antivirus_scan_item_response.CreateAntivirusScanItemResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_auth_refresh_item_response.py b/test/test_create_auth_refresh_item_response.py new file mode 100644 index 000000000..c04290bfa --- /dev/null +++ b/test/test_create_auth_refresh_item_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_auth_refresh_item_response import CreateAuthRefreshItemResponse + + +class TestCreateAuthRefreshItemResponse(unittest.TestCase): + """ CreateAuthRefreshItemResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateAuthRefreshItemResponse(self): + """ + Test CreateAuthRefreshItemResponse + """ + model = swagger_client.models.create_auth_refresh_item_response.CreateAuthRefreshItemResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_cloud_account_response.py b/test/test_create_cloud_account_response.py new file mode 100644 index 000000000..d89a107c6 --- /dev/null +++ b/test/test_create_cloud_account_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_cloud_account_response import CreateCloudAccountResponse + + +class TestCreateCloudAccountResponse(unittest.TestCase): + """ CreateCloudAccountResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCloudAccountResponse(self): + """ + Test CreateCloudAccountResponse + """ + model = swagger_client.models.create_cloud_account_response.CreateCloudAccountResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_cloud_job_response.py b/test/test_create_cloud_job_response.py new file mode 100644 index 000000000..ee55ea396 --- /dev/null +++ b/test/test_create_cloud_job_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_cloud_job_response import CreateCloudJobResponse + + +class TestCreateCloudJobResponse(unittest.TestCase): + """ CreateCloudJobResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCloudJobResponse(self): + """ + Test CreateCloudJobResponse + """ + model = swagger_client.models.create_cloud_job_response.CreateCloudJobResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_cloud_pool_response.py b/test/test_create_cloud_pool_response.py new file mode 100644 index 000000000..ca793c881 --- /dev/null +++ b/test/test_create_cloud_pool_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_cloud_pool_response import CreateCloudPoolResponse + + +class TestCreateCloudPoolResponse(unittest.TestCase): + """ CreateCloudPoolResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCloudPoolResponse(self): + """ + Test CreateCloudPoolResponse + """ + model = swagger_client.models.create_cloud_pool_response.CreateCloudPoolResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_compatibilities_class_active_item_response.py b/test/test_create_compatibilities_class_active_item_response.py new file mode 100644 index 000000000..77a56c008 --- /dev/null +++ b/test/test_create_compatibilities_class_active_item_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_compatibilities_class_active_item_response import CreateCompatibilitiesClassActiveItemResponse + + +class TestCreateCompatibilitiesClassActiveItemResponse(unittest.TestCase): + """ CreateCompatibilitiesClassActiveItemResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCompatibilitiesClassActiveItemResponse(self): + """ + Test CreateCompatibilitiesClassActiveItemResponse + """ + model = swagger_client.models.create_compatibilities_class_active_item_response.CreateCompatibilitiesClassActiveItemResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_compatibilities_class_active_item_response_merge.py b/test/test_create_compatibilities_class_active_item_response_merge.py new file mode 100644 index 000000000..56f5ec60e --- /dev/null +++ b/test/test_create_compatibilities_class_active_item_response_merge.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_compatibilities_class_active_item_response_merge import CreateCompatibilitiesClassActiveItemResponseMerge + + +class TestCreateCompatibilitiesClassActiveItemResponseMerge(unittest.TestCase): + """ CreateCompatibilitiesClassActiveItemResponseMerge unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCompatibilitiesClassActiveItemResponseMerge(self): + """ + Test CreateCompatibilitiesClassActiveItemResponseMerge + """ + model = swagger_client.models.create_compatibilities_class_active_item_response_merge.CreateCompatibilitiesClassActiveItemResponseMerge() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_compatibilities_class_active_item_response_split.py b/test/test_create_compatibilities_class_active_item_response_split.py new file mode 100644 index 000000000..48ab7e93c --- /dev/null +++ b/test/test_create_compatibilities_class_active_item_response_split.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_compatibilities_class_active_item_response_split import CreateCompatibilitiesClassActiveItemResponseSplit + + +class TestCreateCompatibilitiesClassActiveItemResponseSplit(unittest.TestCase): + """ CreateCompatibilitiesClassActiveItemResponseSplit unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCompatibilitiesClassActiveItemResponseSplit(self): + """ + Test CreateCompatibilitiesClassActiveItemResponseSplit + """ + model = swagger_client.models.create_compatibilities_class_active_item_response_split.CreateCompatibilitiesClassActiveItemResponseSplit() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_filepool_policy_response.py b/test/test_create_filepool_policy_response.py new file mode 100644 index 000000000..79f087beb --- /dev/null +++ b/test/test_create_filepool_policy_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_filepool_policy_response import CreateFilepoolPolicyResponse + + +class TestCreateFilepoolPolicyResponse(unittest.TestCase): + """ CreateFilepoolPolicyResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateFilepoolPolicyResponse(self): + """ + Test CreateFilepoolPolicyResponse + """ + model = swagger_client.models.create_filepool_policy_response.CreateFilepoolPolicyResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_hardening_apply_item_response.py b/test/test_create_hardening_apply_item_response.py new file mode 100644 index 000000000..2e7dcadcf --- /dev/null +++ b/test/test_create_hardening_apply_item_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_hardening_apply_item_response import CreateHardeningApplyItemResponse + + +class TestCreateHardeningApplyItemResponse(unittest.TestCase): + """ CreateHardeningApplyItemResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateHardeningApplyItemResponse(self): + """ + Test CreateHardeningApplyItemResponse + """ + model = swagger_client.models.create_hardening_apply_item_response.CreateHardeningApplyItemResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_hardening_resolve_item_response.py b/test/test_create_hardening_resolve_item_response.py new file mode 100644 index 000000000..797d919a6 --- /dev/null +++ b/test/test_create_hardening_resolve_item_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_hardening_resolve_item_response import CreateHardeningResolveItemResponse + + +class TestCreateHardeningResolveItemResponse(unittest.TestCase): + """ CreateHardeningResolveItemResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateHardeningResolveItemResponse(self): + """ + Test CreateHardeningResolveItemResponse + """ + model = swagger_client.models.create_hardening_resolve_item_response.CreateHardeningResolveItemResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_hardening_revert_item_response.py b/test/test_create_hardening_revert_item_response.py new file mode 100644 index 000000000..23fb75673 --- /dev/null +++ b/test/test_create_hardening_revert_item_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_hardening_revert_item_response import CreateHardeningRevertItemResponse + + +class TestCreateHardeningRevertItemResponse(unittest.TestCase): + """ CreateHardeningRevertItemResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateHardeningRevertItemResponse(self): + """ + Test CreateHardeningRevertItemResponse + """ + model = swagger_client.models.create_hardening_revert_item_response.CreateHardeningRevertItemResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_job_job_response.py b/test/test_create_job_job_response.py new file mode 100644 index 000000000..e375b2183 --- /dev/null +++ b/test/test_create_job_job_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_job_job_response import CreateJobJobResponse + + +class TestCreateJobJobResponse(unittest.TestCase): + """ CreateJobJobResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateJobJobResponse(self): + """ + Test CreateJobJobResponse + """ + model = swagger_client.models.create_job_job_response.CreateJobJobResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_nfs_aliase_response.py b/test/test_create_nfs_aliase_response.py new file mode 100644 index 000000000..b5df9f9dd --- /dev/null +++ b/test/test_create_nfs_aliase_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_nfs_aliase_response import CreateNfsAliaseResponse + + +class TestCreateNfsAliaseResponse(unittest.TestCase): + """ CreateNfsAliaseResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateNfsAliaseResponse(self): + """ + Test CreateNfsAliaseResponse + """ + model = swagger_client.models.create_nfs_aliase_response.CreateNfsAliaseResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_nfs_nlm_sessions_check_item_response.py b/test/test_create_nfs_nlm_sessions_check_item_response.py new file mode 100644 index 000000000..a6e03b293 --- /dev/null +++ b/test/test_create_nfs_nlm_sessions_check_item_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_nfs_nlm_sessions_check_item_response import CreateNfsNlmSessionsCheckItemResponse + + +class TestCreateNfsNlmSessionsCheckItemResponse(unittest.TestCase): + """ CreateNfsNlmSessionsCheckItemResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateNfsNlmSessionsCheckItemResponse(self): + """ + Test CreateNfsNlmSessionsCheckItemResponse + """ + model = swagger_client.models.create_nfs_nlm_sessions_check_item_response.CreateNfsNlmSessionsCheckItemResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_quota_report_response.py b/test/test_create_quota_report_response.py new file mode 100644 index 000000000..6c8a8daa9 --- /dev/null +++ b/test/test_create_quota_report_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_quota_report_response import CreateQuotaReportResponse + + +class TestCreateQuotaReportResponse(unittest.TestCase): + """ CreateQuotaReportResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateQuotaReportResponse(self): + """ + Test CreateQuotaReportResponse + """ + model = swagger_client.models.create_quota_report_response.CreateQuotaReportResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_response.py b/test/test_create_response.py new file mode 100644 index 000000000..0cd7f9c55 --- /dev/null +++ b/test/test_create_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_response import CreateResponse + + +class TestCreateResponse(unittest.TestCase): + """ CreateResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateResponse(self): + """ + Test CreateResponse + """ + model = swagger_client.models.create_response.CreateResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_snapshot_aliase_response.py b/test/test_create_snapshot_aliase_response.py new file mode 100644 index 000000000..e86dd5216 --- /dev/null +++ b/test/test_create_snapshot_aliase_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_snapshot_aliase_response import CreateSnapshotAliaseResponse + + +class TestCreateSnapshotAliaseResponse(unittest.TestCase): + """ CreateSnapshotAliaseResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateSnapshotAliaseResponse(self): + """ + Test CreateSnapshotAliaseResponse + """ + model = swagger_client.models.create_snapshot_aliase_response.CreateSnapshotAliaseResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_snapshot_changelist_response.py b/test/test_create_snapshot_changelist_response.py new file mode 100644 index 000000000..0e387550f --- /dev/null +++ b/test/test_create_snapshot_changelist_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_snapshot_changelist_response import CreateSnapshotChangelistResponse + + +class TestCreateSnapshotChangelistResponse(unittest.TestCase): + """ CreateSnapshotChangelistResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateSnapshotChangelistResponse(self): + """ + Test CreateSnapshotChangelistResponse + """ + model = swagger_client.models.create_snapshot_changelist_response.CreateSnapshotChangelistResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_snapshot_lock_response.py b/test/test_create_snapshot_lock_response.py new file mode 100644 index 000000000..197f55941 --- /dev/null +++ b/test/test_create_snapshot_lock_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_snapshot_lock_response import CreateSnapshotLockResponse + + +class TestCreateSnapshotLockResponse(unittest.TestCase): + """ CreateSnapshotLockResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateSnapshotLockResponse(self): + """ + Test CreateSnapshotLockResponse + """ + model = swagger_client.models.create_snapshot_lock_response.CreateSnapshotLockResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_snapshot_repstate_response.py b/test/test_create_snapshot_repstate_response.py new file mode 100644 index 000000000..7bb573719 --- /dev/null +++ b/test/test_create_snapshot_repstate_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_snapshot_repstate_response import CreateSnapshotRepstateResponse + + +class TestCreateSnapshotRepstateResponse(unittest.TestCase): + """ CreateSnapshotRepstateResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateSnapshotRepstateResponse(self): + """ + Test CreateSnapshotRepstateResponse + """ + model = swagger_client.models.create_snapshot_repstate_response.CreateSnapshotRepstateResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_snapshot_schedule_response.py b/test/test_create_snapshot_schedule_response.py new file mode 100644 index 000000000..87156ad61 --- /dev/null +++ b/test/test_create_snapshot_schedule_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_snapshot_schedule_response import CreateSnapshotScheduleResponse + + +class TestCreateSnapshotScheduleResponse(unittest.TestCase): + """ CreateSnapshotScheduleResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateSnapshotScheduleResponse(self): + """ + Test CreateSnapshotScheduleResponse + """ + model = swagger_client.models.create_snapshot_schedule_response.CreateSnapshotScheduleResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_snapshot_snapshot_response.py b/test/test_create_snapshot_snapshot_response.py new file mode 100644 index 000000000..5e60d437d --- /dev/null +++ b/test/test_create_snapshot_snapshot_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_snapshot_snapshot_response import CreateSnapshotSnapshotResponse + + +class TestCreateSnapshotSnapshotResponse(unittest.TestCase): + """ CreateSnapshotSnapshotResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateSnapshotSnapshotResponse(self): + """ + Test CreateSnapshotSnapshotResponse + """ + model = swagger_client.models.create_snapshot_snapshot_response.CreateSnapshotSnapshotResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_storagepool_tier_response.py b/test/test_create_storagepool_tier_response.py new file mode 100644 index 000000000..4a9b8c780 --- /dev/null +++ b/test/test_create_storagepool_tier_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_storagepool_tier_response import CreateStoragepoolTierResponse + + +class TestCreateStoragepoolTierResponse(unittest.TestCase): + """ CreateStoragepoolTierResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateStoragepoolTierResponse(self): + """ + Test CreateStoragepoolTierResponse + """ + model = swagger_client.models.create_storagepool_tier_response.CreateStoragepoolTierResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_sync_reports_rotate_item_response.py b/test/test_create_sync_reports_rotate_item_response.py new file mode 100644 index 000000000..1ecd9de18 --- /dev/null +++ b/test/test_create_sync_reports_rotate_item_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_sync_reports_rotate_item_response import CreateSyncReportsRotateItemResponse + + +class TestCreateSyncReportsRotateItemResponse(unittest.TestCase): + """ CreateSyncReportsRotateItemResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateSyncReportsRotateItemResponse(self): + """ + Test CreateSyncReportsRotateItemResponse + """ + model = swagger_client.models.create_sync_reports_rotate_item_response.CreateSyncReportsRotateItemResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_create_worm_domain_response.py b/test/test_create_worm_domain_response.py new file mode 100644 index 000000000..fa085339a --- /dev/null +++ b/test/test_create_worm_domain_response.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.create_worm_domain_response import CreateWormDomainResponse + + +class TestCreateWormDomainResponse(unittest.TestCase): + """ CreateWormDomainResponse unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateWormDomainResponse(self): + """ + Test CreateWormDomainResponse + """ + model = swagger_client.models.create_worm_domain_response.CreateWormDomainResponse() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_debug_api.py b/test/test_debug_api.py new file mode 100644 index 000000000..103d7cfe7 --- /dev/null +++ b/test/test_debug_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.debug_api import DebugApi + + +class TestDebugApi(unittest.TestCase): + """ DebugApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.debug_api.DebugApi() + + def tearDown(self): + pass + + def test_delete_debug_stats(self): + """ + Test case for delete_debug_stats + + + """ + pass + + def test_get_debug_stats(self): + """ + Test case for get_debug_stats + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_debug_stats.py b/test/test_debug_stats.py new file mode 100644 index 000000000..56f7bda11 --- /dev/null +++ b/test/test_debug_stats.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.debug_stats import DebugStats + + +class TestDebugStats(unittest.TestCase): + """ DebugStats unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDebugStats(self): + """ + Test DebugStats + """ + model = swagger_client.models.debug_stats.DebugStats() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_debug_stats_handler.py b/test/test_debug_stats_handler.py new file mode 100644 index 000000000..bcdf9a458 --- /dev/null +++ b/test/test_debug_stats_handler.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.debug_stats_handler import DebugStatsHandler + + +class TestDebugStatsHandler(unittest.TestCase): + """ DebugStatsHandler unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDebugStatsHandler(self): + """ + Test DebugStatsHandler + """ + model = swagger_client.models.debug_stats_handler.DebugStatsHandler() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_debug_stats_unknown.py b/test/test_debug_stats_unknown.py new file mode 100644 index 000000000..8e1682e0a --- /dev/null +++ b/test/test_debug_stats_unknown.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.debug_stats_unknown import DebugStatsUnknown + + +class TestDebugStatsUnknown(unittest.TestCase): + """ DebugStatsUnknown unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDebugStatsUnknown(self): + """ + Test DebugStatsUnknown + """ + model = swagger_client.models.debug_stats_unknown.DebugStatsUnknown() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_api.py b/test/test_dedupe_api.py new file mode 100644 index 000000000..edc90110c --- /dev/null +++ b/test/test_dedupe_api.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.dedupe_api import DedupeApi + + +class TestDedupeApi(unittest.TestCase): + """ DedupeApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.dedupe_api.DedupeApi() + + def tearDown(self): + pass + + def test_get_dedupe_dedupe_summary(self): + """ + Test case for get_dedupe_dedupe_summary + + + """ + pass + + def test_get_dedupe_report(self): + """ + Test case for get_dedupe_report + + + """ + pass + + def test_get_dedupe_reports(self): + """ + Test case for get_dedupe_reports + + + """ + pass + + def test_get_dedupe_settings(self): + """ + Test case for get_dedupe_settings + + + """ + pass + + def test_update_dedupe_settings(self): + """ + Test case for update_dedupe_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_dedupe_summary.py b/test/test_dedupe_dedupe_summary.py new file mode 100644 index 000000000..98bd03dc1 --- /dev/null +++ b/test/test_dedupe_dedupe_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_dedupe_summary import DedupeDedupeSummary + + +class TestDedupeDedupeSummary(unittest.TestCase): + """ DedupeDedupeSummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeDedupeSummary(self): + """ + Test DedupeDedupeSummary + """ + model = swagger_client.models.dedupe_dedupe_summary.DedupeDedupeSummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_dedupe_summary_summary.py b/test/test_dedupe_dedupe_summary_summary.py new file mode 100644 index 000000000..1bd03563b --- /dev/null +++ b/test/test_dedupe_dedupe_summary_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_dedupe_summary_summary import DedupeDedupeSummarySummary + + +class TestDedupeDedupeSummarySummary(unittest.TestCase): + """ DedupeDedupeSummarySummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeDedupeSummarySummary(self): + """ + Test DedupeDedupeSummarySummary + """ + model = swagger_client.models.dedupe_dedupe_summary_summary.DedupeDedupeSummarySummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_report.py b/test/test_dedupe_report.py new file mode 100644 index 000000000..42a0f3a77 --- /dev/null +++ b/test/test_dedupe_report.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_report import DedupeReport + + +class TestDedupeReport(unittest.TestCase): + """ DedupeReport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeReport(self): + """ + Test DedupeReport + """ + model = swagger_client.models.dedupe_report.DedupeReport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_report_extended.py b/test/test_dedupe_report_extended.py new file mode 100644 index 000000000..0cd9e32b8 --- /dev/null +++ b/test/test_dedupe_report_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_report_extended import DedupeReportExtended + + +class TestDedupeReportExtended(unittest.TestCase): + """ DedupeReportExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeReportExtended(self): + """ + Test DedupeReportExtended + """ + model = swagger_client.models.dedupe_report_extended.DedupeReportExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_reports.py b/test/test_dedupe_reports.py new file mode 100644 index 000000000..6daf4b2c5 --- /dev/null +++ b/test/test_dedupe_reports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_reports import DedupeReports + + +class TestDedupeReports(unittest.TestCase): + """ DedupeReports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeReports(self): + """ + Test DedupeReports + """ + model = swagger_client.models.dedupe_reports.DedupeReports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_reports_extended.py b/test/test_dedupe_reports_extended.py new file mode 100644 index 000000000..f42358fe3 --- /dev/null +++ b/test/test_dedupe_reports_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_reports_extended import DedupeReportsExtended + + +class TestDedupeReportsExtended(unittest.TestCase): + """ DedupeReportsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeReportsExtended(self): + """ + Test DedupeReportsExtended + """ + model = swagger_client.models.dedupe_reports_extended.DedupeReportsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_settings.py b/test/test_dedupe_settings.py new file mode 100644 index 000000000..fd222a43a --- /dev/null +++ b/test/test_dedupe_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_settings import DedupeSettings + + +class TestDedupeSettings(unittest.TestCase): + """ DedupeSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeSettings(self): + """ + Test DedupeSettings + """ + model = swagger_client.models.dedupe_settings.DedupeSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_settings_extended.py b/test/test_dedupe_settings_extended.py new file mode 100644 index 000000000..4943fb59b --- /dev/null +++ b/test/test_dedupe_settings_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_settings_extended import DedupeSettingsExtended + + +class TestDedupeSettingsExtended(unittest.TestCase): + """ DedupeSettingsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeSettingsExtended(self): + """ + Test DedupeSettingsExtended + """ + model = swagger_client.models.dedupe_settings_extended.DedupeSettingsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_dedupe_settings_settings.py b/test/test_dedupe_settings_settings.py new file mode 100644 index 000000000..c30452c83 --- /dev/null +++ b/test/test_dedupe_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.dedupe_settings_settings import DedupeSettingsSettings + + +class TestDedupeSettingsSettings(unittest.TestCase): + """ DedupeSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDedupeSettingsSettings(self): + """ + Test DedupeSettingsSettings + """ + model = swagger_client.models.dedupe_settings_settings.DedupeSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_firmware.py b/test/test_drives_drive_firmware.py new file mode 100644 index 000000000..8af87f1d0 --- /dev/null +++ b/test/test_drives_drive_firmware.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_firmware import DrivesDriveFirmware + + +class TestDrivesDriveFirmware(unittest.TestCase): + """ DrivesDriveFirmware unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDriveFirmware(self): + """ + Test DrivesDriveFirmware + """ + model = swagger_client.models.drives_drive_firmware.DrivesDriveFirmware() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_firmware_node.py b/test/test_drives_drive_firmware_node.py new file mode 100644 index 000000000..5d862d327 --- /dev/null +++ b/test/test_drives_drive_firmware_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_firmware_node import DrivesDriveFirmwareNode + + +class TestDrivesDriveFirmwareNode(unittest.TestCase): + """ DrivesDriveFirmwareNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDriveFirmwareNode(self): + """ + Test DrivesDriveFirmwareNode + """ + model = swagger_client.models.drives_drive_firmware_node.DrivesDriveFirmwareNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_firmware_node_drive.py b/test/test_drives_drive_firmware_node_drive.py new file mode 100644 index 000000000..2e8a30494 --- /dev/null +++ b/test/test_drives_drive_firmware_node_drive.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_firmware_node_drive import DrivesDriveFirmwareNodeDrive + + +class TestDrivesDriveFirmwareNodeDrive(unittest.TestCase): + """ DrivesDriveFirmwareNodeDrive unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDriveFirmwareNodeDrive(self): + """ + Test DrivesDriveFirmwareNodeDrive + """ + model = swagger_client.models.drives_drive_firmware_node_drive.DrivesDriveFirmwareNodeDrive() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_firmware_update.py b/test/test_drives_drive_firmware_update.py new file mode 100644 index 000000000..6b22e54d9 --- /dev/null +++ b/test/test_drives_drive_firmware_update.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_firmware_update import DrivesDriveFirmwareUpdate + + +class TestDrivesDriveFirmwareUpdate(unittest.TestCase): + """ DrivesDriveFirmwareUpdate unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDriveFirmwareUpdate(self): + """ + Test DrivesDriveFirmwareUpdate + """ + model = swagger_client.models.drives_drive_firmware_update.DrivesDriveFirmwareUpdate() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_firmware_update_item.py b/test/test_drives_drive_firmware_update_item.py new file mode 100644 index 000000000..51a013174 --- /dev/null +++ b/test/test_drives_drive_firmware_update_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_firmware_update_item import DrivesDriveFirmwareUpdateItem + + +class TestDrivesDriveFirmwareUpdateItem(unittest.TestCase): + """ DrivesDriveFirmwareUpdateItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDriveFirmwareUpdateItem(self): + """ + Test DrivesDriveFirmwareUpdateItem + """ + model = swagger_client.models.drives_drive_firmware_update_item.DrivesDriveFirmwareUpdateItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_firmware_update_node.py b/test/test_drives_drive_firmware_update_node.py new file mode 100644 index 000000000..e22da4dff --- /dev/null +++ b/test/test_drives_drive_firmware_update_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_firmware_update_node import DrivesDriveFirmwareUpdateNode + + +class TestDrivesDriveFirmwareUpdateNode(unittest.TestCase): + """ DrivesDriveFirmwareUpdateNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDriveFirmwareUpdateNode(self): + """ + Test DrivesDriveFirmwareUpdateNode + """ + model = swagger_client.models.drives_drive_firmware_update_node.DrivesDriveFirmwareUpdateNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_firmware_update_node_status.py b/test/test_drives_drive_firmware_update_node_status.py new file mode 100644 index 000000000..41efe4db3 --- /dev/null +++ b/test/test_drives_drive_firmware_update_node_status.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_firmware_update_node_status import DrivesDriveFirmwareUpdateNodeStatus + + +class TestDrivesDriveFirmwareUpdateNodeStatus(unittest.TestCase): + """ DrivesDriveFirmwareUpdateNodeStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDriveFirmwareUpdateNodeStatus(self): + """ + Test DrivesDriveFirmwareUpdateNodeStatus + """ + model = swagger_client.models.drives_drive_firmware_update_node_status.DrivesDriveFirmwareUpdateNodeStatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_format_item.py b/test/test_drives_drive_format_item.py new file mode 100644 index 000000000..e55a88727 --- /dev/null +++ b/test/test_drives_drive_format_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_format_item import DrivesDriveFormatItem + + +class TestDrivesDriveFormatItem(unittest.TestCase): + """ DrivesDriveFormatItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDriveFormatItem(self): + """ + Test DrivesDriveFormatItem + """ + model = swagger_client.models.drives_drive_format_item.DrivesDriveFormatItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_drives_drive_purpose_item.py b/test/test_drives_drive_purpose_item.py new file mode 100644 index 000000000..1711a5a61 --- /dev/null +++ b/test/test_drives_drive_purpose_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.drives_drive_purpose_item import DrivesDrivePurposeItem + + +class TestDrivesDrivePurposeItem(unittest.TestCase): + """ DrivesDrivePurposeItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDrivesDrivePurposeItem(self): + """ + Test DrivesDrivePurposeItem + """ + model = swagger_client.models.drives_drive_purpose_item.DrivesDrivePurposeItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_empty.py b/test/test_empty.py new file mode 100644 index 000000000..3d0f04c93 --- /dev/null +++ b/test/test_empty.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.empty import Empty + + +class TestEmpty(unittest.TestCase): + """ Empty unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEmpty(self): + """ + Test Empty + """ + model = swagger_client.models.empty.Empty() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_error.py b/test/test_error.py new file mode 100644 index 000000000..4b505fc7e --- /dev/null +++ b/test/test_error.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.error import Error + + +class TestError(unittest.TestCase): + """ Error unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testError(self): + """ + Test Error + """ + model = swagger_client.models.error.Error() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_alert_condition.py b/test/test_event_alert_condition.py new file mode 100644 index 000000000..06bbf610d --- /dev/null +++ b/test/test_event_alert_condition.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_alert_condition import EventAlertCondition + + +class TestEventAlertCondition(unittest.TestCase): + """ EventAlertCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventAlertCondition(self): + """ + Test EventAlertCondition + """ + model = swagger_client.models.event_alert_condition.EventAlertCondition() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_alert_conditions.py b/test/test_event_alert_conditions.py new file mode 100644 index 000000000..0dda4a52d --- /dev/null +++ b/test/test_event_alert_conditions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_alert_conditions import EventAlertConditions + + +class TestEventAlertConditions(unittest.TestCase): + """ EventAlertConditions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventAlertConditions(self): + """ + Test EventAlertConditions + """ + model = swagger_client.models.event_alert_conditions.EventAlertConditions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_alert_conditions_alert_condition.py b/test/test_event_alert_conditions_alert_condition.py new file mode 100644 index 000000000..c949a1f8f --- /dev/null +++ b/test/test_event_alert_conditions_alert_condition.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_alert_conditions_alert_condition import EventAlertConditionsAlertCondition + + +class TestEventAlertConditionsAlertCondition(unittest.TestCase): + """ EventAlertConditionsAlertCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventAlertConditionsAlertCondition(self): + """ + Test EventAlertConditionsAlertCondition + """ + model = swagger_client.models.event_alert_conditions_alert_condition.EventAlertConditionsAlertCondition() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_alert_conditions_extended.py b/test/test_event_alert_conditions_extended.py new file mode 100644 index 000000000..c92c94dcb --- /dev/null +++ b/test/test_event_alert_conditions_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_alert_conditions_extended import EventAlertConditionsExtended + + +class TestEventAlertConditionsExtended(unittest.TestCase): + """ EventAlertConditionsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventAlertConditionsExtended(self): + """ + Test EventAlertConditionsExtended + """ + model = swagger_client.models.event_alert_conditions_extended.EventAlertConditionsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_api.py b/test/test_event_api.py new file mode 100644 index 000000000..2d367a25e --- /dev/null +++ b/test/test_event_api.py @@ -0,0 +1,235 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.event_api import EventApi + + +class TestEventApi(unittest.TestCase): + """ EventApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.event_api.EventApi() + + def tearDown(self): + pass + + def test_create_event_alert_condition(self): + """ + Test case for create_event_alert_condition + + + """ + pass + + def test_create_event_channel(self): + """ + Test case for create_event_channel + + + """ + pass + + def test_create_event_event(self): + """ + Test case for create_event_event + + + """ + pass + + def test_delete_event_alert_condition(self): + """ + Test case for delete_event_alert_condition + + + """ + pass + + def test_delete_event_alert_conditions(self): + """ + Test case for delete_event_alert_conditions + + + """ + pass + + def test_delete_event_channel(self): + """ + Test case for delete_event_channel + + + """ + pass + + def test_get_event_alert_condition(self): + """ + Test case for get_event_alert_condition + + + """ + pass + + def test_get_event_categories(self): + """ + Test case for get_event_categories + + + """ + pass + + def test_get_event_category(self): + """ + Test case for get_event_category + + + """ + pass + + def test_get_event_channel(self): + """ + Test case for get_event_channel + + + """ + pass + + def test_get_event_eventgroup_definition(self): + """ + Test case for get_event_eventgroup_definition + + + """ + pass + + def test_get_event_eventgroup_definitions(self): + """ + Test case for get_event_eventgroup_definitions + + + """ + pass + + def test_get_event_eventgroup_occurrence(self): + """ + Test case for get_event_eventgroup_occurrence + + + """ + pass + + def test_get_event_eventgroup_occurrences(self): + """ + Test case for get_event_eventgroup_occurrences + + + """ + pass + + def test_get_event_eventlist(self): + """ + Test case for get_event_eventlist + + + """ + pass + + def test_get_event_eventlists(self): + """ + Test case for get_event_eventlists + + + """ + pass + + def test_get_event_settings(self): + """ + Test case for get_event_settings + + + """ + pass + + def test_list_event_alert_conditions(self): + """ + Test case for list_event_alert_conditions + + + """ + pass + + def test_list_event_channels(self): + """ + Test case for list_event_channels + + + """ + pass + + def test_update_event_alert_condition(self): + """ + Test case for update_event_alert_condition + + + """ + pass + + def test_update_event_channel(self): + """ + Test case for update_event_channel + + + """ + pass + + def test_update_event_eventgroup_occurrence(self): + """ + Test case for update_event_eventgroup_occurrence + + + """ + pass + + def test_update_event_eventgroup_occurrences(self): + """ + Test case for update_event_eventgroup_occurrences + + + """ + pass + + def test_update_event_settings(self): + """ + Test case for update_event_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_categories.py b/test/test_event_categories.py new file mode 100644 index 000000000..776877226 --- /dev/null +++ b/test/test_event_categories.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_categories import EventCategories + + +class TestEventCategories(unittest.TestCase): + """ EventCategories unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventCategories(self): + """ + Test EventCategories + """ + model = swagger_client.models.event_categories.EventCategories() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_categories_extended.py b/test/test_event_categories_extended.py new file mode 100644 index 000000000..5fe697620 --- /dev/null +++ b/test/test_event_categories_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_categories_extended import EventCategoriesExtended + + +class TestEventCategoriesExtended(unittest.TestCase): + """ EventCategoriesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventCategoriesExtended(self): + """ + Test EventCategoriesExtended + """ + model = swagger_client.models.event_categories_extended.EventCategoriesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_category.py b/test/test_event_category.py new file mode 100644 index 000000000..49c74f2e5 --- /dev/null +++ b/test/test_event_category.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_category import EventCategory + + +class TestEventCategory(unittest.TestCase): + """ EventCategory unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventCategory(self): + """ + Test EventCategory + """ + model = swagger_client.models.event_category.EventCategory() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_channel.py b/test/test_event_channel.py new file mode 100644 index 000000000..e36989f63 --- /dev/null +++ b/test/test_event_channel.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_channel import EventChannel + + +class TestEventChannel(unittest.TestCase): + """ EventChannel unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventChannel(self): + """ + Test EventChannel + """ + model = swagger_client.models.event_channel.EventChannel() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_channel_parameters.py b/test/test_event_channel_parameters.py new file mode 100644 index 000000000..2fbe9ab63 --- /dev/null +++ b/test/test_event_channel_parameters.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_channel_parameters import EventChannelParameters + + +class TestEventChannelParameters(unittest.TestCase): + """ EventChannelParameters unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventChannelParameters(self): + """ + Test EventChannelParameters + """ + model = swagger_client.models.event_channel_parameters.EventChannelParameters() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_channels.py b/test/test_event_channels.py new file mode 100644 index 000000000..510b6674b --- /dev/null +++ b/test/test_event_channels.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_channels import EventChannels + + +class TestEventChannels(unittest.TestCase): + """ EventChannels unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventChannels(self): + """ + Test EventChannels + """ + model = swagger_client.models.event_channels.EventChannels() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_channels_alert_condition.py b/test/test_event_channels_alert_condition.py new file mode 100644 index 000000000..c9b00ffc0 --- /dev/null +++ b/test/test_event_channels_alert_condition.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_channels_alert_condition import EventChannelsAlertCondition + + +class TestEventChannelsAlertCondition(unittest.TestCase): + """ EventChannelsAlertCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventChannelsAlertCondition(self): + """ + Test EventChannelsAlertCondition + """ + model = swagger_client.models.event_channels_alert_condition.EventChannelsAlertCondition() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_channels_extended.py b/test/test_event_channels_extended.py new file mode 100644 index 000000000..27a0498fe --- /dev/null +++ b/test/test_event_channels_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_channels_extended import EventChannelsExtended + + +class TestEventChannelsExtended(unittest.TestCase): + """ EventChannelsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventChannelsExtended(self): + """ + Test EventChannelsExtended + """ + model = swagger_client.models.event_channels_extended.EventChannelsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_event.py b/test/test_event_event.py new file mode 100644 index 000000000..25f596ffb --- /dev/null +++ b/test/test_event_event.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_event import EventEvent + + +class TestEventEvent(unittest.TestCase): + """ EventEvent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEvent(self): + """ + Test EventEvent + """ + model = swagger_client.models.event_event.EventEvent() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventgroup_definitions.py b/test/test_event_eventgroup_definitions.py new file mode 100644 index 000000000..ae0381aa2 --- /dev/null +++ b/test/test_event_eventgroup_definitions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventgroup_definitions import EventEventgroupDefinitions + + +class TestEventEventgroupDefinitions(unittest.TestCase): + """ EventEventgroupDefinitions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventgroupDefinitions(self): + """ + Test EventEventgroupDefinitions + """ + model = swagger_client.models.event_eventgroup_definitions.EventEventgroupDefinitions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventgroup_definitions_eventgroup_definition.py b/test/test_event_eventgroup_definitions_eventgroup_definition.py new file mode 100644 index 000000000..e2af8dd04 --- /dev/null +++ b/test/test_event_eventgroup_definitions_eventgroup_definition.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventgroup_definitions_eventgroup_definition import EventEventgroupDefinitionsEventgroupDefinition + + +class TestEventEventgroupDefinitionsEventgroupDefinition(unittest.TestCase): + """ EventEventgroupDefinitionsEventgroupDefinition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventgroupDefinitionsEventgroupDefinition(self): + """ + Test EventEventgroupDefinitionsEventgroupDefinition + """ + model = swagger_client.models.event_eventgroup_definitions_eventgroup_definition.EventEventgroupDefinitionsEventgroupDefinition() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventgroup_definitions_extended.py b/test/test_event_eventgroup_definitions_extended.py new file mode 100644 index 000000000..57fde1e33 --- /dev/null +++ b/test/test_event_eventgroup_definitions_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventgroup_definitions_extended import EventEventgroupDefinitionsExtended + + +class TestEventEventgroupDefinitionsExtended(unittest.TestCase): + """ EventEventgroupDefinitionsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventgroupDefinitionsExtended(self): + """ + Test EventEventgroupDefinitionsExtended + """ + model = swagger_client.models.event_eventgroup_definitions_extended.EventEventgroupDefinitionsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventgroup_occurrence.py b/test/test_event_eventgroup_occurrence.py new file mode 100644 index 000000000..fc2f128e2 --- /dev/null +++ b/test/test_event_eventgroup_occurrence.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventgroup_occurrence import EventEventgroupOccurrence + + +class TestEventEventgroupOccurrence(unittest.TestCase): + """ EventEventgroupOccurrence unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventgroupOccurrence(self): + """ + Test EventEventgroupOccurrence + """ + model = swagger_client.models.event_eventgroup_occurrence.EventEventgroupOccurrence() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventgroup_occurrences.py b/test/test_event_eventgroup_occurrences.py new file mode 100644 index 000000000..7e4e32f51 --- /dev/null +++ b/test/test_event_eventgroup_occurrences.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventgroup_occurrences import EventEventgroupOccurrences + + +class TestEventEventgroupOccurrences(unittest.TestCase): + """ EventEventgroupOccurrences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventgroupOccurrences(self): + """ + Test EventEventgroupOccurrences + """ + model = swagger_client.models.event_eventgroup_occurrences.EventEventgroupOccurrences() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventgroup_occurrences_eventgroup_occurrence.py b/test/test_event_eventgroup_occurrences_eventgroup_occurrence.py new file mode 100644 index 000000000..1d1a009ea --- /dev/null +++ b/test/test_event_eventgroup_occurrences_eventgroup_occurrence.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventgroup_occurrences_eventgroup_occurrence import EventEventgroupOccurrencesEventgroupOccurrence + + +class TestEventEventgroupOccurrencesEventgroupOccurrence(unittest.TestCase): + """ EventEventgroupOccurrencesEventgroupOccurrence unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventgroupOccurrencesEventgroupOccurrence(self): + """ + Test EventEventgroupOccurrencesEventgroupOccurrence + """ + model = swagger_client.models.event_eventgroup_occurrences_eventgroup_occurrence.EventEventgroupOccurrencesEventgroupOccurrence() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventgroup_occurrences_extended.py b/test/test_event_eventgroup_occurrences_extended.py new file mode 100644 index 000000000..ecd4100cf --- /dev/null +++ b/test/test_event_eventgroup_occurrences_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventgroup_occurrences_extended import EventEventgroupOccurrencesExtended + + +class TestEventEventgroupOccurrencesExtended(unittest.TestCase): + """ EventEventgroupOccurrencesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventgroupOccurrencesExtended(self): + """ + Test EventEventgroupOccurrencesExtended + """ + model = swagger_client.models.event_eventgroup_occurrences_extended.EventEventgroupOccurrencesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventlists.py b/test/test_event_eventlists.py new file mode 100644 index 000000000..c6cfdaf56 --- /dev/null +++ b/test/test_event_eventlists.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventlists import EventEventlists + + +class TestEventEventlists(unittest.TestCase): + """ EventEventlists unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventlists(self): + """ + Test EventEventlists + """ + model = swagger_client.models.event_eventlists.EventEventlists() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventlists_eventlist_item.py b/test/test_event_eventlists_eventlist_item.py new file mode 100644 index 000000000..de66deee5 --- /dev/null +++ b/test/test_event_eventlists_eventlist_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventlists_eventlist_item import EventEventlistsEventlistItem + + +class TestEventEventlistsEventlistItem(unittest.TestCase): + """ EventEventlistsEventlistItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventlistsEventlistItem(self): + """ + Test EventEventlistsEventlistItem + """ + model = swagger_client.models.event_eventlists_eventlist_item.EventEventlistsEventlistItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventlists_eventlist_item_event.py b/test/test_event_eventlists_eventlist_item_event.py new file mode 100644 index 000000000..ca069a763 --- /dev/null +++ b/test/test_event_eventlists_eventlist_item_event.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventlists_eventlist_item_event import EventEventlistsEventlistItemEvent + + +class TestEventEventlistsEventlistItemEvent(unittest.TestCase): + """ EventEventlistsEventlistItemEvent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventlistsEventlistItemEvent(self): + """ + Test EventEventlistsEventlistItemEvent + """ + model = swagger_client.models.event_eventlists_eventlist_item_event.EventEventlistsEventlistItemEvent() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_eventlists_extended.py b/test/test_event_eventlists_extended.py new file mode 100644 index 000000000..b4458444e --- /dev/null +++ b/test/test_event_eventlists_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_eventlists_extended import EventEventlistsExtended + + +class TestEventEventlistsExtended(unittest.TestCase): + """ EventEventlistsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventEventlistsExtended(self): + """ + Test EventEventlistsExtended + """ + model = swagger_client.models.event_eventlists_extended.EventEventlistsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_settings.py b/test/test_event_settings.py new file mode 100644 index 000000000..e1584fe6b --- /dev/null +++ b/test/test_event_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_settings import EventSettings + + +class TestEventSettings(unittest.TestCase): + """ EventSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventSettings(self): + """ + Test EventSettings + """ + model = swagger_client.models.event_settings.EventSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_event_settings_maintenance.py b/test/test_event_settings_maintenance.py new file mode 100644 index 000000000..acda44e7d --- /dev/null +++ b/test/test_event_settings_maintenance.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.event_settings_maintenance import EventSettingsMaintenance + + +class TestEventSettingsMaintenance(unittest.TestCase): + """ EventSettingsMaintenance unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventSettingsMaintenance(self): + """ + Test EventSettingsMaintenance + """ + model = swagger_client.models.event_settings_maintenance.EventSettingsMaintenance() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_file_filter_api.py b/test/test_file_filter_api.py new file mode 100644 index 000000000..74676369d --- /dev/null +++ b/test/test_file_filter_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.file_filter_api import FileFilterApi + + +class TestFileFilterApi(unittest.TestCase): + """ FileFilterApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.file_filter_api.FileFilterApi() + + def tearDown(self): + pass + + def test_get_file_filter_settings(self): + """ + Test case for get_file_filter_settings + + + """ + pass + + def test_update_file_filter_settings(self): + """ + Test case for update_file_filter_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_file_filter_settings.py b/test/test_file_filter_settings.py new file mode 100644 index 000000000..4967cd6b7 --- /dev/null +++ b/test/test_file_filter_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.file_filter_settings import FileFilterSettings + + +class TestFileFilterSettings(unittest.TestCase): + """ FileFilterSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFileFilterSettings(self): + """ + Test FileFilterSettings + """ + model = swagger_client.models.file_filter_settings.FileFilterSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_api.py b/test/test_filepool_api.py new file mode 100644 index 000000000..89fd40f55 --- /dev/null +++ b/test/test_filepool_api.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.filepool_api import FilepoolApi + + +class TestFilepoolApi(unittest.TestCase): + """ FilepoolApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.filepool_api.FilepoolApi() + + def tearDown(self): + pass + + def test_create_filepool_policy(self): + """ + Test case for create_filepool_policy + + + """ + pass + + def test_delete_filepool_policy(self): + """ + Test case for delete_filepool_policy + + + """ + pass + + def test_get_filepool_default_policy(self): + """ + Test case for get_filepool_default_policy + + + """ + pass + + def test_get_filepool_policy(self): + """ + Test case for get_filepool_policy + + + """ + pass + + def test_get_filepool_template(self): + """ + Test case for get_filepool_template + + + """ + pass + + def test_get_filepool_templates(self): + """ + Test case for get_filepool_templates + + + """ + pass + + def test_list_filepool_policies(self): + """ + Test case for list_filepool_policies + + + """ + pass + + def test_update_filepool_default_policy(self): + """ + Test case for update_filepool_default_policy + + + """ + pass + + def test_update_filepool_policy(self): + """ + Test case for update_filepool_policy + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_default_policy.py b/test/test_filepool_default_policy.py new file mode 100644 index 000000000..6932403e2 --- /dev/null +++ b/test/test_filepool_default_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_default_policy import FilepoolDefaultPolicy + + +class TestFilepoolDefaultPolicy(unittest.TestCase): + """ FilepoolDefaultPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolDefaultPolicy(self): + """ + Test FilepoolDefaultPolicy + """ + model = swagger_client.models.filepool_default_policy.FilepoolDefaultPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_default_policy_default_policy.py b/test/test_filepool_default_policy_default_policy.py new file mode 100644 index 000000000..1b060ddef --- /dev/null +++ b/test/test_filepool_default_policy_default_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_default_policy_default_policy import FilepoolDefaultPolicyDefaultPolicy + + +class TestFilepoolDefaultPolicyDefaultPolicy(unittest.TestCase): + """ FilepoolDefaultPolicyDefaultPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolDefaultPolicyDefaultPolicy(self): + """ + Test FilepoolDefaultPolicyDefaultPolicy + """ + model = swagger_client.models.filepool_default_policy_default_policy.FilepoolDefaultPolicyDefaultPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_default_policy_default_policy_action.py b/test/test_filepool_default_policy_default_policy_action.py new file mode 100644 index 000000000..1bcd9e280 --- /dev/null +++ b/test/test_filepool_default_policy_default_policy_action.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_default_policy_default_policy_action import FilepoolDefaultPolicyDefaultPolicyAction + + +class TestFilepoolDefaultPolicyDefaultPolicyAction(unittest.TestCase): + """ FilepoolDefaultPolicyDefaultPolicyAction unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolDefaultPolicyDefaultPolicyAction(self): + """ + Test FilepoolDefaultPolicyDefaultPolicyAction + """ + model = swagger_client.models.filepool_default_policy_default_policy_action.FilepoolDefaultPolicyDefaultPolicyAction() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_default_policy_extended.py b/test/test_filepool_default_policy_extended.py new file mode 100644 index 000000000..15f73a653 --- /dev/null +++ b/test/test_filepool_default_policy_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_default_policy_extended import FilepoolDefaultPolicyExtended + + +class TestFilepoolDefaultPolicyExtended(unittest.TestCase): + """ FilepoolDefaultPolicyExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolDefaultPolicyExtended(self): + """ + Test FilepoolDefaultPolicyExtended + """ + model = swagger_client.models.filepool_default_policy_extended.FilepoolDefaultPolicyExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_policies.py b/test/test_filepool_policies.py new file mode 100644 index 000000000..c18e36c97 --- /dev/null +++ b/test/test_filepool_policies.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_policies import FilepoolPolicies + + +class TestFilepoolPolicies(unittest.TestCase): + """ FilepoolPolicies unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolPolicies(self): + """ + Test FilepoolPolicies + """ + model = swagger_client.models.filepool_policies.FilepoolPolicies() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_policy.py b/test/test_filepool_policy.py new file mode 100644 index 000000000..a95937f39 --- /dev/null +++ b/test/test_filepool_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_policy import FilepoolPolicy + + +class TestFilepoolPolicy(unittest.TestCase): + """ FilepoolPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolPolicy(self): + """ + Test FilepoolPolicy + """ + model = swagger_client.models.filepool_policy.FilepoolPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_policy_extended.py b/test/test_filepool_policy_extended.py new file mode 100644 index 000000000..5260e385f --- /dev/null +++ b/test/test_filepool_policy_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_policy_extended import FilepoolPolicyExtended + + +class TestFilepoolPolicyExtended(unittest.TestCase): + """ FilepoolPolicyExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolPolicyExtended(self): + """ + Test FilepoolPolicyExtended + """ + model = swagger_client.models.filepool_policy_extended.FilepoolPolicyExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_policy_file_matching_pattern.py b/test/test_filepool_policy_file_matching_pattern.py new file mode 100644 index 000000000..7e4b17ad4 --- /dev/null +++ b/test/test_filepool_policy_file_matching_pattern.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_policy_file_matching_pattern import FilepoolPolicyFileMatchingPattern + + +class TestFilepoolPolicyFileMatchingPattern(unittest.TestCase): + """ FilepoolPolicyFileMatchingPattern unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolPolicyFileMatchingPattern(self): + """ + Test FilepoolPolicyFileMatchingPattern + """ + model = swagger_client.models.filepool_policy_file_matching_pattern.FilepoolPolicyFileMatchingPattern() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_policy_file_matching_pattern_or_criteria_item.py b/test/test_filepool_policy_file_matching_pattern_or_criteria_item.py new file mode 100644 index 000000000..13a135340 --- /dev/null +++ b/test/test_filepool_policy_file_matching_pattern_or_criteria_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_policy_file_matching_pattern_or_criteria_item import FilepoolPolicyFileMatchingPatternOrCriteriaItem + + +class TestFilepoolPolicyFileMatchingPatternOrCriteriaItem(unittest.TestCase): + """ FilepoolPolicyFileMatchingPatternOrCriteriaItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolPolicyFileMatchingPatternOrCriteriaItem(self): + """ + Test FilepoolPolicyFileMatchingPatternOrCriteriaItem + """ + model = swagger_client.models.filepool_policy_file_matching_pattern_or_criteria_item.FilepoolPolicyFileMatchingPatternOrCriteriaItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py b/test/test_filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py new file mode 100644 index 000000000..ca77331ea --- /dev/null +++ b/test/test_filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item import FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem + + +class TestFilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem(unittest.TestCase): + """ FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem(self): + """ + Test FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem + """ + model = swagger_client.models.filepool_policy_file_matching_pattern_or_criteria_item_and_criteria_item.FilepoolPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_template.py b/test/test_filepool_template.py new file mode 100644 index 000000000..4e16d2e5a --- /dev/null +++ b/test/test_filepool_template.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_template import FilepoolTemplate + + +class TestFilepoolTemplate(unittest.TestCase): + """ FilepoolTemplate unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolTemplate(self): + """ + Test FilepoolTemplate + """ + model = swagger_client.models.filepool_template.FilepoolTemplate() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filepool_templates.py b/test/test_filepool_templates.py new file mode 100644 index 000000000..c61f0d48d --- /dev/null +++ b/test/test_filepool_templates.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.filepool_templates import FilepoolTemplates + + +class TestFilepoolTemplates(unittest.TestCase): + """ FilepoolTemplates unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFilepoolTemplates(self): + """ + Test FilepoolTemplates + """ + model = swagger_client.models.filepool_templates.FilepoolTemplates() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_filesystem_api.py b/test/test_filesystem_api.py new file mode 100644 index 000000000..8c4b469d4 --- /dev/null +++ b/test/test_filesystem_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.filesystem_api import FilesystemApi + + +class TestFilesystemApi(unittest.TestCase): + """ FilesystemApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.filesystem_api.FilesystemApi() + + def tearDown(self): + pass + + def test_get_settings_access_time(self): + """ + Test case for get_settings_access_time + + + """ + pass + + def test_update_settings_access_time(self): + """ + Test case for update_settings_access_time + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_fsa_api.py b/test/test_fsa_api.py new file mode 100644 index 000000000..2800929bc --- /dev/null +++ b/test/test_fsa_api.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.fsa_api import FsaApi + + +class TestFsaApi(unittest.TestCase): + """ FsaApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.fsa_api.FsaApi() + + def tearDown(self): + pass + + def test_delete_fsa_result(self): + """ + Test case for delete_fsa_result + + + """ + pass + + def test_delete_fsa_settings(self): + """ + Test case for delete_fsa_settings + + + """ + pass + + def test_get_fsa_result(self): + """ + Test case for get_fsa_result + + + """ + pass + + def test_get_fsa_results(self): + """ + Test case for get_fsa_results + + + """ + pass + + def test_get_fsa_settings(self): + """ + Test case for get_fsa_settings + + + """ + pass + + def test_update_fsa_result(self): + """ + Test case for update_fsa_result + + + """ + pass + + def test_update_fsa_settings(self): + """ + Test case for update_fsa_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_fsa_result.py b/test/test_fsa_result.py new file mode 100644 index 000000000..c259b56a9 --- /dev/null +++ b/test/test_fsa_result.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.fsa_result import FsaResult + + +class TestFsaResult(unittest.TestCase): + """ FsaResult unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFsaResult(self): + """ + Test FsaResult + """ + model = swagger_client.models.fsa_result.FsaResult() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_fsa_result_extended.py b/test/test_fsa_result_extended.py new file mode 100644 index 000000000..ab0ce6bee --- /dev/null +++ b/test/test_fsa_result_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.fsa_result_extended import FsaResultExtended + + +class TestFsaResultExtended(unittest.TestCase): + """ FsaResultExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFsaResultExtended(self): + """ + Test FsaResultExtended + """ + model = swagger_client.models.fsa_result_extended.FsaResultExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_fsa_results.py b/test/test_fsa_results.py new file mode 100644 index 000000000..4a7da1e0d --- /dev/null +++ b/test/test_fsa_results.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.fsa_results import FsaResults + + +class TestFsaResults(unittest.TestCase): + """ FsaResults unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFsaResults(self): + """ + Test FsaResults + """ + model = swagger_client.models.fsa_results.FsaResults() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_fsa_results_api.py b/test/test_fsa_results_api.py new file mode 100644 index 000000000..70f84f9aa --- /dev/null +++ b/test/test_fsa_results_api.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.fsa_results_api import FsaResultsApi + + +class TestFsaResultsApi(unittest.TestCase): + """ FsaResultsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.fsa_results_api.FsaResultsApi() + + def tearDown(self): + pass + + def test_get_result_histogram(self): + """ + Test case for get_result_histogram + + + """ + pass + + def test_get_result_histogram_stat(self): + """ + Test case for get_result_histogram_stat + + + """ + pass + + def test_get_result_top_dir(self): + """ + Test case for get_result_top_dir + + + """ + pass + + def test_get_result_top_dirs(self): + """ + Test case for get_result_top_dirs + + + """ + pass + + def test_get_result_top_file(self): + """ + Test case for get_result_top_file + + + """ + pass + + def test_get_result_top_files(self): + """ + Test case for get_result_top_files + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_fsa_results_extended.py b/test/test_fsa_results_extended.py new file mode 100644 index 000000000..2bedf6edb --- /dev/null +++ b/test/test_fsa_results_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.fsa_results_extended import FsaResultsExtended + + +class TestFsaResultsExtended(unittest.TestCase): + """ FsaResultsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFsaResultsExtended(self): + """ + Test FsaResultsExtended + """ + model = swagger_client.models.fsa_results_extended.FsaResultsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_fsa_settings.py b/test/test_fsa_settings.py new file mode 100644 index 000000000..545df4eba --- /dev/null +++ b/test/test_fsa_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.fsa_settings import FsaSettings + + +class TestFsaSettings(unittest.TestCase): + """ FsaSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFsaSettings(self): + """ + Test FsaSettings + """ + model = swagger_client.models.fsa_settings.FsaSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_fsa_settings_settings.py b/test/test_fsa_settings_settings.py new file mode 100644 index 000000000..73bea63cf --- /dev/null +++ b/test/test_fsa_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.fsa_settings_settings import FsaSettingsSettings + + +class TestFsaSettingsSettings(unittest.TestCase): + """ FsaSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFsaSettingsSettings(self): + """ + Test FsaSettingsSettings + """ + model = swagger_client.models.fsa_settings_settings.FsaSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ftp_settings.py b/test/test_ftp_settings.py new file mode 100644 index 000000000..df494f756 --- /dev/null +++ b/test/test_ftp_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ftp_settings import FtpSettings + + +class TestFtpSettings(unittest.TestCase): + """ FtpSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFtpSettings(self): + """ + Test FtpSettings + """ + model = swagger_client.models.ftp_settings.FtpSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ftp_settings_settings.py b/test/test_ftp_settings_settings.py new file mode 100644 index 000000000..1a1e2f021 --- /dev/null +++ b/test/test_ftp_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ftp_settings_settings import FtpSettingsSettings + + +class TestFtpSettingsSettings(unittest.TestCase): + """ FtpSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFtpSettingsSettings(self): + """ + Test FtpSettingsSettings + """ + model = swagger_client.models.ftp_settings_settings.FtpSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_group_member.py b/test/test_group_member.py new file mode 100644 index 000000000..e930b20c9 --- /dev/null +++ b/test/test_group_member.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.group_member import GroupMember + + +class TestGroupMember(unittest.TestCase): + """ GroupMember unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupMember(self): + """ + Test GroupMember + """ + model = swagger_client.models.group_member.GroupMember() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_group_members.py b/test/test_group_members.py new file mode 100644 index 000000000..12ec789e7 --- /dev/null +++ b/test/test_group_members.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.group_members import GroupMembers + + +class TestGroupMembers(unittest.TestCase): + """ GroupMembers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupMembers(self): + """ + Test GroupMembers + """ + model = swagger_client.models.group_members.GroupMembers() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_groupnet_subnet.py b/test/test_groupnet_subnet.py new file mode 100644 index 000000000..0dba2df1e --- /dev/null +++ b/test/test_groupnet_subnet.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.groupnet_subnet import GroupnetSubnet + + +class TestGroupnetSubnet(unittest.TestCase): + """ GroupnetSubnet unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupnetSubnet(self): + """ + Test GroupnetSubnet + """ + model = swagger_client.models.groupnet_subnet.GroupnetSubnet() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_groupnet_subnet_create_params.py b/test/test_groupnet_subnet_create_params.py new file mode 100644 index 000000000..e9077e2b4 --- /dev/null +++ b/test/test_groupnet_subnet_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.groupnet_subnet_create_params import GroupnetSubnetCreateParams + + +class TestGroupnetSubnetCreateParams(unittest.TestCase): + """ GroupnetSubnetCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupnetSubnetCreateParams(self): + """ + Test GroupnetSubnetCreateParams + """ + model = swagger_client.models.groupnet_subnet_create_params.GroupnetSubnetCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_groupnet_subnet_extended.py b/test/test_groupnet_subnet_extended.py new file mode 100644 index 000000000..9c2cbbcc6 --- /dev/null +++ b/test/test_groupnet_subnet_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.groupnet_subnet_extended import GroupnetSubnetExtended + + +class TestGroupnetSubnetExtended(unittest.TestCase): + """ GroupnetSubnetExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupnetSubnetExtended(self): + """ + Test GroupnetSubnetExtended + """ + model = swagger_client.models.groupnet_subnet_extended.GroupnetSubnetExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_groupnet_subnets.py b/test/test_groupnet_subnets.py new file mode 100644 index 000000000..bef043031 --- /dev/null +++ b/test/test_groupnet_subnets.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.groupnet_subnets import GroupnetSubnets + + +class TestGroupnetSubnets(unittest.TestCase): + """ GroupnetSubnets unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupnetSubnets(self): + """ + Test GroupnetSubnets + """ + model = swagger_client.models.groupnet_subnets.GroupnetSubnets() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_groupnet_subnets_extended.py b/test/test_groupnet_subnets_extended.py new file mode 100644 index 000000000..9b4ee478d --- /dev/null +++ b/test/test_groupnet_subnets_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.groupnet_subnets_extended import GroupnetSubnetsExtended + + +class TestGroupnetSubnetsExtended(unittest.TestCase): + """ GroupnetSubnetsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupnetSubnetsExtended(self): + """ + Test GroupnetSubnetsExtended + """ + model = swagger_client.models.groupnet_subnets_extended.GroupnetSubnetsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardening_api.py b/test/test_hardening_api.py new file mode 100644 index 000000000..5f8019eba --- /dev/null +++ b/test/test_hardening_api.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.hardening_api import HardeningApi + + +class TestHardeningApi(unittest.TestCase): + """ HardeningApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.hardening_api.HardeningApi() + + def tearDown(self): + pass + + def test_create_hardening_apply_item(self): + """ + Test case for create_hardening_apply_item + + + """ + pass + + def test_create_hardening_resolve_item(self): + """ + Test case for create_hardening_resolve_item + + + """ + pass + + def test_create_hardening_revert_item(self): + """ + Test case for create_hardening_revert_item + + + """ + pass + + def test_get_hardening_state(self): + """ + Test case for get_hardening_state + + + """ + pass + + def test_get_hardening_status(self): + """ + Test case for get_hardening_status + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardening_apply_item.py b/test/test_hardening_apply_item.py new file mode 100644 index 000000000..bd4be9513 --- /dev/null +++ b/test/test_hardening_apply_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardening_apply_item import HardeningApplyItem + + +class TestHardeningApplyItem(unittest.TestCase): + """ HardeningApplyItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardeningApplyItem(self): + """ + Test HardeningApplyItem + """ + model = swagger_client.models.hardening_apply_item.HardeningApplyItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardening_resolve_item.py b/test/test_hardening_resolve_item.py new file mode 100644 index 000000000..fa993778c --- /dev/null +++ b/test/test_hardening_resolve_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardening_resolve_item import HardeningResolveItem + + +class TestHardeningResolveItem(unittest.TestCase): + """ HardeningResolveItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardeningResolveItem(self): + """ + Test HardeningResolveItem + """ + model = swagger_client.models.hardening_resolve_item.HardeningResolveItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardening_state.py b/test/test_hardening_state.py new file mode 100644 index 000000000..b06491e77 --- /dev/null +++ b/test/test_hardening_state.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardening_state import HardeningState + + +class TestHardeningState(unittest.TestCase): + """ HardeningState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardeningState(self): + """ + Test HardeningState + """ + model = swagger_client.models.hardening_state.HardeningState() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardening_state_state.py b/test/test_hardening_state_state.py new file mode 100644 index 000000000..1b9f85776 --- /dev/null +++ b/test/test_hardening_state_state.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardening_state_state import HardeningStateState + + +class TestHardeningStateState(unittest.TestCase): + """ HardeningStateState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardeningStateState(self): + """ + Test HardeningStateState + """ + model = swagger_client.models.hardening_state_state.HardeningStateState() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardening_status.py b/test/test_hardening_status.py new file mode 100644 index 000000000..f091178a5 --- /dev/null +++ b/test/test_hardening_status.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardening_status import HardeningStatus + + +class TestHardeningStatus(unittest.TestCase): + """ HardeningStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardeningStatus(self): + """ + Test HardeningStatus + """ + model = swagger_client.models.hardening_status.HardeningStatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardening_status_status.py b/test/test_hardening_status_status.py new file mode 100644 index 000000000..03160d6ac --- /dev/null +++ b/test/test_hardening_status_status.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardening_status_status import HardeningStatusStatus + + +class TestHardeningStatusStatus(unittest.TestCase): + """ HardeningStatusStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardeningStatusStatus(self): + """ + Test HardeningStatusStatus + """ + model = swagger_client.models.hardening_status_status.HardeningStatusStatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardware_api.py b/test/test_hardware_api.py new file mode 100644 index 000000000..d9ada7b25 --- /dev/null +++ b/test/test_hardware_api.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.hardware_api import HardwareApi + + +class TestHardwareApi(unittest.TestCase): + """ HardwareApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.hardware_api.HardwareApi() + + def tearDown(self): + pass + + def test_create_hardware_tape_name(self): + """ + Test case for create_hardware_tape_name + + + """ + pass + + def test_delete_hardware_tape_name(self): + """ + Test case for delete_hardware_tape_name + + + """ + pass + + def test_get_hardware_fcport(self): + """ + Test case for get_hardware_fcport + + + """ + pass + + def test_get_hardware_tapes(self): + """ + Test case for get_hardware_tapes + + + """ + pass + + def test_update_hardware_fcport(self): + """ + Test case for update_hardware_fcport + + + """ + pass + + def test_update_hardware_tape_name(self): + """ + Test case for update_hardware_tape_name + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardware_fcport.py b/test/test_hardware_fcport.py new file mode 100644 index 000000000..6a86221e1 --- /dev/null +++ b/test/test_hardware_fcport.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardware_fcport import HardwareFcport + + +class TestHardwareFcport(unittest.TestCase): + """ HardwareFcport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardwareFcport(self): + """ + Test HardwareFcport + """ + model = swagger_client.models.hardware_fcport.HardwareFcport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardware_fcports.py b/test/test_hardware_fcports.py new file mode 100644 index 000000000..9c205ddaf --- /dev/null +++ b/test/test_hardware_fcports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardware_fcports import HardwareFcports + + +class TestHardwareFcports(unittest.TestCase): + """ HardwareFcports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardwareFcports(self): + """ + Test HardwareFcports + """ + model = swagger_client.models.hardware_fcports.HardwareFcports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardware_tape_name_params.py b/test/test_hardware_tape_name_params.py new file mode 100644 index 000000000..1f796eabf --- /dev/null +++ b/test/test_hardware_tape_name_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardware_tape_name_params import HardwareTapeNameParams + + +class TestHardwareTapeNameParams(unittest.TestCase): + """ HardwareTapeNameParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardwareTapeNameParams(self): + """ + Test HardwareTapeNameParams + """ + model = swagger_client.models.hardware_tape_name_params.HardwareTapeNameParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hardware_tapes.py b/test/test_hardware_tapes.py new file mode 100644 index 000000000..0972d1b9f --- /dev/null +++ b/test/test_hardware_tapes.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hardware_tapes import HardwareTapes + + +class TestHardwareTapes(unittest.TestCase): + """ HardwareTapes unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHardwareTapes(self): + """ + Test HardwareTapes + """ + model = swagger_client.models.hardware_tapes.HardwareTapes() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_log_level.py b/test/test_hdfs_log_level.py new file mode 100644 index 000000000..0caf58466 --- /dev/null +++ b/test/test_hdfs_log_level.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_log_level import HdfsLogLevel + + +class TestHdfsLogLevel(unittest.TestCase): + """ HdfsLogLevel unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsLogLevel(self): + """ + Test HdfsLogLevel + """ + model = swagger_client.models.hdfs_log_level.HdfsLogLevel() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_proxyuser.py b/test/test_hdfs_proxyuser.py new file mode 100644 index 000000000..e09a3f392 --- /dev/null +++ b/test/test_hdfs_proxyuser.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_proxyuser import HdfsProxyuser + + +class TestHdfsProxyuser(unittest.TestCase): + """ HdfsProxyuser unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsProxyuser(self): + """ + Test HdfsProxyuser + """ + model = swagger_client.models.hdfs_proxyuser.HdfsProxyuser() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_proxyusers.py b/test/test_hdfs_proxyusers.py new file mode 100644 index 000000000..75a053c38 --- /dev/null +++ b/test/test_hdfs_proxyusers.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_proxyusers import HdfsProxyusers + + +class TestHdfsProxyusers(unittest.TestCase): + """ HdfsProxyusers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsProxyusers(self): + """ + Test HdfsProxyusers + """ + model = swagger_client.models.hdfs_proxyusers.HdfsProxyusers() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_rack.py b/test/test_hdfs_rack.py new file mode 100644 index 000000000..0c111f1a3 --- /dev/null +++ b/test/test_hdfs_rack.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_rack import HdfsRack + + +class TestHdfsRack(unittest.TestCase): + """ HdfsRack unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsRack(self): + """ + Test HdfsRack + """ + model = swagger_client.models.hdfs_rack.HdfsRack() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_rack_extended.py b/test/test_hdfs_rack_extended.py new file mode 100644 index 000000000..3f09e16ab --- /dev/null +++ b/test/test_hdfs_rack_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_rack_extended import HdfsRackExtended + + +class TestHdfsRackExtended(unittest.TestCase): + """ HdfsRackExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsRackExtended(self): + """ + Test HdfsRackExtended + """ + model = swagger_client.models.hdfs_rack_extended.HdfsRackExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_racks.py b/test/test_hdfs_racks.py new file mode 100644 index 000000000..e165c5ea6 --- /dev/null +++ b/test/test_hdfs_racks.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_racks import HdfsRacks + + +class TestHdfsRacks(unittest.TestCase): + """ HdfsRacks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsRacks(self): + """ + Test HdfsRacks + """ + model = swagger_client.models.hdfs_racks.HdfsRacks() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_racks_extended.py b/test/test_hdfs_racks_extended.py new file mode 100644 index 000000000..ca0ecca67 --- /dev/null +++ b/test/test_hdfs_racks_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_racks_extended import HdfsRacksExtended + + +class TestHdfsRacksExtended(unittest.TestCase): + """ HdfsRacksExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsRacksExtended(self): + """ + Test HdfsRacksExtended + """ + model = swagger_client.models.hdfs_racks_extended.HdfsRacksExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_settings.py b/test/test_hdfs_settings.py new file mode 100644 index 000000000..69c16fcb5 --- /dev/null +++ b/test/test_hdfs_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_settings import HdfsSettings + + +class TestHdfsSettings(unittest.TestCase): + """ HdfsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsSettings(self): + """ + Test HdfsSettings + """ + model = swagger_client.models.hdfs_settings.HdfsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_hdfs_settings_settings.py b/test/test_hdfs_settings_settings.py new file mode 100644 index 000000000..b22907707 --- /dev/null +++ b/test/test_hdfs_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.hdfs_settings_settings import HdfsSettingsSettings + + +class TestHdfsSettingsSettings(unittest.TestCase): + """ HdfsSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHdfsSettingsSettings(self): + """ + Test HdfsSettingsSettings + """ + model = swagger_client.models.hdfs_settings_settings.HdfsSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_history_file.py b/test/test_history_file.py new file mode 100644 index 000000000..393f78e18 --- /dev/null +++ b/test/test_history_file.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.history_file import HistoryFile + + +class TestHistoryFile(unittest.TestCase): + """ HistoryFile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHistoryFile(self): + """ + Test HistoryFile + """ + model = swagger_client.models.history_file.HistoryFile() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_history_file_statistic.py b/test/test_history_file_statistic.py new file mode 100644 index 000000000..1c07d6e7b --- /dev/null +++ b/test/test_history_file_statistic.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.history_file_statistic import HistoryFileStatistic + + +class TestHistoryFileStatistic(unittest.TestCase): + """ HistoryFileStatistic unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHistoryFileStatistic(self): + """ + Test HistoryFileStatistic + """ + model = swagger_client.models.history_file_statistic.HistoryFileStatistic() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_http_settings.py b/test/test_http_settings.py new file mode 100644 index 000000000..5a847849a --- /dev/null +++ b/test/test_http_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.http_settings import HttpSettings + + +class TestHttpSettings(unittest.TestCase): + """ HttpSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHttpSettings(self): + """ + Test HttpSettings + """ + model = swagger_client.models.http_settings.HttpSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_http_settings_settings.py b/test/test_http_settings_settings.py new file mode 100644 index 000000000..9881dcd5b --- /dev/null +++ b/test/test_http_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.http_settings_settings import HttpSettingsSettings + + +class TestHttpSettingsSettings(unittest.TestCase): + """ HttpSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testHttpSettingsSettings(self): + """ + Test HttpSettingsSettings + """ + model = swagger_client.models.http_settings_settings.HttpSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_api.py b/test/test_job_api.py new file mode 100644 index 000000000..c0be9ce0d --- /dev/null +++ b/test/test_job_api.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.job_api import JobApi + + +class TestJobApi(unittest.TestCase): + """ JobApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.job_api.JobApi() + + def tearDown(self): + pass + + def test_create_job_job(self): + """ + Test case for create_job_job + + + """ + pass + + def test_create_job_policy(self): + """ + Test case for create_job_policy + + + """ + pass + + def test_delete_job_policy(self): + """ + Test case for delete_job_policy + + + """ + pass + + def test_get_job_events(self): + """ + Test case for get_job_events + + + """ + pass + + def test_get_job_job(self): + """ + Test case for get_job_job + + + """ + pass + + def test_get_job_job_summary(self): + """ + Test case for get_job_job_summary + + + """ + pass + + def test_get_job_policy(self): + """ + Test case for get_job_policy + + + """ + pass + + def test_get_job_recent(self): + """ + Test case for get_job_recent + + + """ + pass + + def test_get_job_reports(self): + """ + Test case for get_job_reports + + + """ + pass + + def test_get_job_statistics(self): + """ + Test case for get_job_statistics + + + """ + pass + + def test_get_job_type(self): + """ + Test case for get_job_type + + + """ + pass + + def test_get_job_types(self): + """ + Test case for get_job_types + + + """ + pass + + def test_list_job_jobs(self): + """ + Test case for list_job_jobs + + + """ + pass + + def test_list_job_policies(self): + """ + Test case for list_job_policies + + + """ + pass + + def test_update_job_job(self): + """ + Test case for update_job_job + + + """ + pass + + def test_update_job_policy(self): + """ + Test case for update_job_policy + + + """ + pass + + def test_update_job_type(self): + """ + Test case for update_job_type + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_event.py b/test/test_job_event.py new file mode 100644 index 000000000..62ae814fc --- /dev/null +++ b/test/test_job_event.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_event import JobEvent + + +class TestJobEvent(unittest.TestCase): + """ JobEvent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobEvent(self): + """ + Test JobEvent + """ + model = swagger_client.models.job_event.JobEvent() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_events.py b/test/test_job_events.py new file mode 100644 index 000000000..2863ac5cc --- /dev/null +++ b/test/test_job_events.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_events import JobEvents + + +class TestJobEvents(unittest.TestCase): + """ JobEvents unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobEvents(self): + """ + Test JobEvents + """ + model = swagger_client.models.job_events.JobEvents() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job.py b/test/test_job_job.py new file mode 100644 index 000000000..d8991b5fe --- /dev/null +++ b/test/test_job_job.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job import JobJob + + +class TestJobJob(unittest.TestCase): + """ JobJob unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJob(self): + """ + Test JobJob + """ + model = swagger_client.models.job_job.JobJob() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_avscan_params.py b/test/test_job_job_avscan_params.py new file mode 100644 index 000000000..9a25ac7bb --- /dev/null +++ b/test/test_job_job_avscan_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_avscan_params import JobJobAvscanParams + + +class TestJobJobAvscanParams(unittest.TestCase): + """ JobJobAvscanParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobAvscanParams(self): + """ + Test JobJobAvscanParams + """ + model = swagger_client.models.job_job_avscan_params.JobJobAvscanParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_changelistcreate_params.py b/test/test_job_job_changelistcreate_params.py new file mode 100644 index 000000000..544910fcf --- /dev/null +++ b/test/test_job_job_changelistcreate_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_changelistcreate_params import JobJobChangelistcreateParams + + +class TestJobJobChangelistcreateParams(unittest.TestCase): + """ JobJobChangelistcreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobChangelistcreateParams(self): + """ + Test JobJobChangelistcreateParams + """ + model = swagger_client.models.job_job_changelistcreate_params.JobJobChangelistcreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_create_params.py b/test/test_job_job_create_params.py new file mode 100644 index 000000000..e44e29323 --- /dev/null +++ b/test/test_job_job_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_create_params import JobJobCreateParams + + +class TestJobJobCreateParams(unittest.TestCase): + """ JobJobCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobCreateParams(self): + """ + Test JobJobCreateParams + """ + model = swagger_client.models.job_job_create_params.JobJobCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_domainmark_params.py b/test/test_job_job_domainmark_params.py new file mode 100644 index 000000000..35aa4e983 --- /dev/null +++ b/test/test_job_job_domainmark_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_domainmark_params import JobJobDomainmarkParams + + +class TestJobJobDomainmarkParams(unittest.TestCase): + """ JobJobDomainmarkParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobDomainmarkParams(self): + """ + Test JobJobDomainmarkParams + """ + model = swagger_client.models.job_job_domainmark_params.JobJobDomainmarkParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_extended.py b/test/test_job_job_extended.py new file mode 100644 index 000000000..1eb8b685e --- /dev/null +++ b/test/test_job_job_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_extended import JobJobExtended + + +class TestJobJobExtended(unittest.TestCase): + """ JobJobExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobExtended(self): + """ + Test JobJobExtended + """ + model = swagger_client.models.job_job_extended.JobJobExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_prepair_params.py b/test/test_job_job_prepair_params.py new file mode 100644 index 000000000..e845d1256 --- /dev/null +++ b/test/test_job_job_prepair_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_prepair_params import JobJobPrepairParams + + +class TestJobJobPrepairParams(unittest.TestCase): + """ JobJobPrepairParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobPrepairParams(self): + """ + Test JobJobPrepairParams + """ + model = swagger_client.models.job_job_prepair_params.JobJobPrepairParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_smartpoolstree_params.py b/test/test_job_job_smartpoolstree_params.py new file mode 100644 index 000000000..c1bf5c5f6 --- /dev/null +++ b/test/test_job_job_smartpoolstree_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_smartpoolstree_params import JobJobSmartpoolstreeParams + + +class TestJobJobSmartpoolstreeParams(unittest.TestCase): + """ JobJobSmartpoolstreeParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobSmartpoolstreeParams(self): + """ + Test JobJobSmartpoolstreeParams + """ + model = swagger_client.models.job_job_smartpoolstree_params.JobJobSmartpoolstreeParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_snaprevert_params.py b/test/test_job_job_snaprevert_params.py new file mode 100644 index 000000000..12afa4500 --- /dev/null +++ b/test/test_job_job_snaprevert_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_snaprevert_params import JobJobSnaprevertParams + + +class TestJobJobSnaprevertParams(unittest.TestCase): + """ JobJobSnaprevertParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobSnaprevertParams(self): + """ + Test JobJobSnaprevertParams + """ + model = swagger_client.models.job_job_snaprevert_params.JobJobSnaprevertParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_summary.py b/test/test_job_job_summary.py new file mode 100644 index 000000000..88ab55037 --- /dev/null +++ b/test/test_job_job_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_summary import JobJobSummary + + +class TestJobJobSummary(unittest.TestCase): + """ JobJobSummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobSummary(self): + """ + Test JobJobSummary + """ + model = swagger_client.models.job_job_summary.JobJobSummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_job_summary_summary.py b/test/test_job_job_summary_summary.py new file mode 100644 index 000000000..a383935b1 --- /dev/null +++ b/test/test_job_job_summary_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_job_summary_summary import JobJobSummarySummary + + +class TestJobJobSummarySummary(unittest.TestCase): + """ JobJobSummarySummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobSummarySummary(self): + """ + Test JobJobSummarySummary + """ + model = swagger_client.models.job_job_summary_summary.JobJobSummarySummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_jobs.py b/test/test_job_jobs.py new file mode 100644 index 000000000..d6ee55552 --- /dev/null +++ b/test/test_job_jobs.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_jobs import JobJobs + + +class TestJobJobs(unittest.TestCase): + """ JobJobs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobs(self): + """ + Test JobJobs + """ + model = swagger_client.models.job_jobs.JobJobs() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_jobs_extended.py b/test/test_job_jobs_extended.py new file mode 100644 index 000000000..2982a4b9f --- /dev/null +++ b/test/test_job_jobs_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_jobs_extended import JobJobsExtended + + +class TestJobJobsExtended(unittest.TestCase): + """ JobJobsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobJobsExtended(self): + """ + Test JobJobsExtended + """ + model = swagger_client.models.job_jobs_extended.JobJobsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_policies.py b/test/test_job_policies.py new file mode 100644 index 000000000..4bd65d17a --- /dev/null +++ b/test/test_job_policies.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_policies import JobPolicies + + +class TestJobPolicies(unittest.TestCase): + """ JobPolicies unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobPolicies(self): + """ + Test JobPolicies + """ + model = swagger_client.models.job_policies.JobPolicies() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_policies_extended.py b/test/test_job_policies_extended.py new file mode 100644 index 000000000..38dbdb9eb --- /dev/null +++ b/test/test_job_policies_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_policies_extended import JobPoliciesExtended + + +class TestJobPoliciesExtended(unittest.TestCase): + """ JobPoliciesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobPoliciesExtended(self): + """ + Test JobPoliciesExtended + """ + model = swagger_client.models.job_policies_extended.JobPoliciesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_policies_type.py b/test/test_job_policies_type.py new file mode 100644 index 000000000..52c9bea96 --- /dev/null +++ b/test/test_job_policies_type.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_policies_type import JobPoliciesType + + +class TestJobPoliciesType(unittest.TestCase): + """ JobPoliciesType unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobPoliciesType(self): + """ + Test JobPoliciesType + """ + model = swagger_client.models.job_policies_type.JobPoliciesType() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_policy.py b/test/test_job_policy.py new file mode 100644 index 000000000..879ac9fa1 --- /dev/null +++ b/test/test_job_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_policy import JobPolicy + + +class TestJobPolicy(unittest.TestCase): + """ JobPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobPolicy(self): + """ + Test JobPolicy + """ + model = swagger_client.models.job_policy.JobPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_policy_create_params.py b/test/test_job_policy_create_params.py new file mode 100644 index 000000000..6fa08ed3d --- /dev/null +++ b/test/test_job_policy_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_policy_create_params import JobPolicyCreateParams + + +class TestJobPolicyCreateParams(unittest.TestCase): + """ JobPolicyCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobPolicyCreateParams(self): + """ + Test JobPolicyCreateParams + """ + model = swagger_client.models.job_policy_create_params.JobPolicyCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_policy_interval.py b/test/test_job_policy_interval.py new file mode 100644 index 000000000..15deb3332 --- /dev/null +++ b/test/test_job_policy_interval.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_policy_interval import JobPolicyInterval + + +class TestJobPolicyInterval(unittest.TestCase): + """ JobPolicyInterval unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobPolicyInterval(self): + """ + Test JobPolicyInterval + """ + model = swagger_client.models.job_policy_interval.JobPolicyInterval() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_recent.py b/test/test_job_recent.py new file mode 100644 index 000000000..cf98fce52 --- /dev/null +++ b/test/test_job_recent.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_recent import JobRecent + + +class TestJobRecent(unittest.TestCase): + """ JobRecent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobRecent(self): + """ + Test JobRecent + """ + model = swagger_client.models.job_recent.JobRecent() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_recent_recent_item.py b/test/test_job_recent_recent_item.py new file mode 100644 index 000000000..31845a1d5 --- /dev/null +++ b/test/test_job_recent_recent_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_recent_recent_item import JobRecentRecentItem + + +class TestJobRecentRecentItem(unittest.TestCase): + """ JobRecentRecentItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobRecentRecentItem(self): + """ + Test JobRecentRecentItem + """ + model = swagger_client.models.job_recent_recent_item.JobRecentRecentItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_reports.py b/test/test_job_reports.py new file mode 100644 index 000000000..2d0fbf5a3 --- /dev/null +++ b/test/test_job_reports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_reports import JobReports + + +class TestJobReports(unittest.TestCase): + """ JobReports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobReports(self): + """ + Test JobReports + """ + model = swagger_client.models.job_reports.JobReports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics.py b/test/test_job_statistics.py new file mode 100644 index 000000000..6d40c6e53 --- /dev/null +++ b/test/test_job_statistics.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics import JobStatistics + + +class TestJobStatistics(unittest.TestCase): + """ JobStatistics unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatistics(self): + """ + Test JobStatistics + """ + model = swagger_client.models.job_statistics.JobStatistics() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job.py b/test/test_job_statistics_job.py new file mode 100644 index 000000000..7c59a99ce --- /dev/null +++ b/test/test_job_statistics_job.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job import JobStatisticsJob + + +class TestJobStatisticsJob(unittest.TestCase): + """ JobStatisticsJob unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJob(self): + """ + Test JobStatisticsJob + """ + model = swagger_client.models.job_statistics_job.JobStatisticsJob() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node.py b/test/test_job_statistics_job_node.py new file mode 100644 index 000000000..bfa7243bc --- /dev/null +++ b/test/test_job_statistics_job_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node import JobStatisticsJobNode + + +class TestJobStatisticsJobNode(unittest.TestCase): + """ JobStatisticsJobNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNode(self): + """ + Test JobStatisticsJobNode + """ + model = swagger_client.models.job_statistics_job_node.JobStatisticsJobNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node_cpu.py b/test/test_job_statistics_job_node_cpu.py new file mode 100644 index 000000000..dad55ae72 --- /dev/null +++ b/test/test_job_statistics_job_node_cpu.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node_cpu import JobStatisticsJobNodeCpu + + +class TestJobStatisticsJobNodeCpu(unittest.TestCase): + """ JobStatisticsJobNodeCpu unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNodeCpu(self): + """ + Test JobStatisticsJobNodeCpu + """ + model = swagger_client.models.job_statistics_job_node_cpu.JobStatisticsJobNodeCpu() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node_io.py b/test/test_job_statistics_job_node_io.py new file mode 100644 index 000000000..7512b430f --- /dev/null +++ b/test/test_job_statistics_job_node_io.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node_io import JobStatisticsJobNodeIo + + +class TestJobStatisticsJobNodeIo(unittest.TestCase): + """ JobStatisticsJobNodeIo unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNodeIo(self): + """ + Test JobStatisticsJobNodeIo + """ + model = swagger_client.models.job_statistics_job_node_io.JobStatisticsJobNodeIo() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node_io_read.py b/test/test_job_statistics_job_node_io_read.py new file mode 100644 index 000000000..93bd77144 --- /dev/null +++ b/test/test_job_statistics_job_node_io_read.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node_io_read import JobStatisticsJobNodeIoRead + + +class TestJobStatisticsJobNodeIoRead(unittest.TestCase): + """ JobStatisticsJobNodeIoRead unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNodeIoRead(self): + """ + Test JobStatisticsJobNodeIoRead + """ + model = swagger_client.models.job_statistics_job_node_io_read.JobStatisticsJobNodeIoRead() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node_io_write.py b/test/test_job_statistics_job_node_io_write.py new file mode 100644 index 000000000..f3aa9b6bd --- /dev/null +++ b/test/test_job_statistics_job_node_io_write.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node_io_write import JobStatisticsJobNodeIoWrite + + +class TestJobStatisticsJobNodeIoWrite(unittest.TestCase): + """ JobStatisticsJobNodeIoWrite unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNodeIoWrite(self): + """ + Test JobStatisticsJobNodeIoWrite + """ + model = swagger_client.models.job_statistics_job_node_io_write.JobStatisticsJobNodeIoWrite() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node_memory.py b/test/test_job_statistics_job_node_memory.py new file mode 100644 index 000000000..558ac2e68 --- /dev/null +++ b/test/test_job_statistics_job_node_memory.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node_memory import JobStatisticsJobNodeMemory + + +class TestJobStatisticsJobNodeMemory(unittest.TestCase): + """ JobStatisticsJobNodeMemory unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNodeMemory(self): + """ + Test JobStatisticsJobNodeMemory + """ + model = swagger_client.models.job_statistics_job_node_memory.JobStatisticsJobNodeMemory() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node_memory_physical.py b/test/test_job_statistics_job_node_memory_physical.py new file mode 100644 index 000000000..2ea5bd6e4 --- /dev/null +++ b/test/test_job_statistics_job_node_memory_physical.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node_memory_physical import JobStatisticsJobNodeMemoryPhysical + + +class TestJobStatisticsJobNodeMemoryPhysical(unittest.TestCase): + """ JobStatisticsJobNodeMemoryPhysical unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNodeMemoryPhysical(self): + """ + Test JobStatisticsJobNodeMemoryPhysical + """ + model = swagger_client.models.job_statistics_job_node_memory_physical.JobStatisticsJobNodeMemoryPhysical() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node_memory_virtual.py b/test/test_job_statistics_job_node_memory_virtual.py new file mode 100644 index 000000000..71f0f3b6c --- /dev/null +++ b/test/test_job_statistics_job_node_memory_virtual.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node_memory_virtual import JobStatisticsJobNodeMemoryVirtual + + +class TestJobStatisticsJobNodeMemoryVirtual(unittest.TestCase): + """ JobStatisticsJobNodeMemoryVirtual unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNodeMemoryVirtual(self): + """ + Test JobStatisticsJobNodeMemoryVirtual + """ + model = swagger_client.models.job_statistics_job_node_memory_virtual.JobStatisticsJobNodeMemoryVirtual() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_statistics_job_node_worker.py b/test/test_job_statistics_job_node_worker.py new file mode 100644 index 000000000..79781b9cc --- /dev/null +++ b/test/test_job_statistics_job_node_worker.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_statistics_job_node_worker import JobStatisticsJobNodeWorker + + +class TestJobStatisticsJobNodeWorker(unittest.TestCase): + """ JobStatisticsJobNodeWorker unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobStatisticsJobNodeWorker(self): + """ + Test JobStatisticsJobNodeWorker + """ + model = swagger_client.models.job_statistics_job_node_worker.JobStatisticsJobNodeWorker() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_type.py b/test/test_job_type.py new file mode 100644 index 000000000..0ab607221 --- /dev/null +++ b/test/test_job_type.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_type import JobType + + +class TestJobType(unittest.TestCase): + """ JobType unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobType(self): + """ + Test JobType + """ + model = swagger_client.models.job_type.JobType() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_type_extended.py b/test/test_job_type_extended.py new file mode 100644 index 000000000..505ce27c5 --- /dev/null +++ b/test/test_job_type_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_type_extended import JobTypeExtended + + +class TestJobTypeExtended(unittest.TestCase): + """ JobTypeExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobTypeExtended(self): + """ + Test JobTypeExtended + """ + model = swagger_client.models.job_type_extended.JobTypeExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_types.py b/test/test_job_types.py new file mode 100644 index 000000000..0c21d2ed3 --- /dev/null +++ b/test/test_job_types.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_types import JobTypes + + +class TestJobTypes(unittest.TestCase): + """ JobTypes unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobTypes(self): + """ + Test JobTypes + """ + model = swagger_client.models.job_types.JobTypes() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_job_types_extended.py b/test/test_job_types_extended.py new file mode 100644 index 000000000..f575a2d02 --- /dev/null +++ b/test/test_job_types_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.job_types_extended import JobTypesExtended + + +class TestJobTypesExtended(unittest.TestCase): + """ JobTypesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testJobTypesExtended(self): + """ + Test JobTypesExtended + """ + model = swagger_client.models.job_types_extended.JobTypesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_license_api.py b/test/test_license_api.py new file mode 100644 index 000000000..70f147244 --- /dev/null +++ b/test/test_license_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.license_api import LicenseApi + + +class TestLicenseApi(unittest.TestCase): + """ LicenseApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.license_api.LicenseApi() + + def tearDown(self): + pass + + def test_create_license_license(self): + """ + Test case for create_license_license + + + """ + pass + + def test_get_license_license(self): + """ + Test case for get_license_license + + + """ + pass + + def test_list_license_licenses(self): + """ + Test case for list_license_licenses + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_license_license.py b/test/test_license_license.py new file mode 100644 index 000000000..3dd74f7e9 --- /dev/null +++ b/test/test_license_license.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.license_license import LicenseLicense + + +class TestLicenseLicense(unittest.TestCase): + """ LicenseLicense unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLicenseLicense(self): + """ + Test LicenseLicense + """ + model = swagger_client.models.license_license.LicenseLicense() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_license_license_create_params.py b/test/test_license_license_create_params.py new file mode 100644 index 000000000..f1e6a4cde --- /dev/null +++ b/test/test_license_license_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.license_license_create_params import LicenseLicenseCreateParams + + +class TestLicenseLicenseCreateParams(unittest.TestCase): + """ LicenseLicenseCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLicenseLicenseCreateParams(self): + """ + Test LicenseLicenseCreateParams + """ + model = swagger_client.models.license_license_create_params.LicenseLicenseCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_license_licenses.py b/test/test_license_licenses.py new file mode 100644 index 000000000..c1ad86990 --- /dev/null +++ b/test/test_license_licenses.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.license_licenses import LicenseLicenses + + +class TestLicenseLicenses(unittest.TestCase): + """ LicenseLicenses unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLicenseLicenses(self): + """ + Test LicenseLicenses + """ + model = swagger_client.models.license_licenses.LicenseLicenses() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_local_api.py b/test/test_local_api.py new file mode 100644 index 000000000..480d9e1c0 --- /dev/null +++ b/test/test_local_api.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.local_api import LocalApi + + +class TestLocalApi(unittest.TestCase): + """ LocalApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.local_api.LocalApi() + + def tearDown(self): + pass + + def test_get_cluster_time(self): + """ + Test case for get_cluster_time + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_dump.py b/test/test_mapping_dump.py new file mode 100644 index 000000000..c0c4b1603 --- /dev/null +++ b/test/test_mapping_dump.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_dump import MappingDump + + +class TestMappingDump(unittest.TestCase): + """ MappingDump unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingDump(self): + """ + Test MappingDump + """ + model = swagger_client.models.mapping_dump.MappingDump() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_identities.py b/test/test_mapping_identities.py new file mode 100644 index 000000000..f690e9a29 --- /dev/null +++ b/test/test_mapping_identities.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_identities import MappingIdentities + + +class TestMappingIdentities(unittest.TestCase): + """ MappingIdentities unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingIdentities(self): + """ + Test MappingIdentities + """ + model = swagger_client.models.mapping_identities.MappingIdentities() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_identity.py b/test/test_mapping_identity.py new file mode 100644 index 000000000..522e23dba --- /dev/null +++ b/test/test_mapping_identity.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_identity import MappingIdentity + + +class TestMappingIdentity(unittest.TestCase): + """ MappingIdentity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingIdentity(self): + """ + Test MappingIdentity + """ + model = swagger_client.models.mapping_identity.MappingIdentity() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_identity_create_params.py b/test/test_mapping_identity_create_params.py new file mode 100644 index 000000000..11e235a5a --- /dev/null +++ b/test/test_mapping_identity_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_identity_create_params import MappingIdentityCreateParams + + +class TestMappingIdentityCreateParams(unittest.TestCase): + """ MappingIdentityCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingIdentityCreateParams(self): + """ + Test MappingIdentityCreateParams + """ + model = swagger_client.models.mapping_identity_create_params.MappingIdentityCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_identity_target.py b/test/test_mapping_identity_target.py new file mode 100644 index 000000000..d7ecec1a2 --- /dev/null +++ b/test/test_mapping_identity_target.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_identity_target import MappingIdentityTarget + + +class TestMappingIdentityTarget(unittest.TestCase): + """ MappingIdentityTarget unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingIdentityTarget(self): + """ + Test MappingIdentityTarget + """ + model = swagger_client.models.mapping_identity_target.MappingIdentityTarget() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_identity_target_create_params.py b/test/test_mapping_identity_target_create_params.py new file mode 100644 index 000000000..f4f1159dd --- /dev/null +++ b/test/test_mapping_identity_target_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_identity_target_create_params import MappingIdentityTargetCreateParams + + +class TestMappingIdentityTargetCreateParams(unittest.TestCase): + """ MappingIdentityTargetCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingIdentityTargetCreateParams(self): + """ + Test MappingIdentityTargetCreateParams + """ + model = swagger_client.models.mapping_identity_target_create_params.MappingIdentityTargetCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_import.py b/test/test_mapping_import.py new file mode 100644 index 000000000..20fb73706 --- /dev/null +++ b/test/test_mapping_import.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_import import MappingImport + + +class TestMappingImport(unittest.TestCase): + """ MappingImport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingImport(self): + """ + Test MappingImport + """ + model = swagger_client.models.mapping_import.MappingImport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_lookup.py b/test/test_mapping_users_lookup.py new file mode 100644 index 000000000..31ae45b4a --- /dev/null +++ b/test/test_mapping_users_lookup.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_lookup import MappingUsersLookup + + +class TestMappingUsersLookup(unittest.TestCase): + """ MappingUsersLookup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersLookup(self): + """ + Test MappingUsersLookup + """ + model = swagger_client.models.mapping_users_lookup.MappingUsersLookup() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_lookup_mapping_item.py b/test/test_mapping_users_lookup_mapping_item.py new file mode 100644 index 000000000..62f28c993 --- /dev/null +++ b/test/test_mapping_users_lookup_mapping_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_lookup_mapping_item import MappingUsersLookupMappingItem + + +class TestMappingUsersLookupMappingItem(unittest.TestCase): + """ MappingUsersLookupMappingItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersLookupMappingItem(self): + """ + Test MappingUsersLookupMappingItem + """ + model = swagger_client.models.mapping_users_lookup_mapping_item.MappingUsersLookupMappingItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_lookup_mapping_item_group.py b/test/test_mapping_users_lookup_mapping_item_group.py new file mode 100644 index 000000000..54c8616c2 --- /dev/null +++ b/test/test_mapping_users_lookup_mapping_item_group.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_lookup_mapping_item_group import MappingUsersLookupMappingItemGroup + + +class TestMappingUsersLookupMappingItemGroup(unittest.TestCase): + """ MappingUsersLookupMappingItemGroup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersLookupMappingItemGroup(self): + """ + Test MappingUsersLookupMappingItemGroup + """ + model = swagger_client.models.mapping_users_lookup_mapping_item_group.MappingUsersLookupMappingItemGroup() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_lookup_mapping_item_user.py b/test/test_mapping_users_lookup_mapping_item_user.py new file mode 100644 index 000000000..c2fc6cf6f --- /dev/null +++ b/test/test_mapping_users_lookup_mapping_item_user.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_lookup_mapping_item_user import MappingUsersLookupMappingItemUser + + +class TestMappingUsersLookupMappingItemUser(unittest.TestCase): + """ MappingUsersLookupMappingItemUser unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersLookupMappingItemUser(self): + """ + Test MappingUsersLookupMappingItemUser + """ + model = swagger_client.models.mapping_users_lookup_mapping_item_user.MappingUsersLookupMappingItemUser() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_rules.py b/test/test_mapping_users_rules.py new file mode 100644 index 000000000..f1cc340fb --- /dev/null +++ b/test/test_mapping_users_rules.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_rules import MappingUsersRules + + +class TestMappingUsersRules(unittest.TestCase): + """ MappingUsersRules unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersRules(self): + """ + Test MappingUsersRules + """ + model = swagger_client.models.mapping_users_rules.MappingUsersRules() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_rules_rule.py b/test/test_mapping_users_rules_rule.py new file mode 100644 index 000000000..49219cf26 --- /dev/null +++ b/test/test_mapping_users_rules_rule.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_rules_rule import MappingUsersRulesRule + + +class TestMappingUsersRulesRule(unittest.TestCase): + """ MappingUsersRulesRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersRulesRule(self): + """ + Test MappingUsersRulesRule + """ + model = swagger_client.models.mapping_users_rules_rule.MappingUsersRulesRule() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_rules_rule_options.py b/test/test_mapping_users_rules_rule_options.py new file mode 100644 index 000000000..c37c04326 --- /dev/null +++ b/test/test_mapping_users_rules_rule_options.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_rules_rule_options import MappingUsersRulesRuleOptions + + +class TestMappingUsersRulesRuleOptions(unittest.TestCase): + """ MappingUsersRulesRuleOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersRulesRuleOptions(self): + """ + Test MappingUsersRulesRuleOptions + """ + model = swagger_client.models.mapping_users_rules_rule_options.MappingUsersRulesRuleOptions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_rules_rule_user2.py b/test/test_mapping_users_rules_rule_user2.py new file mode 100644 index 000000000..831ab80d6 --- /dev/null +++ b/test/test_mapping_users_rules_rule_user2.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_rules_rule_user2 import MappingUsersRulesRuleUser2 + + +class TestMappingUsersRulesRuleUser2(unittest.TestCase): + """ MappingUsersRulesRuleUser2 unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersRulesRuleUser2(self): + """ + Test MappingUsersRulesRuleUser2 + """ + model = swagger_client.models.mapping_users_rules_rule_user2.MappingUsersRulesRuleUser2() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_rules_rules.py b/test/test_mapping_users_rules_rules.py new file mode 100644 index 000000000..2ea3f0228 --- /dev/null +++ b/test/test_mapping_users_rules_rules.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_rules_rules import MappingUsersRulesRules + + +class TestMappingUsersRulesRules(unittest.TestCase): + """ MappingUsersRulesRules unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersRulesRules(self): + """ + Test MappingUsersRulesRules + """ + model = swagger_client.models.mapping_users_rules_rules.MappingUsersRulesRules() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_mapping_users_rules_rules_parameters.py b/test/test_mapping_users_rules_rules_parameters.py new file mode 100644 index 000000000..111f1ccac --- /dev/null +++ b/test/test_mapping_users_rules_rules_parameters.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.mapping_users_rules_rules_parameters import MappingUsersRulesRulesParameters + + +class TestMappingUsersRulesRulesParameters(unittest.TestCase): + """ MappingUsersRulesRulesParameters unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMappingUsersRulesRulesParameters(self): + """ + Test MappingUsersRulesRulesParameters + """ + model = swagger_client.models.mapping_users_rules_rules_parameters.MappingUsersRulesRulesParameters() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_contexts_bre.py b/test/test_ndmp_contexts_bre.py new file mode 100644 index 000000000..e6ab58068 --- /dev/null +++ b/test/test_ndmp_contexts_bre.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_contexts_bre import NdmpContextsBre + + +class TestNdmpContextsBre(unittest.TestCase): + """ NdmpContextsBre unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpContextsBre(self): + """ + Test NdmpContextsBre + """ + model = swagger_client.models.ndmp_contexts_bre.NdmpContextsBre() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_contexts_bre_context.py b/test/test_ndmp_contexts_bre_context.py new file mode 100644 index 000000000..73053526f --- /dev/null +++ b/test/test_ndmp_contexts_bre_context.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_contexts_bre_context import NdmpContextsBreContext + + +class TestNdmpContextsBreContext(unittest.TestCase): + """ NdmpContextsBreContext unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpContextsBreContext(self): + """ + Test NdmpContextsBreContext + """ + model = swagger_client.models.ndmp_contexts_bre_context.NdmpContextsBreContext() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_diagnostics.py b/test/test_ndmp_diagnostics.py new file mode 100644 index 000000000..1f8ab1771 --- /dev/null +++ b/test/test_ndmp_diagnostics.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_diagnostics import NdmpDiagnostics + + +class TestNdmpDiagnostics(unittest.TestCase): + """ NdmpDiagnostics unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpDiagnostics(self): + """ + Test NdmpDiagnostics + """ + model = swagger_client.models.ndmp_diagnostics.NdmpDiagnostics() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_diagnostics_diagnostics.py b/test/test_ndmp_diagnostics_diagnostics.py new file mode 100644 index 000000000..5ed9ef2a3 --- /dev/null +++ b/test/test_ndmp_diagnostics_diagnostics.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_diagnostics_diagnostics import NdmpDiagnosticsDiagnostics + + +class TestNdmpDiagnosticsDiagnostics(unittest.TestCase): + """ NdmpDiagnosticsDiagnostics unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpDiagnosticsDiagnostics(self): + """ + Test NdmpDiagnosticsDiagnostics + """ + model = swagger_client.models.ndmp_diagnostics_diagnostics.NdmpDiagnosticsDiagnostics() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_logs.py b/test/test_ndmp_logs.py new file mode 100644 index 000000000..955be70db --- /dev/null +++ b/test/test_ndmp_logs.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_logs import NdmpLogs + + +class TestNdmpLogs(unittest.TestCase): + """ NdmpLogs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpLogs(self): + """ + Test NdmpLogs + """ + model = swagger_client.models.ndmp_logs.NdmpLogs() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_session.py b/test/test_ndmp_session.py new file mode 100644 index 000000000..2a9165a4f --- /dev/null +++ b/test/test_ndmp_session.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_session import NdmpSession + + +class TestNdmpSession(unittest.TestCase): + """ NdmpSession unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpSession(self): + """ + Test NdmpSession + """ + model = swagger_client.models.ndmp_session.NdmpSession() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_sessions.py b/test/test_ndmp_sessions.py new file mode 100644 index 000000000..2698d8793 --- /dev/null +++ b/test/test_ndmp_sessions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_sessions import NdmpSessions + + +class TestNdmpSessions(unittest.TestCase): + """ NdmpSessions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpSessions(self): + """ + Test NdmpSessions + """ + model = swagger_client.models.ndmp_sessions.NdmpSessions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_settings_global.py b/test/test_ndmp_settings_global.py new file mode 100644 index 000000000..34ca9c040 --- /dev/null +++ b/test/test_ndmp_settings_global.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_settings_global import NdmpSettingsGlobal + + +class TestNdmpSettingsGlobal(unittest.TestCase): + """ NdmpSettingsGlobal unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpSettingsGlobal(self): + """ + Test NdmpSettingsGlobal + """ + model = swagger_client.models.ndmp_settings_global.NdmpSettingsGlobal() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_settings_global_global.py b/test/test_ndmp_settings_global_global.py new file mode 100644 index 000000000..1a7083d0b --- /dev/null +++ b/test/test_ndmp_settings_global_global.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_settings_global_global import NdmpSettingsGlobalGlobal + + +class TestNdmpSettingsGlobalGlobal(unittest.TestCase): + """ NdmpSettingsGlobalGlobal unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpSettingsGlobalGlobal(self): + """ + Test NdmpSettingsGlobalGlobal + """ + model = swagger_client.models.ndmp_settings_global_global.NdmpSettingsGlobalGlobal() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_settings_variable.py b/test/test_ndmp_settings_variable.py new file mode 100644 index 000000000..87df74be2 --- /dev/null +++ b/test/test_ndmp_settings_variable.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_settings_variable import NdmpSettingsVariable + + +class TestNdmpSettingsVariable(unittest.TestCase): + """ NdmpSettingsVariable unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpSettingsVariable(self): + """ + Test NdmpSettingsVariable + """ + model = swagger_client.models.ndmp_settings_variable.NdmpSettingsVariable() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_user.py b/test/test_ndmp_user.py new file mode 100644 index 000000000..c0bef367d --- /dev/null +++ b/test/test_ndmp_user.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_user import NdmpUser + + +class TestNdmpUser(unittest.TestCase): + """ NdmpUser unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpUser(self): + """ + Test NdmpUser + """ + model = swagger_client.models.ndmp_user.NdmpUser() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_user_create_params.py b/test/test_ndmp_user_create_params.py new file mode 100644 index 000000000..e8e6fc3b5 --- /dev/null +++ b/test/test_ndmp_user_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_user_create_params import NdmpUserCreateParams + + +class TestNdmpUserCreateParams(unittest.TestCase): + """ NdmpUserCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpUserCreateParams(self): + """ + Test NdmpUserCreateParams + """ + model = swagger_client.models.ndmp_user_create_params.NdmpUserCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_users.py b/test/test_ndmp_users.py new file mode 100644 index 000000000..48587f71f --- /dev/null +++ b/test/test_ndmp_users.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_users import NdmpUsers + + +class TestNdmpUsers(unittest.TestCase): + """ NdmpUsers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpUsers(self): + """ + Test NdmpUsers + """ + model = swagger_client.models.ndmp_users.NdmpUsers() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ndmp_users_extended.py b/test/test_ndmp_users_extended.py new file mode 100644 index 000000000..1d7890115 --- /dev/null +++ b/test/test_ndmp_users_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ndmp_users_extended import NdmpUsersExtended + + +class TestNdmpUsersExtended(unittest.TestCase): + """ NdmpUsersExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNdmpUsersExtended(self): + """ + Test NdmpUsersExtended + """ + model = swagger_client.models.ndmp_users_extended.NdmpUsersExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_api.py b/test/test_network_api.py new file mode 100644 index 000000000..603c660ae --- /dev/null +++ b/test/test_network_api.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.network_api import NetworkApi + + +class TestNetworkApi(unittest.TestCase): + """ NetworkApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.network_api.NetworkApi() + + def tearDown(self): + pass + + def test_create_dnscache_flush_item(self): + """ + Test case for create_dnscache_flush_item + + + """ + pass + + def test_create_network_groupnet(self): + """ + Test case for create_network_groupnet + + + """ + pass + + def test_create_network_sc_rebalance_all_item(self): + """ + Test case for create_network_sc_rebalance_all_item + + + """ + pass + + def test_delete_network_groupnet(self): + """ + Test case for delete_network_groupnet + + + """ + pass + + def test_get_network_dnscache(self): + """ + Test case for get_network_dnscache + + + """ + pass + + def test_get_network_external(self): + """ + Test case for get_network_external + + + """ + pass + + def test_get_network_groupnet(self): + """ + Test case for get_network_groupnet + + + """ + pass + + def test_get_network_interfaces(self): + """ + Test case for get_network_interfaces + + + """ + pass + + def test_get_network_pools(self): + """ + Test case for get_network_pools + + + """ + pass + + def test_get_network_rules(self): + """ + Test case for get_network_rules + + + """ + pass + + def test_get_network_subnets(self): + """ + Test case for get_network_subnets + + + """ + pass + + def test_list_network_groupnets(self): + """ + Test case for list_network_groupnets + + + """ + pass + + def test_update_network_dnscache(self): + """ + Test case for update_network_dnscache + + + """ + pass + + def test_update_network_external(self): + """ + Test case for update_network_external + + + """ + pass + + def test_update_network_groupnet(self): + """ + Test case for update_network_groupnet + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_dnscache.py b/test/test_network_dnscache.py new file mode 100644 index 000000000..1b943f2c3 --- /dev/null +++ b/test/test_network_dnscache.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_dnscache import NetworkDnscache + + +class TestNetworkDnscache(unittest.TestCase): + """ NetworkDnscache unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkDnscache(self): + """ + Test NetworkDnscache + """ + model = swagger_client.models.network_dnscache.NetworkDnscache() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_dnscache_setting.py b/test/test_network_dnscache_setting.py new file mode 100644 index 000000000..08df87ece --- /dev/null +++ b/test/test_network_dnscache_setting.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_dnscache_setting import NetworkDnscacheSetting + + +class TestNetworkDnscacheSetting(unittest.TestCase): + """ NetworkDnscacheSetting unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkDnscacheSetting(self): + """ + Test NetworkDnscacheSetting + """ + model = swagger_client.models.network_dnscache_setting.NetworkDnscacheSetting() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_external.py b/test/test_network_external.py new file mode 100644 index 000000000..ff0d54474 --- /dev/null +++ b/test/test_network_external.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_external import NetworkExternal + + +class TestNetworkExternal(unittest.TestCase): + """ NetworkExternal unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkExternal(self): + """ + Test NetworkExternal + """ + model = swagger_client.models.network_external.NetworkExternal() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_external_extended.py b/test/test_network_external_extended.py new file mode 100644 index 000000000..39c68dc99 --- /dev/null +++ b/test/test_network_external_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_external_extended import NetworkExternalExtended + + +class TestNetworkExternalExtended(unittest.TestCase): + """ NetworkExternalExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkExternalExtended(self): + """ + Test NetworkExternalExtended + """ + model = swagger_client.models.network_external_extended.NetworkExternalExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_external_setting.py b/test/test_network_external_setting.py new file mode 100644 index 000000000..1cd8e4551 --- /dev/null +++ b/test/test_network_external_setting.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_external_setting import NetworkExternalSetting + + +class TestNetworkExternalSetting(unittest.TestCase): + """ NetworkExternalSetting unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkExternalSetting(self): + """ + Test NetworkExternalSetting + """ + model = swagger_client.models.network_external_setting.NetworkExternalSetting() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_groupnet.py b/test/test_network_groupnet.py new file mode 100644 index 000000000..a080fd497 --- /dev/null +++ b/test/test_network_groupnet.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_groupnet import NetworkGroupnet + + +class TestNetworkGroupnet(unittest.TestCase): + """ NetworkGroupnet unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkGroupnet(self): + """ + Test NetworkGroupnet + """ + model = swagger_client.models.network_groupnet.NetworkGroupnet() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_groupnet_extended.py b/test/test_network_groupnet_extended.py new file mode 100644 index 000000000..c79f0cbd3 --- /dev/null +++ b/test/test_network_groupnet_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_groupnet_extended import NetworkGroupnetExtended + + +class TestNetworkGroupnetExtended(unittest.TestCase): + """ NetworkGroupnetExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkGroupnetExtended(self): + """ + Test NetworkGroupnetExtended + """ + model = swagger_client.models.network_groupnet_extended.NetworkGroupnetExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_groupnets.py b/test/test_network_groupnets.py new file mode 100644 index 000000000..ce497f1d8 --- /dev/null +++ b/test/test_network_groupnets.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_groupnets import NetworkGroupnets + + +class TestNetworkGroupnets(unittest.TestCase): + """ NetworkGroupnets unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkGroupnets(self): + """ + Test NetworkGroupnets + """ + model = swagger_client.models.network_groupnets.NetworkGroupnets() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_groupnets_api.py b/test/test_network_groupnets_api.py new file mode 100644 index 000000000..fe5d870c7 --- /dev/null +++ b/test/test_network_groupnets_api.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.network_groupnets_api import NetworkGroupnetsApi + + +class TestNetworkGroupnetsApi(unittest.TestCase): + """ NetworkGroupnetsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.network_groupnets_api.NetworkGroupnetsApi() + + def tearDown(self): + pass + + def test_create_groupnet_subnet(self): + """ + Test case for create_groupnet_subnet + + + """ + pass + + def test_create_subnets_subnet_pool(self): + """ + Test case for create_subnets_subnet_pool + + + """ + pass + + def test_delete_groupnet_subnet(self): + """ + Test case for delete_groupnet_subnet + + + """ + pass + + def test_delete_subnets_subnet_pool(self): + """ + Test case for delete_subnets_subnet_pool + + + """ + pass + + def test_get_groupnet_subnet(self): + """ + Test case for get_groupnet_subnet + + + """ + pass + + def test_get_subnets_subnet_pool(self): + """ + Test case for get_subnets_subnet_pool + + + """ + pass + + def test_list_groupnet_subnets(self): + """ + Test case for list_groupnet_subnets + + + """ + pass + + def test_list_subnets_subnet_pools(self): + """ + Test case for list_subnets_subnet_pools + + + """ + pass + + def test_update_groupnet_subnet(self): + """ + Test case for update_groupnet_subnet + + + """ + pass + + def test_update_subnets_subnet_pool(self): + """ + Test case for update_subnets_subnet_pool + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_groupnets_extended.py b/test/test_network_groupnets_extended.py new file mode 100644 index 000000000..5c114cc6e --- /dev/null +++ b/test/test_network_groupnets_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_groupnets_extended import NetworkGroupnetsExtended + + +class TestNetworkGroupnetsExtended(unittest.TestCase): + """ NetworkGroupnetsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkGroupnetsExtended(self): + """ + Test NetworkGroupnetsExtended + """ + model = swagger_client.models.network_groupnets_extended.NetworkGroupnetsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_groupnets_subnets_api.py b/test/test_network_groupnets_subnets_api.py new file mode 100644 index 000000000..6f33ba366 --- /dev/null +++ b/test/test_network_groupnets_subnets_api.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.network_groupnets_subnets_api import NetworkGroupnetsSubnetsApi + + +class TestNetworkGroupnetsSubnetsApi(unittest.TestCase): + """ NetworkGroupnetsSubnetsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.network_groupnets_subnets_api.NetworkGroupnetsSubnetsApi() + + def tearDown(self): + pass + + def test_create_pools_pool_rebalance_ip(self): + """ + Test case for create_pools_pool_rebalance_ip + + + """ + pass + + def test_create_pools_pool_rule(self): + """ + Test case for create_pools_pool_rule + + + """ + pass + + def test_create_pools_pool_sc_resume_node(self): + """ + Test case for create_pools_pool_sc_resume_node + + + """ + pass + + def test_create_pools_pool_sc_suspend_node(self): + """ + Test case for create_pools_pool_sc_suspend_node + + + """ + pass + + def test_delete_pools_pool_rule(self): + """ + Test case for delete_pools_pool_rule + + + """ + pass + + def test_get_pools_pool_interfaces(self): + """ + Test case for get_pools_pool_interfaces + + + """ + pass + + def test_get_pools_pool_rule(self): + """ + Test case for get_pools_pool_rule + + + """ + pass + + def test_list_pools_pool_rules(self): + """ + Test case for list_pools_pool_rules + + + """ + pass + + def test_update_pools_pool_rule(self): + """ + Test case for update_pools_pool_rule + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_pools.py b/test/test_network_pools.py new file mode 100644 index 000000000..42165ce35 --- /dev/null +++ b/test/test_network_pools.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_pools import NetworkPools + + +class TestNetworkPools(unittest.TestCase): + """ NetworkPools unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkPools(self): + """ + Test NetworkPools + """ + model = swagger_client.models.network_pools.NetworkPools() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_rules.py b/test/test_network_rules.py new file mode 100644 index 000000000..9bab023de --- /dev/null +++ b/test/test_network_rules.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_rules import NetworkRules + + +class TestNetworkRules(unittest.TestCase): + """ NetworkRules unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkRules(self): + """ + Test NetworkRules + """ + model = swagger_client.models.network_rules.NetworkRules() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_subnet.py b/test/test_network_subnet.py new file mode 100644 index 000000000..ab38772a1 --- /dev/null +++ b/test/test_network_subnet.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_subnet import NetworkSubnet + + +class TestNetworkSubnet(unittest.TestCase): + """ NetworkSubnet unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkSubnet(self): + """ + Test NetworkSubnet + """ + model = swagger_client.models.network_subnet.NetworkSubnet() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_network_subnets.py b/test/test_network_subnets.py new file mode 100644 index 000000000..8a53835d6 --- /dev/null +++ b/test/test_network_subnets.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.network_subnets import NetworkSubnets + + +class TestNetworkSubnets(unittest.TestCase): + """ NetworkSubnets unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkSubnets(self): + """ + Test NetworkSubnets + """ + model = swagger_client.models.network_subnets.NetworkSubnets() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_aliase.py b/test/test_nfs_aliase.py new file mode 100644 index 000000000..78f980ba8 --- /dev/null +++ b/test/test_nfs_aliase.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_aliase import NfsAliase + + +class TestNfsAliase(unittest.TestCase): + """ NfsAliase unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsAliase(self): + """ + Test NfsAliase + """ + model = swagger_client.models.nfs_aliase.NfsAliase() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_aliase_extended.py b/test/test_nfs_aliase_extended.py new file mode 100644 index 000000000..d2dc92287 --- /dev/null +++ b/test/test_nfs_aliase_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_aliase_extended import NfsAliaseExtended + + +class TestNfsAliaseExtended(unittest.TestCase): + """ NfsAliaseExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsAliaseExtended(self): + """ + Test NfsAliaseExtended + """ + model = swagger_client.models.nfs_aliase_extended.NfsAliaseExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_aliases.py b/test/test_nfs_aliases.py new file mode 100644 index 000000000..2c6b39841 --- /dev/null +++ b/test/test_nfs_aliases.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_aliases import NfsAliases + + +class TestNfsAliases(unittest.TestCase): + """ NfsAliases unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsAliases(self): + """ + Test NfsAliases + """ + model = swagger_client.models.nfs_aliases.NfsAliases() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_aliases_extended.py b/test/test_nfs_aliases_extended.py new file mode 100644 index 000000000..15d9d6303 --- /dev/null +++ b/test/test_nfs_aliases_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_aliases_extended import NfsAliasesExtended + + +class TestNfsAliasesExtended(unittest.TestCase): + """ NfsAliasesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsAliasesExtended(self): + """ + Test NfsAliasesExtended + """ + model = swagger_client.models.nfs_aliases_extended.NfsAliasesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_check.py b/test/test_nfs_check.py new file mode 100644 index 000000000..786365de8 --- /dev/null +++ b/test/test_nfs_check.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_check import NfsCheck + + +class TestNfsCheck(unittest.TestCase): + """ NfsCheck unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsCheck(self): + """ + Test NfsCheck + """ + model = swagger_client.models.nfs_check.NfsCheck() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_check_extended.py b/test/test_nfs_check_extended.py new file mode 100644 index 000000000..d1ec10718 --- /dev/null +++ b/test/test_nfs_check_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_check_extended import NfsCheckExtended + + +class TestNfsCheckExtended(unittest.TestCase): + """ NfsCheckExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsCheckExtended(self): + """ + Test NfsCheckExtended + """ + model = swagger_client.models.nfs_check_extended.NfsCheckExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_export.py b/test/test_nfs_export.py new file mode 100644 index 000000000..afd132497 --- /dev/null +++ b/test/test_nfs_export.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_export import NfsExport + + +class TestNfsExport(unittest.TestCase): + """ NfsExport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsExport(self): + """ + Test NfsExport + """ + model = swagger_client.models.nfs_export.NfsExport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_export_extended.py b/test/test_nfs_export_extended.py new file mode 100644 index 000000000..d188d43ab --- /dev/null +++ b/test/test_nfs_export_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_export_extended import NfsExportExtended + + +class TestNfsExportExtended(unittest.TestCase): + """ NfsExportExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsExportExtended(self): + """ + Test NfsExportExtended + """ + model = swagger_client.models.nfs_export_extended.NfsExportExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_export_map_all.py b/test/test_nfs_export_map_all.py new file mode 100644 index 000000000..389203305 --- /dev/null +++ b/test/test_nfs_export_map_all.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_export_map_all import NfsExportMapAll + + +class TestNfsExportMapAll(unittest.TestCase): + """ NfsExportMapAll unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsExportMapAll(self): + """ + Test NfsExportMapAll + """ + model = swagger_client.models.nfs_export_map_all.NfsExportMapAll() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_export_map_all_secondary_groups.py b/test/test_nfs_export_map_all_secondary_groups.py new file mode 100644 index 000000000..31f514a5a --- /dev/null +++ b/test/test_nfs_export_map_all_secondary_groups.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_export_map_all_secondary_groups import NfsExportMapAllSecondaryGroups + + +class TestNfsExportMapAllSecondaryGroups(unittest.TestCase): + """ NfsExportMapAllSecondaryGroups unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsExportMapAllSecondaryGroups(self): + """ + Test NfsExportMapAllSecondaryGroups + """ + model = swagger_client.models.nfs_export_map_all_secondary_groups.NfsExportMapAllSecondaryGroups() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_exports.py b/test/test_nfs_exports.py new file mode 100644 index 000000000..ad1256806 --- /dev/null +++ b/test/test_nfs_exports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_exports import NfsExports + + +class TestNfsExports(unittest.TestCase): + """ NfsExports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsExports(self): + """ + Test NfsExports + """ + model = swagger_client.models.nfs_exports.NfsExports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_exports_extended.py b/test/test_nfs_exports_extended.py new file mode 100644 index 000000000..448a93ad8 --- /dev/null +++ b/test/test_nfs_exports_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_exports_extended import NfsExportsExtended + + +class TestNfsExportsExtended(unittest.TestCase): + """ NfsExportsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsExportsExtended(self): + """ + Test NfsExportsExtended + """ + model = swagger_client.models.nfs_exports_extended.NfsExportsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_exports_summary.py b/test/test_nfs_exports_summary.py new file mode 100644 index 000000000..1f8cd43d2 --- /dev/null +++ b/test/test_nfs_exports_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_exports_summary import NfsExportsSummary + + +class TestNfsExportsSummary(unittest.TestCase): + """ NfsExportsSummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsExportsSummary(self): + """ + Test NfsExportsSummary + """ + model = swagger_client.models.nfs_exports_summary.NfsExportsSummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_exports_summary_summary.py b/test/test_nfs_exports_summary_summary.py new file mode 100644 index 000000000..a42de8662 --- /dev/null +++ b/test/test_nfs_exports_summary_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_exports_summary_summary import NfsExportsSummarySummary + + +class TestNfsExportsSummarySummary(unittest.TestCase): + """ NfsExportsSummarySummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsExportsSummarySummary(self): + """ + Test NfsExportsSummarySummary + """ + model = swagger_client.models.nfs_exports_summary_summary.NfsExportsSummarySummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_log_level.py b/test/test_nfs_log_level.py new file mode 100644 index 000000000..42a486019 --- /dev/null +++ b/test/test_nfs_log_level.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_log_level import NfsLogLevel + + +class TestNfsLogLevel(unittest.TestCase): + """ NfsLogLevel unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsLogLevel(self): + """ + Test NfsLogLevel + """ + model = swagger_client.models.nfs_log_level.NfsLogLevel() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_netgroup.py b/test/test_nfs_netgroup.py new file mode 100644 index 000000000..d346cd42f --- /dev/null +++ b/test/test_nfs_netgroup.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_netgroup import NfsNetgroup + + +class TestNfsNetgroup(unittest.TestCase): + """ NfsNetgroup unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsNetgroup(self): + """ + Test NfsNetgroup + """ + model = swagger_client.models.nfs_netgroup.NfsNetgroup() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_nlm_locks.py b/test/test_nfs_nlm_locks.py new file mode 100644 index 000000000..08320c0c9 --- /dev/null +++ b/test/test_nfs_nlm_locks.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_nlm_locks import NfsNlmLocks + + +class TestNfsNlmLocks(unittest.TestCase): + """ NfsNlmLocks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsNlmLocks(self): + """ + Test NfsNlmLocks + """ + model = swagger_client.models.nfs_nlm_locks.NfsNlmLocks() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_nlm_locks_lock.py b/test/test_nfs_nlm_locks_lock.py new file mode 100644 index 000000000..80c765a87 --- /dev/null +++ b/test/test_nfs_nlm_locks_lock.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_nlm_locks_lock import NfsNlmLocksLock + + +class TestNfsNlmLocksLock(unittest.TestCase): + """ NfsNlmLocksLock unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsNlmLocksLock(self): + """ + Test NfsNlmLocksLock + """ + model = swagger_client.models.nfs_nlm_locks_lock.NfsNlmLocksLock() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_nlm_sessions.py b/test/test_nfs_nlm_sessions.py new file mode 100644 index 000000000..a8e5c16fb --- /dev/null +++ b/test/test_nfs_nlm_sessions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_nlm_sessions import NfsNlmSessions + + +class TestNfsNlmSessions(unittest.TestCase): + """ NfsNlmSessions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsNlmSessions(self): + """ + Test NfsNlmSessions + """ + model = swagger_client.models.nfs_nlm_sessions.NfsNlmSessions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_nlm_sessions_extended.py b/test/test_nfs_nlm_sessions_extended.py new file mode 100644 index 000000000..5f88d37b9 --- /dev/null +++ b/test/test_nfs_nlm_sessions_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_nlm_sessions_extended import NfsNlmSessionsExtended + + +class TestNfsNlmSessionsExtended(unittest.TestCase): + """ NfsNlmSessionsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsNlmSessionsExtended(self): + """ + Test NfsNlmSessionsExtended + """ + model = swagger_client.models.nfs_nlm_sessions_extended.NfsNlmSessionsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_nlm_sessions_session.py b/test/test_nfs_nlm_sessions_session.py new file mode 100644 index 000000000..806edfe53 --- /dev/null +++ b/test/test_nfs_nlm_sessions_session.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_nlm_sessions_session import NfsNlmSessionsSession + + +class TestNfsNlmSessionsSession(unittest.TestCase): + """ NfsNlmSessionsSession unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsNlmSessionsSession(self): + """ + Test NfsNlmSessionsSession + """ + model = swagger_client.models.nfs_nlm_sessions_session.NfsNlmSessionsSession() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_nlm_waiters.py b/test/test_nfs_nlm_waiters.py new file mode 100644 index 000000000..c317f889d --- /dev/null +++ b/test/test_nfs_nlm_waiters.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_nlm_waiters import NfsNlmWaiters + + +class TestNfsNlmWaiters(unittest.TestCase): + """ NfsNlmWaiters unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsNlmWaiters(self): + """ + Test NfsNlmWaiters + """ + model = swagger_client.models.nfs_nlm_waiters.NfsNlmWaiters() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_settings_export.py b/test/test_nfs_settings_export.py new file mode 100644 index 000000000..eb8ab5a41 --- /dev/null +++ b/test/test_nfs_settings_export.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_settings_export import NfsSettingsExport + + +class TestNfsSettingsExport(unittest.TestCase): + """ NfsSettingsExport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsSettingsExport(self): + """ + Test NfsSettingsExport + """ + model = swagger_client.models.nfs_settings_export.NfsSettingsExport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_settings_export_settings.py b/test/test_nfs_settings_export_settings.py new file mode 100644 index 000000000..991623d69 --- /dev/null +++ b/test/test_nfs_settings_export_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_settings_export_settings import NfsSettingsExportSettings + + +class TestNfsSettingsExportSettings(unittest.TestCase): + """ NfsSettingsExportSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsSettingsExportSettings(self): + """ + Test NfsSettingsExportSettings + """ + model = swagger_client.models.nfs_settings_export_settings.NfsSettingsExportSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_settings_global.py b/test/test_nfs_settings_global.py new file mode 100644 index 000000000..11de06659 --- /dev/null +++ b/test/test_nfs_settings_global.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_settings_global import NfsSettingsGlobal + + +class TestNfsSettingsGlobal(unittest.TestCase): + """ NfsSettingsGlobal unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsSettingsGlobal(self): + """ + Test NfsSettingsGlobal + """ + model = swagger_client.models.nfs_settings_global.NfsSettingsGlobal() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_settings_global_settings.py b/test/test_nfs_settings_global_settings.py new file mode 100644 index 000000000..b974bd99b --- /dev/null +++ b/test/test_nfs_settings_global_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_settings_global_settings import NfsSettingsGlobalSettings + + +class TestNfsSettingsGlobalSettings(unittest.TestCase): + """ NfsSettingsGlobalSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsSettingsGlobalSettings(self): + """ + Test NfsSettingsGlobalSettings + """ + model = swagger_client.models.nfs_settings_global_settings.NfsSettingsGlobalSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_settings_zone.py b/test/test_nfs_settings_zone.py new file mode 100644 index 000000000..ffb9f0411 --- /dev/null +++ b/test/test_nfs_settings_zone.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_settings_zone import NfsSettingsZone + + +class TestNfsSettingsZone(unittest.TestCase): + """ NfsSettingsZone unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsSettingsZone(self): + """ + Test NfsSettingsZone + """ + model = swagger_client.models.nfs_settings_zone.NfsSettingsZone() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nfs_settings_zone_settings.py b/test/test_nfs_settings_zone_settings.py new file mode 100644 index 000000000..f3bf137bc --- /dev/null +++ b/test/test_nfs_settings_zone_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nfs_settings_zone_settings import NfsSettingsZoneSettings + + +class TestNfsSettingsZoneSettings(unittest.TestCase): + """ NfsSettingsZoneSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNfsSettingsZoneSettings(self): + """ + Test NfsSettingsZoneSettings + """ + model = swagger_client.models.nfs_settings_zone_settings.NfsSettingsZoneSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_drives.py b/test/test_node_drives.py new file mode 100644 index 000000000..bc85dfbac --- /dev/null +++ b/test/test_node_drives.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_drives import NodeDrives + + +class TestNodeDrives(unittest.TestCase): + """ NodeDrives unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeDrives(self): + """ + Test NodeDrives + """ + model = swagger_client.models.node_drives.NodeDrives() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_drives_node.py b/test/test_node_drives_node.py new file mode 100644 index 000000000..d36b676ab --- /dev/null +++ b/test/test_node_drives_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_drives_node import NodeDrivesNode + + +class TestNodeDrivesNode(unittest.TestCase): + """ NodeDrivesNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeDrivesNode(self): + """ + Test NodeDrivesNode + """ + model = swagger_client.models.node_drives_node.NodeDrivesNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_drives_node_drive.py b/test/test_node_drives_node_drive.py new file mode 100644 index 000000000..f7c486bde --- /dev/null +++ b/test/test_node_drives_node_drive.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_drives_node_drive import NodeDrivesNodeDrive + + +class TestNodeDrivesNodeDrive(unittest.TestCase): + """ NodeDrivesNodeDrive unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeDrivesNodeDrive(self): + """ + Test NodeDrivesNodeDrive + """ + model = swagger_client.models.node_drives_node_drive.NodeDrivesNodeDrive() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_drives_node_drive_firmware.py b/test/test_node_drives_node_drive_firmware.py new file mode 100644 index 000000000..8e2d550fd --- /dev/null +++ b/test/test_node_drives_node_drive_firmware.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_drives_node_drive_firmware import NodeDrivesNodeDriveFirmware + + +class TestNodeDrivesNodeDriveFirmware(unittest.TestCase): + """ NodeDrivesNodeDriveFirmware unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeDrivesNodeDriveFirmware(self): + """ + Test NodeDrivesNodeDriveFirmware + """ + model = swagger_client.models.node_drives_node_drive_firmware.NodeDrivesNodeDriveFirmware() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_drives_purposelist.py b/test/test_node_drives_purposelist.py new file mode 100644 index 000000000..2d9e35643 --- /dev/null +++ b/test/test_node_drives_purposelist.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_drives_purposelist import NodeDrivesPurposelist + + +class TestNodeDrivesPurposelist(unittest.TestCase): + """ NodeDrivesPurposelist unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeDrivesPurposelist(self): + """ + Test NodeDrivesPurposelist + """ + model = swagger_client.models.node_drives_purposelist.NodeDrivesPurposelist() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_drives_purposelist_node.py b/test/test_node_drives_purposelist_node.py new file mode 100644 index 000000000..28ca6c381 --- /dev/null +++ b/test/test_node_drives_purposelist_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_drives_purposelist_node import NodeDrivesPurposelistNode + + +class TestNodeDrivesPurposelistNode(unittest.TestCase): + """ NodeDrivesPurposelistNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeDrivesPurposelistNode(self): + """ + Test NodeDrivesPurposelistNode + """ + model = swagger_client.models.node_drives_purposelist_node.NodeDrivesPurposelistNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_drives_purposelist_node_purpose.py b/test/test_node_drives_purposelist_node_purpose.py new file mode 100644 index 000000000..bb732f944 --- /dev/null +++ b/test/test_node_drives_purposelist_node_purpose.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_drives_purposelist_node_purpose import NodeDrivesPurposelistNodePurpose + + +class TestNodeDrivesPurposelistNodePurpose(unittest.TestCase): + """ NodeDrivesPurposelistNodePurpose unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeDrivesPurposelistNodePurpose(self): + """ + Test NodeDrivesPurposelistNodePurpose + """ + model = swagger_client.models.node_drives_purposelist_node_purpose.NodeDrivesPurposelistNodePurpose() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_hardware.py b/test/test_node_hardware.py new file mode 100644 index 000000000..37ef5e62e --- /dev/null +++ b/test/test_node_hardware.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_hardware import NodeHardware + + +class TestNodeHardware(unittest.TestCase): + """ NodeHardware unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeHardware(self): + """ + Test NodeHardware + """ + model = swagger_client.models.node_hardware.NodeHardware() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_hardware_node.py b/test/test_node_hardware_node.py new file mode 100644 index 000000000..daeec532f --- /dev/null +++ b/test/test_node_hardware_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_hardware_node import NodeHardwareNode + + +class TestNodeHardwareNode(unittest.TestCase): + """ NodeHardwareNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeHardwareNode(self): + """ + Test NodeHardwareNode + """ + model = swagger_client.models.node_hardware_node.NodeHardwareNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_partitions.py b/test/test_node_partitions.py new file mode 100644 index 000000000..02e66eb1a --- /dev/null +++ b/test/test_node_partitions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_partitions import NodePartitions + + +class TestNodePartitions(unittest.TestCase): + """ NodePartitions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodePartitions(self): + """ + Test NodePartitions + """ + model = swagger_client.models.node_partitions.NodePartitions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_partitions_node.py b/test/test_node_partitions_node.py new file mode 100644 index 000000000..86394447b --- /dev/null +++ b/test/test_node_partitions_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_partitions_node import NodePartitionsNode + + +class TestNodePartitionsNode(unittest.TestCase): + """ NodePartitionsNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodePartitionsNode(self): + """ + Test NodePartitionsNode + """ + model = swagger_client.models.node_partitions_node.NodePartitionsNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_partitions_node_partition.py b/test/test_node_partitions_node_partition.py new file mode 100644 index 000000000..3d7eff6bd --- /dev/null +++ b/test/test_node_partitions_node_partition.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_partitions_node_partition import NodePartitionsNodePartition + + +class TestNodePartitionsNodePartition(unittest.TestCase): + """ NodePartitionsNodePartition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodePartitionsNodePartition(self): + """ + Test NodePartitionsNodePartition + """ + model = swagger_client.models.node_partitions_node_partition.NodePartitionsNodePartition() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_partitions_node_partition_statfs.py b/test/test_node_partitions_node_partition_statfs.py new file mode 100644 index 000000000..d250dc6cd --- /dev/null +++ b/test/test_node_partitions_node_partition_statfs.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_partitions_node_partition_statfs import NodePartitionsNodePartitionStatfs + + +class TestNodePartitionsNodePartitionStatfs(unittest.TestCase): + """ NodePartitionsNodePartitionStatfs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodePartitionsNodePartitionStatfs(self): + """ + Test NodePartitionsNodePartitionStatfs + """ + model = swagger_client.models.node_partitions_node_partition_statfs.NodePartitionsNodePartitionStatfs() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_sensors.py b/test/test_node_sensors.py new file mode 100644 index 000000000..61264c167 --- /dev/null +++ b/test/test_node_sensors.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_sensors import NodeSensors + + +class TestNodeSensors(unittest.TestCase): + """ NodeSensors unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeSensors(self): + """ + Test NodeSensors + """ + model = swagger_client.models.node_sensors.NodeSensors() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_sensors_node.py b/test/test_node_sensors_node.py new file mode 100644 index 000000000..cec411c8f --- /dev/null +++ b/test/test_node_sensors_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_sensors_node import NodeSensorsNode + + +class TestNodeSensorsNode(unittest.TestCase): + """ NodeSensorsNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeSensorsNode(self): + """ + Test NodeSensorsNode + """ + model = swagger_client.models.node_sensors_node.NodeSensorsNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_sensors_node_sensor.py b/test/test_node_sensors_node_sensor.py new file mode 100644 index 000000000..2b820c835 --- /dev/null +++ b/test/test_node_sensors_node_sensor.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_sensors_node_sensor import NodeSensorsNodeSensor + + +class TestNodeSensorsNodeSensor(unittest.TestCase): + """ NodeSensorsNodeSensor unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeSensorsNodeSensor(self): + """ + Test NodeSensorsNodeSensor + """ + model = swagger_client.models.node_sensors_node_sensor.NodeSensorsNodeSensor() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_sensors_node_sensor_value.py b/test/test_node_sensors_node_sensor_value.py new file mode 100644 index 000000000..e10490630 --- /dev/null +++ b/test/test_node_sensors_node_sensor_value.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_sensors_node_sensor_value import NodeSensorsNodeSensorValue + + +class TestNodeSensorsNodeSensorValue(unittest.TestCase): + """ NodeSensorsNodeSensorValue unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeSensorsNodeSensorValue(self): + """ + Test NodeSensorsNodeSensorValue + """ + model = swagger_client.models.node_sensors_node_sensor_value.NodeSensorsNodeSensorValue() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state.py b/test/test_node_state.py new file mode 100644 index 000000000..f9dfada0f --- /dev/null +++ b/test/test_node_state.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state import NodeState + + +class TestNodeState(unittest.TestCase): + """ NodeState unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeState(self): + """ + Test NodeState + """ + model = swagger_client.models.node_state.NodeState() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_node.py b/test/test_node_state_node.py new file mode 100644 index 000000000..6523e035d --- /dev/null +++ b/test/test_node_state_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_node import NodeStateNode + + +class TestNodeStateNode(unittest.TestCase): + """ NodeStateNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateNode(self): + """ + Test NodeStateNode + """ + model = swagger_client.models.node_state_node.NodeStateNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_readonly.py b/test/test_node_state_readonly.py new file mode 100644 index 000000000..5ad3e1661 --- /dev/null +++ b/test/test_node_state_readonly.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_readonly import NodeStateReadonly + + +class TestNodeStateReadonly(unittest.TestCase): + """ NodeStateReadonly unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateReadonly(self): + """ + Test NodeStateReadonly + """ + model = swagger_client.models.node_state_readonly.NodeStateReadonly() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_readonly_extended.py b/test/test_node_state_readonly_extended.py new file mode 100644 index 000000000..ce5afaca0 --- /dev/null +++ b/test/test_node_state_readonly_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_readonly_extended import NodeStateReadonlyExtended + + +class TestNodeStateReadonlyExtended(unittest.TestCase): + """ NodeStateReadonlyExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateReadonlyExtended(self): + """ + Test NodeStateReadonlyExtended + """ + model = swagger_client.models.node_state_readonly_extended.NodeStateReadonlyExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_readonly_node.py b/test/test_node_state_readonly_node.py new file mode 100644 index 000000000..16bb8faad --- /dev/null +++ b/test/test_node_state_readonly_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_readonly_node import NodeStateReadonlyNode + + +class TestNodeStateReadonlyNode(unittest.TestCase): + """ NodeStateReadonlyNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateReadonlyNode(self): + """ + Test NodeStateReadonlyNode + """ + model = swagger_client.models.node_state_readonly_node.NodeStateReadonlyNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_servicelight.py b/test/test_node_state_servicelight.py new file mode 100644 index 000000000..faa7efc40 --- /dev/null +++ b/test/test_node_state_servicelight.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_servicelight import NodeStateServicelight + + +class TestNodeStateServicelight(unittest.TestCase): + """ NodeStateServicelight unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateServicelight(self): + """ + Test NodeStateServicelight + """ + model = swagger_client.models.node_state_servicelight.NodeStateServicelight() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_servicelight_extended.py b/test/test_node_state_servicelight_extended.py new file mode 100644 index 000000000..75b15a4ef --- /dev/null +++ b/test/test_node_state_servicelight_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_servicelight_extended import NodeStateServicelightExtended + + +class TestNodeStateServicelightExtended(unittest.TestCase): + """ NodeStateServicelightExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateServicelightExtended(self): + """ + Test NodeStateServicelightExtended + """ + model = swagger_client.models.node_state_servicelight_extended.NodeStateServicelightExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_servicelight_node.py b/test/test_node_state_servicelight_node.py new file mode 100644 index 000000000..6946b47c5 --- /dev/null +++ b/test/test_node_state_servicelight_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_servicelight_node import NodeStateServicelightNode + + +class TestNodeStateServicelightNode(unittest.TestCase): + """ NodeStateServicelightNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateServicelightNode(self): + """ + Test NodeStateServicelightNode + """ + model = swagger_client.models.node_state_servicelight_node.NodeStateServicelightNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_smartfail.py b/test/test_node_state_smartfail.py new file mode 100644 index 000000000..f072dad94 --- /dev/null +++ b/test/test_node_state_smartfail.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_smartfail import NodeStateSmartfail + + +class TestNodeStateSmartfail(unittest.TestCase): + """ NodeStateSmartfail unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateSmartfail(self): + """ + Test NodeStateSmartfail + """ + model = swagger_client.models.node_state_smartfail.NodeStateSmartfail() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_smartfail_extended.py b/test/test_node_state_smartfail_extended.py new file mode 100644 index 000000000..3644440ea --- /dev/null +++ b/test/test_node_state_smartfail_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_smartfail_extended import NodeStateSmartfailExtended + + +class TestNodeStateSmartfailExtended(unittest.TestCase): + """ NodeStateSmartfailExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateSmartfailExtended(self): + """ + Test NodeStateSmartfailExtended + """ + model = swagger_client.models.node_state_smartfail_extended.NodeStateSmartfailExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_state_smartfail_node.py b/test/test_node_state_smartfail_node.py new file mode 100644 index 000000000..45a0ff13d --- /dev/null +++ b/test/test_node_state_smartfail_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_state_smartfail_node import NodeStateSmartfailNode + + +class TestNodeStateSmartfailNode(unittest.TestCase): + """ NodeStateSmartfailNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStateSmartfailNode(self): + """ + Test NodeStateSmartfailNode + """ + model = swagger_client.models.node_state_smartfail_node.NodeStateSmartfailNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status.py b/test/test_node_status.py new file mode 100644 index 000000000..f887c319a --- /dev/null +++ b/test/test_node_status.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status import NodeStatus + + +class TestNodeStatus(unittest.TestCase): + """ NodeStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatus(self): + """ + Test NodeStatus + """ + model = swagger_client.models.node_status.NodeStatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_batterystatus.py b/test/test_node_status_batterystatus.py new file mode 100644 index 000000000..a6faeb907 --- /dev/null +++ b/test/test_node_status_batterystatus.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_batterystatus import NodeStatusBatterystatus + + +class TestNodeStatusBatterystatus(unittest.TestCase): + """ NodeStatusBatterystatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusBatterystatus(self): + """ + Test NodeStatusBatterystatus + """ + model = swagger_client.models.node_status_batterystatus.NodeStatusBatterystatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_batterystatus_node.py b/test/test_node_status_batterystatus_node.py new file mode 100644 index 000000000..9dcece1e6 --- /dev/null +++ b/test/test_node_status_batterystatus_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_batterystatus_node import NodeStatusBatterystatusNode + + +class TestNodeStatusBatterystatusNode(unittest.TestCase): + """ NodeStatusBatterystatusNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusBatterystatusNode(self): + """ + Test NodeStatusBatterystatusNode + """ + model = swagger_client.models.node_status_batterystatus_node.NodeStatusBatterystatusNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_node.py b/test/test_node_status_node.py new file mode 100644 index 000000000..c96261706 --- /dev/null +++ b/test/test_node_status_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_node import NodeStatusNode + + +class TestNodeStatusNode(unittest.TestCase): + """ NodeStatusNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusNode(self): + """ + Test NodeStatusNode + """ + model = swagger_client.models.node_status_node.NodeStatusNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_node_batterystatus.py b/test/test_node_status_node_batterystatus.py new file mode 100644 index 000000000..95151785a --- /dev/null +++ b/test/test_node_status_node_batterystatus.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_node_batterystatus import NodeStatusNodeBatterystatus + + +class TestNodeStatusNodeBatterystatus(unittest.TestCase): + """ NodeStatusNodeBatterystatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusNodeBatterystatus(self): + """ + Test NodeStatusNodeBatterystatus + """ + model = swagger_client.models.node_status_node_batterystatus.NodeStatusNodeBatterystatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_node_capacity_item.py b/test/test_node_status_node_capacity_item.py new file mode 100644 index 000000000..129071f5a --- /dev/null +++ b/test/test_node_status_node_capacity_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_node_capacity_item import NodeStatusNodeCapacityItem + + +class TestNodeStatusNodeCapacityItem(unittest.TestCase): + """ NodeStatusNodeCapacityItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusNodeCapacityItem(self): + """ + Test NodeStatusNodeCapacityItem + """ + model = swagger_client.models.node_status_node_capacity_item.NodeStatusNodeCapacityItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_node_cpu.py b/test/test_node_status_node_cpu.py new file mode 100644 index 000000000..f0441c706 --- /dev/null +++ b/test/test_node_status_node_cpu.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_node_cpu import NodeStatusNodeCpu + + +class TestNodeStatusNodeCpu(unittest.TestCase): + """ NodeStatusNodeCpu unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusNodeCpu(self): + """ + Test NodeStatusNodeCpu + """ + model = swagger_client.models.node_status_node_cpu.NodeStatusNodeCpu() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_node_nvram.py b/test/test_node_status_node_nvram.py new file mode 100644 index 000000000..227bb7b88 --- /dev/null +++ b/test/test_node_status_node_nvram.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_node_nvram import NodeStatusNodeNvram + + +class TestNodeStatusNodeNvram(unittest.TestCase): + """ NodeStatusNodeNvram unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusNodeNvram(self): + """ + Test NodeStatusNodeNvram + """ + model = swagger_client.models.node_status_node_nvram.NodeStatusNodeNvram() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_node_nvram_battery.py b/test/test_node_status_node_nvram_battery.py new file mode 100644 index 000000000..68ce3b340 --- /dev/null +++ b/test/test_node_status_node_nvram_battery.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_node_nvram_battery import NodeStatusNodeNvramBattery + + +class TestNodeStatusNodeNvramBattery(unittest.TestCase): + """ NodeStatusNodeNvramBattery unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusNodeNvramBattery(self): + """ + Test NodeStatusNodeNvramBattery + """ + model = swagger_client.models.node_status_node_nvram_battery.NodeStatusNodeNvramBattery() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_node_powersupplies.py b/test/test_node_status_node_powersupplies.py new file mode 100644 index 000000000..a2a867057 --- /dev/null +++ b/test/test_node_status_node_powersupplies.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_node_powersupplies import NodeStatusNodePowersupplies + + +class TestNodeStatusNodePowersupplies(unittest.TestCase): + """ NodeStatusNodePowersupplies unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusNodePowersupplies(self): + """ + Test NodeStatusNodePowersupplies + """ + model = swagger_client.models.node_status_node_powersupplies.NodeStatusNodePowersupplies() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_node_status_node_powersupplies_supply.py b/test/test_node_status_node_powersupplies_supply.py new file mode 100644 index 000000000..115def6cd --- /dev/null +++ b/test/test_node_status_node_powersupplies_supply.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.node_status_node_powersupplies_supply import NodeStatusNodePowersuppliesSupply + + +class TestNodeStatusNodePowersuppliesSupply(unittest.TestCase): + """ NodeStatusNodePowersuppliesSupply unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeStatusNodePowersuppliesSupply(self): + """ + Test NodeStatusNodePowersuppliesSupply + """ + model = swagger_client.models.node_status_node_powersupplies_supply.NodeStatusNodePowersuppliesSupply() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_nodes_node_firmware_status.py b/test/test_nodes_node_firmware_status.py new file mode 100644 index 000000000..4221db24e --- /dev/null +++ b/test/test_nodes_node_firmware_status.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.nodes_node_firmware_status import NodesNodeFirmwareStatus + + +class TestNodesNodeFirmwareStatus(unittest.TestCase): + """ NodesNodeFirmwareStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodesNodeFirmwareStatus(self): + """ + Test NodesNodeFirmwareStatus + """ + model = swagger_client.models.nodes_node_firmware_status.NodesNodeFirmwareStatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ntp_server.py b/test/test_ntp_server.py new file mode 100644 index 000000000..68ad3afce --- /dev/null +++ b/test/test_ntp_server.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ntp_server import NtpServer + + +class TestNtpServer(unittest.TestCase): + """ NtpServer unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNtpServer(self): + """ + Test NtpServer + """ + model = swagger_client.models.ntp_server.NtpServer() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ntp_server_create_params.py b/test/test_ntp_server_create_params.py new file mode 100644 index 000000000..e615e461b --- /dev/null +++ b/test/test_ntp_server_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ntp_server_create_params import NtpServerCreateParams + + +class TestNtpServerCreateParams(unittest.TestCase): + """ NtpServerCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNtpServerCreateParams(self): + """ + Test NtpServerCreateParams + """ + model = swagger_client.models.ntp_server_create_params.NtpServerCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ntp_server_extended.py b/test/test_ntp_server_extended.py new file mode 100644 index 000000000..c85497e7c --- /dev/null +++ b/test/test_ntp_server_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ntp_server_extended import NtpServerExtended + + +class TestNtpServerExtended(unittest.TestCase): + """ NtpServerExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNtpServerExtended(self): + """ + Test NtpServerExtended + """ + model = swagger_client.models.ntp_server_extended.NtpServerExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ntp_servers.py b/test/test_ntp_servers.py new file mode 100644 index 000000000..af80cd8ba --- /dev/null +++ b/test/test_ntp_servers.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ntp_servers import NtpServers + + +class TestNtpServers(unittest.TestCase): + """ NtpServers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNtpServers(self): + """ + Test NtpServers + """ + model = swagger_client.models.ntp_servers.NtpServers() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ntp_servers_extended.py b/test/test_ntp_servers_extended.py new file mode 100644 index 000000000..fc0f26b9e --- /dev/null +++ b/test/test_ntp_servers_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ntp_servers_extended import NtpServersExtended + + +class TestNtpServersExtended(unittest.TestCase): + """ NtpServersExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNtpServersExtended(self): + """ + Test NtpServersExtended + """ + model = swagger_client.models.ntp_servers_extended.NtpServersExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ntp_settings.py b/test/test_ntp_settings.py new file mode 100644 index 000000000..3aac3b5d8 --- /dev/null +++ b/test/test_ntp_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ntp_settings import NtpSettings + + +class TestNtpSettings(unittest.TestCase): + """ NtpSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNtpSettings(self): + """ + Test NtpSettings + """ + model = swagger_client.models.ntp_settings.NtpSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_ntp_settings_settings.py b/test/test_ntp_settings_settings.py new file mode 100644 index 000000000..8e06e8a2d --- /dev/null +++ b/test/test_ntp_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.ntp_settings_settings import NtpSettingsSettings + + +class TestNtpSettingsSettings(unittest.TestCase): + """ NtpSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNtpSettingsSettings(self): + """ + Test NtpSettingsSettings + """ + model = swagger_client.models.ntp_settings_settings.NtpSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_pools_pool_interfaces.py b/test/test_pools_pool_interfaces.py new file mode 100644 index 000000000..ee7c4ca9b --- /dev/null +++ b/test/test_pools_pool_interfaces.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.pools_pool_interfaces import PoolsPoolInterfaces + + +class TestPoolsPoolInterfaces(unittest.TestCase): + """ PoolsPoolInterfaces unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoolsPoolInterfaces(self): + """ + Test PoolsPoolInterfaces + """ + model = swagger_client.models.pools_pool_interfaces.PoolsPoolInterfaces() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_pools_pool_interfaces_interface_item.py b/test/test_pools_pool_interfaces_interface_item.py new file mode 100644 index 000000000..f087602c5 --- /dev/null +++ b/test/test_pools_pool_interfaces_interface_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.pools_pool_interfaces_interface_item import PoolsPoolInterfacesInterfaceItem + + +class TestPoolsPoolInterfacesInterfaceItem(unittest.TestCase): + """ PoolsPoolInterfacesInterfaceItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoolsPoolInterfacesInterfaceItem(self): + """ + Test PoolsPoolInterfacesInterfaceItem + """ + model = swagger_client.models.pools_pool_interfaces_interface_item.PoolsPoolInterfacesInterfaceItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_pools_pool_interfaces_interface_item_owner.py b/test/test_pools_pool_interfaces_interface_item_owner.py new file mode 100644 index 000000000..a429dd731 --- /dev/null +++ b/test/test_pools_pool_interfaces_interface_item_owner.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.pools_pool_interfaces_interface_item_owner import PoolsPoolInterfacesInterfaceItemOwner + + +class TestPoolsPoolInterfacesInterfaceItemOwner(unittest.TestCase): + """ PoolsPoolInterfacesInterfaceItemOwner unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoolsPoolInterfacesInterfaceItemOwner(self): + """ + Test PoolsPoolInterfacesInterfaceItemOwner + """ + model = swagger_client.models.pools_pool_interfaces_interface_item_owner.PoolsPoolInterfacesInterfaceItemOwner() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_pools_pool_rule.py b/test/test_pools_pool_rule.py new file mode 100644 index 000000000..756360efa --- /dev/null +++ b/test/test_pools_pool_rule.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.pools_pool_rule import PoolsPoolRule + + +class TestPoolsPoolRule(unittest.TestCase): + """ PoolsPoolRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoolsPoolRule(self): + """ + Test PoolsPoolRule + """ + model = swagger_client.models.pools_pool_rule.PoolsPoolRule() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_pools_pool_rules.py b/test/test_pools_pool_rules.py new file mode 100644 index 000000000..c9a3d25e7 --- /dev/null +++ b/test/test_pools_pool_rules.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.pools_pool_rules import PoolsPoolRules + + +class TestPoolsPoolRules(unittest.TestCase): + """ PoolsPoolRules unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoolsPoolRules(self): + """ + Test PoolsPoolRules + """ + model = swagger_client.models.pools_pool_rules.PoolsPoolRules() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_pools_pool_rules_extended.py b/test/test_pools_pool_rules_extended.py new file mode 100644 index 000000000..575a41cca --- /dev/null +++ b/test/test_pools_pool_rules_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.pools_pool_rules_extended import PoolsPoolRulesExtended + + +class TestPoolsPoolRulesExtended(unittest.TestCase): + """ PoolsPoolRulesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoolsPoolRulesExtended(self): + """ + Test PoolsPoolRulesExtended + """ + model = swagger_client.models.pools_pool_rules_extended.PoolsPoolRulesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_pools_pool_rules_rule.py b/test/test_pools_pool_rules_rule.py new file mode 100644 index 000000000..9b8aa8a47 --- /dev/null +++ b/test/test_pools_pool_rules_rule.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.pools_pool_rules_rule import PoolsPoolRulesRule + + +class TestPoolsPoolRulesRule(unittest.TestCase): + """ PoolsPoolRulesRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoolsPoolRulesRule(self): + """ + Test PoolsPoolRulesRule + """ + model = swagger_client.models.pools_pool_rules_rule.PoolsPoolRulesRule() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_pools_pool_sc_resume_node.py b/test/test_pools_pool_sc_resume_node.py new file mode 100644 index 000000000..a24772c56 --- /dev/null +++ b/test/test_pools_pool_sc_resume_node.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.pools_pool_sc_resume_node import PoolsPoolScResumeNode + + +class TestPoolsPoolScResumeNode(unittest.TestCase): + """ PoolsPoolScResumeNode unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoolsPoolScResumeNode(self): + """ + Test PoolsPoolScResumeNode + """ + model = swagger_client.models.pools_pool_sc_resume_node.PoolsPoolScResumeNode() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_protocols_api.py b/test/test_protocols_api.py new file mode 100644 index 000000000..4f1f4f485 --- /dev/null +++ b/test/test_protocols_api.py @@ -0,0 +1,835 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.protocols_api import ProtocolsApi + + +class TestProtocolsApi(unittest.TestCase): + """ ProtocolsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.protocols_api.ProtocolsApi() + + def tearDown(self): + pass + + def test_create_hdfs_proxyuser(self): + """ + Test case for create_hdfs_proxyuser + + + """ + pass + + def test_create_hdfs_rack(self): + """ + Test case for create_hdfs_rack + + + """ + pass + + def test_create_ndmp_user(self): + """ + Test case for create_ndmp_user + + + """ + pass + + def test_create_nfs_aliase(self): + """ + Test case for create_nfs_aliase + + + """ + pass + + def test_create_nfs_export(self): + """ + Test case for create_nfs_export + + + """ + pass + + def test_create_nfs_netgroup_check_item(self): + """ + Test case for create_nfs_netgroup_check_item + + + """ + pass + + def test_create_nfs_netgroup_flush_item(self): + """ + Test case for create_nfs_netgroup_flush_item + + + """ + pass + + def test_create_nfs_nlm_sessions_check_item(self): + """ + Test case for create_nfs_nlm_sessions_check_item + + + """ + pass + + def test_create_nfs_reload_item(self): + """ + Test case for create_nfs_reload_item + + + """ + pass + + def test_create_ntp_server(self): + """ + Test case for create_ntp_server + + + """ + pass + + def test_create_smb_log_level_filter(self): + """ + Test case for create_smb_log_level_filter + + + """ + pass + + def test_create_smb_share(self): + """ + Test case for create_smb_share + + + """ + pass + + def test_create_swift_account(self): + """ + Test case for create_swift_account + + + """ + pass + + def test_delete_hdfs_proxyuser(self): + """ + Test case for delete_hdfs_proxyuser + + + """ + pass + + def test_delete_hdfs_rack(self): + """ + Test case for delete_hdfs_rack + + + """ + pass + + def test_delete_ndmp_user(self): + """ + Test case for delete_ndmp_user + + + """ + pass + + def test_delete_nfs_aliase(self): + """ + Test case for delete_nfs_aliase + + + """ + pass + + def test_delete_nfs_export(self): + """ + Test case for delete_nfs_export + + + """ + pass + + def test_delete_nfs_nlm_session(self): + """ + Test case for delete_nfs_nlm_session + + + """ + pass + + def test_delete_ntp_server(self): + """ + Test case for delete_ntp_server + + + """ + pass + + def test_delete_ntp_servers(self): + """ + Test case for delete_ntp_servers + + + """ + pass + + def test_delete_smb_log_level_filter(self): + """ + Test case for delete_smb_log_level_filter + + + """ + pass + + def test_delete_smb_log_level_filters(self): + """ + Test case for delete_smb_log_level_filters + + + """ + pass + + def test_delete_smb_openfile(self): + """ + Test case for delete_smb_openfile + + + """ + pass + + def test_delete_smb_session(self): + """ + Test case for delete_smb_session + + + """ + pass + + def test_delete_smb_sessions_computer_user(self): + """ + Test case for delete_smb_sessions_computer_user + + + """ + pass + + def test_delete_smb_share(self): + """ + Test case for delete_smb_share + + + """ + pass + + def test_delete_smb_shares(self): + """ + Test case for delete_smb_shares + + + """ + pass + + def test_delete_swift_account(self): + """ + Test case for delete_swift_account + + + """ + pass + + def test_get_ftp_settings(self): + """ + Test case for get_ftp_settings + + + """ + pass + + def test_get_hdfs_log_level(self): + """ + Test case for get_hdfs_log_level + + + """ + pass + + def test_get_hdfs_proxyuser(self): + """ + Test case for get_hdfs_proxyuser + + + """ + pass + + def test_get_hdfs_rack(self): + """ + Test case for get_hdfs_rack + + + """ + pass + + def test_get_hdfs_settings(self): + """ + Test case for get_hdfs_settings + + + """ + pass + + def test_get_http_settings(self): + """ + Test case for get_http_settings + + + """ + pass + + def test_get_ndmp_contexts_bre(self): + """ + Test case for get_ndmp_contexts_bre + + + """ + pass + + def test_get_ndmp_diagnostics(self): + """ + Test case for get_ndmp_diagnostics + + + """ + pass + + def test_get_ndmp_logs(self): + """ + Test case for get_ndmp_logs + + + """ + pass + + def test_get_ndmp_sessions(self): + """ + Test case for get_ndmp_sessions + + + """ + pass + + def test_get_ndmp_settings_global(self): + """ + Test case for get_ndmp_settings_global + + + """ + pass + + def test_get_ndmp_user(self): + """ + Test case for get_ndmp_user + + + """ + pass + + def test_get_nfs_aliase(self): + """ + Test case for get_nfs_aliase + + + """ + pass + + def test_get_nfs_check(self): + """ + Test case for get_nfs_check + + + """ + pass + + def test_get_nfs_export(self): + """ + Test case for get_nfs_export + + + """ + pass + + def test_get_nfs_exports_summary(self): + """ + Test case for get_nfs_exports_summary + + + """ + pass + + def test_get_nfs_log_level(self): + """ + Test case for get_nfs_log_level + + + """ + pass + + def test_get_nfs_netgroup(self): + """ + Test case for get_nfs_netgroup + + + """ + pass + + def test_get_nfs_nlm_locks(self): + """ + Test case for get_nfs_nlm_locks + + + """ + pass + + def test_get_nfs_nlm_session(self): + """ + Test case for get_nfs_nlm_session + + + """ + pass + + def test_get_nfs_nlm_sessions(self): + """ + Test case for get_nfs_nlm_sessions + + + """ + pass + + def test_get_nfs_nlm_waiters(self): + """ + Test case for get_nfs_nlm_waiters + + + """ + pass + + def test_get_nfs_settings_export(self): + """ + Test case for get_nfs_settings_export + + + """ + pass + + def test_get_nfs_settings_global(self): + """ + Test case for get_nfs_settings_global + + + """ + pass + + def test_get_nfs_settings_zone(self): + """ + Test case for get_nfs_settings_zone + + + """ + pass + + def test_get_ntp_server(self): + """ + Test case for get_ntp_server + + + """ + pass + + def test_get_ntp_settings(self): + """ + Test case for get_ntp_settings + + + """ + pass + + def test_get_smb_log_level(self): + """ + Test case for get_smb_log_level + + + """ + pass + + def test_get_smb_log_level_filter(self): + """ + Test case for get_smb_log_level_filter + + + """ + pass + + def test_get_smb_openfiles(self): + """ + Test case for get_smb_openfiles + + + """ + pass + + def test_get_smb_sessions(self): + """ + Test case for get_smb_sessions + + + """ + pass + + def test_get_smb_settings_global(self): + """ + Test case for get_smb_settings_global + + + """ + pass + + def test_get_smb_settings_share(self): + """ + Test case for get_smb_settings_share + + + """ + pass + + def test_get_smb_share(self): + """ + Test case for get_smb_share + + + """ + pass + + def test_get_smb_shares_summary(self): + """ + Test case for get_smb_shares_summary + + + """ + pass + + def test_get_snmp_settings(self): + """ + Test case for get_snmp_settings + + + """ + pass + + def test_get_swift_account(self): + """ + Test case for get_swift_account + + + """ + pass + + def test_list_hdfs_proxyusers(self): + """ + Test case for list_hdfs_proxyusers + + + """ + pass + + def test_list_hdfs_racks(self): + """ + Test case for list_hdfs_racks + + + """ + pass + + def test_list_ndmp_users(self): + """ + Test case for list_ndmp_users + + + """ + pass + + def test_list_nfs_aliases(self): + """ + Test case for list_nfs_aliases + + + """ + pass + + def test_list_nfs_exports(self): + """ + Test case for list_nfs_exports + + + """ + pass + + def test_list_ntp_servers(self): + """ + Test case for list_ntp_servers + + + """ + pass + + def test_list_smb_log_level_filters(self): + """ + Test case for list_smb_log_level_filters + + + """ + pass + + def test_list_smb_shares(self): + """ + Test case for list_smb_shares + + + """ + pass + + def test_list_swift_accounts(self): + """ + Test case for list_swift_accounts + + + """ + pass + + def test_update_ftp_settings(self): + """ + Test case for update_ftp_settings + + + """ + pass + + def test_update_hdfs_log_level(self): + """ + Test case for update_hdfs_log_level + + + """ + pass + + def test_update_hdfs_proxyuser(self): + """ + Test case for update_hdfs_proxyuser + + + """ + pass + + def test_update_hdfs_rack(self): + """ + Test case for update_hdfs_rack + + + """ + pass + + def test_update_hdfs_settings(self): + """ + Test case for update_hdfs_settings + + + """ + pass + + def test_update_http_settings(self): + """ + Test case for update_http_settings + + + """ + pass + + def test_update_ndmp_diagnostics(self): + """ + Test case for update_ndmp_diagnostics + + + """ + pass + + def test_update_ndmp_settings_global(self): + """ + Test case for update_ndmp_settings_global + + + """ + pass + + def test_update_ndmp_user(self): + """ + Test case for update_ndmp_user + + + """ + pass + + def test_update_nfs_aliase(self): + """ + Test case for update_nfs_aliase + + + """ + pass + + def test_update_nfs_export(self): + """ + Test case for update_nfs_export + + + """ + pass + + def test_update_nfs_log_level(self): + """ + Test case for update_nfs_log_level + + + """ + pass + + def test_update_nfs_netgroup(self): + """ + Test case for update_nfs_netgroup + + + """ + pass + + def test_update_nfs_settings_export(self): + """ + Test case for update_nfs_settings_export + + + """ + pass + + def test_update_nfs_settings_global(self): + """ + Test case for update_nfs_settings_global + + + """ + pass + + def test_update_nfs_settings_zone(self): + """ + Test case for update_nfs_settings_zone + + + """ + pass + + def test_update_ntp_server(self): + """ + Test case for update_ntp_server + + + """ + pass + + def test_update_ntp_settings(self): + """ + Test case for update_ntp_settings + + + """ + pass + + def test_update_smb_log_level(self): + """ + Test case for update_smb_log_level + + + """ + pass + + def test_update_smb_settings_global(self): + """ + Test case for update_smb_settings_global + + + """ + pass + + def test_update_smb_settings_share(self): + """ + Test case for update_smb_settings_share + + + """ + pass + + def test_update_smb_share(self): + """ + Test case for update_smb_share + + + """ + pass + + def test_update_snmp_settings(self): + """ + Test case for update_snmp_settings + + + """ + pass + + def test_update_swift_account(self): + """ + Test case for update_swift_account + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_protocols_hdfs_api.py b/test/test_protocols_hdfs_api.py new file mode 100644 index 000000000..78945ea59 --- /dev/null +++ b/test/test_protocols_hdfs_api.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.protocols_hdfs_api import ProtocolsHdfsApi + + +class TestProtocolsHdfsApi(unittest.TestCase): + """ ProtocolsHdfsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.protocols_hdfs_api.ProtocolsHdfsApi() + + def tearDown(self): + pass + + def test_create_proxyusers_name_member(self): + """ + Test case for create_proxyusers_name_member + + + """ + pass + + def test_delete_proxyusers_name_member(self): + """ + Test case for delete_proxyusers_name_member + + + """ + pass + + def test_list_proxyusers_name_members(self): + """ + Test case for list_proxyusers_name_members + + + """ + pass + + def test_update_proxyusers_name_member(self): + """ + Test case for update_proxyusers_name_member + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ads.py b/test/test_providers_ads.py new file mode 100644 index 000000000..6bf737027 --- /dev/null +++ b/test/test_providers_ads.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ads import ProvidersAds + + +class TestProvidersAds(unittest.TestCase): + """ ProvidersAds unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersAds(self): + """ + Test ProvidersAds + """ + model = swagger_client.models.providers_ads.ProvidersAds() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ads_ads_item.py b/test/test_providers_ads_ads_item.py new file mode 100644 index 000000000..ab8a7b69f --- /dev/null +++ b/test/test_providers_ads_ads_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ads_ads_item import ProvidersAdsAdsItem + + +class TestProvidersAdsAdsItem(unittest.TestCase): + """ ProvidersAdsAdsItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersAdsAdsItem(self): + """ + Test ProvidersAdsAdsItem + """ + model = swagger_client.models.providers_ads_ads_item.ProvidersAdsAdsItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ads_ads_item_extended.py b/test/test_providers_ads_ads_item_extended.py new file mode 100644 index 000000000..dfc587596 --- /dev/null +++ b/test/test_providers_ads_ads_item_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ads_ads_item_extended import ProvidersAdsAdsItemExtended + + +class TestProvidersAdsAdsItemExtended(unittest.TestCase): + """ ProvidersAdsAdsItemExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersAdsAdsItemExtended(self): + """ + Test ProvidersAdsAdsItemExtended + """ + model = swagger_client.models.providers_ads_ads_item_extended.ProvidersAdsAdsItemExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ads_extended.py b/test/test_providers_ads_extended.py new file mode 100644 index 000000000..b44e14f72 --- /dev/null +++ b/test/test_providers_ads_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ads_extended import ProvidersAdsExtended + + +class TestProvidersAdsExtended(unittest.TestCase): + """ ProvidersAdsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersAdsExtended(self): + """ + Test ProvidersAdsExtended + """ + model = swagger_client.models.providers_ads_extended.ProvidersAdsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ads_id_params.py b/test/test_providers_ads_id_params.py new file mode 100644 index 000000000..92578c661 --- /dev/null +++ b/test/test_providers_ads_id_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ads_id_params import ProvidersAdsIdParams + + +class TestProvidersAdsIdParams(unittest.TestCase): + """ ProvidersAdsIdParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersAdsIdParams(self): + """ + Test ProvidersAdsIdParams + """ + model = swagger_client.models.providers_ads_id_params.ProvidersAdsIdParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ads_item.py b/test/test_providers_ads_item.py new file mode 100644 index 000000000..4167b12e3 --- /dev/null +++ b/test/test_providers_ads_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ads_item import ProvidersAdsItem + + +class TestProvidersAdsItem(unittest.TestCase): + """ ProvidersAdsItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersAdsItem(self): + """ + Test ProvidersAdsItem + """ + model = swagger_client.models.providers_ads_item.ProvidersAdsItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_file.py b/test/test_providers_file.py new file mode 100644 index 000000000..ed54a0acd --- /dev/null +++ b/test/test_providers_file.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_file import ProvidersFile + + +class TestProvidersFile(unittest.TestCase): + """ ProvidersFile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersFile(self): + """ + Test ProvidersFile + """ + model = swagger_client.models.providers_file.ProvidersFile() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_file_file_item.py b/test/test_providers_file_file_item.py new file mode 100644 index 000000000..073d4f40c --- /dev/null +++ b/test/test_providers_file_file_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_file_file_item import ProvidersFileFileItem + + +class TestProvidersFileFileItem(unittest.TestCase): + """ ProvidersFileFileItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersFileFileItem(self): + """ + Test ProvidersFileFileItem + """ + model = swagger_client.models.providers_file_file_item.ProvidersFileFileItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_file_id_params.py b/test/test_providers_file_id_params.py new file mode 100644 index 000000000..803b330dd --- /dev/null +++ b/test/test_providers_file_id_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_file_id_params import ProvidersFileIdParams + + +class TestProvidersFileIdParams(unittest.TestCase): + """ ProvidersFileIdParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersFileIdParams(self): + """ + Test ProvidersFileIdParams + """ + model = swagger_client.models.providers_file_id_params.ProvidersFileIdParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_krb5.py b/test/test_providers_krb5.py new file mode 100644 index 000000000..12e0eee99 --- /dev/null +++ b/test/test_providers_krb5.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_krb5 import ProvidersKrb5 + + +class TestProvidersKrb5(unittest.TestCase): + """ ProvidersKrb5 unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersKrb5(self): + """ + Test ProvidersKrb5 + """ + model = swagger_client.models.providers_krb5.ProvidersKrb5() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_krb5_extended.py b/test/test_providers_krb5_extended.py new file mode 100644 index 000000000..70605befc --- /dev/null +++ b/test/test_providers_krb5_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_krb5_extended import ProvidersKrb5Extended + + +class TestProvidersKrb5Extended(unittest.TestCase): + """ ProvidersKrb5Extended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersKrb5Extended(self): + """ + Test ProvidersKrb5Extended + """ + model = swagger_client.models.providers_krb5_extended.ProvidersKrb5Extended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_krb5_id_params.py b/test/test_providers_krb5_id_params.py new file mode 100644 index 000000000..350593562 --- /dev/null +++ b/test/test_providers_krb5_id_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_krb5_id_params import ProvidersKrb5IdParams + + +class TestProvidersKrb5IdParams(unittest.TestCase): + """ ProvidersKrb5IdParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersKrb5IdParams(self): + """ + Test ProvidersKrb5IdParams + """ + model = swagger_client.models.providers_krb5_id_params.ProvidersKrb5IdParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_krb5_id_params_keytab_entry.py b/test/test_providers_krb5_id_params_keytab_entry.py new file mode 100644 index 000000000..3245871bb --- /dev/null +++ b/test/test_providers_krb5_id_params_keytab_entry.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_krb5_id_params_keytab_entry import ProvidersKrb5IdParamsKeytabEntry + + +class TestProvidersKrb5IdParamsKeytabEntry(unittest.TestCase): + """ ProvidersKrb5IdParamsKeytabEntry unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersKrb5IdParamsKeytabEntry(self): + """ + Test ProvidersKrb5IdParamsKeytabEntry + """ + model = swagger_client.models.providers_krb5_id_params_keytab_entry.ProvidersKrb5IdParamsKeytabEntry() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_krb5_item.py b/test/test_providers_krb5_item.py new file mode 100644 index 000000000..f946d792f --- /dev/null +++ b/test/test_providers_krb5_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_krb5_item import ProvidersKrb5Item + + +class TestProvidersKrb5Item(unittest.TestCase): + """ ProvidersKrb5Item unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersKrb5Item(self): + """ + Test ProvidersKrb5Item + """ + model = swagger_client.models.providers_krb5_item.ProvidersKrb5Item() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_krb5_krb5_item.py b/test/test_providers_krb5_krb5_item.py new file mode 100644 index 000000000..7a6e14a7f --- /dev/null +++ b/test/test_providers_krb5_krb5_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_krb5_krb5_item import ProvidersKrb5Krb5Item + + +class TestProvidersKrb5Krb5Item(unittest.TestCase): + """ ProvidersKrb5Krb5Item unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersKrb5Krb5Item(self): + """ + Test ProvidersKrb5Krb5Item + """ + model = swagger_client.models.providers_krb5_krb5_item.ProvidersKrb5Krb5Item() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_krb5_krb5_item_extended.py b/test/test_providers_krb5_krb5_item_extended.py new file mode 100644 index 000000000..572e71ad7 --- /dev/null +++ b/test/test_providers_krb5_krb5_item_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_krb5_krb5_item_extended import ProvidersKrb5Krb5ItemExtended + + +class TestProvidersKrb5Krb5ItemExtended(unittest.TestCase): + """ ProvidersKrb5Krb5ItemExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersKrb5Krb5ItemExtended(self): + """ + Test ProvidersKrb5Krb5ItemExtended + """ + model = swagger_client.models.providers_krb5_krb5_item_extended.ProvidersKrb5Krb5ItemExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ldap.py b/test/test_providers_ldap.py new file mode 100644 index 000000000..26e9dd348 --- /dev/null +++ b/test/test_providers_ldap.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ldap import ProvidersLdap + + +class TestProvidersLdap(unittest.TestCase): + """ ProvidersLdap unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersLdap(self): + """ + Test ProvidersLdap + """ + model = swagger_client.models.providers_ldap.ProvidersLdap() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ldap_id_params.py b/test/test_providers_ldap_id_params.py new file mode 100644 index 000000000..d76be4528 --- /dev/null +++ b/test/test_providers_ldap_id_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ldap_id_params import ProvidersLdapIdParams + + +class TestProvidersLdapIdParams(unittest.TestCase): + """ ProvidersLdapIdParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersLdapIdParams(self): + """ + Test ProvidersLdapIdParams + """ + model = swagger_client.models.providers_ldap_id_params.ProvidersLdapIdParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ldap_item.py b/test/test_providers_ldap_item.py new file mode 100644 index 000000000..da9c4692a --- /dev/null +++ b/test/test_providers_ldap_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ldap_item import ProvidersLdapItem + + +class TestProvidersLdapItem(unittest.TestCase): + """ ProvidersLdapItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersLdapItem(self): + """ + Test ProvidersLdapItem + """ + model = swagger_client.models.providers_ldap_item.ProvidersLdapItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_ldap_ldap_item.py b/test/test_providers_ldap_ldap_item.py new file mode 100644 index 000000000..0bd8e4097 --- /dev/null +++ b/test/test_providers_ldap_ldap_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_ldap_ldap_item import ProvidersLdapLdapItem + + +class TestProvidersLdapLdapItem(unittest.TestCase): + """ ProvidersLdapLdapItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersLdapLdapItem(self): + """ + Test ProvidersLdapLdapItem + """ + model = swagger_client.models.providers_ldap_ldap_item.ProvidersLdapLdapItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_local.py b/test/test_providers_local.py new file mode 100644 index 000000000..c1cd73179 --- /dev/null +++ b/test/test_providers_local.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_local import ProvidersLocal + + +class TestProvidersLocal(unittest.TestCase): + """ ProvidersLocal unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersLocal(self): + """ + Test ProvidersLocal + """ + model = swagger_client.models.providers_local.ProvidersLocal() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_local_id_params.py b/test/test_providers_local_id_params.py new file mode 100644 index 000000000..34eaf5d53 --- /dev/null +++ b/test/test_providers_local_id_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_local_id_params import ProvidersLocalIdParams + + +class TestProvidersLocalIdParams(unittest.TestCase): + """ ProvidersLocalIdParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersLocalIdParams(self): + """ + Test ProvidersLocalIdParams + """ + model = swagger_client.models.providers_local_id_params.ProvidersLocalIdParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_local_local_item.py b/test/test_providers_local_local_item.py new file mode 100644 index 000000000..ca409202d --- /dev/null +++ b/test/test_providers_local_local_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_local_local_item import ProvidersLocalLocalItem + + +class TestProvidersLocalLocalItem(unittest.TestCase): + """ ProvidersLocalLocalItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersLocalLocalItem(self): + """ + Test ProvidersLocalLocalItem + """ + model = swagger_client.models.providers_local_local_item.ProvidersLocalLocalItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_nis.py b/test/test_providers_nis.py new file mode 100644 index 000000000..af5d75adc --- /dev/null +++ b/test/test_providers_nis.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_nis import ProvidersNis + + +class TestProvidersNis(unittest.TestCase): + """ ProvidersNis unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersNis(self): + """ + Test ProvidersNis + """ + model = swagger_client.models.providers_nis.ProvidersNis() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_nis_extended.py b/test/test_providers_nis_extended.py new file mode 100644 index 000000000..5be584ac0 --- /dev/null +++ b/test/test_providers_nis_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_nis_extended import ProvidersNisExtended + + +class TestProvidersNisExtended(unittest.TestCase): + """ ProvidersNisExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersNisExtended(self): + """ + Test ProvidersNisExtended + """ + model = swagger_client.models.providers_nis_extended.ProvidersNisExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_nis_id_params.py b/test/test_providers_nis_id_params.py new file mode 100644 index 000000000..d532b65b8 --- /dev/null +++ b/test/test_providers_nis_id_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_nis_id_params import ProvidersNisIdParams + + +class TestProvidersNisIdParams(unittest.TestCase): + """ ProvidersNisIdParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersNisIdParams(self): + """ + Test ProvidersNisIdParams + """ + model = swagger_client.models.providers_nis_id_params.ProvidersNisIdParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_nis_item.py b/test/test_providers_nis_item.py new file mode 100644 index 000000000..03b07a9d3 --- /dev/null +++ b/test/test_providers_nis_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_nis_item import ProvidersNisItem + + +class TestProvidersNisItem(unittest.TestCase): + """ ProvidersNisItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersNisItem(self): + """ + Test ProvidersNisItem + """ + model = swagger_client.models.providers_nis_item.ProvidersNisItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_nis_nis_item.py b/test/test_providers_nis_nis_item.py new file mode 100644 index 000000000..cc310a7ae --- /dev/null +++ b/test/test_providers_nis_nis_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_nis_nis_item import ProvidersNisNisItem + + +class TestProvidersNisNisItem(unittest.TestCase): + """ ProvidersNisNisItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersNisNisItem(self): + """ + Test ProvidersNisNisItem + """ + model = swagger_client.models.providers_nis_nis_item.ProvidersNisNisItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_nis_nis_item_extended.py b/test/test_providers_nis_nis_item_extended.py new file mode 100644 index 000000000..901d3a470 --- /dev/null +++ b/test/test_providers_nis_nis_item_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_nis_nis_item_extended import ProvidersNisNisItemExtended + + +class TestProvidersNisNisItemExtended(unittest.TestCase): + """ ProvidersNisNisItemExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersNisNisItemExtended(self): + """ + Test ProvidersNisNisItemExtended + """ + model = swagger_client.models.providers_nis_nis_item_extended.ProvidersNisNisItemExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_summary.py b/test/test_providers_summary.py new file mode 100644 index 000000000..893b97112 --- /dev/null +++ b/test/test_providers_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_summary import ProvidersSummary + + +class TestProvidersSummary(unittest.TestCase): + """ ProvidersSummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersSummary(self): + """ + Test ProvidersSummary + """ + model = swagger_client.models.providers_summary.ProvidersSummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_summary_provider_instance.py b/test/test_providers_summary_provider_instance.py new file mode 100644 index 000000000..4bc595a55 --- /dev/null +++ b/test/test_providers_summary_provider_instance.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_summary_provider_instance import ProvidersSummaryProviderInstance + + +class TestProvidersSummaryProviderInstance(unittest.TestCase): + """ ProvidersSummaryProviderInstance unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersSummaryProviderInstance(self): + """ + Test ProvidersSummaryProviderInstance + """ + model = swagger_client.models.providers_summary_provider_instance.ProvidersSummaryProviderInstance() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_providers_summary_provider_instance_connection.py b/test/test_providers_summary_provider_instance_connection.py new file mode 100644 index 000000000..60f045972 --- /dev/null +++ b/test/test_providers_summary_provider_instance_connection.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.providers_summary_provider_instance_connection import ProvidersSummaryProviderInstanceConnection + + +class TestProvidersSummaryProviderInstanceConnection(unittest.TestCase): + """ ProvidersSummaryProviderInstanceConnection unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProvidersSummaryProviderInstanceConnection(self): + """ + Test ProvidersSummaryProviderInstanceConnection + """ + model = swagger_client.models.providers_summary_provider_instance_connection.ProvidersSummaryProviderInstanceConnection() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_api.py b/test/test_quota_api.py new file mode 100644 index 000000000..6f60fb5dc --- /dev/null +++ b/test/test_quota_api.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.quota_api import QuotaApi + + +class TestQuotaApi(unittest.TestCase): + """ QuotaApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.quota_api.QuotaApi() + + def tearDown(self): + pass + + def test_create_quota_quota(self): + """ + Test case for create_quota_quota + + + """ + pass + + def test_create_quota_report(self): + """ + Test case for create_quota_report + + + """ + pass + + def test_create_settings_mapping(self): + """ + Test case for create_settings_mapping + + + """ + pass + + def test_create_settings_notification(self): + """ + Test case for create_settings_notification + + + """ + pass + + def test_delete_quota_quota(self): + """ + Test case for delete_quota_quota + + + """ + pass + + def test_delete_quota_quotas(self): + """ + Test case for delete_quota_quotas + + + """ + pass + + def test_delete_quota_report(self): + """ + Test case for delete_quota_report + + + """ + pass + + def test_delete_settings_mapping(self): + """ + Test case for delete_settings_mapping + + + """ + pass + + def test_delete_settings_mappings(self): + """ + Test case for delete_settings_mappings + + + """ + pass + + def test_delete_settings_notification(self): + """ + Test case for delete_settings_notification + + + """ + pass + + def test_delete_settings_notifications(self): + """ + Test case for delete_settings_notifications + + + """ + pass + + def test_get_quota_license(self): + """ + Test case for get_quota_license + + + """ + pass + + def test_get_quota_quota(self): + """ + Test case for get_quota_quota + + + """ + pass + + def test_get_quota_quotas_summary(self): + """ + Test case for get_quota_quotas_summary + + + """ + pass + + def test_get_quota_report(self): + """ + Test case for get_quota_report + + + """ + pass + + def test_get_settings_mapping(self): + """ + Test case for get_settings_mapping + + + """ + pass + + def test_get_settings_notification(self): + """ + Test case for get_settings_notification + + + """ + pass + + def test_get_settings_reports(self): + """ + Test case for get_settings_reports + + + """ + pass + + def test_list_quota_quotas(self): + """ + Test case for list_quota_quotas + + + """ + pass + + def test_list_quota_reports(self): + """ + Test case for list_quota_reports + + + """ + pass + + def test_list_settings_mappings(self): + """ + Test case for list_settings_mappings + + + """ + pass + + def test_list_settings_notifications(self): + """ + Test case for list_settings_notifications + + + """ + pass + + def test_update_quota_quota(self): + """ + Test case for update_quota_quota + + + """ + pass + + def test_update_settings_mapping(self): + """ + Test case for update_settings_mapping + + + """ + pass + + def test_update_settings_notification(self): + """ + Test case for update_settings_notification + + + """ + pass + + def test_update_settings_reports(self): + """ + Test case for update_settings_reports + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_notification.py b/test/test_quota_notification.py new file mode 100644 index 000000000..b6fd36cc5 --- /dev/null +++ b/test/test_quota_notification.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_notification import QuotaNotification + + +class TestQuotaNotification(unittest.TestCase): + """ QuotaNotification unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaNotification(self): + """ + Test QuotaNotification + """ + model = swagger_client.models.quota_notification.QuotaNotification() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_notification_create_params.py b/test/test_quota_notification_create_params.py new file mode 100644 index 000000000..a56285c45 --- /dev/null +++ b/test/test_quota_notification_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_notification_create_params import QuotaNotificationCreateParams + + +class TestQuotaNotificationCreateParams(unittest.TestCase): + """ QuotaNotificationCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaNotificationCreateParams(self): + """ + Test QuotaNotificationCreateParams + """ + model = swagger_client.models.quota_notification_create_params.QuotaNotificationCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_notification_extended.py b/test/test_quota_notification_extended.py new file mode 100644 index 000000000..85a3fd0ac --- /dev/null +++ b/test/test_quota_notification_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_notification_extended import QuotaNotificationExtended + + +class TestQuotaNotificationExtended(unittest.TestCase): + """ QuotaNotificationExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaNotificationExtended(self): + """ + Test QuotaNotificationExtended + """ + model = swagger_client.models.quota_notification_extended.QuotaNotificationExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_notifications.py b/test/test_quota_notifications.py new file mode 100644 index 000000000..3abb87d09 --- /dev/null +++ b/test/test_quota_notifications.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_notifications import QuotaNotifications + + +class TestQuotaNotifications(unittest.TestCase): + """ QuotaNotifications unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaNotifications(self): + """ + Test QuotaNotifications + """ + model = swagger_client.models.quota_notifications.QuotaNotifications() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_notifications_extended.py b/test/test_quota_notifications_extended.py new file mode 100644 index 000000000..2f0016357 --- /dev/null +++ b/test/test_quota_notifications_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_notifications_extended import QuotaNotificationsExtended + + +class TestQuotaNotificationsExtended(unittest.TestCase): + """ QuotaNotificationsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaNotificationsExtended(self): + """ + Test QuotaNotificationsExtended + """ + model = swagger_client.models.quota_notifications_extended.QuotaNotificationsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quota.py b/test/test_quota_quota.py new file mode 100644 index 000000000..7baceb53f --- /dev/null +++ b/test/test_quota_quota.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quota import QuotaQuota + + +class TestQuotaQuota(unittest.TestCase): + """ QuotaQuota unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuota(self): + """ + Test QuotaQuota + """ + model = swagger_client.models.quota_quota.QuotaQuota() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quota_create_params.py b/test/test_quota_quota_create_params.py new file mode 100644 index 000000000..e36cc99a5 --- /dev/null +++ b/test/test_quota_quota_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quota_create_params import QuotaQuotaCreateParams + + +class TestQuotaQuotaCreateParams(unittest.TestCase): + """ QuotaQuotaCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotaCreateParams(self): + """ + Test QuotaQuotaCreateParams + """ + model = swagger_client.models.quota_quota_create_params.QuotaQuotaCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quota_extended.py b/test/test_quota_quota_extended.py new file mode 100644 index 000000000..1fec7b26c --- /dev/null +++ b/test/test_quota_quota_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quota_extended import QuotaQuotaExtended + + +class TestQuotaQuotaExtended(unittest.TestCase): + """ QuotaQuotaExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotaExtended(self): + """ + Test QuotaQuotaExtended + """ + model = swagger_client.models.quota_quota_extended.QuotaQuotaExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quota_thresholds.py b/test/test_quota_quota_thresholds.py new file mode 100644 index 000000000..06ae34639 --- /dev/null +++ b/test/test_quota_quota_thresholds.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quota_thresholds import QuotaQuotaThresholds + + +class TestQuotaQuotaThresholds(unittest.TestCase): + """ QuotaQuotaThresholds unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotaThresholds(self): + """ + Test QuotaQuotaThresholds + """ + model = swagger_client.models.quota_quota_thresholds.QuotaQuotaThresholds() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quota_thresholds_extended.py b/test/test_quota_quota_thresholds_extended.py new file mode 100644 index 000000000..c46090483 --- /dev/null +++ b/test/test_quota_quota_thresholds_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quota_thresholds_extended import QuotaQuotaThresholdsExtended + + +class TestQuotaQuotaThresholdsExtended(unittest.TestCase): + """ QuotaQuotaThresholdsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotaThresholdsExtended(self): + """ + Test QuotaQuotaThresholdsExtended + """ + model = swagger_client.models.quota_quota_thresholds_extended.QuotaQuotaThresholdsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quota_usage.py b/test/test_quota_quota_usage.py new file mode 100644 index 000000000..da5a84d31 --- /dev/null +++ b/test/test_quota_quota_usage.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quota_usage import QuotaQuotaUsage + + +class TestQuotaQuotaUsage(unittest.TestCase): + """ QuotaQuotaUsage unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotaUsage(self): + """ + Test QuotaQuotaUsage + """ + model = swagger_client.models.quota_quota_usage.QuotaQuotaUsage() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quotas.py b/test/test_quota_quotas.py new file mode 100644 index 000000000..9271ab7e0 --- /dev/null +++ b/test/test_quota_quotas.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quotas import QuotaQuotas + + +class TestQuotaQuotas(unittest.TestCase): + """ QuotaQuotas unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotas(self): + """ + Test QuotaQuotas + """ + model = swagger_client.models.quota_quotas.QuotaQuotas() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quotas_api.py b/test/test_quota_quotas_api.py new file mode 100644 index 000000000..ae65a8e37 --- /dev/null +++ b/test/test_quota_quotas_api.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.quota_quotas_api import QuotaQuotasApi + + +class TestQuotaQuotasApi(unittest.TestCase): + """ QuotaQuotasApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.quota_quotas_api.QuotaQuotasApi() + + def tearDown(self): + pass + + def test_create_quota_notification(self): + """ + Test case for create_quota_notification + + + """ + pass + + def test_delete_quota_notification(self): + """ + Test case for delete_quota_notification + + + """ + pass + + def test_delete_quota_notifications(self): + """ + Test case for delete_quota_notifications + + + """ + pass + + def test_get_quota_notification(self): + """ + Test case for get_quota_notification + + + """ + pass + + def test_list_quota_notifications(self): + """ + Test case for list_quota_notifications + + + """ + pass + + def test_update_quota_notification(self): + """ + Test case for update_quota_notification + + + """ + pass + + def test_update_quota_notifications(self): + """ + Test case for update_quota_notifications + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quotas_extended.py b/test/test_quota_quotas_extended.py new file mode 100644 index 000000000..00cd76c8a --- /dev/null +++ b/test/test_quota_quotas_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quotas_extended import QuotaQuotasExtended + + +class TestQuotaQuotasExtended(unittest.TestCase): + """ QuotaQuotasExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotasExtended(self): + """ + Test QuotaQuotasExtended + """ + model = swagger_client.models.quota_quotas_extended.QuotaQuotasExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quotas_summary.py b/test/test_quota_quotas_summary.py new file mode 100644 index 000000000..dcc0ac850 --- /dev/null +++ b/test/test_quota_quotas_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quotas_summary import QuotaQuotasSummary + + +class TestQuotaQuotasSummary(unittest.TestCase): + """ QuotaQuotasSummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotasSummary(self): + """ + Test QuotaQuotasSummary + """ + model = swagger_client.models.quota_quotas_summary.QuotaQuotasSummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_quotas_summary_summary.py b/test/test_quota_quotas_summary_summary.py new file mode 100644 index 000000000..a01405123 --- /dev/null +++ b/test/test_quota_quotas_summary_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_quotas_summary_summary import QuotaQuotasSummarySummary + + +class TestQuotaQuotasSummarySummary(unittest.TestCase): + """ QuotaQuotasSummarySummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaQuotasSummarySummary(self): + """ + Test QuotaQuotasSummarySummary + """ + model = swagger_client.models.quota_quotas_summary_summary.QuotaQuotasSummarySummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_reports.py b/test/test_quota_reports.py new file mode 100644 index 000000000..d37a396be --- /dev/null +++ b/test/test_quota_reports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.quota_reports import QuotaReports + + +class TestQuotaReports(unittest.TestCase): + """ QuotaReports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQuotaReports(self): + """ + Test QuotaReports + """ + model = swagger_client.models.quota_reports.QuotaReports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_quota_reports_api.py b/test/test_quota_reports_api.py new file mode 100644 index 000000000..b3a5968f5 --- /dev/null +++ b/test/test_quota_reports_api.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.quota_reports_api import QuotaReportsApi + + +class TestQuotaReportsApi(unittest.TestCase): + """ QuotaReportsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.quota_reports_api.QuotaReportsApi() + + def tearDown(self): + pass + + def test_get_report_about(self): + """ + Test case for get_report_about + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_remotesupport_api.py b/test/test_remotesupport_api.py new file mode 100644 index 000000000..dc520b647 --- /dev/null +++ b/test/test_remotesupport_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.remotesupport_api import RemotesupportApi + + +class TestRemotesupportApi(unittest.TestCase): + """ RemotesupportApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.remotesupport_api.RemotesupportApi() + + def tearDown(self): + pass + + def test_get_remotesupport_connectemc(self): + """ + Test case for get_remotesupport_connectemc + + + """ + pass + + def test_update_remotesupport_connectemc(self): + """ + Test case for update_remotesupport_connectemc + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_remotesupport_connectemc.py b/test/test_remotesupport_connectemc.py new file mode 100644 index 000000000..8d8608d27 --- /dev/null +++ b/test/test_remotesupport_connectemc.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.remotesupport_connectemc import RemotesupportConnectemc + + +class TestRemotesupportConnectemc(unittest.TestCase): + """ RemotesupportConnectemc unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRemotesupportConnectemc(self): + """ + Test RemotesupportConnectemc + """ + model = swagger_client.models.remotesupport_connectemc.RemotesupportConnectemc() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_remotesupport_connectemc_connectemc.py b/test/test_remotesupport_connectemc_connectemc.py new file mode 100644 index 000000000..1cdba3147 --- /dev/null +++ b/test/test_remotesupport_connectemc_connectemc.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.remotesupport_connectemc_connectemc import RemotesupportConnectemcConnectemc + + +class TestRemotesupportConnectemcConnectemc(unittest.TestCase): + """ RemotesupportConnectemcConnectemc unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRemotesupportConnectemcConnectemc(self): + """ + Test RemotesupportConnectemcConnectemc + """ + model = swagger_client.models.remotesupport_connectemc_connectemc.RemotesupportConnectemcConnectemc() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_about.py b/test/test_report_about.py new file mode 100644 index 000000000..2a6910023 --- /dev/null +++ b/test/test_report_about.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_about import ReportAbout + + +class TestReportAbout(unittest.TestCase): + """ ReportAbout unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportAbout(self): + """ + Test ReportAbout + """ + model = swagger_client.models.report_about.ReportAbout() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_about_report.py b/test/test_report_about_report.py new file mode 100644 index 000000000..613621405 --- /dev/null +++ b/test/test_report_about_report.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_about_report import ReportAboutReport + + +class TestReportAboutReport(unittest.TestCase): + """ ReportAboutReport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportAboutReport(self): + """ + Test ReportAboutReport + """ + model = swagger_client.models.report_about_report.ReportAboutReport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_subreport.py b/test/test_report_subreport.py new file mode 100644 index 000000000..287e60be6 --- /dev/null +++ b/test/test_report_subreport.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_subreport import ReportSubreport + + +class TestReportSubreport(unittest.TestCase): + """ ReportSubreport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportSubreport(self): + """ + Test ReportSubreport + """ + model = swagger_client.models.report_subreport.ReportSubreport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_subreport_phase.py b/test/test_report_subreport_phase.py new file mode 100644 index 000000000..a7b1ca892 --- /dev/null +++ b/test/test_report_subreport_phase.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_subreport_phase import ReportSubreportPhase + + +class TestReportSubreportPhase(unittest.TestCase): + """ ReportSubreportPhase unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportSubreportPhase(self): + """ + Test ReportSubreportPhase + """ + model = swagger_client.models.report_subreport_phase.ReportSubreportPhase() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_subreport_policy.py b/test/test_report_subreport_policy.py new file mode 100644 index 000000000..4bb57bdb2 --- /dev/null +++ b/test/test_report_subreport_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_subreport_policy import ReportSubreportPolicy + + +class TestReportSubreportPolicy(unittest.TestCase): + """ ReportSubreportPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportSubreportPolicy(self): + """ + Test ReportSubreportPolicy + """ + model = swagger_client.models.report_subreport_policy.ReportSubreportPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_subreport_policy_file_matching_pattern.py b/test/test_report_subreport_policy_file_matching_pattern.py new file mode 100644 index 000000000..c10c10fb6 --- /dev/null +++ b/test/test_report_subreport_policy_file_matching_pattern.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_subreport_policy_file_matching_pattern import ReportSubreportPolicyFileMatchingPattern + + +class TestReportSubreportPolicyFileMatchingPattern(unittest.TestCase): + """ ReportSubreportPolicyFileMatchingPattern unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportSubreportPolicyFileMatchingPattern(self): + """ + Test ReportSubreportPolicyFileMatchingPattern + """ + model = swagger_client.models.report_subreport_policy_file_matching_pattern.ReportSubreportPolicyFileMatchingPattern() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_subreport_policy_file_matching_pattern_or_criteria_item.py b/test/test_report_subreport_policy_file_matching_pattern_or_criteria_item.py new file mode 100644 index 000000000..900f04f18 --- /dev/null +++ b/test/test_report_subreport_policy_file_matching_pattern_or_criteria_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_subreport_policy_file_matching_pattern_or_criteria_item import ReportSubreportPolicyFileMatchingPatternOrCriteriaItem + + +class TestReportSubreportPolicyFileMatchingPatternOrCriteriaItem(unittest.TestCase): + """ ReportSubreportPolicyFileMatchingPatternOrCriteriaItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportSubreportPolicyFileMatchingPatternOrCriteriaItem(self): + """ + Test ReportSubreportPolicyFileMatchingPatternOrCriteriaItem + """ + model = swagger_client.models.report_subreport_policy_file_matching_pattern_or_criteria_item.ReportSubreportPolicyFileMatchingPatternOrCriteriaItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py b/test/test_report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py new file mode 100644 index 000000000..b59e249a5 --- /dev/null +++ b/test/test_report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item import ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem + + +class TestReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem(unittest.TestCase): + """ ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem(self): + """ + Test ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem + """ + model = swagger_client.models.report_subreport_policy_file_matching_pattern_or_criteria_item_and_criteria_item.ReportSubreportPolicyFileMatchingPatternOrCriteriaItemAndCriteriaItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_subreports.py b/test/test_report_subreports.py new file mode 100644 index 000000000..46cc24e51 --- /dev/null +++ b/test/test_report_subreports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_subreports import ReportSubreports + + +class TestReportSubreports(unittest.TestCase): + """ ReportSubreports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportSubreports(self): + """ + Test ReportSubreports + """ + model = swagger_client.models.report_subreports.ReportSubreports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_report_subreports_extended.py b/test/test_report_subreports_extended.py new file mode 100644 index 000000000..74eebac0b --- /dev/null +++ b/test/test_report_subreports_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.report_subreports_extended import ReportSubreportsExtended + + +class TestReportSubreportsExtended(unittest.TestCase): + """ ReportSubreportsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportSubreportsExtended(self): + """ + Test ReportSubreportsExtended + """ + model = swagger_client.models.report_subreports_extended.ReportSubreportsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_report_subreports.py b/test/test_reports_report_subreports.py new file mode 100644 index 000000000..2474e1ff3 --- /dev/null +++ b/test/test_reports_report_subreports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_report_subreports import ReportsReportSubreports + + +class TestReportsReportSubreports(unittest.TestCase): + """ ReportsReportSubreports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsReportSubreports(self): + """ + Test ReportsReportSubreports + """ + model = swagger_client.models.reports_report_subreports.ReportsReportSubreports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_report_subreports_extended.py b/test/test_reports_report_subreports_extended.py new file mode 100644 index 000000000..74bc6394f --- /dev/null +++ b/test/test_reports_report_subreports_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_report_subreports_extended import ReportsReportSubreportsExtended + + +class TestReportsReportSubreportsExtended(unittest.TestCase): + """ ReportsReportSubreportsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsReportSubreportsExtended(self): + """ + Test ReportsReportSubreportsExtended + """ + model = swagger_client.models.reports_report_subreports_extended.ReportsReportSubreportsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_report_subreports_subreport.py b/test/test_reports_report_subreports_subreport.py new file mode 100644 index 000000000..cd48469f6 --- /dev/null +++ b/test/test_reports_report_subreports_subreport.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_report_subreports_subreport import ReportsReportSubreportsSubreport + + +class TestReportsReportSubreportsSubreport(unittest.TestCase): + """ ReportsReportSubreportsSubreport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsReportSubreportsSubreport(self): + """ + Test ReportsReportSubreportsSubreport + """ + model = swagger_client.models.reports_report_subreports_subreport.ReportsReportSubreportsSubreport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_scans.py b/test/test_reports_scans.py new file mode 100644 index 000000000..e19d8d4c7 --- /dev/null +++ b/test/test_reports_scans.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_scans import ReportsScans + + +class TestReportsScans(unittest.TestCase): + """ ReportsScans unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsScans(self): + """ + Test ReportsScans + """ + model = swagger_client.models.reports_scans.ReportsScans() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_scans_extended.py b/test/test_reports_scans_extended.py new file mode 100644 index 000000000..b69bdbde3 --- /dev/null +++ b/test/test_reports_scans_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_scans_extended import ReportsScansExtended + + +class TestReportsScansExtended(unittest.TestCase): + """ ReportsScansExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsScansExtended(self): + """ + Test ReportsScansExtended + """ + model = swagger_client.models.reports_scans_extended.ReportsScansExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_scans_report.py b/test/test_reports_scans_report.py new file mode 100644 index 000000000..f900b1f58 --- /dev/null +++ b/test/test_reports_scans_report.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_scans_report import ReportsScansReport + + +class TestReportsScansReport(unittest.TestCase): + """ ReportsScansReport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsScansReport(self): + """ + Test ReportsScansReport + """ + model = swagger_client.models.reports_scans_report.ReportsScansReport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_threats.py b/test/test_reports_threats.py new file mode 100644 index 000000000..6ff583ca8 --- /dev/null +++ b/test/test_reports_threats.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_threats import ReportsThreats + + +class TestReportsThreats(unittest.TestCase): + """ ReportsThreats unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsThreats(self): + """ + Test ReportsThreats + """ + model = swagger_client.models.reports_threats.ReportsThreats() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_threats_extended.py b/test/test_reports_threats_extended.py new file mode 100644 index 000000000..f7be08fbe --- /dev/null +++ b/test/test_reports_threats_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_threats_extended import ReportsThreatsExtended + + +class TestReportsThreatsExtended(unittest.TestCase): + """ ReportsThreatsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsThreatsExtended(self): + """ + Test ReportsThreatsExtended + """ + model = swagger_client.models.reports_threats_extended.ReportsThreatsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_reports_threats_report.py b/test/test_reports_threats_report.py new file mode 100644 index 000000000..a425301d1 --- /dev/null +++ b/test/test_reports_threats_report.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.reports_threats_report import ReportsThreatsReport + + +class TestReportsThreatsReport(unittest.TestCase): + """ ReportsThreatsReport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testReportsThreatsReport(self): + """ + Test ReportsThreatsReport + """ + model = swagger_client.models.reports_threats_report.ReportsThreatsReport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_result_directories_total_usage.py b/test/test_result_directories_total_usage.py new file mode 100644 index 000000000..5c7633327 --- /dev/null +++ b/test/test_result_directories_total_usage.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.result_directories_total_usage import ResultDirectoriesTotalUsage + + +class TestResultDirectoriesTotalUsage(unittest.TestCase): + """ ResultDirectoriesTotalUsage unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResultDirectoriesTotalUsage(self): + """ + Test ResultDirectoriesTotalUsage + """ + model = swagger_client.models.result_directories_total_usage.ResultDirectoriesTotalUsage() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_result_histogram.py b/test/test_result_histogram.py new file mode 100644 index 000000000..af1e5cea4 --- /dev/null +++ b/test/test_result_histogram.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.result_histogram import ResultHistogram + + +class TestResultHistogram(unittest.TestCase): + """ ResultHistogram unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResultHistogram(self): + """ + Test ResultHistogram + """ + model = swagger_client.models.result_histogram.ResultHistogram() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_result_histogram_histogram_item.py b/test/test_result_histogram_histogram_item.py new file mode 100644 index 000000000..e13328666 --- /dev/null +++ b/test/test_result_histogram_histogram_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.result_histogram_histogram_item import ResultHistogramHistogramItem + + +class TestResultHistogramHistogramItem(unittest.TestCase): + """ ResultHistogramHistogramItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResultHistogramHistogramItem(self): + """ + Test ResultHistogramHistogramItem + """ + model = swagger_client.models.result_histogram_histogram_item.ResultHistogramHistogramItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_result_top_dirs.py b/test/test_result_top_dirs.py new file mode 100644 index 000000000..f0704484e --- /dev/null +++ b/test/test_result_top_dirs.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.result_top_dirs import ResultTopDirs + + +class TestResultTopDirs(unittest.TestCase): + """ ResultTopDirs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResultTopDirs(self): + """ + Test ResultTopDirs + """ + model = swagger_client.models.result_top_dirs.ResultTopDirs() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_result_top_dirs_dir.py b/test/test_result_top_dirs_dir.py new file mode 100644 index 000000000..8ceca1e88 --- /dev/null +++ b/test/test_result_top_dirs_dir.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.result_top_dirs_dir import ResultTopDirsDir + + +class TestResultTopDirsDir(unittest.TestCase): + """ ResultTopDirsDir unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResultTopDirsDir(self): + """ + Test ResultTopDirsDir + """ + model = swagger_client.models.result_top_dirs_dir.ResultTopDirsDir() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_result_top_files.py b/test/test_result_top_files.py new file mode 100644 index 000000000..7941a0b18 --- /dev/null +++ b/test/test_result_top_files.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.result_top_files import ResultTopFiles + + +class TestResultTopFiles(unittest.TestCase): + """ ResultTopFiles unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResultTopFiles(self): + """ + Test ResultTopFiles + """ + model = swagger_client.models.result_top_files.ResultTopFiles() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_result_top_files_file.py b/test/test_result_top_files_file.py new file mode 100644 index 000000000..2eb8633df --- /dev/null +++ b/test/test_result_top_files_file.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.result_top_files_file import ResultTopFilesFile + + +class TestResultTopFilesFile(unittest.TestCase): + """ ResultTopFilesFile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResultTopFilesFile(self): + """ + Test ResultTopFilesFile + """ + model = swagger_client.models.result_top_files_file.ResultTopFilesFile() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_role_privileges.py b/test/test_role_privileges.py new file mode 100644 index 000000000..ce6085878 --- /dev/null +++ b/test/test_role_privileges.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.role_privileges import RolePrivileges + + +class TestRolePrivileges(unittest.TestCase): + """ RolePrivileges unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRolePrivileges(self): + """ + Test RolePrivileges + """ + model = swagger_client.models.role_privileges.RolePrivileges() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_access_time.py b/test/test_settings_access_time.py new file mode 100644 index 000000000..27564c097 --- /dev/null +++ b/test/test_settings_access_time.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_access_time import SettingsAccessTime + + +class TestSettingsAccessTime(unittest.TestCase): + """ SettingsAccessTime unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsAccessTime(self): + """ + Test SettingsAccessTime + """ + model = swagger_client.models.settings_access_time.SettingsAccessTime() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_access_time_extended.py b/test/test_settings_access_time_extended.py new file mode 100644 index 000000000..bc114603b --- /dev/null +++ b/test/test_settings_access_time_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_access_time_extended import SettingsAccessTimeExtended + + +class TestSettingsAccessTimeExtended(unittest.TestCase): + """ SettingsAccessTimeExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsAccessTimeExtended(self): + """ + Test SettingsAccessTimeExtended + """ + model = swagger_client.models.settings_access_time_extended.SettingsAccessTimeExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_access_time_settings.py b/test/test_settings_access_time_settings.py new file mode 100644 index 000000000..001847fc6 --- /dev/null +++ b/test/test_settings_access_time_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_access_time_settings import SettingsAccessTimeSettings + + +class TestSettingsAccessTimeSettings(unittest.TestCase): + """ SettingsAccessTimeSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsAccessTimeSettings(self): + """ + Test SettingsAccessTimeSettings + """ + model = swagger_client.models.settings_access_time_settings.SettingsAccessTimeSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_acls.py b/test/test_settings_acls.py new file mode 100644 index 000000000..1ea27d45f --- /dev/null +++ b/test/test_settings_acls.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_acls import SettingsAcls + + +class TestSettingsAcls(unittest.TestCase): + """ SettingsAcls unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsAcls(self): + """ + Test SettingsAcls + """ + model = swagger_client.models.settings_acls.SettingsAcls() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_acls_acl_policy_settings.py b/test/test_settings_acls_acl_policy_settings.py new file mode 100644 index 000000000..d65085f0d --- /dev/null +++ b/test/test_settings_acls_acl_policy_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_acls_acl_policy_settings import SettingsAclsAclPolicySettings + + +class TestSettingsAclsAclPolicySettings(unittest.TestCase): + """ SettingsAclsAclPolicySettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsAclsAclPolicySettings(self): + """ + Test SettingsAclsAclPolicySettings + """ + model = swagger_client.models.settings_acls_acl_policy_settings.SettingsAclsAclPolicySettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_global.py b/test/test_settings_global.py new file mode 100644 index 000000000..e192ea373 --- /dev/null +++ b/test/test_settings_global.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_global import SettingsGlobal + + +class TestSettingsGlobal(unittest.TestCase): + """ SettingsGlobal unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsGlobal(self): + """ + Test SettingsGlobal + """ + model = swagger_client.models.settings_global.SettingsGlobal() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_global_extended.py b/test/test_settings_global_extended.py new file mode 100644 index 000000000..699da50a8 --- /dev/null +++ b/test/test_settings_global_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_global_extended import SettingsGlobalExtended + + +class TestSettingsGlobalExtended(unittest.TestCase): + """ SettingsGlobalExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsGlobalExtended(self): + """ + Test SettingsGlobalExtended + """ + model = swagger_client.models.settings_global_extended.SettingsGlobalExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_global_global_settings.py b/test/test_settings_global_global_settings.py new file mode 100644 index 000000000..dd09ae81e --- /dev/null +++ b/test/test_settings_global_global_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_global_global_settings import SettingsGlobalGlobalSettings + + +class TestSettingsGlobalGlobalSettings(unittest.TestCase): + """ SettingsGlobalGlobalSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsGlobalGlobalSettings(self): + """ + Test SettingsGlobalGlobalSettings + """ + model = swagger_client.models.settings_global_global_settings.SettingsGlobalGlobalSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_global_settings.py b/test/test_settings_global_settings.py new file mode 100644 index 000000000..c1762724c --- /dev/null +++ b/test/test_settings_global_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_global_settings import SettingsGlobalSettings + + +class TestSettingsGlobalSettings(unittest.TestCase): + """ SettingsGlobalSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsGlobalSettings(self): + """ + Test SettingsGlobalSettings + """ + model = swagger_client.models.settings_global_settings.SettingsGlobalSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_defaults.py b/test/test_settings_krb5_defaults.py new file mode 100644 index 000000000..3b5a62ebe --- /dev/null +++ b/test/test_settings_krb5_defaults.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_defaults import SettingsKrb5Defaults + + +class TestSettingsKrb5Defaults(unittest.TestCase): + """ SettingsKrb5Defaults unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5Defaults(self): + """ + Test SettingsKrb5Defaults + """ + model = swagger_client.models.settings_krb5_defaults.SettingsKrb5Defaults() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_defaults_krb5_settings.py b/test/test_settings_krb5_defaults_krb5_settings.py new file mode 100644 index 000000000..178904120 --- /dev/null +++ b/test/test_settings_krb5_defaults_krb5_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_defaults_krb5_settings import SettingsKrb5DefaultsKrb5Settings + + +class TestSettingsKrb5DefaultsKrb5Settings(unittest.TestCase): + """ SettingsKrb5DefaultsKrb5Settings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5DefaultsKrb5Settings(self): + """ + Test SettingsKrb5DefaultsKrb5Settings + """ + model = swagger_client.models.settings_krb5_defaults_krb5_settings.SettingsKrb5DefaultsKrb5Settings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_domain.py b/test/test_settings_krb5_domain.py new file mode 100644 index 000000000..b526f8315 --- /dev/null +++ b/test/test_settings_krb5_domain.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_domain import SettingsKrb5Domain + + +class TestSettingsKrb5Domain(unittest.TestCase): + """ SettingsKrb5Domain unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5Domain(self): + """ + Test SettingsKrb5Domain + """ + model = swagger_client.models.settings_krb5_domain.SettingsKrb5Domain() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_domain_create_params.py b/test/test_settings_krb5_domain_create_params.py new file mode 100644 index 000000000..32a0c605c --- /dev/null +++ b/test/test_settings_krb5_domain_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_domain_create_params import SettingsKrb5DomainCreateParams + + +class TestSettingsKrb5DomainCreateParams(unittest.TestCase): + """ SettingsKrb5DomainCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5DomainCreateParams(self): + """ + Test SettingsKrb5DomainCreateParams + """ + model = swagger_client.models.settings_krb5_domain_create_params.SettingsKrb5DomainCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_domains.py b/test/test_settings_krb5_domains.py new file mode 100644 index 000000000..69476eca8 --- /dev/null +++ b/test/test_settings_krb5_domains.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_domains import SettingsKrb5Domains + + +class TestSettingsKrb5Domains(unittest.TestCase): + """ SettingsKrb5Domains unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5Domains(self): + """ + Test SettingsKrb5Domains + """ + model = swagger_client.models.settings_krb5_domains.SettingsKrb5Domains() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_domains_domain_item.py b/test/test_settings_krb5_domains_domain_item.py new file mode 100644 index 000000000..945c6b2d7 --- /dev/null +++ b/test/test_settings_krb5_domains_domain_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_domains_domain_item import SettingsKrb5DomainsDomainItem + + +class TestSettingsKrb5DomainsDomainItem(unittest.TestCase): + """ SettingsKrb5DomainsDomainItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5DomainsDomainItem(self): + """ + Test SettingsKrb5DomainsDomainItem + """ + model = swagger_client.models.settings_krb5_domains_domain_item.SettingsKrb5DomainsDomainItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_realm.py b/test/test_settings_krb5_realm.py new file mode 100644 index 000000000..b15680839 --- /dev/null +++ b/test/test_settings_krb5_realm.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_realm import SettingsKrb5Realm + + +class TestSettingsKrb5Realm(unittest.TestCase): + """ SettingsKrb5Realm unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5Realm(self): + """ + Test SettingsKrb5Realm + """ + model = swagger_client.models.settings_krb5_realm.SettingsKrb5Realm() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_realm_create_params.py b/test/test_settings_krb5_realm_create_params.py new file mode 100644 index 000000000..4b59971ed --- /dev/null +++ b/test/test_settings_krb5_realm_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_realm_create_params import SettingsKrb5RealmCreateParams + + +class TestSettingsKrb5RealmCreateParams(unittest.TestCase): + """ SettingsKrb5RealmCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5RealmCreateParams(self): + """ + Test SettingsKrb5RealmCreateParams + """ + model = swagger_client.models.settings_krb5_realm_create_params.SettingsKrb5RealmCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_realms.py b/test/test_settings_krb5_realms.py new file mode 100644 index 000000000..c7c36a3af --- /dev/null +++ b/test/test_settings_krb5_realms.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_realms import SettingsKrb5Realms + + +class TestSettingsKrb5Realms(unittest.TestCase): + """ SettingsKrb5Realms unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5Realms(self): + """ + Test SettingsKrb5Realms + """ + model = swagger_client.models.settings_krb5_realms.SettingsKrb5Realms() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_krb5_realms_realm_item.py b/test/test_settings_krb5_realms_realm_item.py new file mode 100644 index 000000000..b72b726bc --- /dev/null +++ b/test/test_settings_krb5_realms_realm_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_krb5_realms_realm_item import SettingsKrb5RealmsRealmItem + + +class TestSettingsKrb5RealmsRealmItem(unittest.TestCase): + """ SettingsKrb5RealmsRealmItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsKrb5RealmsRealmItem(self): + """ + Test SettingsKrb5RealmsRealmItem + """ + model = swagger_client.models.settings_krb5_realms_realm_item.SettingsKrb5RealmsRealmItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_mapping.py b/test/test_settings_mapping.py new file mode 100644 index 000000000..965c95240 --- /dev/null +++ b/test/test_settings_mapping.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_mapping import SettingsMapping + + +class TestSettingsMapping(unittest.TestCase): + """ SettingsMapping unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsMapping(self): + """ + Test SettingsMapping + """ + model = swagger_client.models.settings_mapping.SettingsMapping() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_mapping_extended.py b/test/test_settings_mapping_extended.py new file mode 100644 index 000000000..f730c8765 --- /dev/null +++ b/test/test_settings_mapping_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_mapping_extended import SettingsMappingExtended + + +class TestSettingsMappingExtended(unittest.TestCase): + """ SettingsMappingExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsMappingExtended(self): + """ + Test SettingsMappingExtended + """ + model = swagger_client.models.settings_mapping_extended.SettingsMappingExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_mapping_mapping_settings.py b/test/test_settings_mapping_mapping_settings.py new file mode 100644 index 000000000..eab51bf3c --- /dev/null +++ b/test/test_settings_mapping_mapping_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_mapping_mapping_settings import SettingsMappingMappingSettings + + +class TestSettingsMappingMappingSettings(unittest.TestCase): + """ SettingsMappingMappingSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsMappingMappingSettings(self): + """ + Test SettingsMappingMappingSettings + """ + model = swagger_client.models.settings_mapping_mapping_settings.SettingsMappingMappingSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_mappings.py b/test/test_settings_mappings.py new file mode 100644 index 000000000..49e054ff8 --- /dev/null +++ b/test/test_settings_mappings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_mappings import SettingsMappings + + +class TestSettingsMappings(unittest.TestCase): + """ SettingsMappings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsMappings(self): + """ + Test SettingsMappings + """ + model = swagger_client.models.settings_mappings.SettingsMappings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_notification.py b/test/test_settings_notification.py new file mode 100644 index 000000000..92d153ca4 --- /dev/null +++ b/test/test_settings_notification.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_notification import SettingsNotification + + +class TestSettingsNotification(unittest.TestCase): + """ SettingsNotification unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsNotification(self): + """ + Test SettingsNotification + """ + model = swagger_client.models.settings_notification.SettingsNotification() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_notification_create_params.py b/test/test_settings_notification_create_params.py new file mode 100644 index 000000000..76b273b19 --- /dev/null +++ b/test/test_settings_notification_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_notification_create_params import SettingsNotificationCreateParams + + +class TestSettingsNotificationCreateParams(unittest.TestCase): + """ SettingsNotificationCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsNotificationCreateParams(self): + """ + Test SettingsNotificationCreateParams + """ + model = swagger_client.models.settings_notification_create_params.SettingsNotificationCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_notifications.py b/test/test_settings_notifications.py new file mode 100644 index 000000000..eabf2e06e --- /dev/null +++ b/test/test_settings_notifications.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_notifications import SettingsNotifications + + +class TestSettingsNotifications(unittest.TestCase): + """ SettingsNotifications unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsNotifications(self): + """ + Test SettingsNotifications + """ + model = swagger_client.models.settings_notifications.SettingsNotifications() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_notifications_extended.py b/test/test_settings_notifications_extended.py new file mode 100644 index 000000000..c1dadb4b3 --- /dev/null +++ b/test/test_settings_notifications_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_notifications_extended import SettingsNotificationsExtended + + +class TestSettingsNotificationsExtended(unittest.TestCase): + """ SettingsNotificationsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsNotificationsExtended(self): + """ + Test SettingsNotificationsExtended + """ + model = swagger_client.models.settings_notifications_extended.SettingsNotificationsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_reporting_eula_item.py b/test/test_settings_reporting_eula_item.py new file mode 100644 index 000000000..f77bb8200 --- /dev/null +++ b/test/test_settings_reporting_eula_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_reporting_eula_item import SettingsReportingEulaItem + + +class TestSettingsReportingEulaItem(unittest.TestCase): + """ SettingsReportingEulaItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsReportingEulaItem(self): + """ + Test SettingsReportingEulaItem + """ + model = swagger_client.models.settings_reporting_eula_item.SettingsReportingEulaItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_reports.py b/test/test_settings_reports.py new file mode 100644 index 000000000..e45be9b5e --- /dev/null +++ b/test/test_settings_reports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_reports import SettingsReports + + +class TestSettingsReports(unittest.TestCase): + """ SettingsReports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsReports(self): + """ + Test SettingsReports + """ + model = swagger_client.models.settings_reports.SettingsReports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_settings_reports_settings.py b/test/test_settings_reports_settings.py new file mode 100644 index 000000000..f68da4f44 --- /dev/null +++ b/test/test_settings_reports_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.settings_reports_settings import SettingsReportsSettings + + +class TestSettingsReportsSettings(unittest.TestCase): + """ SettingsReportsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsReportsSettings(self): + """ + Test SettingsReportsSettings + """ + model = swagger_client.models.settings_reports_settings.SettingsReportsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_log_level.py b/test/test_smb_log_level.py new file mode 100644 index 000000000..7ee922a34 --- /dev/null +++ b/test/test_smb_log_level.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_log_level import SmbLogLevel + + +class TestSmbLogLevel(unittest.TestCase): + """ SmbLogLevel unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbLogLevel(self): + """ + Test SmbLogLevel + """ + model = swagger_client.models.smb_log_level.SmbLogLevel() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_log_level_filter.py b/test/test_smb_log_level_filter.py new file mode 100644 index 000000000..d0106c349 --- /dev/null +++ b/test/test_smb_log_level_filter.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_log_level_filter import SmbLogLevelFilter + + +class TestSmbLogLevelFilter(unittest.TestCase): + """ SmbLogLevelFilter unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbLogLevelFilter(self): + """ + Test SmbLogLevelFilter + """ + model = swagger_client.models.smb_log_level_filter.SmbLogLevelFilter() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_log_level_filters.py b/test/test_smb_log_level_filters.py new file mode 100644 index 000000000..1d2848563 --- /dev/null +++ b/test/test_smb_log_level_filters.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_log_level_filters import SmbLogLevelFilters + + +class TestSmbLogLevelFilters(unittest.TestCase): + """ SmbLogLevelFilters unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbLogLevelFilters(self): + """ + Test SmbLogLevelFilters + """ + model = swagger_client.models.smb_log_level_filters.SmbLogLevelFilters() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_log_level_filters_extended.py b/test/test_smb_log_level_filters_extended.py new file mode 100644 index 000000000..3fdeef4f9 --- /dev/null +++ b/test/test_smb_log_level_filters_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_log_level_filters_extended import SmbLogLevelFiltersExtended + + +class TestSmbLogLevelFiltersExtended(unittest.TestCase): + """ SmbLogLevelFiltersExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbLogLevelFiltersExtended(self): + """ + Test SmbLogLevelFiltersExtended + """ + model = swagger_client.models.smb_log_level_filters_extended.SmbLogLevelFiltersExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_log_level_filters_filter.py b/test/test_smb_log_level_filters_filter.py new file mode 100644 index 000000000..d02af4d74 --- /dev/null +++ b/test/test_smb_log_level_filters_filter.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_log_level_filters_filter import SmbLogLevelFiltersFilter + + +class TestSmbLogLevelFiltersFilter(unittest.TestCase): + """ SmbLogLevelFiltersFilter unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbLogLevelFiltersFilter(self): + """ + Test SmbLogLevelFiltersFilter + """ + model = swagger_client.models.smb_log_level_filters_filter.SmbLogLevelFiltersFilter() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_openfile.py b/test/test_smb_openfile.py new file mode 100644 index 000000000..f315e6048 --- /dev/null +++ b/test/test_smb_openfile.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_openfile import SmbOpenfile + + +class TestSmbOpenfile(unittest.TestCase): + """ SmbOpenfile unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbOpenfile(self): + """ + Test SmbOpenfile + """ + model = swagger_client.models.smb_openfile.SmbOpenfile() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_openfiles.py b/test/test_smb_openfiles.py new file mode 100644 index 000000000..c9323a3f9 --- /dev/null +++ b/test/test_smb_openfiles.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_openfiles import SmbOpenfiles + + +class TestSmbOpenfiles(unittest.TestCase): + """ SmbOpenfiles unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbOpenfiles(self): + """ + Test SmbOpenfiles + """ + model = swagger_client.models.smb_openfiles.SmbOpenfiles() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_session.py b/test/test_smb_session.py new file mode 100644 index 000000000..f15a6e11b --- /dev/null +++ b/test/test_smb_session.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_session import SmbSession + + +class TestSmbSession(unittest.TestCase): + """ SmbSession unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSession(self): + """ + Test SmbSession + """ + model = swagger_client.models.smb_session.SmbSession() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_sessions.py b/test/test_smb_sessions.py new file mode 100644 index 000000000..6a22abf4d --- /dev/null +++ b/test/test_smb_sessions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_sessions import SmbSessions + + +class TestSmbSessions(unittest.TestCase): + """ SmbSessions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSessions(self): + """ + Test SmbSessions + """ + model = swagger_client.models.smb_sessions.SmbSessions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_settings_global.py b/test/test_smb_settings_global.py new file mode 100644 index 000000000..40572a604 --- /dev/null +++ b/test/test_smb_settings_global.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_settings_global import SmbSettingsGlobal + + +class TestSmbSettingsGlobal(unittest.TestCase): + """ SmbSettingsGlobal unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSettingsGlobal(self): + """ + Test SmbSettingsGlobal + """ + model = swagger_client.models.smb_settings_global.SmbSettingsGlobal() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_settings_global_settings.py b/test/test_smb_settings_global_settings.py new file mode 100644 index 000000000..3f2defce0 --- /dev/null +++ b/test/test_smb_settings_global_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_settings_global_settings import SmbSettingsGlobalSettings + + +class TestSmbSettingsGlobalSettings(unittest.TestCase): + """ SmbSettingsGlobalSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSettingsGlobalSettings(self): + """ + Test SmbSettingsGlobalSettings + """ + model = swagger_client.models.smb_settings_global_settings.SmbSettingsGlobalSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_settings_global_settings_audit_global_sacl_item.py b/test/test_smb_settings_global_settings_audit_global_sacl_item.py new file mode 100644 index 000000000..6122f6453 --- /dev/null +++ b/test/test_smb_settings_global_settings_audit_global_sacl_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_settings_global_settings_audit_global_sacl_item import SmbSettingsGlobalSettingsAuditGlobalSaclItem + + +class TestSmbSettingsGlobalSettingsAuditGlobalSaclItem(unittest.TestCase): + """ SmbSettingsGlobalSettingsAuditGlobalSaclItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSettingsGlobalSettingsAuditGlobalSaclItem(self): + """ + Test SmbSettingsGlobalSettingsAuditGlobalSaclItem + """ + model = swagger_client.models.smb_settings_global_settings_audit_global_sacl_item.SmbSettingsGlobalSettingsAuditGlobalSaclItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_settings_share.py b/test/test_smb_settings_share.py new file mode 100644 index 000000000..1ef02a134 --- /dev/null +++ b/test/test_smb_settings_share.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_settings_share import SmbSettingsShare + + +class TestSmbSettingsShare(unittest.TestCase): + """ SmbSettingsShare unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSettingsShare(self): + """ + Test SmbSettingsShare + """ + model = swagger_client.models.smb_settings_share.SmbSettingsShare() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_settings_share_settings.py b/test/test_smb_settings_share_settings.py new file mode 100644 index 000000000..c1a1827dc --- /dev/null +++ b/test/test_smb_settings_share_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_settings_share_settings import SmbSettingsShareSettings + + +class TestSmbSettingsShareSettings(unittest.TestCase): + """ SmbSettingsShareSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSettingsShareSettings(self): + """ + Test SmbSettingsShareSettings + """ + model = swagger_client.models.smb_settings_share_settings.SmbSettingsShareSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_share.py b/test/test_smb_share.py new file mode 100644 index 000000000..b788684de --- /dev/null +++ b/test/test_smb_share.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_share import SmbShare + + +class TestSmbShare(unittest.TestCase): + """ SmbShare unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbShare(self): + """ + Test SmbShare + """ + model = swagger_client.models.smb_share.SmbShare() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_share_create_params.py b/test/test_smb_share_create_params.py new file mode 100644 index 000000000..98bc6efdd --- /dev/null +++ b/test/test_smb_share_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_share_create_params import SmbShareCreateParams + + +class TestSmbShareCreateParams(unittest.TestCase): + """ SmbShareCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbShareCreateParams(self): + """ + Test SmbShareCreateParams + """ + model = swagger_client.models.smb_share_create_params.SmbShareCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_share_extended.py b/test/test_smb_share_extended.py new file mode 100644 index 000000000..5b26974a9 --- /dev/null +++ b/test/test_smb_share_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_share_extended import SmbShareExtended + + +class TestSmbShareExtended(unittest.TestCase): + """ SmbShareExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbShareExtended(self): + """ + Test SmbShareExtended + """ + model = swagger_client.models.smb_share_extended.SmbShareExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_share_permission.py b/test/test_smb_share_permission.py new file mode 100644 index 000000000..68ed8060a --- /dev/null +++ b/test/test_smb_share_permission.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_share_permission import SmbSharePermission + + +class TestSmbSharePermission(unittest.TestCase): + """ SmbSharePermission unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSharePermission(self): + """ + Test SmbSharePermission + """ + model = swagger_client.models.smb_share_permission.SmbSharePermission() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_shares.py b/test/test_smb_shares.py new file mode 100644 index 000000000..fe81dc988 --- /dev/null +++ b/test/test_smb_shares.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_shares import SmbShares + + +class TestSmbShares(unittest.TestCase): + """ SmbShares unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbShares(self): + """ + Test SmbShares + """ + model = swagger_client.models.smb_shares.SmbShares() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_shares_extended.py b/test/test_smb_shares_extended.py new file mode 100644 index 000000000..6e9ac697a --- /dev/null +++ b/test/test_smb_shares_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_shares_extended import SmbSharesExtended + + +class TestSmbSharesExtended(unittest.TestCase): + """ SmbSharesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSharesExtended(self): + """ + Test SmbSharesExtended + """ + model = swagger_client.models.smb_shares_extended.SmbSharesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_shares_summary.py b/test/test_smb_shares_summary.py new file mode 100644 index 000000000..8d4593181 --- /dev/null +++ b/test/test_smb_shares_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_shares_summary import SmbSharesSummary + + +class TestSmbSharesSummary(unittest.TestCase): + """ SmbSharesSummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSharesSummary(self): + """ + Test SmbSharesSummary + """ + model = swagger_client.models.smb_shares_summary.SmbSharesSummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_smb_shares_summary_summary.py b/test/test_smb_shares_summary_summary.py new file mode 100644 index 000000000..39ca3f065 --- /dev/null +++ b/test/test_smb_shares_summary_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.smb_shares_summary_summary import SmbSharesSummarySummary + + +class TestSmbSharesSummarySummary(unittest.TestCase): + """ SmbSharesSummarySummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSmbSharesSummarySummary(self): + """ + Test SmbSharesSummarySummary + """ + model = swagger_client.models.smb_shares_summary_summary.SmbSharesSummarySummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_aliase.py b/test/test_snapshot_aliase.py new file mode 100644 index 000000000..7ef174649 --- /dev/null +++ b/test/test_snapshot_aliase.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_aliase import SnapshotAliase + + +class TestSnapshotAliase(unittest.TestCase): + """ SnapshotAliase unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotAliase(self): + """ + Test SnapshotAliase + """ + model = swagger_client.models.snapshot_aliase.SnapshotAliase() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_aliase_create_params.py b/test/test_snapshot_aliase_create_params.py new file mode 100644 index 000000000..53d46cbe6 --- /dev/null +++ b/test/test_snapshot_aliase_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_aliase_create_params import SnapshotAliaseCreateParams + + +class TestSnapshotAliaseCreateParams(unittest.TestCase): + """ SnapshotAliaseCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotAliaseCreateParams(self): + """ + Test SnapshotAliaseCreateParams + """ + model = swagger_client.models.snapshot_aliase_create_params.SnapshotAliaseCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_aliase_extended.py b/test/test_snapshot_aliase_extended.py new file mode 100644 index 000000000..094b51a39 --- /dev/null +++ b/test/test_snapshot_aliase_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_aliase_extended import SnapshotAliaseExtended + + +class TestSnapshotAliaseExtended(unittest.TestCase): + """ SnapshotAliaseExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotAliaseExtended(self): + """ + Test SnapshotAliaseExtended + """ + model = swagger_client.models.snapshot_aliase_extended.SnapshotAliaseExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_aliases.py b/test/test_snapshot_aliases.py new file mode 100644 index 000000000..5daf94e25 --- /dev/null +++ b/test/test_snapshot_aliases.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_aliases import SnapshotAliases + + +class TestSnapshotAliases(unittest.TestCase): + """ SnapshotAliases unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotAliases(self): + """ + Test SnapshotAliases + """ + model = swagger_client.models.snapshot_aliases.SnapshotAliases() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_aliases_extended.py b/test/test_snapshot_aliases_extended.py new file mode 100644 index 000000000..86c98377e --- /dev/null +++ b/test/test_snapshot_aliases_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_aliases_extended import SnapshotAliasesExtended + + +class TestSnapshotAliasesExtended(unittest.TestCase): + """ SnapshotAliasesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotAliasesExtended(self): + """ + Test SnapshotAliasesExtended + """ + model = swagger_client.models.snapshot_aliases_extended.SnapshotAliasesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_api.py b/test/test_snapshot_api.py new file mode 100644 index 000000000..8efb38147 --- /dev/null +++ b/test/test_snapshot_api.py @@ -0,0 +1,291 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.snapshot_api import SnapshotApi + + +class TestSnapshotApi(unittest.TestCase): + """ SnapshotApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.snapshot_api.SnapshotApi() + + def tearDown(self): + pass + + def test_create_snapshot_aliase(self): + """ + Test case for create_snapshot_aliase + + + """ + pass + + def test_create_snapshot_changelist(self): + """ + Test case for create_snapshot_changelist + + + """ + pass + + def test_create_snapshot_repstate(self): + """ + Test case for create_snapshot_repstate + + + """ + pass + + def test_create_snapshot_schedule(self): + """ + Test case for create_snapshot_schedule + + + """ + pass + + def test_create_snapshot_snapshot(self): + """ + Test case for create_snapshot_snapshot + + + """ + pass + + def test_delete_snapshot_aliase(self): + """ + Test case for delete_snapshot_aliase + + + """ + pass + + def test_delete_snapshot_aliases(self): + """ + Test case for delete_snapshot_aliases + + + """ + pass + + def test_delete_snapshot_changelist(self): + """ + Test case for delete_snapshot_changelist + + + """ + pass + + def test_delete_snapshot_repstate(self): + """ + Test case for delete_snapshot_repstate + + + """ + pass + + def test_delete_snapshot_schedule(self): + """ + Test case for delete_snapshot_schedule + + + """ + pass + + def test_delete_snapshot_schedules(self): + """ + Test case for delete_snapshot_schedules + + + """ + pass + + def test_delete_snapshot_snapshot(self): + """ + Test case for delete_snapshot_snapshot + + + """ + pass + + def test_delete_snapshot_snapshots(self): + """ + Test case for delete_snapshot_snapshots + + + """ + pass + + def test_get_snapshot_aliase(self): + """ + Test case for get_snapshot_aliase + + + """ + pass + + def test_get_snapshot_changelist(self): + """ + Test case for get_snapshot_changelist + + + """ + pass + + def test_get_snapshot_license(self): + """ + Test case for get_snapshot_license + + + """ + pass + + def test_get_snapshot_pending(self): + """ + Test case for get_snapshot_pending + + + """ + pass + + def test_get_snapshot_repstate(self): + """ + Test case for get_snapshot_repstate + + + """ + pass + + def test_get_snapshot_schedule(self): + """ + Test case for get_snapshot_schedule + + + """ + pass + + def test_get_snapshot_settings(self): + """ + Test case for get_snapshot_settings + + + """ + pass + + def test_get_snapshot_snapshot(self): + """ + Test case for get_snapshot_snapshot + + + """ + pass + + def test_get_snapshot_snapshots_summary(self): + """ + Test case for get_snapshot_snapshots_summary + + + """ + pass + + def test_list_snapshot_aliases(self): + """ + Test case for list_snapshot_aliases + + + """ + pass + + def test_list_snapshot_changelists(self): + """ + Test case for list_snapshot_changelists + + + """ + pass + + def test_list_snapshot_repstates(self): + """ + Test case for list_snapshot_repstates + + + """ + pass + + def test_list_snapshot_schedules(self): + """ + Test case for list_snapshot_schedules + + + """ + pass + + def test_list_snapshot_snapshots(self): + """ + Test case for list_snapshot_snapshots + + + """ + pass + + def test_update_snapshot_aliase(self): + """ + Test case for update_snapshot_aliase + + + """ + pass + + def test_update_snapshot_schedule(self): + """ + Test case for update_snapshot_schedule + + + """ + pass + + def test_update_snapshot_settings(self): + """ + Test case for update_snapshot_settings + + + """ + pass + + def test_update_snapshot_snapshot(self): + """ + Test case for update_snapshot_snapshot + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_changelists.py b/test/test_snapshot_changelists.py new file mode 100644 index 000000000..a790eec0f --- /dev/null +++ b/test/test_snapshot_changelists.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_changelists import SnapshotChangelists + + +class TestSnapshotChangelists(unittest.TestCase): + """ SnapshotChangelists unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotChangelists(self): + """ + Test SnapshotChangelists + """ + model = swagger_client.models.snapshot_changelists.SnapshotChangelists() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_changelists_api.py b/test/test_snapshot_changelists_api.py new file mode 100644 index 000000000..085f73ef3 --- /dev/null +++ b/test/test_snapshot_changelists_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.snapshot_changelists_api import SnapshotChangelistsApi + + +class TestSnapshotChangelistsApi(unittest.TestCase): + """ SnapshotChangelistsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.snapshot_changelists_api.SnapshotChangelistsApi() + + def tearDown(self): + pass + + def test_get_changelist_lin(self): + """ + Test case for get_changelist_lin + + + """ + pass + + def test_get_changelist_lins(self): + """ + Test case for get_changelist_lins + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_changelists_extended.py b/test/test_snapshot_changelists_extended.py new file mode 100644 index 000000000..ee2ea55f3 --- /dev/null +++ b/test/test_snapshot_changelists_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_changelists_extended import SnapshotChangelistsExtended + + +class TestSnapshotChangelistsExtended(unittest.TestCase): + """ SnapshotChangelistsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotChangelistsExtended(self): + """ + Test SnapshotChangelistsExtended + """ + model = swagger_client.models.snapshot_changelists_extended.SnapshotChangelistsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_lock.py b/test/test_snapshot_lock.py new file mode 100644 index 000000000..e61872eb4 --- /dev/null +++ b/test/test_snapshot_lock.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_lock import SnapshotLock + + +class TestSnapshotLock(unittest.TestCase): + """ SnapshotLock unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotLock(self): + """ + Test SnapshotLock + """ + model = swagger_client.models.snapshot_lock.SnapshotLock() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_lock_create_params.py b/test/test_snapshot_lock_create_params.py new file mode 100644 index 000000000..e2bf71eff --- /dev/null +++ b/test/test_snapshot_lock_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_lock_create_params import SnapshotLockCreateParams + + +class TestSnapshotLockCreateParams(unittest.TestCase): + """ SnapshotLockCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotLockCreateParams(self): + """ + Test SnapshotLockCreateParams + """ + model = swagger_client.models.snapshot_lock_create_params.SnapshotLockCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_lock_extended.py b/test/test_snapshot_lock_extended.py new file mode 100644 index 000000000..354d126ad --- /dev/null +++ b/test/test_snapshot_lock_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_lock_extended import SnapshotLockExtended + + +class TestSnapshotLockExtended(unittest.TestCase): + """ SnapshotLockExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotLockExtended(self): + """ + Test SnapshotLockExtended + """ + model = swagger_client.models.snapshot_lock_extended.SnapshotLockExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_locks.py b/test/test_snapshot_locks.py new file mode 100644 index 000000000..cda020138 --- /dev/null +++ b/test/test_snapshot_locks.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_locks import SnapshotLocks + + +class TestSnapshotLocks(unittest.TestCase): + """ SnapshotLocks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotLocks(self): + """ + Test SnapshotLocks + """ + model = swagger_client.models.snapshot_locks.SnapshotLocks() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_locks_extended.py b/test/test_snapshot_locks_extended.py new file mode 100644 index 000000000..5e81d59bf --- /dev/null +++ b/test/test_snapshot_locks_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_locks_extended import SnapshotLocksExtended + + +class TestSnapshotLocksExtended(unittest.TestCase): + """ SnapshotLocksExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotLocksExtended(self): + """ + Test SnapshotLocksExtended + """ + model = swagger_client.models.snapshot_locks_extended.SnapshotLocksExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_pending.py b/test/test_snapshot_pending.py new file mode 100644 index 000000000..f847a23c8 --- /dev/null +++ b/test/test_snapshot_pending.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_pending import SnapshotPending + + +class TestSnapshotPending(unittest.TestCase): + """ SnapshotPending unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotPending(self): + """ + Test SnapshotPending + """ + model = swagger_client.models.snapshot_pending.SnapshotPending() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_pending_pending_item.py b/test/test_snapshot_pending_pending_item.py new file mode 100644 index 000000000..c605ae479 --- /dev/null +++ b/test/test_snapshot_pending_pending_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_pending_pending_item import SnapshotPendingPendingItem + + +class TestSnapshotPendingPendingItem(unittest.TestCase): + """ SnapshotPendingPendingItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotPendingPendingItem(self): + """ + Test SnapshotPendingPendingItem + """ + model = swagger_client.models.snapshot_pending_pending_item.SnapshotPendingPendingItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_repstates.py b/test/test_snapshot_repstates.py new file mode 100644 index 000000000..366201cca --- /dev/null +++ b/test/test_snapshot_repstates.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_repstates import SnapshotRepstates + + +class TestSnapshotRepstates(unittest.TestCase): + """ SnapshotRepstates unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotRepstates(self): + """ + Test SnapshotRepstates + """ + model = swagger_client.models.snapshot_repstates.SnapshotRepstates() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_repstates_extended.py b/test/test_snapshot_repstates_extended.py new file mode 100644 index 000000000..01327555e --- /dev/null +++ b/test/test_snapshot_repstates_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_repstates_extended import SnapshotRepstatesExtended + + +class TestSnapshotRepstatesExtended(unittest.TestCase): + """ SnapshotRepstatesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotRepstatesExtended(self): + """ + Test SnapshotRepstatesExtended + """ + model = swagger_client.models.snapshot_repstates_extended.SnapshotRepstatesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_schedule.py b/test/test_snapshot_schedule.py new file mode 100644 index 000000000..8bc367cef --- /dev/null +++ b/test/test_snapshot_schedule.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_schedule import SnapshotSchedule + + +class TestSnapshotSchedule(unittest.TestCase): + """ SnapshotSchedule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSchedule(self): + """ + Test SnapshotSchedule + """ + model = swagger_client.models.snapshot_schedule.SnapshotSchedule() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_schedule_extended.py b/test/test_snapshot_schedule_extended.py new file mode 100644 index 000000000..dd6216c6a --- /dev/null +++ b/test/test_snapshot_schedule_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_schedule_extended import SnapshotScheduleExtended + + +class TestSnapshotScheduleExtended(unittest.TestCase): + """ SnapshotScheduleExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotScheduleExtended(self): + """ + Test SnapshotScheduleExtended + """ + model = swagger_client.models.snapshot_schedule_extended.SnapshotScheduleExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_schedules.py b/test/test_snapshot_schedules.py new file mode 100644 index 000000000..836080257 --- /dev/null +++ b/test/test_snapshot_schedules.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_schedules import SnapshotSchedules + + +class TestSnapshotSchedules(unittest.TestCase): + """ SnapshotSchedules unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSchedules(self): + """ + Test SnapshotSchedules + """ + model = swagger_client.models.snapshot_schedules.SnapshotSchedules() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_schedules_extended.py b/test/test_snapshot_schedules_extended.py new file mode 100644 index 000000000..32bcbdfc6 --- /dev/null +++ b/test/test_snapshot_schedules_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_schedules_extended import SnapshotSchedulesExtended + + +class TestSnapshotSchedulesExtended(unittest.TestCase): + """ SnapshotSchedulesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSchedulesExtended(self): + """ + Test SnapshotSchedulesExtended + """ + model = swagger_client.models.snapshot_schedules_extended.SnapshotSchedulesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_settings.py b/test/test_snapshot_settings.py new file mode 100644 index 000000000..c5d72c998 --- /dev/null +++ b/test/test_snapshot_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_settings import SnapshotSettings + + +class TestSnapshotSettings(unittest.TestCase): + """ SnapshotSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSettings(self): + """ + Test SnapshotSettings + """ + model = swagger_client.models.snapshot_settings.SnapshotSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_settings_settings.py b/test/test_snapshot_settings_settings.py new file mode 100644 index 000000000..9b0069839 --- /dev/null +++ b/test/test_snapshot_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_settings_settings import SnapshotSettingsSettings + + +class TestSnapshotSettingsSettings(unittest.TestCase): + """ SnapshotSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSettingsSettings(self): + """ + Test SnapshotSettingsSettings + """ + model = swagger_client.models.snapshot_settings_settings.SnapshotSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_snapshot.py b/test/test_snapshot_snapshot.py new file mode 100644 index 000000000..3a25fd459 --- /dev/null +++ b/test/test_snapshot_snapshot.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_snapshot import SnapshotSnapshot + + +class TestSnapshotSnapshot(unittest.TestCase): + """ SnapshotSnapshot unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSnapshot(self): + """ + Test SnapshotSnapshot + """ + model = swagger_client.models.snapshot_snapshot.SnapshotSnapshot() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_snapshot_create_params.py b/test/test_snapshot_snapshot_create_params.py new file mode 100644 index 000000000..a84e3b534 --- /dev/null +++ b/test/test_snapshot_snapshot_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_snapshot_create_params import SnapshotSnapshotCreateParams + + +class TestSnapshotSnapshotCreateParams(unittest.TestCase): + """ SnapshotSnapshotCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSnapshotCreateParams(self): + """ + Test SnapshotSnapshotCreateParams + """ + model = swagger_client.models.snapshot_snapshot_create_params.SnapshotSnapshotCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_snapshot_extended.py b/test/test_snapshot_snapshot_extended.py new file mode 100644 index 000000000..769e3a846 --- /dev/null +++ b/test/test_snapshot_snapshot_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_snapshot_extended import SnapshotSnapshotExtended + + +class TestSnapshotSnapshotExtended(unittest.TestCase): + """ SnapshotSnapshotExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSnapshotExtended(self): + """ + Test SnapshotSnapshotExtended + """ + model = swagger_client.models.snapshot_snapshot_extended.SnapshotSnapshotExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_snapshots.py b/test/test_snapshot_snapshots.py new file mode 100644 index 000000000..60d0ffd28 --- /dev/null +++ b/test/test_snapshot_snapshots.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_snapshots import SnapshotSnapshots + + +class TestSnapshotSnapshots(unittest.TestCase): + """ SnapshotSnapshots unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSnapshots(self): + """ + Test SnapshotSnapshots + """ + model = swagger_client.models.snapshot_snapshots.SnapshotSnapshots() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_snapshots_api.py b/test/test_snapshot_snapshots_api.py new file mode 100644 index 000000000..79f34cf60 --- /dev/null +++ b/test/test_snapshot_snapshots_api.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.snapshot_snapshots_api import SnapshotSnapshotsApi + + +class TestSnapshotSnapshotsApi(unittest.TestCase): + """ SnapshotSnapshotsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.snapshot_snapshots_api.SnapshotSnapshotsApi() + + def tearDown(self): + pass + + def test_create_snapshot_lock(self): + """ + Test case for create_snapshot_lock + + + """ + pass + + def test_delete_snapshot_lock(self): + """ + Test case for delete_snapshot_lock + + + """ + pass + + def test_delete_snapshot_locks(self): + """ + Test case for delete_snapshot_locks + + + """ + pass + + def test_get_snapshot_lock(self): + """ + Test case for get_snapshot_lock + + + """ + pass + + def test_list_snapshot_locks(self): + """ + Test case for list_snapshot_locks + + + """ + pass + + def test_update_snapshot_lock(self): + """ + Test case for update_snapshot_lock + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_snapshots_extended.py b/test/test_snapshot_snapshots_extended.py new file mode 100644 index 000000000..8a1b4a7ce --- /dev/null +++ b/test/test_snapshot_snapshots_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_snapshots_extended import SnapshotSnapshotsExtended + + +class TestSnapshotSnapshotsExtended(unittest.TestCase): + """ SnapshotSnapshotsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSnapshotsExtended(self): + """ + Test SnapshotSnapshotsExtended + """ + model = swagger_client.models.snapshot_snapshots_extended.SnapshotSnapshotsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_snapshots_summary.py b/test/test_snapshot_snapshots_summary.py new file mode 100644 index 000000000..9115e7729 --- /dev/null +++ b/test/test_snapshot_snapshots_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_snapshots_summary import SnapshotSnapshotsSummary + + +class TestSnapshotSnapshotsSummary(unittest.TestCase): + """ SnapshotSnapshotsSummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSnapshotsSummary(self): + """ + Test SnapshotSnapshotsSummary + """ + model = swagger_client.models.snapshot_snapshots_summary.SnapshotSnapshotsSummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snapshot_snapshots_summary_summary.py b/test/test_snapshot_snapshots_summary_summary.py new file mode 100644 index 000000000..e69807b99 --- /dev/null +++ b/test/test_snapshot_snapshots_summary_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snapshot_snapshots_summary_summary import SnapshotSnapshotsSummarySummary + + +class TestSnapshotSnapshotsSummarySummary(unittest.TestCase): + """ SnapshotSnapshotsSummarySummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnapshotSnapshotsSummarySummary(self): + """ + Test SnapshotSnapshotsSummarySummary + """ + model = swagger_client.models.snapshot_snapshots_summary_summary.SnapshotSnapshotsSummarySummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snmp_settings.py b/test/test_snmp_settings.py new file mode 100644 index 000000000..2180e0454 --- /dev/null +++ b/test/test_snmp_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snmp_settings import SnmpSettings + + +class TestSnmpSettings(unittest.TestCase): + """ SnmpSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnmpSettings(self): + """ + Test SnmpSettings + """ + model = swagger_client.models.snmp_settings.SnmpSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snmp_settings_extended.py b/test/test_snmp_settings_extended.py new file mode 100644 index 000000000..964c4ea46 --- /dev/null +++ b/test/test_snmp_settings_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snmp_settings_extended import SnmpSettingsExtended + + +class TestSnmpSettingsExtended(unittest.TestCase): + """ SnmpSettingsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnmpSettingsExtended(self): + """ + Test SnmpSettingsExtended + """ + model = swagger_client.models.snmp_settings_extended.SnmpSettingsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_snmp_settings_settings.py b/test/test_snmp_settings_settings.py new file mode 100644 index 000000000..5f1e950b6 --- /dev/null +++ b/test/test_snmp_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.snmp_settings_settings import SnmpSettingsSettings + + +class TestSnmpSettingsSettings(unittest.TestCase): + """ SnmpSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSnmpSettingsSettings(self): + """ + Test SnmpSettingsSettings + """ + model = swagger_client.models.snmp_settings_settings.SnmpSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_api.py b/test/test_statistics_api.py new file mode 100644 index 000000000..ddf53b08c --- /dev/null +++ b/test/test_statistics_api.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.statistics_api import StatisticsApi + + +class TestStatisticsApi(unittest.TestCase): + """ StatisticsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.statistics_api.StatisticsApi() + + def tearDown(self): + pass + + def test_get_statistics_current(self): + """ + Test case for get_statistics_current + + + """ + pass + + def test_get_statistics_history(self): + """ + Test case for get_statistics_history + + + """ + pass + + def test_get_statistics_key(self): + """ + Test case for get_statistics_key + + + """ + pass + + def test_get_statistics_keys(self): + """ + Test case for get_statistics_keys + + + """ + pass + + def test_get_statistics_operations(self): + """ + Test case for get_statistics_operations + + + """ + pass + + def test_get_statistics_protocols(self): + """ + Test case for get_statistics_protocols + + + """ + pass + + def test_get_summary_client(self): + """ + Test case for get_summary_client + + + """ + pass + + def test_get_summary_drive(self): + """ + Test case for get_summary_drive + + + """ + pass + + def test_get_summary_heat(self): + """ + Test case for get_summary_heat + + + """ + pass + + def test_get_summary_protocol(self): + """ + Test case for get_summary_protocol + + + """ + pass + + def test_get_summary_system(self): + """ + Test case for get_summary_system + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_current.py b/test/test_statistics_current.py new file mode 100644 index 000000000..cbc137e06 --- /dev/null +++ b/test/test_statistics_current.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_current import StatisticsCurrent + + +class TestStatisticsCurrent(unittest.TestCase): + """ StatisticsCurrent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsCurrent(self): + """ + Test StatisticsCurrent + """ + model = swagger_client.models.statistics_current.StatisticsCurrent() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_current_stat.py b/test/test_statistics_current_stat.py new file mode 100644 index 000000000..274664e92 --- /dev/null +++ b/test/test_statistics_current_stat.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_current_stat import StatisticsCurrentStat + + +class TestStatisticsCurrentStat(unittest.TestCase): + """ StatisticsCurrentStat unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsCurrentStat(self): + """ + Test StatisticsCurrentStat + """ + model = swagger_client.models.statistics_current_stat.StatisticsCurrentStat() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_history.py b/test/test_statistics_history.py new file mode 100644 index 000000000..4f6987b87 --- /dev/null +++ b/test/test_statistics_history.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_history import StatisticsHistory + + +class TestStatisticsHistory(unittest.TestCase): + """ StatisticsHistory unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsHistory(self): + """ + Test StatisticsHistory + """ + model = swagger_client.models.statistics_history.StatisticsHistory() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_history_stat.py b/test/test_statistics_history_stat.py new file mode 100644 index 000000000..b7056de52 --- /dev/null +++ b/test/test_statistics_history_stat.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_history_stat import StatisticsHistoryStat + + +class TestStatisticsHistoryStat(unittest.TestCase): + """ StatisticsHistoryStat unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsHistoryStat(self): + """ + Test StatisticsHistoryStat + """ + model = swagger_client.models.statistics_history_stat.StatisticsHistoryStat() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_history_stat_value.py b/test/test_statistics_history_stat_value.py new file mode 100644 index 000000000..347f3c33d --- /dev/null +++ b/test/test_statistics_history_stat_value.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_history_stat_value import StatisticsHistoryStatValue + + +class TestStatisticsHistoryStatValue(unittest.TestCase): + """ StatisticsHistoryStatValue unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsHistoryStatValue(self): + """ + Test StatisticsHistoryStatValue + """ + model = swagger_client.models.statistics_history_stat_value.StatisticsHistoryStatValue() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_key.py b/test/test_statistics_key.py new file mode 100644 index 000000000..68b236974 --- /dev/null +++ b/test/test_statistics_key.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_key import StatisticsKey + + +class TestStatisticsKey(unittest.TestCase): + """ StatisticsKey unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsKey(self): + """ + Test StatisticsKey + """ + model = swagger_client.models.statistics_key.StatisticsKey() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_key_policy.py b/test/test_statistics_key_policy.py new file mode 100644 index 000000000..9b353f446 --- /dev/null +++ b/test/test_statistics_key_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_key_policy import StatisticsKeyPolicy + + +class TestStatisticsKeyPolicy(unittest.TestCase): + """ StatisticsKeyPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsKeyPolicy(self): + """ + Test StatisticsKeyPolicy + """ + model = swagger_client.models.statistics_key_policy.StatisticsKeyPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_keys.py b/test/test_statistics_keys.py new file mode 100644 index 000000000..1faa2b942 --- /dev/null +++ b/test/test_statistics_keys.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_keys import StatisticsKeys + + +class TestStatisticsKeys(unittest.TestCase): + """ StatisticsKeys unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsKeys(self): + """ + Test StatisticsKeys + """ + model = swagger_client.models.statistics_keys.StatisticsKeys() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_keys_extended.py b/test/test_statistics_keys_extended.py new file mode 100644 index 000000000..b918ed7a4 --- /dev/null +++ b/test/test_statistics_keys_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_keys_extended import StatisticsKeysExtended + + +class TestStatisticsKeysExtended(unittest.TestCase): + """ StatisticsKeysExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsKeysExtended(self): + """ + Test StatisticsKeysExtended + """ + model = swagger_client.models.statistics_keys_extended.StatisticsKeysExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_operation.py b/test/test_statistics_operation.py new file mode 100644 index 000000000..9a755928a --- /dev/null +++ b/test/test_statistics_operation.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_operation import StatisticsOperation + + +class TestStatisticsOperation(unittest.TestCase): + """ StatisticsOperation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsOperation(self): + """ + Test StatisticsOperation + """ + model = swagger_client.models.statistics_operation.StatisticsOperation() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_operations.py b/test/test_statistics_operations.py new file mode 100644 index 000000000..36a0e8de1 --- /dev/null +++ b/test/test_statistics_operations.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_operations import StatisticsOperations + + +class TestStatisticsOperations(unittest.TestCase): + """ StatisticsOperations unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsOperations(self): + """ + Test StatisticsOperations + """ + model = swagger_client.models.statistics_operations.StatisticsOperations() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_protocol.py b/test/test_statistics_protocol.py new file mode 100644 index 000000000..6ed785e38 --- /dev/null +++ b/test/test_statistics_protocol.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_protocol import StatisticsProtocol + + +class TestStatisticsProtocol(unittest.TestCase): + """ StatisticsProtocol unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsProtocol(self): + """ + Test StatisticsProtocol + """ + model = swagger_client.models.statistics_protocol.StatisticsProtocol() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_statistics_protocols.py b/test/test_statistics_protocols.py new file mode 100644 index 000000000..d2047466f --- /dev/null +++ b/test/test_statistics_protocols.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.statistics_protocols import StatisticsProtocols + + +class TestStatisticsProtocols(unittest.TestCase): + """ StatisticsProtocols unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatisticsProtocols(self): + """ + Test StatisticsProtocols + """ + model = swagger_client.models.statistics_protocols.StatisticsProtocols() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_api.py b/test/test_storagepool_api.py new file mode 100644 index 000000000..ff177c500 --- /dev/null +++ b/test/test_storagepool_api.py @@ -0,0 +1,267 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.storagepool_api import StoragepoolApi + + +class TestStoragepoolApi(unittest.TestCase): + """ StoragepoolApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.storagepool_api.StoragepoolApi() + + def tearDown(self): + pass + + def test_create_compatibilities_class_active_item(self): + """ + Test case for create_compatibilities_class_active_item + + + """ + pass + + def test_create_compatibilities_ssd_active_item(self): + """ + Test case for create_compatibilities_ssd_active_item + + + """ + pass + + def test_create_storagepool_nodepool(self): + """ + Test case for create_storagepool_nodepool + + + """ + pass + + def test_create_storagepool_tier(self): + """ + Test case for create_storagepool_tier + + + """ + pass + + def test_delete_compatibilities_class_active_by_id(self): + """ + Test case for delete_compatibilities_class_active_by_id + + + """ + pass + + def test_delete_compatibilities_ssd_active_by_id(self): + """ + Test case for delete_compatibilities_ssd_active_by_id + + + """ + pass + + def test_delete_storagepool_nodepool(self): + """ + Test case for delete_storagepool_nodepool + + + """ + pass + + def test_delete_storagepool_tier(self): + """ + Test case for delete_storagepool_tier + + + """ + pass + + def test_delete_storagepool_tiers(self): + """ + Test case for delete_storagepool_tiers + + + """ + pass + + def test_get_compatibilities_class_active_by_id(self): + """ + Test case for get_compatibilities_class_active_by_id + + + """ + pass + + def test_get_compatibilities_class_available(self): + """ + Test case for get_compatibilities_class_available + + + """ + pass + + def test_get_compatibilities_ssd_active_by_id(self): + """ + Test case for get_compatibilities_ssd_active_by_id + + + """ + pass + + def test_get_compatibilities_ssd_available(self): + """ + Test case for get_compatibilities_ssd_available + + + """ + pass + + def test_get_storagepool_nodepool(self): + """ + Test case for get_storagepool_nodepool + + + """ + pass + + def test_get_storagepool_settings(self): + """ + Test case for get_storagepool_settings + + + """ + pass + + def test_get_storagepool_status(self): + """ + Test case for get_storagepool_status + + + """ + pass + + def test_get_storagepool_storagepools(self): + """ + Test case for get_storagepool_storagepools + + + """ + pass + + def test_get_storagepool_suggested_protection_nid(self): + """ + Test case for get_storagepool_suggested_protection_nid + + + """ + pass + + def test_get_storagepool_tier(self): + """ + Test case for get_storagepool_tier + + + """ + pass + + def test_get_storagepool_unprovisioned(self): + """ + Test case for get_storagepool_unprovisioned + + + """ + pass + + def test_list_compatibilities_class_active(self): + """ + Test case for list_compatibilities_class_active + + + """ + pass + + def test_list_compatibilities_ssd_active(self): + """ + Test case for list_compatibilities_ssd_active + + + """ + pass + + def test_list_storagepool_nodepools(self): + """ + Test case for list_storagepool_nodepools + + + """ + pass + + def test_list_storagepool_tiers(self): + """ + Test case for list_storagepool_tiers + + + """ + pass + + def test_update_compatibilities_ssd_active_by_id(self): + """ + Test case for update_compatibilities_ssd_active_by_id + + + """ + pass + + def test_update_storagepool_nodepool(self): + """ + Test case for update_storagepool_nodepool + + + """ + pass + + def test_update_storagepool_settings(self): + """ + Test case for update_storagepool_settings + + + """ + pass + + def test_update_storagepool_tier(self): + """ + Test case for update_storagepool_tier + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_nodepool.py b/test/test_storagepool_nodepool.py new file mode 100644 index 000000000..90db5bb50 --- /dev/null +++ b/test/test_storagepool_nodepool.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_nodepool import StoragepoolNodepool + + +class TestStoragepoolNodepool(unittest.TestCase): + """ StoragepoolNodepool unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolNodepool(self): + """ + Test StoragepoolNodepool + """ + model = swagger_client.models.storagepool_nodepool.StoragepoolNodepool() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_nodepool_extended.py b/test/test_storagepool_nodepool_extended.py new file mode 100644 index 000000000..9c52d2685 --- /dev/null +++ b/test/test_storagepool_nodepool_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_nodepool_extended import StoragepoolNodepoolExtended + + +class TestStoragepoolNodepoolExtended(unittest.TestCase): + """ StoragepoolNodepoolExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolNodepoolExtended(self): + """ + Test StoragepoolNodepoolExtended + """ + model = swagger_client.models.storagepool_nodepool_extended.StoragepoolNodepoolExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_nodepools.py b/test/test_storagepool_nodepools.py new file mode 100644 index 000000000..69fdeefa9 --- /dev/null +++ b/test/test_storagepool_nodepools.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_nodepools import StoragepoolNodepools + + +class TestStoragepoolNodepools(unittest.TestCase): + """ StoragepoolNodepools unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolNodepools(self): + """ + Test StoragepoolNodepools + """ + model = swagger_client.models.storagepool_nodepools.StoragepoolNodepools() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_nodepools_extended.py b/test/test_storagepool_nodepools_extended.py new file mode 100644 index 000000000..2fd94d8e5 --- /dev/null +++ b/test/test_storagepool_nodepools_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_nodepools_extended import StoragepoolNodepoolsExtended + + +class TestStoragepoolNodepoolsExtended(unittest.TestCase): + """ StoragepoolNodepoolsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolNodepoolsExtended(self): + """ + Test StoragepoolNodepoolsExtended + """ + model = swagger_client.models.storagepool_nodepools_extended.StoragepoolNodepoolsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_settings.py b/test/test_storagepool_settings.py new file mode 100644 index 000000000..2329138b0 --- /dev/null +++ b/test/test_storagepool_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_settings import StoragepoolSettings + + +class TestStoragepoolSettings(unittest.TestCase): + """ StoragepoolSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolSettings(self): + """ + Test StoragepoolSettings + """ + model = swagger_client.models.storagepool_settings.StoragepoolSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_settings_extended.py b/test/test_storagepool_settings_extended.py new file mode 100644 index 000000000..da55888ea --- /dev/null +++ b/test/test_storagepool_settings_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_settings_extended import StoragepoolSettingsExtended + + +class TestStoragepoolSettingsExtended(unittest.TestCase): + """ StoragepoolSettingsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolSettingsExtended(self): + """ + Test StoragepoolSettingsExtended + """ + model = swagger_client.models.storagepool_settings_extended.StoragepoolSettingsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_settings_settings.py b/test/test_storagepool_settings_settings.py new file mode 100644 index 000000000..1d69f07ef --- /dev/null +++ b/test/test_storagepool_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_settings_settings import StoragepoolSettingsSettings + + +class TestStoragepoolSettingsSettings(unittest.TestCase): + """ StoragepoolSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolSettingsSettings(self): + """ + Test StoragepoolSettingsSettings + """ + model = swagger_client.models.storagepool_settings_settings.StoragepoolSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_settings_settings_spillover_target.py b/test/test_storagepool_settings_settings_spillover_target.py new file mode 100644 index 000000000..1355959c1 --- /dev/null +++ b/test/test_storagepool_settings_settings_spillover_target.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_settings_settings_spillover_target import StoragepoolSettingsSettingsSpilloverTarget + + +class TestStoragepoolSettingsSettingsSpilloverTarget(unittest.TestCase): + """ StoragepoolSettingsSettingsSpilloverTarget unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolSettingsSettingsSpilloverTarget(self): + """ + Test StoragepoolSettingsSettingsSpilloverTarget + """ + model = swagger_client.models.storagepool_settings_settings_spillover_target.StoragepoolSettingsSettingsSpilloverTarget() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_settings_spillover_target.py b/test/test_storagepool_settings_spillover_target.py new file mode 100644 index 000000000..b1e6be603 --- /dev/null +++ b/test/test_storagepool_settings_spillover_target.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_settings_spillover_target import StoragepoolSettingsSpilloverTarget + + +class TestStoragepoolSettingsSpilloverTarget(unittest.TestCase): + """ StoragepoolSettingsSpilloverTarget unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolSettingsSpilloverTarget(self): + """ + Test StoragepoolSettingsSpilloverTarget + """ + model = swagger_client.models.storagepool_settings_spillover_target.StoragepoolSettingsSpilloverTarget() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_status.py b/test/test_storagepool_status.py new file mode 100644 index 000000000..67cebd2fc --- /dev/null +++ b/test/test_storagepool_status.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_status import StoragepoolStatus + + +class TestStoragepoolStatus(unittest.TestCase): + """ StoragepoolStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolStatus(self): + """ + Test StoragepoolStatus + """ + model = swagger_client.models.storagepool_status.StoragepoolStatus() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_status_unhealthy_item.py b/test/test_storagepool_status_unhealthy_item.py new file mode 100644 index 000000000..451ae19a7 --- /dev/null +++ b/test/test_storagepool_status_unhealthy_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_status_unhealthy_item import StoragepoolStatusUnhealthyItem + + +class TestStoragepoolStatusUnhealthyItem(unittest.TestCase): + """ StoragepoolStatusUnhealthyItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolStatusUnhealthyItem(self): + """ + Test StoragepoolStatusUnhealthyItem + """ + model = swagger_client.models.storagepool_status_unhealthy_item.StoragepoolStatusUnhealthyItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_status_unhealthy_item_affected_item.py b/test/test_storagepool_status_unhealthy_item_affected_item.py new file mode 100644 index 000000000..15987c9bd --- /dev/null +++ b/test/test_storagepool_status_unhealthy_item_affected_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_status_unhealthy_item_affected_item import StoragepoolStatusUnhealthyItemAffectedItem + + +class TestStoragepoolStatusUnhealthyItemAffectedItem(unittest.TestCase): + """ StoragepoolStatusUnhealthyItemAffectedItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolStatusUnhealthyItemAffectedItem(self): + """ + Test StoragepoolStatusUnhealthyItemAffectedItem + """ + model = swagger_client.models.storagepool_status_unhealthy_item_affected_item.StoragepoolStatusUnhealthyItemAffectedItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_status_unhealthy_item_diskpool.py b/test/test_storagepool_status_unhealthy_item_diskpool.py new file mode 100644 index 000000000..0ae256d47 --- /dev/null +++ b/test/test_storagepool_status_unhealthy_item_diskpool.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_status_unhealthy_item_diskpool import StoragepoolStatusUnhealthyItemDiskpool + + +class TestStoragepoolStatusUnhealthyItemDiskpool(unittest.TestCase): + """ StoragepoolStatusUnhealthyItemDiskpool unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolStatusUnhealthyItemDiskpool(self): + """ + Test StoragepoolStatusUnhealthyItemDiskpool + """ + model = swagger_client.models.storagepool_status_unhealthy_item_diskpool.StoragepoolStatusUnhealthyItemDiskpool() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_status_unprovisioned_item.py b/test/test_storagepool_status_unprovisioned_item.py new file mode 100644 index 000000000..e6f412592 --- /dev/null +++ b/test/test_storagepool_status_unprovisioned_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_status_unprovisioned_item import StoragepoolStatusUnprovisionedItem + + +class TestStoragepoolStatusUnprovisionedItem(unittest.TestCase): + """ StoragepoolStatusUnprovisionedItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolStatusUnprovisionedItem(self): + """ + Test StoragepoolStatusUnprovisionedItem + """ + model = swagger_client.models.storagepool_status_unprovisioned_item.StoragepoolStatusUnprovisionedItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_storagepool.py b/test/test_storagepool_storagepool.py new file mode 100644 index 000000000..0d5239ae0 --- /dev/null +++ b/test/test_storagepool_storagepool.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_storagepool import StoragepoolStoragepool + + +class TestStoragepoolStoragepool(unittest.TestCase): + """ StoragepoolStoragepool unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolStoragepool(self): + """ + Test StoragepoolStoragepool + """ + model = swagger_client.models.storagepool_storagepool.StoragepoolStoragepool() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_storagepools.py b/test/test_storagepool_storagepools.py new file mode 100644 index 000000000..efd3e03cd --- /dev/null +++ b/test/test_storagepool_storagepools.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_storagepools import StoragepoolStoragepools + + +class TestStoragepoolStoragepools(unittest.TestCase): + """ StoragepoolStoragepools unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolStoragepools(self): + """ + Test StoragepoolStoragepools + """ + model = swagger_client.models.storagepool_storagepools.StoragepoolStoragepools() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_suggested_protection.py b/test/test_storagepool_suggested_protection.py new file mode 100644 index 000000000..48ff973e8 --- /dev/null +++ b/test/test_storagepool_suggested_protection.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_suggested_protection import StoragepoolSuggestedProtection + + +class TestStoragepoolSuggestedProtection(unittest.TestCase): + """ StoragepoolSuggestedProtection unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolSuggestedProtection(self): + """ + Test StoragepoolSuggestedProtection + """ + model = swagger_client.models.storagepool_suggested_protection.StoragepoolSuggestedProtection() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_suggested_protection_suggested_protection_item.py b/test/test_storagepool_suggested_protection_suggested_protection_item.py new file mode 100644 index 000000000..43fb67cf1 --- /dev/null +++ b/test/test_storagepool_suggested_protection_suggested_protection_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_suggested_protection_suggested_protection_item import StoragepoolSuggestedProtectionSuggestedProtectionItem + + +class TestStoragepoolSuggestedProtectionSuggestedProtectionItem(unittest.TestCase): + """ StoragepoolSuggestedProtectionSuggestedProtectionItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolSuggestedProtectionSuggestedProtectionItem(self): + """ + Test StoragepoolSuggestedProtectionSuggestedProtectionItem + """ + model = swagger_client.models.storagepool_suggested_protection_suggested_protection_item.StoragepoolSuggestedProtectionSuggestedProtectionItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_tier.py b/test/test_storagepool_tier.py new file mode 100644 index 000000000..0b888a5a2 --- /dev/null +++ b/test/test_storagepool_tier.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_tier import StoragepoolTier + + +class TestStoragepoolTier(unittest.TestCase): + """ StoragepoolTier unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolTier(self): + """ + Test StoragepoolTier + """ + model = swagger_client.models.storagepool_tier.StoragepoolTier() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_tier_extended.py b/test/test_storagepool_tier_extended.py new file mode 100644 index 000000000..b55d983a3 --- /dev/null +++ b/test/test_storagepool_tier_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_tier_extended import StoragepoolTierExtended + + +class TestStoragepoolTierExtended(unittest.TestCase): + """ StoragepoolTierExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolTierExtended(self): + """ + Test StoragepoolTierExtended + """ + model = swagger_client.models.storagepool_tier_extended.StoragepoolTierExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_tier_usage.py b/test/test_storagepool_tier_usage.py new file mode 100644 index 000000000..4b3dec07c --- /dev/null +++ b/test/test_storagepool_tier_usage.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_tier_usage import StoragepoolTierUsage + + +class TestStoragepoolTierUsage(unittest.TestCase): + """ StoragepoolTierUsage unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolTierUsage(self): + """ + Test StoragepoolTierUsage + """ + model = swagger_client.models.storagepool_tier_usage.StoragepoolTierUsage() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_tiers.py b/test/test_storagepool_tiers.py new file mode 100644 index 000000000..39b9ee1cb --- /dev/null +++ b/test/test_storagepool_tiers.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_tiers import StoragepoolTiers + + +class TestStoragepoolTiers(unittest.TestCase): + """ StoragepoolTiers unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolTiers(self): + """ + Test StoragepoolTiers + """ + model = swagger_client.models.storagepool_tiers.StoragepoolTiers() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_tiers_extended.py b/test/test_storagepool_tiers_extended.py new file mode 100644 index 000000000..cf0bb1325 --- /dev/null +++ b/test/test_storagepool_tiers_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_tiers_extended import StoragepoolTiersExtended + + +class TestStoragepoolTiersExtended(unittest.TestCase): + """ StoragepoolTiersExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolTiersExtended(self): + """ + Test StoragepoolTiersExtended + """ + model = swagger_client.models.storagepool_tiers_extended.StoragepoolTiersExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_unprovisioned.py b/test/test_storagepool_unprovisioned.py new file mode 100644 index 000000000..66e73bd24 --- /dev/null +++ b/test/test_storagepool_unprovisioned.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_unprovisioned import StoragepoolUnprovisioned + + +class TestStoragepoolUnprovisioned(unittest.TestCase): + """ StoragepoolUnprovisioned unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolUnprovisioned(self): + """ + Test StoragepoolUnprovisioned + """ + model = swagger_client.models.storagepool_unprovisioned.StoragepoolUnprovisioned() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_storagepool_unprovisioned_unprovisioned_item.py b/test/test_storagepool_unprovisioned_unprovisioned_item.py new file mode 100644 index 000000000..674aea014 --- /dev/null +++ b/test/test_storagepool_unprovisioned_unprovisioned_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.storagepool_unprovisioned_unprovisioned_item import StoragepoolUnprovisionedUnprovisionedItem + + +class TestStoragepoolUnprovisionedUnprovisionedItem(unittest.TestCase): + """ StoragepoolUnprovisionedUnprovisionedItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStoragepoolUnprovisionedUnprovisionedItem(self): + """ + Test StoragepoolUnprovisionedUnprovisionedItem + """ + model = swagger_client.models.storagepool_unprovisioned_unprovisioned_item.StoragepoolUnprovisionedUnprovisionedItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_subnets_subnet_pool.py b/test/test_subnets_subnet_pool.py new file mode 100644 index 000000000..3d9189d0d --- /dev/null +++ b/test/test_subnets_subnet_pool.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.subnets_subnet_pool import SubnetsSubnetPool + + +class TestSubnetsSubnetPool(unittest.TestCase): + """ SubnetsSubnetPool unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubnetsSubnetPool(self): + """ + Test SubnetsSubnetPool + """ + model = swagger_client.models.subnets_subnet_pool.SubnetsSubnetPool() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_subnets_subnet_pool_iface.py b/test/test_subnets_subnet_pool_iface.py new file mode 100644 index 000000000..e901589ed --- /dev/null +++ b/test/test_subnets_subnet_pool_iface.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.subnets_subnet_pool_iface import SubnetsSubnetPoolIface + + +class TestSubnetsSubnetPoolIface(unittest.TestCase): + """ SubnetsSubnetPoolIface unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubnetsSubnetPoolIface(self): + """ + Test SubnetsSubnetPoolIface + """ + model = swagger_client.models.subnets_subnet_pool_iface.SubnetsSubnetPoolIface() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_subnets_subnet_pool_range.py b/test/test_subnets_subnet_pool_range.py new file mode 100644 index 000000000..cf9e4f81b --- /dev/null +++ b/test/test_subnets_subnet_pool_range.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.subnets_subnet_pool_range import SubnetsSubnetPoolRange + + +class TestSubnetsSubnetPoolRange(unittest.TestCase): + """ SubnetsSubnetPoolRange unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubnetsSubnetPoolRange(self): + """ + Test SubnetsSubnetPoolRange + """ + model = swagger_client.models.subnets_subnet_pool_range.SubnetsSubnetPoolRange() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_subnets_subnet_pool_static_route.py b/test/test_subnets_subnet_pool_static_route.py new file mode 100644 index 000000000..809355cb2 --- /dev/null +++ b/test/test_subnets_subnet_pool_static_route.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.subnets_subnet_pool_static_route import SubnetsSubnetPoolStaticRoute + + +class TestSubnetsSubnetPoolStaticRoute(unittest.TestCase): + """ SubnetsSubnetPoolStaticRoute unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubnetsSubnetPoolStaticRoute(self): + """ + Test SubnetsSubnetPoolStaticRoute + """ + model = swagger_client.models.subnets_subnet_pool_static_route.SubnetsSubnetPoolStaticRoute() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_subnets_subnet_pools.py b/test/test_subnets_subnet_pools.py new file mode 100644 index 000000000..89668564f --- /dev/null +++ b/test/test_subnets_subnet_pools.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.subnets_subnet_pools import SubnetsSubnetPools + + +class TestSubnetsSubnetPools(unittest.TestCase): + """ SubnetsSubnetPools unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubnetsSubnetPools(self): + """ + Test SubnetsSubnetPools + """ + model = swagger_client.models.subnets_subnet_pools.SubnetsSubnetPools() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_subnets_subnet_pools_extended.py b/test/test_subnets_subnet_pools_extended.py new file mode 100644 index 000000000..e2df757bb --- /dev/null +++ b/test/test_subnets_subnet_pools_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.subnets_subnet_pools_extended import SubnetsSubnetPoolsExtended + + +class TestSubnetsSubnetPoolsExtended(unittest.TestCase): + """ SubnetsSubnetPoolsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubnetsSubnetPoolsExtended(self): + """ + Test SubnetsSubnetPoolsExtended + """ + model = swagger_client.models.subnets_subnet_pools_extended.SubnetsSubnetPoolsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_subnets_subnet_pools_pool.py b/test/test_subnets_subnet_pools_pool.py new file mode 100644 index 000000000..d76754e3d --- /dev/null +++ b/test/test_subnets_subnet_pools_pool.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.subnets_subnet_pools_pool import SubnetsSubnetPoolsPool + + +class TestSubnetsSubnetPoolsPool(unittest.TestCase): + """ SubnetsSubnetPoolsPool unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubnetsSubnetPoolsPool(self): + """ + Test SubnetsSubnetPoolsPool + """ + model = swagger_client.models.subnets_subnet_pools_pool.SubnetsSubnetPoolsPool() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_client.py b/test/test_summary_client.py new file mode 100644 index 000000000..9d5509430 --- /dev/null +++ b/test/test_summary_client.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_client import SummaryClient + + +class TestSummaryClient(unittest.TestCase): + """ SummaryClient unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummaryClient(self): + """ + Test SummaryClient + """ + model = swagger_client.models.summary_client.SummaryClient() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_client_client_item.py b/test/test_summary_client_client_item.py new file mode 100644 index 000000000..ca76f52d1 --- /dev/null +++ b/test/test_summary_client_client_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_client_client_item import SummaryClientClientItem + + +class TestSummaryClientClientItem(unittest.TestCase): + """ SummaryClientClientItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummaryClientClientItem(self): + """ + Test SummaryClientClientItem + """ + model = swagger_client.models.summary_client_client_item.SummaryClientClientItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_drive.py b/test/test_summary_drive.py new file mode 100644 index 000000000..4c8fa2edd --- /dev/null +++ b/test/test_summary_drive.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_drive import SummaryDrive + + +class TestSummaryDrive(unittest.TestCase): + """ SummaryDrive unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummaryDrive(self): + """ + Test SummaryDrive + """ + model = swagger_client.models.summary_drive.SummaryDrive() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_drive_drive_item.py b/test/test_summary_drive_drive_item.py new file mode 100644 index 000000000..01d976e91 --- /dev/null +++ b/test/test_summary_drive_drive_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_drive_drive_item import SummaryDriveDriveItem + + +class TestSummaryDriveDriveItem(unittest.TestCase): + """ SummaryDriveDriveItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummaryDriveDriveItem(self): + """ + Test SummaryDriveDriveItem + """ + model = swagger_client.models.summary_drive_drive_item.SummaryDriveDriveItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_heat.py b/test/test_summary_heat.py new file mode 100644 index 000000000..6f516e628 --- /dev/null +++ b/test/test_summary_heat.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_heat import SummaryHeat + + +class TestSummaryHeat(unittest.TestCase): + """ SummaryHeat unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummaryHeat(self): + """ + Test SummaryHeat + """ + model = swagger_client.models.summary_heat.SummaryHeat() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_heat_heat_item.py b/test/test_summary_heat_heat_item.py new file mode 100644 index 000000000..883ae2797 --- /dev/null +++ b/test/test_summary_heat_heat_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_heat_heat_item import SummaryHeatHeatItem + + +class TestSummaryHeatHeatItem(unittest.TestCase): + """ SummaryHeatHeatItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummaryHeatHeatItem(self): + """ + Test SummaryHeatHeatItem + """ + model = swagger_client.models.summary_heat_heat_item.SummaryHeatHeatItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_protocol.py b/test/test_summary_protocol.py new file mode 100644 index 000000000..0b0d227fe --- /dev/null +++ b/test/test_summary_protocol.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_protocol import SummaryProtocol + + +class TestSummaryProtocol(unittest.TestCase): + """ SummaryProtocol unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummaryProtocol(self): + """ + Test SummaryProtocol + """ + model = swagger_client.models.summary_protocol.SummaryProtocol() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_protocol_protocol_item.py b/test/test_summary_protocol_protocol_item.py new file mode 100644 index 000000000..2f109a5af --- /dev/null +++ b/test/test_summary_protocol_protocol_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_protocol_protocol_item import SummaryProtocolProtocolItem + + +class TestSummaryProtocolProtocolItem(unittest.TestCase): + """ SummaryProtocolProtocolItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummaryProtocolProtocolItem(self): + """ + Test SummaryProtocolProtocolItem + """ + model = swagger_client.models.summary_protocol_protocol_item.SummaryProtocolProtocolItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_system.py b/test/test_summary_system.py new file mode 100644 index 000000000..2b199c1d5 --- /dev/null +++ b/test/test_summary_system.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_system import SummarySystem + + +class TestSummarySystem(unittest.TestCase): + """ SummarySystem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummarySystem(self): + """ + Test SummarySystem + """ + model = swagger_client.models.summary_system.SummarySystem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_summary_system_system_item.py b/test/test_summary_system_system_item.py new file mode 100644 index 000000000..f27ee6c0c --- /dev/null +++ b/test/test_summary_system_system_item.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.summary_system_system_item import SummarySystemSystemItem + + +class TestSummarySystemSystemItem(unittest.TestCase): + """ SummarySystemSystemItem unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSummarySystemSystemItem(self): + """ + Test SummarySystemSystemItem + """ + model = swagger_client.models.summary_system_system_item.SummarySystemSystemItem() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_swift_account.py b/test/test_swift_account.py new file mode 100644 index 000000000..35aa09304 --- /dev/null +++ b/test/test_swift_account.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.swift_account import SwiftAccount + + +class TestSwiftAccount(unittest.TestCase): + """ SwiftAccount unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSwiftAccount(self): + """ + Test SwiftAccount + """ + model = swagger_client.models.swift_account.SwiftAccount() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_swift_account_extended.py b/test/test_swift_account_extended.py new file mode 100644 index 000000000..1d888a871 --- /dev/null +++ b/test/test_swift_account_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.swift_account_extended import SwiftAccountExtended + + +class TestSwiftAccountExtended(unittest.TestCase): + """ SwiftAccountExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSwiftAccountExtended(self): + """ + Test SwiftAccountExtended + """ + model = swagger_client.models.swift_account_extended.SwiftAccountExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_swift_accounts.py b/test/test_swift_accounts.py new file mode 100644 index 000000000..279800a99 --- /dev/null +++ b/test/test_swift_accounts.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.swift_accounts import SwiftAccounts + + +class TestSwiftAccounts(unittest.TestCase): + """ SwiftAccounts unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSwiftAccounts(self): + """ + Test SwiftAccounts + """ + model = swagger_client.models.swift_accounts.SwiftAccounts() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_api.py b/test/test_sync_api.py new file mode 100644 index 000000000..3a5e76d1a --- /dev/null +++ b/test/test_sync_api.py @@ -0,0 +1,299 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.sync_api import SyncApi + + +class TestSyncApi(unittest.TestCase): + """ SyncApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.sync_api.SyncApi() + + def tearDown(self): + pass + + def test_create_sync_job(self): + """ + Test case for create_sync_job + + + """ + pass + + def test_create_sync_policy(self): + """ + Test case for create_sync_policy + + + """ + pass + + def test_create_sync_reports_rotate_item(self): + """ + Test case for create_sync_reports_rotate_item + + + """ + pass + + def test_create_sync_rule(self): + """ + Test case for create_sync_rule + + + """ + pass + + def test_delete_sync_policies(self): + """ + Test case for delete_sync_policies + + + """ + pass + + def test_delete_sync_policy(self): + """ + Test case for delete_sync_policy + + + """ + pass + + def test_delete_sync_rule(self): + """ + Test case for delete_sync_rule + + + """ + pass + + def test_delete_sync_rules(self): + """ + Test case for delete_sync_rules + + + """ + pass + + def test_delete_target_policy(self): + """ + Test case for delete_target_policy + + + """ + pass + + def test_get_history_cpu(self): + """ + Test case for get_history_cpu + + + """ + pass + + def test_get_history_file(self): + """ + Test case for get_history_file + + + """ + pass + + def test_get_history_network(self): + """ + Test case for get_history_network + + + """ + pass + + def test_get_history_worker(self): + """ + Test case for get_history_worker + + + """ + pass + + def test_get_sync_job(self): + """ + Test case for get_sync_job + + + """ + pass + + def test_get_sync_license(self): + """ + Test case for get_sync_license + + + """ + pass + + def test_get_sync_policy(self): + """ + Test case for get_sync_policy + + + """ + pass + + def test_get_sync_report(self): + """ + Test case for get_sync_report + + + """ + pass + + def test_get_sync_reports(self): + """ + Test case for get_sync_reports + + + """ + pass + + def test_get_sync_rule(self): + """ + Test case for get_sync_rule + + + """ + pass + + def test_get_sync_settings(self): + """ + Test case for get_sync_settings + + + """ + pass + + def test_get_target_policies(self): + """ + Test case for get_target_policies + + + """ + pass + + def test_get_target_policy(self): + """ + Test case for get_target_policy + + + """ + pass + + def test_get_target_report(self): + """ + Test case for get_target_report + + + """ + pass + + def test_get_target_reports(self): + """ + Test case for get_target_reports + + + """ + pass + + def test_list_sync_jobs(self): + """ + Test case for list_sync_jobs + + + """ + pass + + def test_list_sync_policies(self): + """ + Test case for list_sync_policies + + + """ + pass + + def test_list_sync_reports_rotate(self): + """ + Test case for list_sync_reports_rotate + + + """ + pass + + def test_list_sync_rules(self): + """ + Test case for list_sync_rules + + + """ + pass + + def test_update_sync_job(self): + """ + Test case for update_sync_job + + + """ + pass + + def test_update_sync_policy(self): + """ + Test case for update_sync_policy + + + """ + pass + + def test_update_sync_rule(self): + """ + Test case for update_sync_rule + + + """ + pass + + def test_update_sync_settings(self): + """ + Test case for update_sync_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_job.py b/test/test_sync_job.py new file mode 100644 index 000000000..01f8953f9 --- /dev/null +++ b/test/test_sync_job.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_job import SyncJob + + +class TestSyncJob(unittest.TestCase): + """ SyncJob unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncJob(self): + """ + Test SyncJob + """ + model = swagger_client.models.sync_job.SyncJob() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_job_create_params.py b/test/test_sync_job_create_params.py new file mode 100644 index 000000000..ffe334801 --- /dev/null +++ b/test/test_sync_job_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_job_create_params import SyncJobCreateParams + + +class TestSyncJobCreateParams(unittest.TestCase): + """ SyncJobCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncJobCreateParams(self): + """ + Test SyncJobCreateParams + """ + model = swagger_client.models.sync_job_create_params.SyncJobCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_job_extended.py b/test/test_sync_job_extended.py new file mode 100644 index 000000000..9bbad4731 --- /dev/null +++ b/test/test_sync_job_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_job_extended import SyncJobExtended + + +class TestSyncJobExtended(unittest.TestCase): + """ SyncJobExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncJobExtended(self): + """ + Test SyncJobExtended + """ + model = swagger_client.models.sync_job_extended.SyncJobExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_job_worker.py b/test/test_sync_job_worker.py new file mode 100644 index 000000000..0346cd9aa --- /dev/null +++ b/test/test_sync_job_worker.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_job_worker import SyncJobWorker + + +class TestSyncJobWorker(unittest.TestCase): + """ SyncJobWorker unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncJobWorker(self): + """ + Test SyncJobWorker + """ + model = swagger_client.models.sync_job_worker.SyncJobWorker() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_jobs.py b/test/test_sync_jobs.py new file mode 100644 index 000000000..1e29442eb --- /dev/null +++ b/test/test_sync_jobs.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_jobs import SyncJobs + + +class TestSyncJobs(unittest.TestCase): + """ SyncJobs unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncJobs(self): + """ + Test SyncJobs + """ + model = swagger_client.models.sync_jobs.SyncJobs() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_jobs_extended.py b/test/test_sync_jobs_extended.py new file mode 100644 index 000000000..0774e1740 --- /dev/null +++ b/test/test_sync_jobs_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_jobs_extended import SyncJobsExtended + + +class TestSyncJobsExtended(unittest.TestCase): + """ SyncJobsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncJobsExtended(self): + """ + Test SyncJobsExtended + """ + model = swagger_client.models.sync_jobs_extended.SyncJobsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_policies.py b/test/test_sync_policies.py new file mode 100644 index 000000000..6915631eb --- /dev/null +++ b/test/test_sync_policies.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_policies import SyncPolicies + + +class TestSyncPolicies(unittest.TestCase): + """ SyncPolicies unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncPolicies(self): + """ + Test SyncPolicies + """ + model = swagger_client.models.sync_policies.SyncPolicies() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_policies_api.py b/test/test_sync_policies_api.py new file mode 100644 index 000000000..9da29bc8f --- /dev/null +++ b/test/test_sync_policies_api.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.sync_policies_api import SyncPoliciesApi + + +class TestSyncPoliciesApi(unittest.TestCase): + """ SyncPoliciesApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.sync_policies_api.SyncPoliciesApi() + + def tearDown(self): + pass + + def test_create_policy_reset_item(self): + """ + Test case for create_policy_reset_item + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_policies_extended.py b/test/test_sync_policies_extended.py new file mode 100644 index 000000000..66bb59bf7 --- /dev/null +++ b/test/test_sync_policies_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_policies_extended import SyncPoliciesExtended + + +class TestSyncPoliciesExtended(unittest.TestCase): + """ SyncPoliciesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncPoliciesExtended(self): + """ + Test SyncPoliciesExtended + """ + model = swagger_client.models.sync_policies_extended.SyncPoliciesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_policy.py b/test/test_sync_policy.py new file mode 100644 index 000000000..2d800b51d --- /dev/null +++ b/test/test_sync_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_policy import SyncPolicy + + +class TestSyncPolicy(unittest.TestCase): + """ SyncPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncPolicy(self): + """ + Test SyncPolicy + """ + model = swagger_client.models.sync_policy.SyncPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_policy_create_params.py b/test/test_sync_policy_create_params.py new file mode 100644 index 000000000..4da7c3664 --- /dev/null +++ b/test/test_sync_policy_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_policy_create_params import SyncPolicyCreateParams + + +class TestSyncPolicyCreateParams(unittest.TestCase): + """ SyncPolicyCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncPolicyCreateParams(self): + """ + Test SyncPolicyCreateParams + """ + model = swagger_client.models.sync_policy_create_params.SyncPolicyCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_policy_extended.py b/test/test_sync_policy_extended.py new file mode 100644 index 000000000..281065ea6 --- /dev/null +++ b/test/test_sync_policy_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_policy_extended import SyncPolicyExtended + + +class TestSyncPolicyExtended(unittest.TestCase): + """ SyncPolicyExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncPolicyExtended(self): + """ + Test SyncPolicyExtended + """ + model = swagger_client.models.sync_policy_extended.SyncPolicyExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_policy_source_network.py b/test/test_sync_policy_source_network.py new file mode 100644 index 000000000..a8e5d7189 --- /dev/null +++ b/test/test_sync_policy_source_network.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_policy_source_network import SyncPolicySourceNetwork + + +class TestSyncPolicySourceNetwork(unittest.TestCase): + """ SyncPolicySourceNetwork unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncPolicySourceNetwork(self): + """ + Test SyncPolicySourceNetwork + """ + model = swagger_client.models.sync_policy_source_network.SyncPolicySourceNetwork() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_report.py b/test/test_sync_report.py new file mode 100644 index 000000000..17d8bb595 --- /dev/null +++ b/test/test_sync_report.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_report import SyncReport + + +class TestSyncReport(unittest.TestCase): + """ SyncReport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncReport(self): + """ + Test SyncReport + """ + model = swagger_client.models.sync_report.SyncReport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_report_policy.py b/test/test_sync_report_policy.py new file mode 100644 index 000000000..02a421a94 --- /dev/null +++ b/test/test_sync_report_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_report_policy import SyncReportPolicy + + +class TestSyncReportPolicy(unittest.TestCase): + """ SyncReportPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncReportPolicy(self): + """ + Test SyncReportPolicy + """ + model = swagger_client.models.sync_report_policy.SyncReportPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_reports.py b/test/test_sync_reports.py new file mode 100644 index 000000000..d2b552ec4 --- /dev/null +++ b/test/test_sync_reports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_reports import SyncReports + + +class TestSyncReports(unittest.TestCase): + """ SyncReports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncReports(self): + """ + Test SyncReports + """ + model = swagger_client.models.sync_reports.SyncReports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_reports_api.py b/test/test_sync_reports_api.py new file mode 100644 index 000000000..0d9d40605 --- /dev/null +++ b/test/test_sync_reports_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.sync_reports_api import SyncReportsApi + + +class TestSyncReportsApi(unittest.TestCase): + """ SyncReportsApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.sync_reports_api.SyncReportsApi() + + def tearDown(self): + pass + + def test_get_report_subreport(self): + """ + Test case for get_report_subreport + + + """ + pass + + def test_get_report_subreports(self): + """ + Test case for get_report_subreports + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_reports_extended.py b/test/test_sync_reports_extended.py new file mode 100644 index 000000000..c76b0923e --- /dev/null +++ b/test/test_sync_reports_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_reports_extended import SyncReportsExtended + + +class TestSyncReportsExtended(unittest.TestCase): + """ SyncReportsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncReportsExtended(self): + """ + Test SyncReportsExtended + """ + model = swagger_client.models.sync_reports_extended.SyncReportsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_reports_rotate.py b/test/test_sync_reports_rotate.py new file mode 100644 index 000000000..f7208edc7 --- /dev/null +++ b/test/test_sync_reports_rotate.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_reports_rotate import SyncReportsRotate + + +class TestSyncReportsRotate(unittest.TestCase): + """ SyncReportsRotate unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncReportsRotate(self): + """ + Test SyncReportsRotate + """ + model = swagger_client.models.sync_reports_rotate.SyncReportsRotate() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_rule.py b/test/test_sync_rule.py new file mode 100644 index 000000000..ad39dde7d --- /dev/null +++ b/test/test_sync_rule.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_rule import SyncRule + + +class TestSyncRule(unittest.TestCase): + """ SyncRule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncRule(self): + """ + Test SyncRule + """ + model = swagger_client.models.sync_rule.SyncRule() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_rule_create_params.py b/test/test_sync_rule_create_params.py new file mode 100644 index 000000000..0d9a2d8d9 --- /dev/null +++ b/test/test_sync_rule_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_rule_create_params import SyncRuleCreateParams + + +class TestSyncRuleCreateParams(unittest.TestCase): + """ SyncRuleCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncRuleCreateParams(self): + """ + Test SyncRuleCreateParams + """ + model = swagger_client.models.sync_rule_create_params.SyncRuleCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_rule_extended.py b/test/test_sync_rule_extended.py new file mode 100644 index 000000000..ab0952058 --- /dev/null +++ b/test/test_sync_rule_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_rule_extended import SyncRuleExtended + + +class TestSyncRuleExtended(unittest.TestCase): + """ SyncRuleExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncRuleExtended(self): + """ + Test SyncRuleExtended + """ + model = swagger_client.models.sync_rule_extended.SyncRuleExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_rule_schedule.py b/test/test_sync_rule_schedule.py new file mode 100644 index 000000000..f85a45f63 --- /dev/null +++ b/test/test_sync_rule_schedule.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_rule_schedule import SyncRuleSchedule + + +class TestSyncRuleSchedule(unittest.TestCase): + """ SyncRuleSchedule unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncRuleSchedule(self): + """ + Test SyncRuleSchedule + """ + model = swagger_client.models.sync_rule_schedule.SyncRuleSchedule() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_rules.py b/test/test_sync_rules.py new file mode 100644 index 000000000..5b30929e8 --- /dev/null +++ b/test/test_sync_rules.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_rules import SyncRules + + +class TestSyncRules(unittest.TestCase): + """ SyncRules unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncRules(self): + """ + Test SyncRules + """ + model = swagger_client.models.sync_rules.SyncRules() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_rules_extended.py b/test/test_sync_rules_extended.py new file mode 100644 index 000000000..871faf0fd --- /dev/null +++ b/test/test_sync_rules_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_rules_extended import SyncRulesExtended + + +class TestSyncRulesExtended(unittest.TestCase): + """ SyncRulesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncRulesExtended(self): + """ + Test SyncRulesExtended + """ + model = swagger_client.models.sync_rules_extended.SyncRulesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_settings.py b/test/test_sync_settings.py new file mode 100644 index 000000000..5249c7311 --- /dev/null +++ b/test/test_sync_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_settings import SyncSettings + + +class TestSyncSettings(unittest.TestCase): + """ SyncSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncSettings(self): + """ + Test SyncSettings + """ + model = swagger_client.models.sync_settings.SyncSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_settings_extended.py b/test/test_sync_settings_extended.py new file mode 100644 index 000000000..406047c1b --- /dev/null +++ b/test/test_sync_settings_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_settings_extended import SyncSettingsExtended + + +class TestSyncSettingsExtended(unittest.TestCase): + """ SyncSettingsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncSettingsExtended(self): + """ + Test SyncSettingsExtended + """ + model = swagger_client.models.sync_settings_extended.SyncSettingsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_settings_settings.py b/test/test_sync_settings_settings.py new file mode 100644 index 000000000..03a928ff8 --- /dev/null +++ b/test/test_sync_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.sync_settings_settings import SyncSettingsSettings + + +class TestSyncSettingsSettings(unittest.TestCase): + """ SyncSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncSettingsSettings(self): + """ + Test SyncSettingsSettings + """ + model = swagger_client.models.sync_settings_settings.SyncSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_sync_target_api.py b/test/test_sync_target_api.py new file mode 100644 index 000000000..3a555d914 --- /dev/null +++ b/test/test_sync_target_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.sync_target_api import SyncTargetApi + + +class TestSyncTargetApi(unittest.TestCase): + """ SyncTargetApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.sync_target_api.SyncTargetApi() + + def tearDown(self): + pass + + def test_create_policies_policy_cancel_item(self): + """ + Test case for create_policies_policy_cancel_item + + + """ + pass + + def test_get_reports_report_subreport(self): + """ + Test case for get_reports_report_subreport + + + """ + pass + + def test_get_reports_report_subreports(self): + """ + Test case for get_reports_report_subreports + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_target_policies.py b/test/test_target_policies.py new file mode 100644 index 000000000..36c12e888 --- /dev/null +++ b/test/test_target_policies.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.target_policies import TargetPolicies + + +class TestTargetPolicies(unittest.TestCase): + """ TargetPolicies unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTargetPolicies(self): + """ + Test TargetPolicies + """ + model = swagger_client.models.target_policies.TargetPolicies() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_target_policies_extended.py b/test/test_target_policies_extended.py new file mode 100644 index 000000000..cf3d7a612 --- /dev/null +++ b/test/test_target_policies_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.target_policies_extended import TargetPoliciesExtended + + +class TestTargetPoliciesExtended(unittest.TestCase): + """ TargetPoliciesExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTargetPoliciesExtended(self): + """ + Test TargetPoliciesExtended + """ + model = swagger_client.models.target_policies_extended.TargetPoliciesExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_target_policy.py b/test/test_target_policy.py new file mode 100644 index 000000000..e927ad045 --- /dev/null +++ b/test/test_target_policy.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.target_policy import TargetPolicy + + +class TestTargetPolicy(unittest.TestCase): + """ TargetPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTargetPolicy(self): + """ + Test TargetPolicy + """ + model = swagger_client.models.target_policy.TargetPolicy() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_target_report.py b/test/test_target_report.py new file mode 100644 index 000000000..9a2e89e62 --- /dev/null +++ b/test/test_target_report.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.target_report import TargetReport + + +class TestTargetReport(unittest.TestCase): + """ TargetReport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTargetReport(self): + """ + Test TargetReport + """ + model = swagger_client.models.target_report.TargetReport() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_target_reports.py b/test/test_target_reports.py new file mode 100644 index 000000000..4c088f3b6 --- /dev/null +++ b/test/test_target_reports.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.target_reports import TargetReports + + +class TestTargetReports(unittest.TestCase): + """ TargetReports unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTargetReports(self): + """ + Test TargetReports + """ + model = swagger_client.models.target_reports.TargetReports() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_target_reports_extended.py b/test/test_target_reports_extended.py new file mode 100644 index 000000000..6bef60ea3 --- /dev/null +++ b/test/test_target_reports_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.target_reports_extended import TargetReportsExtended + + +class TestTargetReportsExtended(unittest.TestCase): + """ TargetReportsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTargetReportsExtended(self): + """ + Test TargetReportsExtended + """ + model = swagger_client.models.target_reports_extended.TargetReportsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_timezone_region.py b/test/test_timezone_region.py new file mode 100644 index 000000000..3346a2188 --- /dev/null +++ b/test/test_timezone_region.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.timezone_region import TimezoneRegion + + +class TestTimezoneRegion(unittest.TestCase): + """ TimezoneRegion unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTimezoneRegion(self): + """ + Test TimezoneRegion + """ + model = swagger_client.models.timezone_region.TimezoneRegion() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_timezone_region_timezone.py b/test/test_timezone_region_timezone.py new file mode 100644 index 000000000..562061a10 --- /dev/null +++ b/test/test_timezone_region_timezone.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.timezone_region_timezone import TimezoneRegionTimezone + + +class TestTimezoneRegionTimezone(unittest.TestCase): + """ TimezoneRegionTimezone unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTimezoneRegionTimezone(self): + """ + Test TimezoneRegionTimezone + """ + model = swagger_client.models.timezone_region_timezone.TimezoneRegionTimezone() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_timezone_regions.py b/test/test_timezone_regions.py new file mode 100644 index 000000000..8b5dc951d --- /dev/null +++ b/test/test_timezone_regions.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.timezone_regions import TimezoneRegions + + +class TestTimezoneRegions(unittest.TestCase): + """ TimezoneRegions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTimezoneRegions(self): + """ + Test TimezoneRegions + """ + model = swagger_client.models.timezone_regions.TimezoneRegions() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_timezone_settings.py b/test/test_timezone_settings.py new file mode 100644 index 000000000..96cb8abda --- /dev/null +++ b/test/test_timezone_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.timezone_settings import TimezoneSettings + + +class TestTimezoneSettings(unittest.TestCase): + """ TimezoneSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTimezoneSettings(self): + """ + Test TimezoneSettings + """ + model = swagger_client.models.timezone_settings.TimezoneSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_upgrade_api.py b/test/test_upgrade_api.py new file mode 100644 index 000000000..285ed5353 --- /dev/null +++ b/test/test_upgrade_api.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.upgrade_api import UpgradeApi + + +class TestUpgradeApi(unittest.TestCase): + """ UpgradeApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.upgrade_api.UpgradeApi() + + def tearDown(self): + pass + + def test_create_cluster_add_remaining_node(self): + """ + Test case for create_cluster_add_remaining_node + + + """ + pass + + def test_create_cluster_archive_item(self): + """ + Test case for create_cluster_archive_item + + + """ + pass + + def test_create_cluster_assess_item(self): + """ + Test case for create_cluster_assess_item + + + """ + pass + + def test_create_cluster_commit_item(self): + """ + Test case for create_cluster_commit_item + + + """ + pass + + def test_create_cluster_firmware_assess_item(self): + """ + Test case for create_cluster_firmware_assess_item + + + """ + pass + + def test_create_cluster_firmware_upgrade_item(self): + """ + Test case for create_cluster_firmware_upgrade_item + + + """ + pass + + def test_create_cluster_patch_abort_item(self): + """ + Test case for create_cluster_patch_abort_item + + + """ + pass + + def test_create_cluster_retry_last_action_item(self): + """ + Test case for create_cluster_retry_last_action_item + + + """ + pass + + def test_create_cluster_rollback_item(self): + """ + Test case for create_cluster_rollback_item + + + """ + pass + + def test_create_cluster_upgrade_item(self): + """ + Test case for create_cluster_upgrade_item + + + """ + pass + + def test_get_cluster_firmware_progress(self): + """ + Test case for get_cluster_firmware_progress + + + """ + pass + + def test_get_cluster_firmware_status(self): + """ + Test case for get_cluster_firmware_status + + + """ + pass + + def test_get_cluster_node(self): + """ + Test case for get_cluster_node + + + """ + pass + + def test_get_cluster_nodes(self): + """ + Test case for get_cluster_nodes + + + """ + pass + + def test_get_upgrade_cluster(self): + """ + Test case for get_upgrade_cluster + + + """ + pass + + def test_update_cluster_upgrade(self): + """ + Test case for update_cluster_upgrade + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_upgrade_cluster.py b/test/test_upgrade_cluster.py new file mode 100644 index 000000000..a48473dca --- /dev/null +++ b/test/test_upgrade_cluster.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.upgrade_cluster import UpgradeCluster + + +class TestUpgradeCluster(unittest.TestCase): + """ UpgradeCluster unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpgradeCluster(self): + """ + Test UpgradeCluster + """ + model = swagger_client.models.upgrade_cluster.UpgradeCluster() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_upgrade_cluster_api.py b/test/test_upgrade_cluster_api.py new file mode 100644 index 000000000..9cffbe3ec --- /dev/null +++ b/test/test_upgrade_cluster_api.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.upgrade_cluster_api import UpgradeClusterApi + + +class TestUpgradeClusterApi(unittest.TestCase): + """ UpgradeClusterApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.upgrade_cluster_api.UpgradeClusterApi() + + def tearDown(self): + pass + + def test_get_nodes_node_firmware_status(self): + """ + Test case for get_nodes_node_firmware_status + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_upgrade_cluster_cluster_overview.py b/test/test_upgrade_cluster_cluster_overview.py new file mode 100644 index 000000000..f8b8ddcbb --- /dev/null +++ b/test/test_upgrade_cluster_cluster_overview.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.upgrade_cluster_cluster_overview import UpgradeClusterClusterOverview + + +class TestUpgradeClusterClusterOverview(unittest.TestCase): + """ UpgradeClusterClusterOverview unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpgradeClusterClusterOverview(self): + """ + Test UpgradeClusterClusterOverview + """ + model = swagger_client.models.upgrade_cluster_cluster_overview.UpgradeClusterClusterOverview() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_upgrade_cluster_upgrade_settings.py b/test/test_upgrade_cluster_upgrade_settings.py new file mode 100644 index 000000000..3f32e83fe --- /dev/null +++ b/test/test_upgrade_cluster_upgrade_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.upgrade_cluster_upgrade_settings import UpgradeClusterUpgradeSettings + + +class TestUpgradeClusterUpgradeSettings(unittest.TestCase): + """ UpgradeClusterUpgradeSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpgradeClusterUpgradeSettings(self): + """ + Test UpgradeClusterUpgradeSettings + """ + model = swagger_client.models.upgrade_cluster_upgrade_settings.UpgradeClusterUpgradeSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_user_change_password.py b/test/test_user_change_password.py new file mode 100644 index 000000000..c563e40bb --- /dev/null +++ b/test/test_user_change_password.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.user_change_password import UserChangePassword + + +class TestUserChangePassword(unittest.TestCase): + """ UserChangePassword unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserChangePassword(self): + """ + Test UserChangePassword + """ + model = swagger_client.models.user_change_password.UserChangePassword() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_user_member_of.py b/test/test_user_member_of.py new file mode 100644 index 000000000..ef0f6fb4c --- /dev/null +++ b/test/test_user_member_of.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.user_member_of import UserMemberOf + + +class TestUserMemberOf(unittest.TestCase): + """ UserMemberOf unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserMemberOf(self): + """ + Test UserMemberOf + """ + model = swagger_client.models.user_member_of.UserMemberOf() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_api.py b/test/test_worm_api.py new file mode 100644 index 000000000..3e689b982 --- /dev/null +++ b/test/test_worm_api.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.worm_api import WormApi + + +class TestWormApi(unittest.TestCase): + """ WormApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.worm_api.WormApi() + + def tearDown(self): + pass + + def test_create_worm_domain(self): + """ + Test case for create_worm_domain + + + """ + pass + + def test_get_worm_domain(self): + """ + Test case for get_worm_domain + + + """ + pass + + def test_get_worm_settings(self): + """ + Test case for get_worm_settings + + + """ + pass + + def test_list_worm_domains(self): + """ + Test case for list_worm_domains + + + """ + pass + + def test_update_worm_domain(self): + """ + Test case for update_worm_domain + + + """ + pass + + def test_update_worm_settings(self): + """ + Test case for update_worm_settings + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_domain.py b/test/test_worm_domain.py new file mode 100644 index 000000000..34f4121d1 --- /dev/null +++ b/test/test_worm_domain.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.worm_domain import WormDomain + + +class TestWormDomain(unittest.TestCase): + """ WormDomain unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormDomain(self): + """ + Test WormDomain + """ + model = swagger_client.models.worm_domain.WormDomain() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_domain_create_params.py b/test/test_worm_domain_create_params.py new file mode 100644 index 000000000..5186ce56f --- /dev/null +++ b/test/test_worm_domain_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.worm_domain_create_params import WormDomainCreateParams + + +class TestWormDomainCreateParams(unittest.TestCase): + """ WormDomainCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormDomainCreateParams(self): + """ + Test WormDomainCreateParams + """ + model = swagger_client.models.worm_domain_create_params.WormDomainCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_domain_extended.py b/test/test_worm_domain_extended.py new file mode 100644 index 000000000..7b487040a --- /dev/null +++ b/test/test_worm_domain_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.worm_domain_extended import WormDomainExtended + + +class TestWormDomainExtended(unittest.TestCase): + """ WormDomainExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormDomainExtended(self): + """ + Test WormDomainExtended + """ + model = swagger_client.models.worm_domain_extended.WormDomainExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_domains.py b/test/test_worm_domains.py new file mode 100644 index 000000000..7bb17eaed --- /dev/null +++ b/test/test_worm_domains.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.worm_domains import WormDomains + + +class TestWormDomains(unittest.TestCase): + """ WormDomains unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormDomains(self): + """ + Test WormDomains + """ + model = swagger_client.models.worm_domains.WormDomains() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_domains_extended.py b/test/test_worm_domains_extended.py new file mode 100644 index 000000000..7836f5a10 --- /dev/null +++ b/test/test_worm_domains_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.worm_domains_extended import WormDomainsExtended + + +class TestWormDomainsExtended(unittest.TestCase): + """ WormDomainsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormDomainsExtended(self): + """ + Test WormDomainsExtended + """ + model = swagger_client.models.worm_domains_extended.WormDomainsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_settings.py b/test/test_worm_settings.py new file mode 100644 index 000000000..67f6e6b81 --- /dev/null +++ b/test/test_worm_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.worm_settings import WormSettings + + +class TestWormSettings(unittest.TestCase): + """ WormSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormSettings(self): + """ + Test WormSettings + """ + model = swagger_client.models.worm_settings.WormSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_settings_extended.py b/test/test_worm_settings_extended.py new file mode 100644 index 000000000..fe8249d4d --- /dev/null +++ b/test/test_worm_settings_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.worm_settings_extended import WormSettingsExtended + + +class TestWormSettingsExtended(unittest.TestCase): + """ WormSettingsExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormSettingsExtended(self): + """ + Test WormSettingsExtended + """ + model = swagger_client.models.worm_settings_extended.WormSettingsExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_worm_settings_settings.py b/test/test_worm_settings_settings.py new file mode 100644 index 000000000..e9f3c8d62 --- /dev/null +++ b/test/test_worm_settings_settings.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.worm_settings_settings import WormSettingsSettings + + +class TestWormSettingsSettings(unittest.TestCase): + """ WormSettingsSettings unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWormSettingsSettings(self): + """ + Test WormSettingsSettings + """ + model = swagger_client.models.worm_settings_settings.WormSettingsSettings() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zone.py b/test/test_zone.py new file mode 100644 index 000000000..49b75f4d6 --- /dev/null +++ b/test/test_zone.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.zone import Zone + + +class TestZone(unittest.TestCase): + """ Zone unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZone(self): + """ + Test Zone + """ + model = swagger_client.models.zone.Zone() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zone_create_params.py b/test/test_zone_create_params.py new file mode 100644 index 000000000..aa7c5c741 --- /dev/null +++ b/test/test_zone_create_params.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.zone_create_params import ZoneCreateParams + + +class TestZoneCreateParams(unittest.TestCase): + """ ZoneCreateParams unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZoneCreateParams(self): + """ + Test ZoneCreateParams + """ + model = swagger_client.models.zone_create_params.ZoneCreateParams() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zone_extended.py b/test/test_zone_extended.py new file mode 100644 index 000000000..d1a16574f --- /dev/null +++ b/test/test_zone_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.zone_extended import ZoneExtended + + +class TestZoneExtended(unittest.TestCase): + """ ZoneExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZoneExtended(self): + """ + Test ZoneExtended + """ + model = swagger_client.models.zone_extended.ZoneExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zones.py b/test/test_zones.py new file mode 100644 index 000000000..029a0df1f --- /dev/null +++ b/test/test_zones.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.zones import Zones + + +class TestZones(unittest.TestCase): + """ Zones unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZones(self): + """ + Test Zones + """ + model = swagger_client.models.zones.Zones() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zones_api.py b/test/test_zones_api.py new file mode 100644 index 000000000..8fc03029f --- /dev/null +++ b/test/test_zones_api.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.zones_api import ZonesApi + + +class TestZonesApi(unittest.TestCase): + """ ZonesApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.zones_api.ZonesApi() + + def tearDown(self): + pass + + def test_create_zone(self): + """ + Test case for create_zone + + + """ + pass + + def test_delete_zone(self): + """ + Test case for delete_zone + + + """ + pass + + def test_get_zone(self): + """ + Test case for get_zone + + + """ + pass + + def test_list_zones(self): + """ + Test case for list_zones + + + """ + pass + + def test_update_zone(self): + """ + Test case for update_zone + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zones_summary.py b/test/test_zones_summary.py new file mode 100644 index 000000000..ab0ffc263 --- /dev/null +++ b/test/test_zones_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.zones_summary import ZonesSummary + + +class TestZonesSummary(unittest.TestCase): + """ ZonesSummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZonesSummary(self): + """ + Test ZonesSummary + """ + model = swagger_client.models.zones_summary.ZonesSummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zones_summary_api.py b/test/test_zones_summary_api.py new file mode 100644 index 000000000..e72d55b09 --- /dev/null +++ b/test/test_zones_summary_api.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.apis.zones_summary_api import ZonesSummaryApi + + +class TestZonesSummaryApi(unittest.TestCase): + """ ZonesSummaryApi unit test stubs """ + + def setUp(self): + self.api = swagger_client.apis.zones_summary_api.ZonesSummaryApi() + + def tearDown(self): + pass + + def test_get_zones_summary(self): + """ + Test case for get_zones_summary + + + """ + pass + + def test_get_zones_summary_zone(self): + """ + Test case for get_zones_summary_zone + + + """ + pass + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zones_summary_extended.py b/test/test_zones_summary_extended.py new file mode 100644 index 000000000..636822c09 --- /dev/null +++ b/test/test_zones_summary_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.zones_summary_extended import ZonesSummaryExtended + + +class TestZonesSummaryExtended(unittest.TestCase): + """ ZonesSummaryExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZonesSummaryExtended(self): + """ + Test ZonesSummaryExtended + """ + model = swagger_client.models.zones_summary_extended.ZonesSummaryExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zones_summary_summary.py b/test/test_zones_summary_summary.py new file mode 100644 index 000000000..916a3caa1 --- /dev/null +++ b/test/test_zones_summary_summary.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.zones_summary_summary import ZonesSummarySummary + + +class TestZonesSummarySummary(unittest.TestCase): + """ ZonesSummarySummary unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZonesSummarySummary(self): + """ + Test ZonesSummarySummary + """ + model = swagger_client.models.zones_summary_summary.ZonesSummarySummary() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/test/test_zones_summary_summary_extended.py b/test/test_zones_summary_summary_extended.py new file mode 100644 index 000000000..b83347b66 --- /dev/null +++ b/test/test_zones_summary_summary_extended.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" +Copyright 2016 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ref: https://github.com/swagger-api/swagger-codegen +""" + +from __future__ import absolute_import + +import os +import sys +import unittest + +import swagger_client +from swagger_client.rest import ApiException +from swagger_client.models.zones_summary_summary_extended import ZonesSummarySummaryExtended + + +class TestZonesSummarySummaryExtended(unittest.TestCase): + """ ZonesSummarySummaryExtended unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testZonesSummarySummaryExtended(self): + """ + Test ZonesSummarySummaryExtended + """ + model = swagger_client.models.zones_summary_summary_extended.ZonesSummarySummaryExtended() + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file